From 75784f731863a8350c3194c2edbbfdc4eae5b670 Mon Sep 17 00:00:00 2001 From: chloe-renaud Date: Thu, 12 Dec 2024 13:59:26 +0000 Subject: [PATCH] deploy: 869b8886c27197759b95541a790eb48450353a48 --- website/.nojekyll | 0 website/404.html | 13 ++ website/api.html | 23 ++ website/api/classes/VTLExpressionError.html | 52 +++++ .../api/classes/VTLInterpretationError.html | 46 ++++ .../api/classes/VTLMissingDependencies.html | 46 ++++ website/api/classes/VTLMissingDependency.html | 46 ++++ website/api/functions/LunaticComponents.html | 26 +++ website/api/functions/ModalControls.html | 22 ++ website/api/functions/useLunatic.html | 23 ++ website/api/interfaces/LunaticExtraProps.html | 13 ++ .../type-aliases/LunaticChangesHandler.html | 23 ++ .../type-aliases/LunaticCollectedValue.html | 39 ++++ .../LunaticComponentDefinition.html | 29 +++ .../type-aliases/LunaticComponentProps.html | 20 ++ website/api/type-aliases/LunaticControl.html | 18 ++ website/api/type-aliases/LunaticData.html | 19 ++ website/api/type-aliases/LunaticError.html | 25 +++ .../api/type-aliases/LunaticExpression.html | 18 ++ website/api/type-aliases/LunaticOptions.html | 150 +++++++++++++ website/api/type-aliases/LunaticPager.html | 71 ++++++ .../type-aliases/LunaticSlotComponents.html | 204 ++++++++++++++++++ website/api/type-aliases/LunaticSource.html | 82 +++++++ website/api/type-aliases/LunaticState.html | 178 +++++++++++++++ .../type-aliases/LunaticStateVariable.html | 18 ++ website/api/type-aliases/LunaticValues.html | 20 ++ website/api/type-aliases/LunaticVariable.html | 19 ++ website/api/variables/Button.html | 18 ++ website/api/variables/components.html | 197 +++++++++++++++++ website/assets/css/styles.90a0afe1.css | 1 + website/assets/js/029f537f.63119643.js | 1 + website/assets/js/0cb2ce6a.46235ae7.js | 1 + website/assets/js/0e7a0dc8.9a766c11.js | 1 + website/assets/js/0ea626f8.15745c0f.js | 1 + website/assets/js/0f175527.2ff71eda.js | 1 + website/assets/js/1067611d.e3825ffe.js | 1 + website/assets/js/1107.6d76b575.js | 1 + website/assets/js/14eb3368.5ecd0fa3.js | 1 + website/assets/js/165.60104c8f.js | 2 + website/assets/js/165.60104c8f.js.LICENSE.txt | 9 + website/assets/js/17896441.1245606d.js | 1 + website/assets/js/1825.4bd78481.js | 1 + website/assets/js/198.1d680d44.js | 2 + website/assets/js/198.1d680d44.js.LICENSE.txt | 9 + website/assets/js/1d80a4d6.6bfa3b3f.js | 1 + website/assets/js/1ec6518c.f8f76767.js | 1 + website/assets/js/1f391b9e.341a86ca.js | 1 + website/assets/js/2088de68.073f8aba.js | 1 + website/assets/js/2130.6c9f8cee.js | 1 + website/assets/js/22544e41.cb76717c.js | 1 + website/assets/js/2334.ba613eb0.js | 1 + website/assets/js/2387.b95425bc.js | 1 + website/assets/js/2664.ef877a3c.js | 1 + website/assets/js/2a2339b9.9c8926bc.js | 1 + website/assets/js/3056.f856834f.js | 1 + website/assets/js/3175.4be10d35.js | 1 + website/assets/js/32530c60.706b2cd0.js | 1 + website/assets/js/3624.55293744.js | 1 + website/assets/js/391.41923806.js | 1 + website/assets/js/3b33ea71.83d43384.js | 1 + website/assets/js/43f86adf.979da35d.js | 1 + website/assets/js/4445d26b.29966862.js | 1 + website/assets/js/4485.ec35ec73.js | 1 + website/assets/js/4492.d716b7b0.js | 1 + website/assets/js/45833858.6039e53f.js | 1 + website/assets/js/4632.2a4030f3.js | 1 + website/assets/js/4697.ede765eb.js | 1 + website/assets/js/46db7f29.d4baae75.js | 1 + website/assets/js/4d072e10.f0ade135.js | 1 + website/assets/js/4e1b86ca.9bf26b83.js | 1 + website/assets/js/4fe25d84.51c41bca.js | 1 + website/assets/js/5110.dbb44139.js | 1 + website/assets/js/532.87b60d88.js | 2 + website/assets/js/532.87b60d88.js.LICENSE.txt | 7 + website/assets/js/53eb1e5c.22d1b908.js | 1 + website/assets/js/5410.28a53ffc.js | 1 + website/assets/js/545.8c5343de.js | 1 + website/assets/js/58e0c7b0.b064d201.js | 1 + website/assets/js/5978.b8a78a84.js | 1 + website/assets/js/5c547149.06881283.js | 1 + website/assets/js/5e6898a4.6c6fcbdf.js | 1 + website/assets/js/5e8c322a.d94f90d7.js | 1 + website/assets/js/5e95c892.64ab6c54.js | 1 + website/assets/js/5ed7f5fe.380829ba.js | 1 + website/assets/js/6049a7bc.903fbb0d.js | 1 + website/assets/js/6237.3e19f0f9.js | 1 + website/assets/js/6240.f83d349c.js | 1 + website/assets/js/6244.672ef196.js | 1 + website/assets/js/6355.bc474220.js | 1 + website/assets/js/6383.c67dc1cb.js | 1 + website/assets/js/6452.7c0c122f.js | 1 + website/assets/js/69100af9.772282cc.js | 1 + website/assets/js/6e0c98ef.95bb471a.js | 1 + website/assets/js/6ef797bf.d6d81f41.js | 1 + website/assets/js/6f0fe8bc.7e6da869.js | 1 + website/assets/js/72b55bd9.c7a68712.js | 1 + website/assets/js/7306.e2ddab41.js | 1 + website/assets/js/7354.f2073142.js | 1 + website/assets/js/7357.a69ceee5.js | 1 + website/assets/js/758.2de31dbb.js | 1 + website/assets/js/7691.7a088108.js | 1 + website/assets/js/7723.462b020e.js | 1 + website/assets/js/7a34fa89.c2ea4e92.js | 1 + website/assets/js/7c0f0c82.8f2379dc.js | 1 + website/assets/js/8159.156a20a5.js | 1 + website/assets/js/835f525a.c7489480.js | 1 + website/assets/js/8413.5458cc78.js | 1 + website/assets/js/8540.4da3845f.js | 1 + website/assets/js/85c3c79c.2f203624.js | 1 + website/assets/js/8731.6a51e12b.js | 1 + website/assets/js/890.5ffb00ff.js | 1 + website/assets/js/897040e0.2775e63b.js | 1 + website/assets/js/8c14e59c.de232d4f.js | 1 + website/assets/js/8fcf01ba.3d05031c.js | 1 + website/assets/js/94c6a771.6ab9ec9c.js | 1 + website/assets/js/94f53d34.d08df3d3.js | 1 + website/assets/js/9720.a5758708.js | 1 + website/assets/js/9732.61cd1730.js | 1 + website/assets/js/9cb90f50.dda795db.js | 1 + website/assets/js/a538f389.1458ef2d.js | 1 + website/assets/js/a66aaf29.19a4ff77.js | 1 + website/assets/js/a7456010.5f9bbb01.js | 1 + website/assets/js/a7bd4aaa.4a47c66d.js | 1 + website/assets/js/a94703ab.5bad7cad.js | 1 + website/assets/js/a976e8d8.4a0dab01.js | 1 + website/assets/js/aba21aa0.ed09cce9.js | 1 + website/assets/js/af8b7c6f.347fcdef.js | 1 + website/assets/js/b6ce7557.eebc1147.js | 1 + website/assets/js/b968f49b.34074d0c.js | 1 + website/assets/js/ba2f5f01.e830acf3.js | 1 + website/assets/js/c1574f21.c75960f5.js | 1 + website/assets/js/c3356e06.3879aa85.js | 1 + website/assets/js/c901544c.f235d413.js | 1 + website/assets/js/ccd161e0.4c8cc62c.js | 1 + website/assets/js/d1a1dfaa.0f89d2fc.js | 1 + website/assets/js/d209f454.989e2f98.js | 1 + website/assets/js/d48ac471.c25153df.js | 1 + website/assets/js/d48c2e32.9ff27447.js | 1 + website/assets/js/d8e663aa.dc7c1146.js | 1 + website/assets/js/e2699ac7.1417b042.js | 1 + website/assets/js/ea9b137c.eae46100.js | 1 + website/assets/js/f39704da.56e5d68a.js | 1 + website/assets/js/f398cc77.e656e3ff.js | 1 + website/assets/js/f7562109.98de39b2.js | 1 + website/assets/js/f8409a7e.db1c9dd5.js | 1 + website/assets/js/f97e9514.c47cf53a.js | 1 + website/assets/js/f9c40bd6.8662c030.js | 1 + website/assets/js/f9cde7f6.9a40a539.js | 1 + website/assets/js/fa29edc5.081c785e.js | 1 + website/assets/js/fed19d79.1afdc356.js | 1 + website/assets/js/main.d810294f.js | 2 + .../assets/js/main.d810294f.js.LICENSE.txt | 133 ++++++++++++ website/assets/js/runtime~main.6d17b420.js | 1 + "website/category/agr\303\251gateurs.html" | 13 ++ website/category/balisage.html | 13 ++ website/category/champs.html | 13 ++ website/category/composants.html | 13 ++ website/category/fonctionnement-interne.html | 13 ++ website/category/hook-uselunatic.html | 13 ++ website/changelog.html | 98 +++++++++ website/components/aggregators/loop.html | 39 ++++ website/components/aggregators/pairwise.html | 39 ++++ .../components/aggregators/rosterForLoop.html | 28 +++ .../components/aggregators/roundabout.html | 37 ++++ website/components/base.html | 44 ++++ .../decorations/filter-description.html | 20 ++ website/components/decorations/question.html | 16 ++ website/components/decorations/sequence.html | 16 ++ .../components/fields/checkboxBoolean.html | 16 ++ website/components/fields/checkboxGroup.html | 18 ++ website/components/fields/checkboxOne.html | 16 ++ website/components/fields/datepicker.html | 22 ++ website/components/fields/dropdown.html | 26 +++ website/components/fields/duration.html | 30 +++ website/components/fields/input-number.html | 21 ++ website/components/fields/input.html | 19 ++ website/components/fields/radio.html | 27 +++ website/components/fields/suggester.html | 42 ++++ website/components/fields/table.html | 24 +++ website/components/fields/text.html | 24 +++ website/components/fields/textarea.html | 19 ++ website/components/lunatic-components.html | 25 +++ website/components/personnalisation.html | 17 ++ website/hook/controls.html | 31 +++ website/hook/navigation.html | 49 +++++ website/hook/parameters.html | 100 +++++++++ website/hook/return.html | 42 ++++ website/hook/track-changes.html | 20 ++ website/img/clipboard.png | Bin 0 -> 15365 bytes website/img/favicon.ico | Bin 0 -> 15406 bytes website/index.html | 25 +++ website/internal/cleaning.html | 17 ++ website/internal/missing.html | 17 ++ website/internal/reducer.html | 35 +++ website/internal/resizing.html | 17 ++ website/search-index-default.json | 1 + .../search-index-docs-default-current.json | 1 + website/sitemap.xml | 1 + website/vtl.html | 27 +++ 199 files changed, 2884 insertions(+) create mode 100644 website/.nojekyll create mode 100644 website/404.html create mode 100644 website/api.html create mode 100644 website/api/classes/VTLExpressionError.html create mode 100644 website/api/classes/VTLInterpretationError.html create mode 100644 website/api/classes/VTLMissingDependencies.html create mode 100644 website/api/classes/VTLMissingDependency.html create mode 100644 website/api/functions/LunaticComponents.html create mode 100644 website/api/functions/ModalControls.html create mode 100644 website/api/functions/useLunatic.html create mode 100644 website/api/interfaces/LunaticExtraProps.html create mode 100644 website/api/type-aliases/LunaticChangesHandler.html create mode 100644 website/api/type-aliases/LunaticCollectedValue.html create mode 100644 website/api/type-aliases/LunaticComponentDefinition.html create mode 100644 website/api/type-aliases/LunaticComponentProps.html create mode 100644 website/api/type-aliases/LunaticControl.html create mode 100644 website/api/type-aliases/LunaticData.html create mode 100644 website/api/type-aliases/LunaticError.html create mode 100644 website/api/type-aliases/LunaticExpression.html create mode 100644 website/api/type-aliases/LunaticOptions.html create mode 100644 website/api/type-aliases/LunaticPager.html create mode 100644 website/api/type-aliases/LunaticSlotComponents.html create mode 100644 website/api/type-aliases/LunaticSource.html create mode 100644 website/api/type-aliases/LunaticState.html create mode 100644 website/api/type-aliases/LunaticStateVariable.html create mode 100644 website/api/type-aliases/LunaticValues.html create mode 100644 website/api/type-aliases/LunaticVariable.html create mode 100644 website/api/variables/Button.html create mode 100644 website/api/variables/components.html create mode 100644 website/assets/css/styles.90a0afe1.css create mode 100644 website/assets/js/029f537f.63119643.js create mode 100644 website/assets/js/0cb2ce6a.46235ae7.js create mode 100644 website/assets/js/0e7a0dc8.9a766c11.js create mode 100644 website/assets/js/0ea626f8.15745c0f.js create mode 100644 website/assets/js/0f175527.2ff71eda.js create mode 100644 website/assets/js/1067611d.e3825ffe.js create mode 100644 website/assets/js/1107.6d76b575.js create mode 100644 website/assets/js/14eb3368.5ecd0fa3.js create mode 100644 website/assets/js/165.60104c8f.js create mode 100644 website/assets/js/165.60104c8f.js.LICENSE.txt create mode 100644 website/assets/js/17896441.1245606d.js create mode 100644 website/assets/js/1825.4bd78481.js create mode 100644 website/assets/js/198.1d680d44.js create mode 100644 website/assets/js/198.1d680d44.js.LICENSE.txt create mode 100644 website/assets/js/1d80a4d6.6bfa3b3f.js create mode 100644 website/assets/js/1ec6518c.f8f76767.js create mode 100644 website/assets/js/1f391b9e.341a86ca.js create mode 100644 website/assets/js/2088de68.073f8aba.js create mode 100644 website/assets/js/2130.6c9f8cee.js create mode 100644 website/assets/js/22544e41.cb76717c.js create mode 100644 website/assets/js/2334.ba613eb0.js create mode 100644 website/assets/js/2387.b95425bc.js create mode 100644 website/assets/js/2664.ef877a3c.js create mode 100644 website/assets/js/2a2339b9.9c8926bc.js create mode 100644 website/assets/js/3056.f856834f.js create mode 100644 website/assets/js/3175.4be10d35.js create mode 100644 website/assets/js/32530c60.706b2cd0.js create mode 100644 website/assets/js/3624.55293744.js create mode 100644 website/assets/js/391.41923806.js create mode 100644 website/assets/js/3b33ea71.83d43384.js create mode 100644 website/assets/js/43f86adf.979da35d.js create mode 100644 website/assets/js/4445d26b.29966862.js create mode 100644 website/assets/js/4485.ec35ec73.js create mode 100644 website/assets/js/4492.d716b7b0.js create mode 100644 website/assets/js/45833858.6039e53f.js create mode 100644 website/assets/js/4632.2a4030f3.js create mode 100644 website/assets/js/4697.ede765eb.js create mode 100644 website/assets/js/46db7f29.d4baae75.js create mode 100644 website/assets/js/4d072e10.f0ade135.js create mode 100644 website/assets/js/4e1b86ca.9bf26b83.js create mode 100644 website/assets/js/4fe25d84.51c41bca.js create mode 100644 website/assets/js/5110.dbb44139.js create mode 100644 website/assets/js/532.87b60d88.js create mode 100644 website/assets/js/532.87b60d88.js.LICENSE.txt create mode 100644 website/assets/js/53eb1e5c.22d1b908.js create mode 100644 website/assets/js/5410.28a53ffc.js create mode 100644 website/assets/js/545.8c5343de.js create mode 100644 website/assets/js/58e0c7b0.b064d201.js create mode 100644 website/assets/js/5978.b8a78a84.js create mode 100644 website/assets/js/5c547149.06881283.js create mode 100644 website/assets/js/5e6898a4.6c6fcbdf.js create mode 100644 website/assets/js/5e8c322a.d94f90d7.js create mode 100644 website/assets/js/5e95c892.64ab6c54.js create mode 100644 website/assets/js/5ed7f5fe.380829ba.js create mode 100644 website/assets/js/6049a7bc.903fbb0d.js create mode 100644 website/assets/js/6237.3e19f0f9.js create mode 100644 website/assets/js/6240.f83d349c.js create mode 100644 website/assets/js/6244.672ef196.js create mode 100644 website/assets/js/6355.bc474220.js create mode 100644 website/assets/js/6383.c67dc1cb.js create mode 100644 website/assets/js/6452.7c0c122f.js create mode 100644 website/assets/js/69100af9.772282cc.js create mode 100644 website/assets/js/6e0c98ef.95bb471a.js create mode 100644 website/assets/js/6ef797bf.d6d81f41.js create mode 100644 website/assets/js/6f0fe8bc.7e6da869.js create mode 100644 website/assets/js/72b55bd9.c7a68712.js create mode 100644 website/assets/js/7306.e2ddab41.js create mode 100644 website/assets/js/7354.f2073142.js create mode 100644 website/assets/js/7357.a69ceee5.js create mode 100644 website/assets/js/758.2de31dbb.js create mode 100644 website/assets/js/7691.7a088108.js create mode 100644 website/assets/js/7723.462b020e.js create mode 100644 website/assets/js/7a34fa89.c2ea4e92.js create mode 100644 website/assets/js/7c0f0c82.8f2379dc.js create mode 100644 website/assets/js/8159.156a20a5.js create mode 100644 website/assets/js/835f525a.c7489480.js create mode 100644 website/assets/js/8413.5458cc78.js create mode 100644 website/assets/js/8540.4da3845f.js create mode 100644 website/assets/js/85c3c79c.2f203624.js create mode 100644 website/assets/js/8731.6a51e12b.js create mode 100644 website/assets/js/890.5ffb00ff.js create mode 100644 website/assets/js/897040e0.2775e63b.js create mode 100644 website/assets/js/8c14e59c.de232d4f.js create mode 100644 website/assets/js/8fcf01ba.3d05031c.js create mode 100644 website/assets/js/94c6a771.6ab9ec9c.js create mode 100644 website/assets/js/94f53d34.d08df3d3.js create mode 100644 website/assets/js/9720.a5758708.js create mode 100644 website/assets/js/9732.61cd1730.js create mode 100644 website/assets/js/9cb90f50.dda795db.js create mode 100644 website/assets/js/a538f389.1458ef2d.js create mode 100644 website/assets/js/a66aaf29.19a4ff77.js create mode 100644 website/assets/js/a7456010.5f9bbb01.js create mode 100644 website/assets/js/a7bd4aaa.4a47c66d.js create mode 100644 website/assets/js/a94703ab.5bad7cad.js create mode 100644 website/assets/js/a976e8d8.4a0dab01.js create mode 100644 website/assets/js/aba21aa0.ed09cce9.js create mode 100644 website/assets/js/af8b7c6f.347fcdef.js create mode 100644 website/assets/js/b6ce7557.eebc1147.js create mode 100644 website/assets/js/b968f49b.34074d0c.js create mode 100644 website/assets/js/ba2f5f01.e830acf3.js create mode 100644 website/assets/js/c1574f21.c75960f5.js create mode 100644 website/assets/js/c3356e06.3879aa85.js create mode 100644 website/assets/js/c901544c.f235d413.js create mode 100644 website/assets/js/ccd161e0.4c8cc62c.js create mode 100644 website/assets/js/d1a1dfaa.0f89d2fc.js create mode 100644 website/assets/js/d209f454.989e2f98.js create mode 100644 website/assets/js/d48ac471.c25153df.js create mode 100644 website/assets/js/d48c2e32.9ff27447.js create mode 100644 website/assets/js/d8e663aa.dc7c1146.js create mode 100644 website/assets/js/e2699ac7.1417b042.js create mode 100644 website/assets/js/ea9b137c.eae46100.js create mode 100644 website/assets/js/f39704da.56e5d68a.js create mode 100644 website/assets/js/f398cc77.e656e3ff.js create mode 100644 website/assets/js/f7562109.98de39b2.js create mode 100644 website/assets/js/f8409a7e.db1c9dd5.js create mode 100644 website/assets/js/f97e9514.c47cf53a.js create mode 100644 website/assets/js/f9c40bd6.8662c030.js create mode 100644 website/assets/js/f9cde7f6.9a40a539.js create mode 100644 website/assets/js/fa29edc5.081c785e.js create mode 100644 website/assets/js/fed19d79.1afdc356.js create mode 100644 website/assets/js/main.d810294f.js create mode 100644 website/assets/js/main.d810294f.js.LICENSE.txt create mode 100644 website/assets/js/runtime~main.6d17b420.js create mode 100644 "website/category/agr\303\251gateurs.html" create mode 100644 website/category/balisage.html create mode 100644 website/category/champs.html create mode 100644 website/category/composants.html create mode 100644 website/category/fonctionnement-interne.html create mode 100644 website/category/hook-uselunatic.html create mode 100644 website/changelog.html create mode 100644 website/components/aggregators/loop.html create mode 100644 website/components/aggregators/pairwise.html create mode 100644 website/components/aggregators/rosterForLoop.html create mode 100644 website/components/aggregators/roundabout.html create mode 100644 website/components/base.html create mode 100644 website/components/decorations/filter-description.html create mode 100644 website/components/decorations/question.html create mode 100644 website/components/decorations/sequence.html create mode 100644 website/components/fields/checkboxBoolean.html create mode 100644 website/components/fields/checkboxGroup.html create mode 100644 website/components/fields/checkboxOne.html create mode 100644 website/components/fields/datepicker.html create mode 100644 website/components/fields/dropdown.html create mode 100644 website/components/fields/duration.html create mode 100644 website/components/fields/input-number.html create mode 100644 website/components/fields/input.html create mode 100644 website/components/fields/radio.html create mode 100644 website/components/fields/suggester.html create mode 100644 website/components/fields/table.html create mode 100644 website/components/fields/text.html create mode 100644 website/components/fields/textarea.html create mode 100644 website/components/lunatic-components.html create mode 100644 website/components/personnalisation.html create mode 100644 website/hook/controls.html create mode 100644 website/hook/navigation.html create mode 100644 website/hook/parameters.html create mode 100644 website/hook/return.html create mode 100644 website/hook/track-changes.html create mode 100644 website/img/clipboard.png create mode 100644 website/img/favicon.ico create mode 100644 website/index.html create mode 100644 website/internal/cleaning.html create mode 100644 website/internal/missing.html create mode 100644 website/internal/reducer.html create mode 100644 website/internal/resizing.html create mode 100644 website/search-index-default.json create mode 100644 website/search-index-docs-default-current.json create mode 100644 website/sitemap.xml create mode 100644 website/vtl.html diff --git a/website/.nojekyll b/website/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/website/404.html b/website/404.html new file mode 100644 index 000000000..640696ccb --- /dev/null +++ b/website/404.html @@ -0,0 +1,13 @@ + + + + + +@inseefr/lunatic + + + + +
Aller au contenu principal

Page introuvable

Nous n'avons pas trouvé ce que vous recherchez.

Veuillez contacter le propriétaire du site qui vous a lié à l'URL d'origine et leur faire savoir que leur lien est cassé.

+ + \ No newline at end of file diff --git a/website/api.html b/website/api.html new file mode 100644 index 000000000..a47aac289 --- /dev/null +++ b/website/api.html @@ -0,0 +1,23 @@ + + + + + +@inseefr/lunatic | @inseefr/lunatic + + + + +
Aller au contenu principal

@inseefr/lunatic

+

Classes

+
ClassDescription
VTLExpressionError-
VTLInterpretationError-
VTLMissingDependencies-
VTLMissingDependency-
+

Interfaces

+
InterfaceDescription
LunaticExtraProps-
+

Type Aliases

+
Type aliasDescription
LunaticChangesHandlerFunction taking as arguments the various changes the user has made.
LunaticCollectedValue-
LunaticComponentDefinition-
LunaticComponentProps-
LunaticControl-
LunaticDataSurvey data.
LunaticErrorErrors returned by useLunatic hook when an input check is made with their id, criticity, type and the message to display to the user.
LunaticExpression-
LunaticOptionsSpecific behaviour options defined in the useLunatic hook.
LunaticPagerContains informations about navigation (last page reached, number of pages, subpages, etc.).
LunaticSlotComponentsContain the type of every customizable components.
LunaticSourceA lunatic survey unit
LunaticStateReturn type of useLunatic.
LunaticStateVariable-
LunaticValues-
LunaticVariableVariables provided to Lunatic through the source and used internally in a store.
+

Variables

+
VariableDescription
Button-
components-
+

Functions

+
FunctionDescription
LunaticComponentsEntry point for orchestrators, this component display the list of fields.
ModalControls-
useLunaticThe first library entrypoint is the useLunatic hook.
+ + \ No newline at end of file diff --git a/website/api/classes/VTLExpressionError.html b/website/api/classes/VTLExpressionError.html new file mode 100644 index 000000000..23abf1e70 --- /dev/null +++ b/website/api/classes/VTLExpressionError.html @@ -0,0 +1,52 @@ + + + + + +Class: VTLExpressionError | @inseefr/lunatic + + + + +
Aller au contenu principal

Class: VTLExpressionError

+

Extends

+
    +
  • Error
  • +
+

Extended by

+ +

Constructors

+

new VTLExpressionError()

+
+

new VTLExpressionError(expression, message): VTLExpressionError

+
+

Parameters

+
ParameterType
expressionstring
messagestring
+

Returns

+

VTLExpressionError

+

Overrides

+

Error.constructor

+

Defined in

+

src/use-lunatic/commons/variables/errors.ts:2

+

Properties

+
PropertyModifierTypeDescriptionInherited fromDefined in
cause?publicunknown-Error.causewebsite/node_modules/typescript/lib/lib.es2022.error.d.ts:24
expressionreadonlystring--src/use-lunatic/commons/variables/errors.ts:3
messagepublicstring-Error.messagewebsite/node_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstring-Error.namewebsite/node_modules/typescript/lib/lib.es5.d.ts:1076
stack?publicstring-Error.stackwebsite/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesError.prepareStackTracenode_modules/@types/node/globals.d.ts:143
stackTraceLimitstaticnumber-Error.stackTraceLimitnode_modules/@types/node/globals.d.ts:145
+

Methods

+

captureStackTrace()

+
+

static captureStackTrace(targetObject, constructorOpt?): void

+
+

Create .stack property on a target object

+

Parameters

+
ParameterType
targetObjectobject
constructorOpt?Function
+

Returns

+

void

+

Inherited from

+

Error.captureStackTrace

+

Defined in

+

node_modules/@types/node/globals.d.ts:136

+ + \ No newline at end of file diff --git a/website/api/classes/VTLInterpretationError.html b/website/api/classes/VTLInterpretationError.html new file mode 100644 index 000000000..0f29ea1f4 --- /dev/null +++ b/website/api/classes/VTLInterpretationError.html @@ -0,0 +1,46 @@ + + + + + +Class: VTLInterpretationError | @inseefr/lunatic + + + + +
Aller au contenu principal

Class: VTLInterpretationError

+

Extends

+ +

Constructors

+

new VTLInterpretationError()

+
+

new VTLInterpretationError(expression, bindings): VTLInterpretationError

+
+

Parameters

+
ParameterType
expressionstring
bindingsRecord<string, unknown>
+

Returns

+

VTLInterpretationError

+

Overrides

+

VTLExpressionError.constructor

+

Defined in

+

src/use-lunatic/commons/variables/errors.ts:11

+

Properties

+
PropertyModifierTypeDescriptionInherited fromDefined in
bindingsreadonlyRecord<string, unknown>--src/use-lunatic/commons/variables/errors.ts:13
cause?publicunknown-VTLExpressionError.causewebsite/node_modules/typescript/lib/lib.es2022.error.d.ts:24
expressionreadonlystring-VTLExpressionError.expressionsrc/use-lunatic/commons/variables/errors.ts:12
messagepublicstring-VTLExpressionError.messagewebsite/node_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstring-VTLExpressionError.namewebsite/node_modules/typescript/lib/lib.es5.d.ts:1076
stack?publicstring-VTLExpressionError.stackwebsite/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesVTLExpressionError.prepareStackTracenode_modules/@types/node/globals.d.ts:143
stackTraceLimitstaticnumber-VTLExpressionError.stackTraceLimitnode_modules/@types/node/globals.d.ts:145
+

Methods

+

captureStackTrace()

+
+

static captureStackTrace(targetObject, constructorOpt?): void

+
+

Create .stack property on a target object

+

Parameters

+
ParameterType
targetObjectobject
constructorOpt?Function
+

Returns

+

void

+

Inherited from

+

VTLExpressionError.captureStackTrace

+

Defined in

+

node_modules/@types/node/globals.d.ts:136

+ + \ No newline at end of file diff --git a/website/api/classes/VTLMissingDependencies.html b/website/api/classes/VTLMissingDependencies.html new file mode 100644 index 000000000..c54ae7e13 --- /dev/null +++ b/website/api/classes/VTLMissingDependencies.html @@ -0,0 +1,46 @@ + + + + + +Class: VTLMissingDependencies | @inseefr/lunatic + + + + +
Aller au contenu principal

Class: VTLMissingDependencies

+

Extends

+ +

Constructors

+

new VTLMissingDependencies()

+
+

new VTLMissingDependencies(expression, dependencies): VTLMissingDependencies

+
+

Parameters

+
ParameterType
expressionstring
dependenciesstring[]
+

Returns

+

VTLMissingDependencies

+

Overrides

+

VTLExpressionError.constructor

+

Defined in

+

src/use-lunatic/commons/variables/errors.ts:29

+

Properties

+
PropertyModifierTypeDescriptionInherited fromDefined in
cause?publicunknown-VTLExpressionError.causewebsite/node_modules/typescript/lib/lib.es2022.error.d.ts:24
dependenciesreadonlystring[]--src/use-lunatic/commons/variables/errors.ts:31
expressionreadonlystring-VTLExpressionError.expressionsrc/use-lunatic/commons/variables/errors.ts:30
messagepublicstring-VTLExpressionError.messagewebsite/node_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstring-VTLExpressionError.namewebsite/node_modules/typescript/lib/lib.es5.d.ts:1076
stack?publicstring-VTLExpressionError.stackwebsite/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesVTLExpressionError.prepareStackTracenode_modules/@types/node/globals.d.ts:143
stackTraceLimitstaticnumber-VTLExpressionError.stackTraceLimitnode_modules/@types/node/globals.d.ts:145
+

Methods

+

captureStackTrace()

+
+

static captureStackTrace(targetObject, constructorOpt?): void

+
+

Create .stack property on a target object

+

Parameters

+
ParameterType
targetObjectobject
constructorOpt?Function
+

Returns

+

void

+

Inherited from

+

VTLExpressionError.captureStackTrace

+

Defined in

+

node_modules/@types/node/globals.d.ts:136

+ + \ No newline at end of file diff --git a/website/api/classes/VTLMissingDependency.html b/website/api/classes/VTLMissingDependency.html new file mode 100644 index 000000000..e230a5e2f --- /dev/null +++ b/website/api/classes/VTLMissingDependency.html @@ -0,0 +1,46 @@ + + + + + +Class: VTLMissingDependency | @inseefr/lunatic + + + + +
Aller au contenu principal

Class: VTLMissingDependency

+

Extends

+ +

Constructors

+

new VTLMissingDependency()

+
+

new VTLMissingDependency(expression, variableName): VTLMissingDependency

+
+

Parameters

+
ParameterType
expressionstring
variableNamestring
+

Returns

+

VTLMissingDependency

+

Overrides

+

VTLExpressionError.constructor

+

Defined in

+

src/use-lunatic/commons/variables/errors.ts:20

+

Properties

+
PropertyModifierTypeDescriptionInherited fromDefined in
cause?publicunknown-VTLExpressionError.causewebsite/node_modules/typescript/lib/lib.es2022.error.d.ts:24
expressionreadonlystring-VTLExpressionError.expressionsrc/use-lunatic/commons/variables/errors.ts:21
messagepublicstring-VTLExpressionError.messagewebsite/node_modules/typescript/lib/lib.es5.d.ts:1077
namepublicstring-VTLExpressionError.namewebsite/node_modules/typescript/lib/lib.es5.d.ts:1076
stack?publicstring-VTLExpressionError.stackwebsite/node_modules/typescript/lib/lib.es5.d.ts:1078
variableNamereadonlystring--src/use-lunatic/commons/variables/errors.ts:22
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesVTLExpressionError.prepareStackTracenode_modules/@types/node/globals.d.ts:143
stackTraceLimitstaticnumber-VTLExpressionError.stackTraceLimitnode_modules/@types/node/globals.d.ts:145
+

Methods

+

captureStackTrace()

+
+

static captureStackTrace(targetObject, constructorOpt?): void

+
+

Create .stack property on a target object

+

Parameters

+
ParameterType
targetObjectobject
constructorOpt?Function
+

Returns

+

void

+

Inherited from

+

VTLExpressionError.captureStackTrace

+

Defined in

+

node_modules/@types/node/globals.d.ts:136

+ + \ No newline at end of file diff --git a/website/api/functions/LunaticComponents.html b/website/api/functions/LunaticComponents.html new file mode 100644 index 000000000..67d064c6d --- /dev/null +++ b/website/api/functions/LunaticComponents.html @@ -0,0 +1,26 @@ + + + + + +Function: LunaticComponents() | @inseefr/lunatic + + + + +
Aller au contenu principal

Function: LunaticComponents()

+
+

LunaticComponents<V>(__namedParameters): Element

+
+

Entry point for orchestrators, this component display the list of fields.

+

Components offered by Lunatic can be seen at https://github.com/InseeFr/Lunatic/tree/3.0/src/components

+

Type Parameters

+
Type ParameterDefault type
Vunknown
+

Parameters

+
ParameterType
__namedParametersProps<V>
+

Returns

+

Element

+

Defined in

+

src/components/LunaticComponents.tsx:52

+ + \ No newline at end of file diff --git a/website/api/functions/ModalControls.html b/website/api/functions/ModalControls.html new file mode 100644 index 000000000..ce5a72438 --- /dev/null +++ b/website/api/functions/ModalControls.html @@ -0,0 +1,22 @@ + + + + + +Function: ModalControls() | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/functions/useLunatic.html b/website/api/functions/useLunatic.html new file mode 100644 index 000000000..e41eac78f --- /dev/null +++ b/website/api/functions/useLunatic.html @@ -0,0 +1,23 @@ + + + + + +Function: useLunatic() | @inseefr/lunatic + + + + +
Aller au contenu principal

Function: useLunatic()

+
+

useLunatic(source, data, argOptions): LunaticState

+
+

The first library entrypoint is the useLunatic hook.

+

Parameters

+
ParameterTypeDefault valueDescription
sourceLunaticSourceundefinedJSON representation of our survey unit in the Lunatic Model. https://github.com/InseeFr/Lunatic-Model
dataPartial<Record<"EXTERNAL" | "CALCULATED", Record<string, unknown>> & object>DEFAULT_DATAInitial survey data (i.e. if it has been partially filled).
argOptionsLunaticOptionsemptySpecific behaviour options.
+

Returns

+

LunaticState

+

Defined in

+

src/use-lunatic/use-lunatic.ts:70

+ + \ No newline at end of file diff --git a/website/api/interfaces/LunaticExtraProps.html b/website/api/interfaces/LunaticExtraProps.html new file mode 100644 index 000000000..956fcaad5 --- /dev/null +++ b/website/api/interfaces/LunaticExtraProps.html @@ -0,0 +1,13 @@ + + + + + +Interface: LunaticExtraProps | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticChangesHandler.html b/website/api/type-aliases/LunaticChangesHandler.html new file mode 100644 index 000000000..9082f78d3 --- /dev/null +++ b/website/api/type-aliases/LunaticChangesHandler.html @@ -0,0 +1,23 @@ + + + + + +Type Alias: LunaticChangesHandler() | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticCollectedValue.html b/website/api/type-aliases/LunaticCollectedValue.html new file mode 100644 index 000000000..5957cd3e3 --- /dev/null +++ b/website/api/type-aliases/LunaticCollectedValue.html @@ -0,0 +1,39 @@ + + + + + +Type Alias: LunaticCollectedValue | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticComponentDefinition.html b/website/api/type-aliases/LunaticComponentDefinition.html new file mode 100644 index 000000000..4c592b50c --- /dev/null +++ b/website/api/type-aliases/LunaticComponentDefinition.html @@ -0,0 +1,29 @@ + + + + + +Type Alias: LunaticComponentDefinition\<T\> | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticComponentProps.html b/website/api/type-aliases/LunaticComponentProps.html new file mode 100644 index 000000000..c59c407d1 --- /dev/null +++ b/website/api/type-aliases/LunaticComponentProps.html @@ -0,0 +1,20 @@ + + + + + +Type Alias: LunaticComponentProps\<T\> | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticControl.html b/website/api/type-aliases/LunaticControl.html new file mode 100644 index 000000000..3b5a471d1 --- /dev/null +++ b/website/api/type-aliases/LunaticControl.html @@ -0,0 +1,18 @@ + + + + + +Type Alias: LunaticControl | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticData.html b/website/api/type-aliases/LunaticData.html new file mode 100644 index 000000000..dff0c6116 --- /dev/null +++ b/website/api/type-aliases/LunaticData.html @@ -0,0 +1,19 @@ + + + + + +Type Alias: LunaticData | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticError.html b/website/api/type-aliases/LunaticError.html new file mode 100644 index 000000000..f5a9bd160 --- /dev/null +++ b/website/api/type-aliases/LunaticError.html @@ -0,0 +1,25 @@ + + + + + +Type Alias: LunaticError | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticError

+
+

LunaticError: Pick<ControlDefinition, "id" | "criticality" | "typeOfControl"> & object

+
+

Errors returned by useLunatic hook when an input check is made with their +id, criticity, type and the message to display to the user.

+

Type declaration

+

errorMessage

+
+

errorMessage: ReactNode

+
+

Defined in

+

src/use-lunatic/type.ts:53

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticExpression.html b/website/api/type-aliases/LunaticExpression.html new file mode 100644 index 000000000..2fe7cf6cc --- /dev/null +++ b/website/api/type-aliases/LunaticExpression.html @@ -0,0 +1,18 @@ + + + + + +Type Alias: LunaticExpression | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticOptions.html b/website/api/type-aliases/LunaticOptions.html new file mode 100644 index 000000000..1342c19a0 --- /dev/null +++ b/website/api/type-aliases/LunaticOptions.html @@ -0,0 +1,150 @@ + + + + + +Type Alias: LunaticOptions | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticOptions

+
+

LunaticOptions: object

+
+

Specific behaviour options defined in the useLunatic hook.

+

Type declaration

+

activeControls?

+
+

optional activeControls: boolean

+
+

Enable data controls (form validation). (default: false)

+

autoSuggesterLoading?

+
+

optional autoSuggesterLoading: boolean

+
+

Enable the preemptive loading of suggester data on Lunatic initialization. (default: false)

+

componentsOptions?

+
+

optional componentsOptions: object

+
+

componentsOptions.detailAlwaysDisplayed?

+
+

optional detailAlwaysDisplayed: boolean

+
+

disableFilters?

+
+

optional disableFilters: boolean

+
+

Ignore filters. (default: false)

+

dontKnowButton?

+
+

optional dontKnowButton: string

+
+

"Don't know" button label.

+

features?

+
+

optional features: ("MD" | "VTL")[]

+
+

Enable VTL and Markdown support.

+

getReferentiel()?

+
+

optional getReferentiel: (name) => Promise<IndexEntry[]>

+
+

Function called to fetch nomenclatures used by the suggesters.

+

Parameters

+
ParameterType
namestring
+

Returns

+

Promise<IndexEntry[]>

+

initialPage?

+
+

optional initialPage: PageTag

+
+

Starting page at launch. (default: "1")

+

lastReachedPage?

+
+

optional lastReachedPage: PageTag

+
+

Furthest page the user ever reached.

+

logger?

+
+

optional logger: LunaticLogger

+
+

management?

+
+

optional management: boolean

+
+

Not yet implemented.

+

Enable management mode which allow to handle multiple states of the same variable (used by recovery positions).

+

The administrator can switch between COLLECTED, EDITED, INPUTTED modes. (default: false)

+

missing?

+
+

optional missing: boolean

+
+

Enable missing system. (default: false)

+

missingShortcut?

+
+

optional missingShortcut: object

+
+

Keyboard shortcut that triggers missing buttons.

+

missingShortcut.dontKnow

+
+

dontKnow: string

+
+

missingShortcut.refused

+
+

refused: string

+
+

missingStrategy()?

+
+

optional missingStrategy: () => void

+
+

Function triggered when a missing button is clicked.

+

Returns

+

void

+

onChange?

+
+

optional onChange: LunaticChangesHandler

+
+

Function called when a variable is changed by a user input (must be memoized as it is used in dependency of a useCallback by the library).

+

onVariableChange()?

+
+

optional onVariableChange: (event) => void

+
+

Parameters

+
ParameterType
eventLunaticVariablesStoreEvents["change"]
+

Returns

+

void

+

preferences?

+
+

optional preferences: ["COLLECTED"]

+
+

refusedButton?

+
+

optional refusedButton: string

+
+

"Refused" button label.

+

savingType?

+
+

optional savingType: "COLLECTED"

+
+

Key in which the data is saved. (default: "COLLECTED")

+

shortcut?

+
+

optional shortcut: boolean

+
+

Enable keyboard shortcuts for checkboxes, radio buttons and missing buttons (default: false).

+

trackChanges?

+
+

optional trackChanges: boolean

+
+

Enable change tracking to keep a track of what variable changed (allow using getChangedData()). (default: false)

+

withOverview?

+
+

optional withOverview: boolean

+
+

Enable overview system. (default: false)

+

Defined in

+

src/use-lunatic/type.ts:190

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticPager.html b/website/api/type-aliases/LunaticPager.html new file mode 100644 index 000000000..5414c898d --- /dev/null +++ b/website/api/type-aliases/LunaticPager.html @@ -0,0 +1,71 @@ + + + + + +Type Alias: LunaticPager | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticPager

+
+

LunaticPager: object

+
+

Contains informations about navigation (last page reached, number of pages, subpages, etc.).

+

This is the object used internally to determine where we are in the navigation.

+

When we are in a loop, the pager will have additional properties.

+

Type declaration

+

iteration?

+
+

optional iteration: number

+
+

Iteration index (starts at 0).

+

Only in a loop.

+

lastReachedPage?

+
+

optional lastReachedPage: PageTag

+
+

Last page reached.

+

linksIterations?

+
+

optional linksIterations: number[]

+
+

Only in a loop.

+

maxPage

+
+

maxPage: number

+
+

Last page of the survey.

+

nbIterations?

+
+

optional nbIterations: number

+
+

Number of iterations (i.e. number of people).

+

Only in a loop.

+

nbSubPages?

+
+

optional nbSubPages: number

+
+

Number of pages in a loop.

+

Only in a loop.

+

page

+
+

page: number

+
+

Current page.

+

shallowIteration?

+
+

optional shallowIteration: number

+
+

Only in a loop.

+

subPage?

+
+

optional subPage: number

+
+

Current subpage.

+

Only in a loop.

+

Defined in

+

src/use-lunatic/type.ts:100

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticSlotComponents.html b/website/api/type-aliases/LunaticSlotComponents.html new file mode 100644 index 000000000..09202bff7 --- /dev/null +++ b/website/api/type-aliases/LunaticSlotComponents.html @@ -0,0 +1,204 @@ + + + + + +Type Alias: LunaticSlotComponents | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticSlotComponents

+
+

LunaticSlotComponents: object

+
+

Contain the type of every customizable components.

+

Type declaration

+

Accordion

+
+

Accordion: typeof Accordion

+
+

Button

+
+

Button: typeof Button

+
+

CheckboxBoolean

+
+

CheckboxBoolean: typeof CustomCheckboxBoolean

+
+

CheckboxGroup

+
+

CheckboxGroup: typeof CustomCheckboxGroup

+
+

CheckboxOption

+
+

CheckboxOption: typeof CheckboxOption

+
+

Combobox

+
+

Combobox: typeof Combobox

+
+

ComboboxClearButton

+
+

ComboboxClearButton: typeof ComboboxClearButton

+
+

ComboboxContainer

+
+

ComboboxContainer: typeof ComboboxContainer

+
+

ComboboxContentBox

+
+

ComboboxContentBox: typeof ComboboxContentBox

+
+

ComboboxInput

+
+

ComboboxInput: typeof ComboboxInput

+
+

ComboboxLabelSelection

+
+

ComboboxLabelSelection: typeof ComboboxLabelSelection

+
+

ComboboxOption

+
+

ComboboxOption: typeof ComboboxOption

+
+

ComboboxPanelContainer

+
+

ComboboxPanelContainer: typeof ComboboxPanelContainer

+
+

ComponentWrapper

+
+

ComponentWrapper: ComponentType<PropsWithChildren<LunaticComponentProps & object>>

+
+

Datepicker

+
+

Datepicker: typeof CustomDatepicker

+
+

Declaration

+
+

Declaration: typeof Declaration

+
+

Declarations

+
+

Declarations: typeof Declarations

+
+ +
+

Dropdown: typeof CustomDropdown

+
+

Duration

+
+

Duration: typeof CustomDuration

+
+

Fieldset

+
+

Fieldset: typeof Fieldset

+
+

Input

+
+

Input: typeof CustomInput

+
+

InputNumber

+
+

InputNumber: typeof CustomInputNumber

+
+

Label

+
+

Label: typeof Label

+
+

Loop

+
+

Loop: typeof CustomLoop

+
+ +
+

MarkdownLink: typeof MarkdownLink

+
+

Notification

+
+

Notification: typeof Notification

+
+

Question

+
+

Question: typeof CustomQuestion

+
+

Radio

+
+

Radio: typeof Radio

+
+

RadioGroup

+
+

RadioGroup: typeof RadioGroup

+
+

RadioOption

+
+

RadioOption: typeof RadioOption

+
+

Roundabout

+
+

Roundabout: typeof CustomRoundabout

+
+ +
+

RouterLink: typeof RouterLink

+
+

Sequence

+
+

Sequence: typeof Sequence

+
+

Subsequence

+
+

Subsequence: typeof Subsequence

+
+

Suggester

+
+

Suggester: typeof CustomSuggester

+
+

SuggesterNotification

+
+

SuggesterNotification: typeof SuggesterNotification

+
+

SummaryResponses

+
+

SummaryResponses: typeof SummaryResponses

+
+

SummaryTitle

+
+

SummaryTitle: typeof SummaryTitle

+
+

Switch

+
+

Switch: typeof CustomSwitch

+
+

Table

+
+

Table: typeof Table

+
+

Tbody

+
+

Tbody: typeof Tbody

+
+

Td

+
+

Td: typeof Td

+
+

Textarea

+
+

Textarea: typeof CustomTextarea

+
+

Th

+
+

Th: typeof Th

+
+

Thead

+
+

Thead: typeof Thead

+
+

Tr

+
+

Tr: typeof Tr

+
+

Defined in

+

src/components/shared/HOC/slottableComponent.tsx:50

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticSource.html b/website/api/type-aliases/LunaticSource.html new file mode 100644 index 000000000..7be3d03a5 --- /dev/null +++ b/website/api/type-aliases/LunaticSource.html @@ -0,0 +1,82 @@ + + + + + +Type Alias: LunaticSource | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticSource

+
+

LunaticSource: object

+
+

A lunatic survey unit

+

Type declaration

+

cleaning?

+
+

optional cleaning: object

+
+

Index Signature

+

[k: string]: object

+

components

+
+

components: ComponentDefinitionWithPage[]

+
+

enoCoreVersion?

+
+

optional enoCoreVersion: string

+
+

generatingDate?

+
+

optional generatingDate: string

+
+

id?

+
+

optional id: string

+
+

label?

+
+

optional label: VTLExpression

+
+

lunaticModelVersion?

+
+

optional lunaticModelVersion: string

+
+

maxPage?

+
+

optional maxPage: string

+
+

missingBlock?

+
+

optional missingBlock: object

+
+

Index Signature

+

[k: string]: string[]

+

modele?

+
+

optional modele: string

+
+

pagination?

+
+

optional pagination: "question" | "sequence"

+
+

resizing?

+
+

optional resizing: object

+
+

Index Signature

+

[k: string]: object | object | object

+

suggesters?

+
+

optional suggesters: SuggesterDefinition[]

+
+

variables

+
+

variables: Variable[]

+
+

Defined in

+

src/type.source.ts:267

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticState.html b/website/api/type-aliases/LunaticState.html new file mode 100644 index 000000000..4685e34d1 --- /dev/null +++ b/website/api/type-aliases/LunaticState.html @@ -0,0 +1,178 @@ + + + + + +Type Alias: LunaticState | @inseefr/lunatic + + + + +
Aller au contenu principal

Type Alias: LunaticState

+
+

LunaticState: object

+
+

Return type of useLunatic.

+

Allow to operate the survey.

+

Type declaration

+

compileControls()

+
+

compileControls: () => object

+
+

Allow to fetch controls.

+

Returns

+

object

+
currentErrors
+
+

currentErrors: Record<string, LunaticError[]> | undefined

+
+
isCritical
+
+

isCritical: boolean

+
+

currentErrors?

+
+

optional currentErrors: object

+
+

Errors in the current page / iteration.

+

Index Signature

+

[id: string]: LunaticError[]

+

errors?

+
+

optional errors: object

+
+

Errors in the survey.

+

Index Signature

+

[page: string]: object

+

getChangedData()

+
+

getChangedData: (reset?) => LunaticData

+
+

Get data that have changed since last reset. Returns the same thing as getData().

+

Parameters

+
ParameterType
reset?boolean
+

Returns

+

LunaticData

+

getComponents()

+
+

getComponents: () => LunaticComponentProps[]

+
+

Components to display in the current page.

+

Return an array with the various components' properties. The orchestrator +has to handle how they are displayed, using the componentType property to +select the appropriate component.

+

Returns

+

LunaticComponentProps[]

+

Examples

+
// using `LunaticComponents`
import { useLunatic, LunaticComponents } from '@inseefr/lunatic';

function App({ source, data }) {
const { getComponents, Provider } = useLunatic(source, data, {});
const components = getComponents();

return (
<Provider>
<LunaticComponents components={components} />
</Provider>
);
}
+
// using custom components
import { useLunatic, LunaticComponents } from '@inseefr/lunatic';

const customCompoonents = {
Input: MyCustomInput,
InputNumber: MyCustomInputNumber,
};

function App({ source, data }) {
const { getComponents, Provider } = useLunatic(source, data, {});
const components = getComponents();

return (
<Provider>
<LunaticComponents components={components} slots={customComponents} />
</Provider>
);
}
+

See

+

LunaticComponents

+

getData()

+
+

getData: (withRefreshedCalculated, variableNames?) => LunaticData

+
+

Get data collected by the survey.

+

Parameters

+
ParameterType
withRefreshedCalculatedboolean
variableNames?string[]
+

Returns

+

LunaticData

+

goNextPage()

+
+

goNextPage: () => void

+
+

Navigate to the next page.

+

Returns

+

void

+

goPreviousPage()

+
+

goPreviousPage: () => void

+
+

Navigate to the previous page.

+

Returns

+

void

+

goToPage()

+
+

goToPage: (page) => void

+
+

Navigate to a specific page.

+

Parameters

+
ParameterType
pageobject
page.iteration?number
page.nbIterations?number
page.pagePageTag | number
page.subPage?number
+

Returns

+

void

+

hasPageResponse()

+
+

hasPageResponse: () => boolean

+
+

Return true as soon as the current page has at least one answer.

+

Returns

+

boolean

+

isFirstPage

+
+

isFirstPage: boolean

+
+

Whether or not we're on the survey first page.

+

isInLoop

+
+

isInLoop: boolean

+
+

Whether or not we're in a loop.

+

isLastPage

+
+

isLastPage: boolean

+
+

Whether or not we're on the survey last page (we reached maxPage).

+

loopVariables

+
+

loopVariables: string[]

+
+

Current loop's variables.

+

modalErrors?

+
+

optional modalErrors: Record<string, LunaticError[]>

+
+

Errors in modal.

+

overview

+
+

overview: InterpretedLunaticOverviewItem[]

+
+

pager

+
+

pager: LunaticPager

+
+

Current pager.

+

pageTag

+
+

pageTag: PageTag

+
+

Current page numerotation.

+

Provider

+
+

Provider: FunctionComponent<PropsWithChildren>

+
+

Necessary component that must wraps LunaticComponents to make the library works.

+

resetChangedData()

+
+

resetChangedData: () => void

+
+

Empty the store of changed variables.

+

Returns

+

void

+

testing

+
+

testing: object

+
+

Used for testing purpose only.

+

testing.handleChanges

+
+

handleChanges: LunaticChangesHandler

+
+

updatedAt

+
+

updatedAt: number

+
+

Date of the last handleChange function call.

+

Defined in

+

src/use-lunatic/type.ts:244

+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticStateVariable.html b/website/api/type-aliases/LunaticStateVariable.html new file mode 100644 index 000000000..6e86275ad --- /dev/null +++ b/website/api/type-aliases/LunaticStateVariable.html @@ -0,0 +1,18 @@ + + + + + +Type Alias: LunaticStateVariable | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticValues.html b/website/api/type-aliases/LunaticValues.html new file mode 100644 index 000000000..5625e4631 --- /dev/null +++ b/website/api/type-aliases/LunaticValues.html @@ -0,0 +1,20 @@ + + + + + +Type Alias: LunaticValues | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/type-aliases/LunaticVariable.html b/website/api/type-aliases/LunaticVariable.html new file mode 100644 index 000000000..713b9ec6c --- /dev/null +++ b/website/api/type-aliases/LunaticVariable.html @@ -0,0 +1,19 @@ + + + + + +Type Alias: LunaticVariable | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/variables/Button.html b/website/api/variables/Button.html new file mode 100644 index 000000000..bd248a33d --- /dev/null +++ b/website/api/variables/Button.html @@ -0,0 +1,18 @@ + + + + + +Variable: Button | @inseefr/lunatic + + + + +
Aller au contenu principal
+ + \ No newline at end of file diff --git a/website/api/variables/components.html b/website/api/variables/components.html new file mode 100644 index 000000000..441b65d08 --- /dev/null +++ b/website/api/variables/components.html @@ -0,0 +1,197 @@ + + + + + +Variable: components | @inseefr/lunatic + + + + +
Aller au contenu principal

Variable: components

+
+

const components: object

+
+

Type declaration

+

Accordion

+
+

Accordion: ComponentType<LunaticBaseProps<string> & LunaticExtraProps & object>

+
+

CheckboxBoolean()

+
+

CheckboxBoolean: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<boolean> & LunaticExtraProps & object
+

Returns

+

Element

+

CheckboxGroup()

+
+

CheckboxGroup: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<Record<string, null | boolean>> & LunaticExtraProps & object
+

Returns

+

Element

+

CheckboxOne()

+
+

CheckboxOne: (__namedParameters) => Element

+
+

Checkbox acting as a radio (only one option can be checked at a time)

+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+

Datepicker()

+
+

Datepicker: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+ +
+

Dropdown: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+

Duration()

+
+

Duration: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+

FilterDescription()

+
+

FilterDescription: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersProps
+

Returns

+

Element

+

Input()

+
+

Input: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object
+

Returns

+

Element

+

InputNumber()

+
+

InputNumber: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | number> & LunaticExtraProps & object
+

Returns

+

Element

+

Loop()

+
+

Loop: (__namedParameters) => null | Element

+
+

Loop without specific markup (stack of subcomponents)

+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<unknown> & LunaticExtraProps & object
+

Returns

+

null | Element

+ +
+

PairwiseLinks: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersOmit<LunaticBaseProps<unknown>, "value"> & LunaticExtraProps & object
+

Returns

+

Element

+

Question()

+
+

Question: (props) => Element

+
+

Surround a question giving additional context with label / description / declarations

+

Parameters

+
ParameterType
propsPick<LunaticBaseProps<unknown>, "label" | "description" | "declarations" | "id" | "propsTransformer" | "errors" | "disabled" | "readOnly"> & LunaticExtraProps & object
+

Returns

+

Element

+

Radio

+
+

Radio: ComponentType<LunaticBaseProps<null | string> & LunaticExtraProps & object>

+
+

RosterForLoop()

+
+

RosterForLoop: (props) => null | Element

+
+

Loop displayed as a table

+

Parameters

+
ParameterType
propsLunaticBaseProps<unknown> & LunaticExtraProps & object
+

Returns

+

null | Element

+

Roundabout()

+
+

Roundabout: (props) => Element

+
+

Roundabout is a special loop component where the user can select the iteration to go to

+

Parameters

+
ParameterType
propsLunaticBaseProps<string> & LunaticExtraProps & object
+

Returns

+

Element

+

Sequence

+
+

Sequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style"> & LunaticExtraProps & object>

+
+

Subsequence

+
+

Subsequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id"> & LunaticExtraProps & object>

+
+

Suggester()

+
+

Suggester: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+

Summary()

+
+

Summary: (props) => Element

+
+

Summarize the responses done by the user

+

Parameters

+
ParameterType
propsLunaticBaseProps<null | string> & LunaticExtraProps & object
+

Returns

+

Element

+

Switch

+
+

Switch: ComponentType<LunaticBaseProps<boolean> & LunaticExtraProps & object>

+
+

Table()

+
+

Table: (props) => Element

+
+

Parameters

+
ParameterType
propsLunaticBaseProps<unknown> & LunaticExtraProps & object
+

Returns

+

Element

+

Text()

+
+

Text: (__namedParameters) => ReactNode

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object
+

Returns

+

ReactNode

+

Textarea()

+
+

Textarea: (__namedParameters) => Element

+
+

Parameters

+
ParameterType
__namedParametersLunaticBaseProps<string> & LunaticExtraProps & object
+

Returns

+

Element

+

Defined in

+

src/components/library.ts:29

+ + \ No newline at end of file diff --git a/website/assets/css/styles.90a0afe1.css b/website/assets/css/styles.90a0afe1.css new file mode 100644 index 000000000..910cef1dd --- /dev/null +++ b/website/assets/css/styles.90a0afe1.css @@ -0,0 +1 @@ +@charset "UTF-8";.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel .lunatic-combo-box-option,.lunatic-dragger{-khtml-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}:root,body.dark,body[data-theme=dark]{--aa-icon-color-rgb:119,119,163;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb)}*,.aa-Autocomplete *,.aa-DetachedFormContainer *,.aa-Panel *{box-sizing:border-box}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-highlighted-code-line-bg:#0000001a;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px;--aa-search-input-height:44px;--aa-input-icon-size:20px;--aa-base-unit:16;--aa-spacing-factor:1;--aa-spacing:calc(var(--aa-base-unit)*var(--aa-spacing-factor)*1px);--aa-spacing-half:calc(var(--aa-spacing)/2);--aa-panel-max-height:650px;--aa-base-z-index:9999;--aa-font-size:calc(var(--aa-base-unit)*1px);--aa-font-family:inherit;--aa-font-weight-medium:500;--aa-font-weight-semibold:600;--aa-font-weight-bold:700;--aa-icon-size:20px;--aa-icon-stroke-width:1.6;--aa-icon-color-alpha:1;--aa-action-icon-size:20px;--aa-text-color-rgb:38,38,39;--aa-text-color-alpha:1;--aa-primary-color-rgb:62,52,211;--aa-primary-color-alpha:0.2;--aa-muted-color-rgb:128,126,163;--aa-muted-color-alpha:0.6;--aa-panel-border-color-rgb:128,126,163;--aa-panel-border-color-alpha:0.3;--aa-input-border-color-rgb:128,126,163;--aa-input-border-color-alpha:0.8;--aa-background-color-rgb:255,255,255;--aa-background-color-alpha:1;--aa-input-background-color-rgb:255,255,255;--aa-input-background-color-alpha:1;--aa-selected-color-rgb:179,173,214;--aa-selected-color-alpha:0.205;--aa-description-highlight-background-color-rgb:245,223,77;--aa-description-highlight-background-color-alpha:0.5;--aa-detached-media-query:(max-width:680px);--aa-detached-modal-media-query:(min-width:680px);--aa-detached-modal-max-width:680px;--aa-detached-modal-max-height:500px;--aa-overlay-color-rgb:115,114,129;--aa-overlay-color-alpha:0.4;--aa-panel-shadow:0 0 0 1px #23263b1a,0 6px 16px -4px #23263b26;--aa-scrollbar-width:13px;--aa-scrollbar-track-background-color-rgb:234,234,234;--aa-scrollbar-track-background-color-alpha:1;--aa-scrollbar-thumb-background-color-alpha:1;--aa-search-input-height:36px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.list_eTzJ article:last-child,.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal);vertical-align:middle}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}.container_lyt7,.container_lyt7>svg,img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){-webkit-text-decoration:none;text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{list-style:none;padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.lunatic-component .lunatic-input-number{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);-webkit-text-decoration:none;text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.aa-ItemLink,.aa-SourceFooterSeeAll,.dropdown__link--active,.dropdown__link:hover,.menu__link:hover,.navbar__brand:hover,.navbar__link--active,.navbar__link:hover,.pagination-nav__link:hover,.pagination__link:hover,.tag_zVej:hover{-webkit-text-decoration:none;text-decoration:none}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);-webkit-text-decoration:none;text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;list-style:none;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color)}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.cardContainer_fWXF :last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu{overflow-x:hidden}.menu__list{list-style:none;margin:0;padding-left:0}.lunatic-component .label-left :first-child,.lunatic-component .label-right :first-child,.navbar__brand{margin-right:1rem}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;top:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;visibility:hidden;left:0}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color)}.menu__caret:before,.menu__link--sublist-caret:after{filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.lunatic-checkbox-one .lunatic-input-radio,.lunatic-component .field-container,.lunatic-component .lunatic-component-container,.lunatic-component-container-test,.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color)}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color)}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:1rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);overflow-x:hidden;position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav{display:grid;grid-gap:var(--ifm-spacing-horizontal);gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover)}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto;padding-left:0}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}[data-theme=dark]{--docusaurus-highlighted-code-line-bg:#646464}.container{padding:32px}h1,h2,h3,h4,h5,h6{font-weight:600;outline:0;position:relative}h1{font-size:32px;line-height:40px}h2{border-top:1px solid #e2e2e2;font-size:24px;line-height:32px;margin:48px 0 16px;padding-top:24px}h3{font-size:20px;line-height:28px;margin:32px 0 0}.card>h2{border-top:initial;font-size:medium;line-height:normal;margin:initial;padding-top:0}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color)}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.lunatic-component .modality-label p,.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}*{--color-primary-dark:#2a5885;--color-primary-light:#5181b8;--color-primary-main:#4a73a4;--color-primary-contrast-text:#fff;--color-secondary-dark:#14202d;--color-secondary-light:#f7f8fa;--color-secondary-main:#1a293b;--color-secondary-contrast-text:#fff;--color-very-light:#dbe4ef;--color-very-very-light:#e6eaee;--color-current-item:#0d823e;--color-error:#f50c0c;--color-disabled:#ebebe4;--color-prefix:#6495ed;--color-dropdown-active:#0000000a;--color-dropdown-selected:#00000014;--dropdown-transition-time:0.5s}.lunatic-component .mandatory:after{color:red;content:" *"}.lunatic-component .horizontal-options{display:inline-block;margin-right:2em}.lunatic-component .lunatic-dropdown-label,.lunatic-component .lunatic-dropdown-label focused,.lunatic-component .subsequence-lunatic,.lunatic-component label,.lunatic-component legend{background-color:var(--color-primary-contrast-text);border:0;color:var(--color-primary-dark);font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:700;margin-bottom:.375rem;padding:0}.lunatic-component .lunatic-component-container.label-left-ex{align-items:baseline;flex-direction:row}.lunatic-component .lunatic-component-container.label-left-ex .lunatic-label{margin-right:1em}.lunatic-component .lunatic-component-container.label-right-ex{align-items:baseline;flex-direction:row-reverse}.lunatic-component .lunatic-component-container.label-right-ex .lunatic-label{margin-left:1em}.lunatic-component .lunatic-component-container.label-top-ex{flex-direction:column}.lunatic-component .lunatic-component-container.label-bottom-ex{flex-direction:column-reverse}.lunatic-checkboxes,.lunatic-component .label-top{display:flex;flex-direction:column}.lunatic-component .label-bottom{display:flex;flex-direction:column-reverse}.lunatic-component .label-right{align-items:baseline;display:flex;flex-direction:row-reverse;justify-content:flex-end}.lunatic-component .label-left{align-items:baseline;display:flex;flex-direction:row}.lunatic-combo-box-container,.lunatic-component .field{position:relative;width:100%}.lunatic-component .link-md{border-bottom:.1em dashed var(--color-primary-dark)}.lunatic-component .link-md:hover{background-color:var(--color-primary-dark);color:var(--color-primary-contrast-text);cursor:help}.lunatic-component .tooltip-content{background:var(--color-primary-dark);border-radius:6px;color:var(--color-primary-contrast-text);font-size:1em;max-width:25em;min-width:15em;padding:.5em}.lunatic-component .tooltip-content.place-bottom:before{border-bottom:10px solid var(--color-primary-dark)}.lunatic-component .tooltip-content.place-bottom:after,.lunatic-component-container-test .tooltip-lunatic .tooltip-text.place-left:after{content:none}.lunatic-component+.lunatic-component{margin-top:1rem}.button-lunatic{background-color:var(--color-primary-dark);border-color:var(--color-primary-dark);color:#fff;font-size:1.2em;font-weight:700;min-width:20%;padding:.4em}.button-lunatic:focus:hover,.button-lunatic:hover{background-color:#fff;border-color:var(--color-primary-dark);color:var(--color-primary-dark)}.button-lunatic:focus{background-color:var(--color-primary-light);border-color:var(--color-primary-light);outline:0}.button-lunatic:disabled{background:var(--color-disabled);color:var(--color-primary-dark)}.lunatic-checkbox-group legend .label-description,.lunatic-label .label-description{display:block;font-weight:lighter}.lunatic-checkbox-group .lunatic-checkbox-group-option{display:flex;flex-direction:column;font-size:13px}.lunatic-checkbox-one .lunatic-input-radio label .label-description,.lunatic-checkbox-one legend .label-description{font-weight:lighter}.lunatic-checkbox-one .lunatic-input-radio label{align-items:center;display:flex;gap:.5em}.lunatic-checkboxes--horizontal{flex-direction:row;gap:1rem}.lunatic-input-checkbox{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.3rem 0}.lunatic-input-checkbox label{cursor:inherit;display:flex;font-weight:400;gap:.5em;margin:0}.lunatic-input-checkbox__icon{border:2px solid var(--color-primary-dark);border-radius:2px;color:#fff;display:grid;flex:none;height:18px;place-items:center;width:18px}.lunatic-input-checkbox__icon svg{transform:scale(.9)}.lunatic-input-checkbox[aria-checked=true] .lunatic-input-checkbox__icon{background-color:var(--color-primary-dark)}.lunatic-input-checkbox[aria-disabled=true],.lunatic-input-checkbox[aria-readonly=true]{cursor:default}.lunatic-input-checkbox[aria-disabled=true] .lunatic-input-checkbox__icon,.lunatic-input-checkbox[aria-readonly=true] .lunatic-input-checkbox__icon{background-color:var(--color-disabled);border-color:var(--color-primary-light)}.lunatic-input-checkbox[aria-disabled=true][aria-checked=true] .lunatic-input-checkbox__icon,.lunatic-input-checkbox[aria-readonly=true][aria-checked=true] .lunatic-input-checkbox__icon{color:var(--color-primary-light)}.lunatic-input-radio .lunatic-input-checkbox__icon{border-radius:18px}.aa-ClearButton[hidden],.aa-ItemContent:empty,.aa-LoadingIndicator[hidden],.aa-Source:empty,.aa-SourceHeader:empty,.docSidebarContainer_YfHR,.lunatic-input-radio .lunatic-input-checkbox__icon svg,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}.lunatic-input-radio[aria-checked=true] .lunatic-input-checkbox__icon{background:#0000}.lunatic-input-radio[aria-checked=true] .lunatic-input-checkbox__icon:after{background-color:var(--color-primary-dark);border-radius:10px;content:"";height:10px;width:10px}.lunatic-combo-box-container.default-style{--color-combo-box-selected:#fff8dc;--color-primary-dark:#006400;--color-primary-main:#fffaf0;--color-combo-box-background:snow;--color-disabled:#dcdcdc;--color-primary-light:#adff2f;margin-bottom:10px}.lunatic-combo-box-container.default-style .lunatic-combo-box,.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester{min-height:30px;min-width:260px;width:100%}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection{background-color:var(--color-combo-box-background);border:2px solid var(--color-primary-dark);border-radius:5px}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection:hover,.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection:hover{border-color:var(--color-primary-main)}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-input,.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-input{font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;height:34px;line-height:34px;padding-left:4px}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-input::placeholder{color:gray;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:400;line-height:34px;vertical-align:middle}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-selected{background-color:var(--color-combo-box-background);border-radius:5px;color:gray;display:block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:400;line-height:34px;outline:0;overflow-y:hidden;padding-left:4px;vertical-align:middle}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-selected .selection{display:inline-block;font-size:15px;line-height:1.3}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-selected.disabled{background-color:var(--color-disabled)}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel{background-color:var(--color-combo-box-background);font-family:Roboto,Helvetica,Arial,sans-serif;height:0;opacity:0;transition:opacity 267ms cubic-bezier(.4,0,.2,1) 0ms,transform 178ms cubic-bezier(.4,0,.2,1) 0ms}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel.expanded{border:1px solid var(--color-primary-light);border-radius:4px;box-shadow:0 2px 2px grey;display:flex;flex-direction:column;gap:.2rem;height:max-content;min-height:30px;opacity:1}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel .lunatic-combo-box-option{display:block;line-height:1.3;margin-bottom:.1em;overflow:hidden}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel .lunatic-combo-box-option.selected{background-color:var(--color-combo-box-selected);color:var(--color-primary-dark)}.lunatic-combo-box-container.default-style .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel .lunatic-combo-box-option:hover{background-color:var(--color-primary-main);color:var(--color-combo-box-background)}.lunatic-combo-box-container .lunatic-combo-box-fab{position:absolute;right:4px;top:8px;z-index:0}.lunatic-combo-box-container .lunatic-combo-box-fab.focused,.lunatic-combo-box-container .lunatic-combo-box.focused{z-index:1}.lunatic-combo-box-container .lunatic-combo-box-fab .lunatic-icon svg{fill:#fff;height:16px;margin:auto;width:16px}.lunatic-combo-box-container .lunatic-combo-box{position:relative;z-index:0}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-panel:focus,.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-input:focus,.lunatic-combo-box-container .lunatic-combo-box:focus,body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content{width:100%}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection{position:relative}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-input{background-color:initial;border:none;margin:0;padding:0;width:100%}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-selected{display:none;overflow-x:hidden;top:0;width:100%}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content .lunatic-combo-box-selection .lunatic-combo-box-selected.displayed,.lunatic-component .lunatic-input-number .label-description{display:block}.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content div,.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content li,.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content span,.lunatic-combo-box-container .lunatic-combo-box .lunatic-combo-box-content ul{border:none;list-style:none;margin:0;padding:0}.lunatic-component .lunatic-dropdown .lunatic-dropdown-option .prefix,.lunatic-errors .lunatic-error{color:red}.lunaticDatepickerFields{align-items:flex-end;display:flex;gap:1rem}.lunaticDatepickerField input{width:3.5em}.lunaticDatepickerFieldLarge input{width:4.5em}.lunaticDatepickerHint{display:block;font-size:.9em;font-weight:400}.lunatic-component .lunatic-declarations{margin-bottom:.4rem}.lunatic-component .declaration-instruction{font-size:80%;font-style:italic}.lunatic-component .declaration-statement{color:#00f;font-size:80%;font-style:italic}.lunatic-component .declaration-help{color:green;font-size:80%;font-style:italic}.lunatic-component .CODECARD{border:1px solid grey;color:grey;font-size:80%;font-style:bold;padding:1em;width:fit-content}.lunatic-component .CODECARD:before,.lunatic-component .declaration-message_filter:before{content:"→ "}.lunatic-component .declaration-message_filter{color:#494242;font-size:100%}.lunatic-component .lunatic-dropdown .lunatic-dropdown-option,.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-panel .lunatic-suggester-option{display:block;line-height:2rem;margin-bottom:.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lunatic-component .lunatic-dropdown .lunatic-dropdown-option.selected{background-color:#daa520;color:var(--color-primary-dark)}.lunatic-component .lunatic-dropdown .lunatic-dropdown-option:hover,.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-panel .lunatic-suggester-option:hover,.missing-buttons .missing-button-active .button-lunatic:hover{background-color:var(--color-primary-main);color:#fff}.duration-field,.duration-fields{align-items:center;display:flex;gap:1rem}.duration-field{gap:.5rem}fieldset{border:0;margin:0;padding:0}.lunatic-icon{align-items:center;display:flex}.lunatic-fab{background-color:#4169e1;border:none;border-radius:50%;box-shadow:0 3px 5px -1px #0003,0 6px 10px 0 #00000024,0 1px 18px 0 #0000001f;height:32px;margin:0;outline:inherit;padding:0;width:32px}.lunatic-fab:hover{background-color:navy;cursor:pointer;transition:background-color 1s}.lunatic-fab.mini{height:18px;width:18px}.lunatic-fab:focus{border:1px solid #000}.lunatic-fab:disabled{background-color:#a9a9a9;cursor:default}.lunatic-component .lunatic-datepicker label,.lunatic-component .lunatic-input label,.lunatic-component .lunatic-input-number label,.lunatic-component .lunatic-textarea label{font-size:12px}.lunatic-component .lunatic-datepicker label .label-description,.lunatic-component .lunatic-input label .label-description,.lunatic-component .lunatic-input-number label .label-description,.lunatic-component .lunatic-textarea label .label-description{display:block;font-size:12px;font-weight:lighter}.lunatic-component .lunatic-datepicker input,.lunatic-component .lunatic-input input,.lunatic-component .lunatic-input-number input,.lunatic-component .lunatic-textarea input{background:none;border:0;border-bottom:.125rem double #0000006b;box-sizing:initial;display:inline-block;font:inherit;margin:0;min-width:0;padding:.375rem 0 .375rem .4375rem}.lunatic-component .lunatic-datepicker input:focus,.lunatic-component .lunatic-input input:focus,.lunatic-component .lunatic-input-number input:focus,.lunatic-component .lunatic-textarea input:focus{border-bottom:.125rem solid var(--color-primary-main);outline:0}.lunatic-component .lunatic-datepicker input:hover,.lunatic-component .lunatic-input input:hover,.lunatic-component .lunatic-input-number input:hover,.lunatic-component .lunatic-textarea input:hover{border-bottom:.125rem solid #000}.lunatic-component .lunatic-datepicker input:read-only,.lunatic-component .lunatic-input input:read-only,.lunatic-component .lunatic-input-number input:read-only,.lunatic-component .lunatic-textarea input:read-only{background-color:var(--color-disabled)}.lunatic-component .lunatic-datepicker .warning,.lunatic-component .lunatic-input .warning,.lunatic-component .lunatic-input-number .warning,.lunatic-component .lunatic-textarea .warning{background-color:var(--color-error);border:2px solid var(--color-error);box-sizing:border-box}.missing-buttons{margin-top:1em}.missing-buttons .button-lunatic{background-color:var(--color-very-very-light);color:var(--color-primary-dark);font-size:1em;font-weight:400;width:4em}.missing-buttons .button-lunatic:not(:disabled):hover{background-color:#fff;color:var(--color-primary-main)}.missing-buttons .button-lunatic:disabled{opacity:.5}.missing-button-active .button-lunatic{background-color:var(--color-primary-dark);color:var(--color-very-very-light)}.lunatic-modal-controls{background-color:#32323280;height:100%;left:0;position:fixed;top:0;width:100%;z-index:101}.lunatic-modal-controls .modal-content{background-color:snow;border-radius:8px;display:flex;flex-direction:column;height:fit-content;margin:38vh auto auto;overflow-wrap:break-word;width:50%}.lunatic-modal-controls .modal-content .body{color:#000;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:16px}.lunatic-modal-controls .modal-content .modal-buttons{align-self:end;margin:0 .2em .2em 0}.lunatic-modal-controls .modal-content .modal-buttons :first-child{margin-right:.5em}.lunatic-modal-controls .errors div,.lunatic-modal-controls .errors li,.lunatic-modal-controls .errors span,.lunatic-modal-controls .errors ul{border:none;list-style:none}.lunatic-modal-controls ul{margin:1em;padding:0}.lunatic-component .lunatic-table,.lunatic-table{border-collapse:collapse;margin-bottom:.3em;margin-top:.3em;table-layout:fixed}.lunatic-table .lunatic-table-thead .lunatic-table-th{border:.15em solid var(--color-primary-dark);padding:.2em}.lunatic-roundabout__items{display:flex;flex-direction:column;margin-top:1rem}.lunatic-roundabout__item{display:grid;gap:.5rem;grid-template-columns:1fr max-content;justify-content:space-between}.lunatic-component .lunatic-notification.info:before,.lunatic-component .lunatic-notification.warn:before{background-color:#fff;flex:0 0 auto;-webkit-mask-size:100% 100%;--icon-size:2rem;height:var(--icon-size);margin-left:-48px;margin-top:12px;width:var(--icon-size);float:left;content:""}.lunatic-roundabout__item .lunatic-errors{grid-column:1/-1}.lunatic-roundabout__item+.lunatic-roundabout__item{border-top:1px solid var(--color-secondary-dark);margin-top:1rem;padding-top:.5rem}.lunatic-roundabout__button-completed,.lunatic-roundabout__button-completed:focus{background-color:var(--color-current-item)}.lunatic-roundabout__button-progress,.lunatic-roundabout__button-progress:focus{background-color:var(--color-primary-main)}.lunatic-component .sequence-lunatic{background-color:var(--color-secondary-contrast-text);border:0;color:var(--color-primary-light);font-size:.875rem;height:1.875rem;padding:0}.lunatic-component .lunatic-suggester-message-error{background-color:tomato;border:1px solid #8b0000;border-radius:3px;color:#8b0000;display:inline-block;margin:4px;padding:4px 8px}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container{margin-bottom:10px}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection{background-color:#fff;border:2px solid var(--color-primary-dark);border-radius:5px}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-input::placeholder{color:gray;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:400;line-height:34px;vertical-align:middle}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-selected{background-color:#fff;border-radius:5px;font-family:Roboto,Helvetica,Arial,sans-serif;height:34px;line-height:34px;padding-left:4px}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-selected .placeholderList{color:gray;display:block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:400;line-height:34px;vertical-align:middle}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-selected .selection{display:block;font-size:15px;line-height:34px}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-selection .lunatic-suggester-selected.disabled{background-color:var(--color-disabled)}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-panel{background-color:#fff;font-family:Roboto,Helvetica,Arial,sans-serif;height:0;opacity:0;transition:opacity 267ms cubic-bezier(.4,0,.2,1) 0ms,transform 178ms cubic-bezier(.4,0,.2,1) 0ms}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-panel.expended{border:1px solid var(--color-primary-light);border-radius:4px;box-shadow:0 2px 2px grey;height:max-content;min-height:30px;opacity:1}.lunatic-component .lunatic-suggester-default-style.lunatic-suggester-container .lunatic-suggester .lunatic-suggester-content .lunatic-suggester-panel .lunatic-suggester-option.selected{background-color:var(--color-dropdown-selected);color:var(--color-primary-dark)}.lunatic-component .lunatic-notification{line-height:34px;margin:2px;padding:1px 1px 1px 60px}.lunatic-component .lunatic-notification.info{background-color:#add8e6}.lunatic-component .lunatic-notification.info:before{display:block;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzOCIgaGVpZ2h0PSIzOCIgc3Ryb2tlPSIjZmZmIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS13aWR0aD0iMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxKSI+PGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIHN0cm9rZS1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik0zNiAxOGMwLTkuOTQtOC4wNi0xOC0xOC0xOCI+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiBkdXI9IjFzIiBmcm9tPSIwIDE4IDE4IiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgdG89IjM2MCAxOCAxOCIgdHlwZT0icm90YXRlIi8+PC9wYXRoPjwvZz48L3N2Zz4=);mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzOCIgaGVpZ2h0PSIzOCIgc3Ryb2tlPSIjZmZmIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS13aWR0aD0iMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxKSI+PGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIHN0cm9rZS1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik0zNiAxOGMwLTkuOTQtOC4wNi0xOC0xOC0xOCI+PGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiBkdXI9IjFzIiBmcm9tPSIwIDE4IDE4IiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgdG89IjM2MCAxOCAxOCIgdHlwZT0icm90YXRlIi8+PC9wYXRoPjwvZz48L3N2Zz4=);mask-size:100% 100%}.lunatic-component .lunatic-notification.warn{background-color:orange}.lunatic-component .lunatic-notification.warn:before{display:block;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJzdmctaWNvbiIgc3R5bGU9IndpZHRoOjFlbTtoZWlnaHQ6MWVtO3ZlcnRpY2FsLWFsaWduOm1pZGRsZTtmaWxsOmN1cnJlbnRDb2xvcjtvdmVyZmxvdzpoaWRkZW4iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik05NTYuNDE2IDgwMi44MTYgNTgxLjYzMiAxNTkuNzQ0Yy0xNy40MDgtMzAuNzItNDEuOTg0LTQ3LjEwNC02OS42MzItNDcuMTA0LTI2LjYyNCAwLTUyLjIyNCAxNi4zODQtNjkuNjMyIDQ3LjEwNEw2Ni41NiA4MDIuODE2Yy0xNy40MDggMjkuNjk2LTE5LjQ1NiA1OS4zOTItNi4xNDQgODIuOTQ0czM5LjkzNiAzNS44NCA3NC43NTIgMzUuODRoNzUzLjY2NGMzNC44MTYgMCA2MS40NC0xMy4zMTIgNzQuNzUyLTM1Ljg0IDEzLjMxMi0yMy41NTIgMTAuMjQtNTMuMjQ4LTcuMTY4LTgyLjk0NG0tMjguNjcyIDYyLjQ2NGMtNi4xNDQgMTAuMjQtMTkuNDU2IDE1LjM2LTM4LjkxMiAxNS4zNkgxMzUuMTY4Yy0xOS40NTYgMC0zMy43OTItNi4xNDQtMzguOTEyLTE1LjM2LTYuMTQ0LTEwLjI0LTQuMDk2LTI1LjYgNi4xNDQtNDEuOTg0bDM3Ni44MzItNjQzLjA3MmMxMC4yNC0xNy40MDggMjIuNTI4LTI2LjYyNCAzMy43OTItMjYuNjI0czI0LjU3NiAxMC4yNCAzMy43OTIgMjYuNjI0TDkyMS42IDgyMy4yOTZjOS4yMTYgMTYuMzg0IDEyLjI4OCAzMS43NDQgNi4xNDQgNDEuOTg0TTU0Mi43MiA3MTYuOGMwIDE3LjQwOC0xMy4zMTIgMzAuNzItMzAuNzIgMzAuNzJzLTMwLjcyLTEzLjMxMi0zMC43Mi0zMC43MiAxMy4zMTItMzAuNzIgMzAuNzItMzAuNzIgMzAuNzIgMTMuMzEyIDMwLjcyIDMwLjcybTAtMjk2Ljk2VjYxNC40YzAgMTcuNDA4LTEzLjMxMiAzMC43Mi0zMC43MiAzMC43MnMtMzAuNzItMTMuMzEyLTMwLjcyLTMwLjcyVjQxOS44NGMwLTE3LjQwOCAxMy4zMTItMzAuNzIgMzAuNzItMzAuNzJzMzAuNzIgMTMuMzEyIDMwLjcyIDMwLjcyIi8+PC9zdmc+);mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJzdmctaWNvbiIgc3R5bGU9IndpZHRoOjFlbTtoZWlnaHQ6MWVtO3ZlcnRpY2FsLWFsaWduOm1pZGRsZTtmaWxsOmN1cnJlbnRDb2xvcjtvdmVyZmxvdzpoaWRkZW4iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjxwYXRoIGQ9Ik05NTYuNDE2IDgwMi44MTYgNTgxLjYzMiAxNTkuNzQ0Yy0xNy40MDgtMzAuNzItNDEuOTg0LTQ3LjEwNC02OS42MzItNDcuMTA0LTI2LjYyNCAwLTUyLjIyNCAxNi4zODQtNjkuNjMyIDQ3LjEwNEw2Ni41NiA4MDIuODE2Yy0xNy40MDggMjkuNjk2LTE5LjQ1NiA1OS4zOTItNi4xNDQgODIuOTQ0czM5LjkzNiAzNS44NCA3NC43NTIgMzUuODRoNzUzLjY2NGMzNC44MTYgMCA2MS40NC0xMy4zMTIgNzQuNzUyLTM1Ljg0IDEzLjMxMi0yMy41NTIgMTAuMjQtNTMuMjQ4LTcuMTY4LTgyLjk0NG0tMjguNjcyIDYyLjQ2NGMtNi4xNDQgMTAuMjQtMTkuNDU2IDE1LjM2LTM4LjkxMiAxNS4zNkgxMzUuMTY4Yy0xOS40NTYgMC0zMy43OTItNi4xNDQtMzguOTEyLTE1LjM2LTYuMTQ0LTEwLjI0LTQuMDk2LTI1LjYgNi4xNDQtNDEuOTg0bDM3Ni44MzItNjQzLjA3MmMxMC4yNC0xNy40MDggMjIuNTI4LTI2LjYyNCAzMy43OTItMjYuNjI0czI0LjU3NiAxMC4yNCAzMy43OTIgMjYuNjI0TDkyMS42IDgyMy4yOTZjOS4yMTYgMTYuMzg0IDEyLjI4OCAzMS43NDQgNi4xNDQgNDEuOTg0TTU0Mi43MiA3MTYuOGMwIDE3LjQwOC0xMy4zMTIgMzAuNzItMzAuNzIgMzAuNzJzLTMwLjcyLTEzLjMxMi0zMC43Mi0zMC43MiAxMy4zMTItMzAuNzIgMzAuNzItMzAuNzIgMzAuNzIgMTMuMzEyIDMwLjcyIDMwLjcybTAtMjk2Ljk2VjYxNC40YzAgMTcuNDA4LTEzLjMxMiAzMC43Mi0zMC43MiAzMC43MnMtMzAuNzItMTMuMzEyLTMwLjcyLTMwLjcyVjQxOS44NGMwLTE3LjQwOCAxMy4zMTItMzAuNzIgMzAuNzItMzAuNzJzMzAuNzIgMTMuMzEyIDMwLjcyIDMwLjcyIi8+PC9zdmc+);mask-size:100% 100%}.lunatic-component .lunatic-notification.error{background-color:#dc143c}.lunatic-component .lunatic-notification.error:before{--icon-size:2rem;background-color:#fff;content:"";display:block;flex:0 0 auto;float:left;height:var(--icon-size);margin-left:-48px;margin-top:12px;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MDAiIGhlaWdodD0iODAwIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA1MiA1MiI+PHBhdGggZD0iTTI2IDBhMjYgMjYgMCAxIDAgMjYgMjZBMjYgMjYgMCAwIDAgMjYgMG0wIDQ4YTIyIDIyIDAgMSAxIDIyLTIyIDIyIDIyIDAgMCAxLTIyIDIyIi8+PHBhdGggZD0ibTI4LjgzIDI2IDguNTgtOC41OWEyIDIgMCAwIDAtMi44Mi0yLjgyTDI2IDIzLjE3bC04LjU4LTguNThhMiAyIDAgMCAwLTIuODMgMi44MkwyMy4xNyAyNmwtOC41OCA4LjU4YTIgMiAwIDEgMCAyLjgyIDIuODNMMjYgMjguODNsOC41OSA4LjU4QTIgMiAwIDAgMCAzNiAzOGEyIDIgMCAwIDAgMS40Mi0uNTkgMiAyIDAgMCAwIDAtMi44MloiLz48L3N2Zz4=);mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MDAiIGhlaWdodD0iODAwIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA1MiA1MiI+PHBhdGggZD0iTTI2IDBhMjYgMjYgMCAxIDAgMjYgMjZBMjYgMjYgMCAwIDAgMjYgMG0wIDQ4YTIyIDIyIDAgMSAxIDIyLTIyIDIyIDIyIDAgMCAxLTIyIDIyIi8+PHBhdGggZD0ibTI4LjgzIDI2IDguNTgtOC41OWEyIDIgMCAwIDAtMi44Mi0yLjgyTDI2IDIzLjE3bC04LjU4LTguNThhMiAyIDAgMCAwLTIuODMgMi44MkwyMy4xNyAyNmwtOC41OCA4LjU4YTIgMiAwIDEgMCAyLjgyIDIuODNMMjYgMjguODNsOC41OSA4LjU4QTIgMiAwIDAgMCAzNiAzOGEyIDIgMCAwIDAgMS40Mi0uNTkgMiAyIDAgMCAwIDAtMi44MloiLz48L3N2Zz4=);-webkit-mask-size:100% 100%;mask-size:100% 100%;width:var(--icon-size)}.lunatic-component .lunatic-notification .lunatic-notification-container{background-color:#fff;padding:0 15px}.lunatic-component .lunatic-notification .lunatic-notification-container .title{font-size:large;font-weight:700;margin-bottom:3px}.lunatic-component .lunatic-table thead{border-collapse:initial;border-spacing:0}.lunatic-component .lunatic-table td,.lunatic-component .lunatic-table th{border:.15em solid var(--color-primary-dark);font-size:13px;padding:.2em}.lunatic-component .lunatic-table th{background-color:#fff;border-collapse:initial;border-top:none!important;box-shadow:inset 0 1px 0 var(--color-primary-dark),inset 0 -1px 0 var(--color-primary-dark);position:sticky;top:0;z-index:2}.aa-LoadingIndicator,.lunatic-component .lunatic-table td .field,.lunatic-component .lunatic-table td .field-with-tooltip{align-items:center;display:flex;justify-content:center}.lunatic-component .table-lunatic .tooltip-lunatic img{height:20px;width:20px}.lunatic-component .textarea-lunatic{height:3em;width:100%}.lunatic-component-container-test .lunatic-component-body{width:80%}.lunatic-component-container-test .tooltip-lunatic{display:block;margin:auto;position:relative;width:20%}.lunatic-component-container-test .tooltip-lunatic .tooltip-text{background-color:var(--color-primary-dark);border-radius:6px;color:#fff;font-size:1em;max-width:20em;min-width:10em;padding:.5em}.lunatic-component-container-test .tooltip-lunatic .tooltip-text.place-left:before{border-left:10px solid var(--color-primary-dark)}.lunatic-dragger{display:inline-block;height:100%;width:100%}.lunatic-suggester-widget-container.absolute{position:fixed;z-index:1}.lunatic-suggester-widget-container .lunatic-suggester-widget{background-color:#e9d0d0;border:2px;box-shadow:0 3px 8px #320000;padding:4px;position:relative;width:400px}.lunatic-suggester-widget-container .lunatic-suggester-widget .suggester-widget-network.drag,.lunatic-suggester-widget-container .lunatic-suggester-widget.drag{box-shadow:0 3px 8px #daa520;transition:box-shadow .5s}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row{display:flex;flex-direction:row;height:22px;margin-bottom:1px}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .store-name{color:#8b0000;font-size:18px;overflow-x:hidden;white-space:nowrap;width:60%}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .stats{color:#8b0000;font-size:18px;overflow-x:hidden;white-space:nowrap;width:40%}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .widget-button{background-color:#8b0000;border:none;height:18px;margin:0 1px 0 0;padding:0;width:18px}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .widget-button.disabled{background-color:gray;cursor:default}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .widget-button:hover{background-color:#320000;cursor:pointer;transition:background-color 1s}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .widget-button .lunatic-suggester-icon svg{height:18px;width:18px;fill:#e9d0d0}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .lunatic-suggester-loader-progress{border:1px solid #8b0000;border-radius:2px;height:inherit;width:70%}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .lunatic-suggester-loader-progress.done:hover{border-color:#320000;cursor:pointer;transition:border-color 1s}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .lunatic-suggester-loader-progress.done:hover .progress{background-color:#320000;transition:background-color 1s}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .lunatic-suggester-loader-progress .content{height:100%;padding:2px;width:100%}.lunatic-suggester-widget-container .lunatic-suggester-widget .widget-row .lunatic-suggester-loader-progress .content .progress{background-color:#8b0000;height:100%}.lunatic-suggester-widget-container .lunatic-suggester-widget .suggester-widget-network{background-color:#e9d0d0;border:2px solid #8b0000;border-radius:50%;box-shadow:0 3px 8px #320000;left:-22px;padding:2px;position:absolute;top:-22px}.lunatic-suggester-widget-container .lunatic-suggester-widget .suggester-widget-network.online svg{fill:#228b22}.lunatic-suggester-widget-container .lunatic-suggester-widget .suggester-widget-network svg{height:24px;width:24px;fill:darkred}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools{margin-top:-4px;position:absolute;right:0;top:-18px}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool{background-color:#8b0000;border-radius:50%;display:inline-block;height:18px;margin-left:2px;width:18px}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool:hover{box-shadow:0 3px 8px #320000}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool.drag{background-color:#daa520;transition:background-color .5s}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool .on-drag-icon{cursor:grab}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool .on-drag-icon.drag{cursor:grabbing}.lunatic-suggester-widget-container .lunatic-suggester-widget .lunatic-widget-tools .lunatic-action-tool .on-drag-icon svg{height:16px;width:16px;fill:#e9d0d0}.FormExample_a30K .margin-top--md_TH4F,.tabItem_LNqP{margin-top:0!important}.FormExample_a30K{align-items:stretch;display:grid;grid-template-columns:400px 1fr}.FormExample_a30K>*{min-width:0}.FormExampleRender_QfqF{border:1px solid var(--ifm-toc-border-color);padding:var(--ifm-pre-padding)}.FormExampleCode_XePV{max-height:400px;overflow:auto}.skipToContent_fXgn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_fXgn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_CVFx{line-height:0;padding:0}.content_knG7{font-size:85%;padding:5px 0;text-align:center}.content_knG7 a{color:inherit;-webkit-text-decoration:underline;text-decoration:underline}.announcementBar_mb4j{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.announcementBarPlaceholder_vyr4{flex:0 0 10px}.announcementBarClose_gvF7{align-self:stretch;flex:0 0 30px}.toggle_vylO{height:2rem;width:2rem}.toggleButton_gllP{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_gllP:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_aARS{cursor:not-allowed}.darkNavbarColorModeToggle_X3D1:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedComponent--dark_xIcU,[data-theme=light] .themedComponent--light_NVdE,html:not([data-theme]) .themedComponent--light_NVdE{display:initial}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.iconExternalLink_nPIU{margin-left:.3rem}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.cardContainer_fWXF{--ifm-link-color:var(--ifm-color-emphasis-800);--ifm-link-hover-color:var(--ifm-color-emphasis-700);--ifm-link-hover-decoration:none;border:1px solid var(--ifm-color-emphasis-200);box-shadow:0 1.5px 3px 0 #00000026;transition:all var(--ifm-transition-fast) ease;transition-property:border,box-shadow}.cardContainer_fWXF:hover{border-color:var(--ifm-color-primary);box-shadow:0 3px 6px 0 #0003}.cardTitle_rnsV{font-size:1.2rem}.cardDescription_PWke{font-size:.8rem}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}.dropdownNavbarItemMobile_S0Fm{cursor:pointer}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.iconLanguage_nlXk{margin-right:5px;vertical-align:text-bottom}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{left:0;position:absolute;top:0;fill:currentColor;height:inherit;opacity:inherit;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}body.dark,body[data-theme=dark]{--aa-text-color-rgb:183,192,199;--aa-primary-color-rgb:146,138,255;--aa-muted-color-rgb:146,138,255;--aa-input-background-color-rgb:0,3,9;--aa-background-color-rgb:21,24,42;--aa-selected-color-rgb:146,138,255;--aa-selected-color-alpha:0.25;--aa-description-highlight-background-color-rgb:0 255 255;--aa-description-highlight-background-color-alpha:0.25;--aa-panel-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--aa-scrollbar-track-background-color-rgb:44,46,64;--aa-muted-color-alpha:1}.aa-Autocomplete,.aa-DetachedFormContainer,.aa-Panel{color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-family:inherit;font-family:var(--aa-font-family);font-size:16px;font-size:var(--aa-font-size);font-weight:400;line-height:1em;margin:0;padding:0;text-align:left}.aa-Form{align-items:center;background-color:#fff;background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid #807ea3cc;border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;display:flex;line-height:1em;margin:0;position:relative;width:100%}.aa-ClearButton,.aa-Input,.aa-SubmitButton{border:0;background:none}.aa-Form:focus-within{border-color:#3e34d3;border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:0 0 0 2px #3e34d333,inset 0 0 0 2px #3e34d333;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:currentColor}.aa-InputWrapperPrefix{align-items:center;display:flex;flex-shrink:0;height:44px;height:var(--aa-search-input-height);order:1}.aa-Label,.aa-LoadingIndicator{cursor:auto;flex-shrink:0;height:100%;padding:0;text-align:left}.aa-Label svg,.aa-LoadingIndicator svg{color:#3e34d3;color:rgba(var(--aa-primary-color-rgb),1);height:auto;max-height:20px;max-height:var(--aa-input-icon-size);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-input-icon-size)}.aa-LoadingIndicator,.aa-SubmitButton{height:100%;padding-left:11px;padding-left:calc(var(--aa-spacing)*.75 - 1px);padding-right:8px;padding-right:var(--aa-spacing-half);width:47px;width:calc(var(--aa-spacing)*1.75 + var(--aa-icon-size) - 1px)}.aa-SubmitButton{appearance:none;margin:0}.aa-InputWrapper{order:3;position:relative;width:100%}.aa-Input{appearance:none;color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font:inherit;height:44px;height:var(--aa-search-input-height);padding:0;width:100%}.aa-Input::placeholder{color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input:focus{border-color:none;box-shadow:none;outline:0}.aa-Input::-webkit-search-cancel-button,.aa-Input::-webkit-search-decoration,.aa-Input::-webkit-search-results-button,.aa-Input::-webkit-search-results-decoration{appearance:none}.aa-InputWrapperSuffix{align-items:center;display:flex;height:44px;height:var(--aa-search-input-height);order:4}.aa-ClearButton{align-items:center;color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;height:100%;margin:0;padding:0 12.83328px;padding:0 calc(var(--aa-spacing)*.83333 - .5px)}.aa-Item,.aa-ItemIcon{align-items:center;border-radius:3px}.aa-ClearButton:focus,.aa-ClearButton:hover,.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}.aa-ClearButton svg{stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-icon-size)}.aa-Panel{background-color:#fff;background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:4px;border-radius:calc(var(--aa-spacing)/4);box-shadow:0 0 0 1px #23263b1a,0 6px 16px -4px #23263b26;box-shadow:var(--aa-panel-shadow);margin:8px 0 0;overflow:hidden;position:absolute;transition:opacity .2s ease-in,filter .2s ease-in}.aa-Panel button{appearance:none;background:none;border:0;margin:0;padding:0}.aa-PanelLayout{height:100%;margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-y:auto;padding:0;position:relative;text-align:left}.aa-PanelLayoutColumns--twoGolden{display:grid;grid-template-columns:39.2% auto;overflow:hidden;padding:0}.aa-PanelLayoutColumns--two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;padding:0}.aa-PanelLayoutColumns--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;padding:0}.aa-Panel--stalled .aa-Source{filter:grayscale(1);opacity:.8}.aa-Panel--scrollable{margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-x:hidden;overflow-y:auto;padding:8px;padding:var(--aa-spacing-half);scrollbar-color:#fff #eaeaea;scrollbar-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha)) rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));scrollbar-width:thin}.aa-Panel--scrollable::-webkit-scrollbar{width:13px;width:var(--aa-scrollbar-width)}.aa-Panel--scrollable::-webkit-scrollbar-track{background-color:#eaeaea;background-color:rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha))}.aa-Panel--scrollable::-webkit-scrollbar-thumb{background-color:#fff;background-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha));border:3px solid #eaeaea;border:3px solid rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));border-radius:9999px;border-right-width:2px}.aa-Source{margin:0;padding:0;position:relative;width:100%}.aa-SourceNoResults{font-size:1em;margin:0;padding:16px;padding:var(--aa-spacing)}.aa-List{list-style:none;margin:0}.aa-List,.aa-SourceHeader{padding:0;position:relative}.aa-SourceHeader{margin:8px .5em 8px 0;margin:var(--aa-spacing-half) .5em var(--aa-spacing-half) 0}.aa-SourceHeaderTitle{background:#fff;background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));color:#3e34d3;color:rgba(var(--aa-primary-color-rgb),1);display:inline-block;font-size:.8em;font-weight:600;font-weight:var(--aa-font-weight-semibold);margin:0;padding:0 8px 0 0;padding:0 var(--aa-spacing-half) 0 0;position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-SourceHeaderLine{border-bottom:1px solid #3e34d3;border-bottom:1px solid rgba(var(--aa-primary-color-rgb),1);display:block;height:2px;left:0;margin:0;opacity:.3;padding:0;position:absolute;right:0;top:8px;top:var(--aa-spacing-half);z-index:9998;z-index:calc(var(--aa-base-z-index) - 1)}.aa-SourceFooterSeeAll{background:linear-gradient(180deg,#fff,#807ea324);background:linear-gradient(180deg,rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha)),#807ea324);border:1px solid #807ea399;border:1px solid rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));border-radius:5px;box-shadow:inset 0 0 2px #fff,0 2px 2px -1px #4c455826;color:inherit;font-size:.95em;font-weight:500;font-weight:var(--aa-font-weight-medium);padding:.475em 1em .6em}.aa-SourceFooterSeeAll:focus,.aa-SourceFooterSeeAll:hover{border:1px solid #3e34d3;border:1px solid rgba(var(--aa-primary-color-rgb),1);color:#3e34d3;color:rgba(var(--aa-primary-color-rgb),1)}.aa-Item{cursor:pointer;display:grid;min-height:40px;min-height:calc(var(--aa-spacing)*2.5);padding:4px;padding:calc(var(--aa-spacing-half)/2)}.aa-Item[aria-selected=true]{background-color:rgba(179,173,214,.205);background-color:rgba(var(--aa-selected-color-rgb),var(--aa-selected-color-alpha))}.aa-Item[aria-selected=true] .aa-ActiveOnly,.aa-Item[aria-selected=true] .aa-ItemActionButton{visibility:visible}.aa-ItemIcon{background:#fff;background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));box-shadow:inset 0 0 0 1px #807ea34d;box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));color:#7777a3;color:rgba(var(--aa-icon-color-rgb),var(--aa-icon-color-alpha));display:flex;flex-shrink:0;font-size:.7em;height:28px;height:calc(var(--aa-icon-size) + var(--aa-spacing-half));justify-content:center;overflow:hidden;stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);text-align:center;width:28px;width:calc(var(--aa-icon-size) + var(--aa-spacing-half))}.aa-ItemIcon img{height:auto;max-height:20px;max-height:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);max-width:20px;max-width:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);width:auto}.aa-ItemIcon svg{height:20px;height:var(--aa-icon-size);width:20px;width:var(--aa-icon-size)}.aa-ItemIcon--alignTop{align-self:flex-start}.aa-ItemIcon--noBorder{background:none;box-shadow:none}.aa-ItemIcon--picture{height:96px;width:96px}.aa-ItemIcon--picture img{max-height:100%;max-width:100%;padding:8px;padding:var(--aa-spacing-half)}.aa-ItemContent{align-items:center;cursor:pointer;display:grid;gap:8px;grid-gap:8px;grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;line-height:1.25em;overflow:hidden}.aa-ItemContent mark{background:none;color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:700;font-weight:var(--aa-font-weight-bold)}.aa-ItemContent--dual{display:flex;flex-direction:column;justify-content:space-between;text-align:left}.aa-ItemContent--dual .aa-ItemContentSubtitle,.aa-ItemContent--dual .aa-ItemContentTitle,.tocCollapsibleContent_vkbj a{display:block}.aa-ItemContent--indented{padding-left:36px;padding-left:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-ItemContentBody{display:grid;gap:4px;grid-gap:4px;grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2)}.aa-ItemContentTitle{display:inline-block;margin:0 .5em 0 0;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.aa-ItemContentSubtitle{font-size:.92em}.aa-ItemContentSubtitleIcon:before{border-color:#807ea3a3;border-color:rgba(var(--aa-muted-color-rgb),.64);border-style:solid;content:"";display:inline-block;left:1px;position:relative;top:-3px}.aa-PanelFooter:after,.aa-PanelHeader:after{position:absolute;pointer-events:none;right:0;content:"";left:0}.aa-ItemContentSubtitle--inline .aa-ItemContentSubtitleIcon:before{border-width:0 0 1.5px;margin-left:8px;margin-left:var(--aa-spacing-half);margin-right:4px;margin-right:calc(var(--aa-spacing-half)/2);width:10px;width:calc(var(--aa-spacing-half) + 2px)}.aa-ItemContentSubtitle--standalone{align-items:center;color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));display:grid;gap:8px;grid-gap:8px;grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;justify-content:start}#__docusaurus-base-url-issue-banner-container,.aa-DetachedContainer--modal .aa-PanelLayout:empty,.aa-DetachedSearchButtonPlaceholder[hidden],.aa-ItemContentDescription:empty,.navbarSearchContainer_Bca1:empty{display:none}.aa-ItemContentSubtitle--standalone .aa-ItemContentSubtitleIcon:before{border-radius:0 0 0 3px;border-width:0 0 1.5px 1.5px;height:8px;height:var(--aa-spacing-half);width:8px;width:var(--aa-spacing-half)}.aa-ItemContentSubtitleCategory{color:#807ea3;color:rgba(var(--aa-muted-color-rgb),1);font-weight:500}.aa-ItemContentDescription{color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-size:.85em;max-width:100%;overflow-x:hidden;text-overflow:ellipsis}.aa-ItemContentDescription mark{background:#f5df4d80;background:rgba(var(--aa-description-highlight-background-color-rgb),var(--aa-description-highlight-background-color-alpha));color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:500;font-weight:var(--aa-font-weight-medium)}.aa-ItemContentDash{color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));display:none;opacity:.4}.aa-ItemContentTag{background-color:#3e34d333;background-color:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha));border-radius:3px;margin:0 .4em 0 0;padding:.08em .3em}.aa-ItemLink,.aa-ItemWrapper{align-items:center;color:inherit;display:grid;gap:4px;grid-gap:4px;grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2);grid-auto-flow:column;justify-content:space-between;width:100%}.aa-ItemLink{color:inherit}.aa-ItemActions{display:grid;grid-auto-flow:column;height:100%;justify-self:end;margin:0 -5.33333px;margin:0 calc(var(--aa-spacing)/-3);padding:0 2px 0 0}.aa-ItemActionButton{align-items:center;background:none;border:0;color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;flex-shrink:0;padding:0}.aa-ItemActionButton svg{color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));margin:5.33333px;margin:calc(var(--aa-spacing)/3);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-action-icon-size)}.aa-ActiveOnly{visibility:hidden}.aa-PanelHeader{align-items:center;background:#3e34d3;background:rgba(var(--aa-primary-color-rgb),1);color:#fff;display:grid;height:var(--aa-modal-header-height);margin:0;padding:8px 16px;padding:var(--aa-spacing-half) var(--aa-spacing);position:relative}.aa-PanelHeader:after{background-image:linear-gradient(#fff,#fff0);background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));bottom:-8px;bottom:calc(var(--aa-spacing-half)*-1);height:8px;height:var(--aa-spacing-half)}.aa-PanelFooter,.aa-PanelHeader:after{z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter{background-color:#fff;background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));box-shadow:inset 0 1px 0 #807ea34d;box-shadow:inset 0 1px 0 rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;justify-content:space-between;margin:0;padding:16px;padding:var(--aa-spacing);position:relative}.aa-PanelFooter:after{background-image:linear-gradient(#fff0,#807ea399);background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha)));height:16px;height:var(--aa-spacing);opacity:.12;top:-16px;top:calc(var(--aa-spacing)*-1);z-index:9998;z-index:calc(var(--aa-base-z-index) - 1)}.aa-DetachedContainer{background:#fff;background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));bottom:0;box-shadow:0 0 0 1px #23263b1a,0 6px 16px -4px #23263b26;box-shadow:var(--aa-panel-shadow);display:flex;flex-direction:column;left:0;margin:0;overflow:hidden;padding:0;position:fixed;right:0;top:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-DetachedContainer:after{height:32px}.aa-DetachedContainer .aa-SourceHeader{margin:8px 0 8px 2px;margin:var(--aa-spacing-half) 0 var(--aa-spacing-half) 2px}.aa-DetachedContainer .aa-Panel{background-color:#fff;background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:0;box-shadow:none;flex-grow:1;margin:0;padding:0;position:relative}.aa-DetachedContainer .aa-PanelLayout{bottom:0;box-shadow:none;left:0;margin:0;max-height:none;overflow-y:auto;position:absolute;right:0;top:0;width:100%}.aa-DetachedFormContainer{border-bottom:1px solid #807ea34d;border-bottom:1px solid rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;flex-direction:row;justify-content:space-between;margin:0;padding:8px;padding:var(--aa-spacing-half)}.aa-DetachedCancelButton{background:none;border:0;border-radius:3px;color:#262627;color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));cursor:pointer;font:inherit;margin:0 0 0 8px;margin:0 0 0 var(--aa-spacing-half);padding:0 8px;padding:0 var(--aa-spacing-half)}.aa-DetachedCancelButton:focus,.aa-DetachedCancelButton:hover{box-shadow:inset 0 0 0 1px #807ea34d;box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha))}.aa-DetachedContainer--modal{border-radius:6px;bottom:inherit;height:auto;margin:0 auto;max-width:680px;max-width:var(--aa-detached-modal-max-width);position:absolute;top:3%}.aa-DetachedContainer--modal .aa-PanelLayout{max-height:500px;max-height:var(--aa-detached-modal-max-height);padding-bottom:8px;padding-bottom:var(--aa-spacing-half);position:static}.aa-DetachedSearchButton{align-items:center;background-color:#fff;background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid #807ea3cc;border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;color:#807ea399;color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;font:inherit;font-family:inherit;font-family:var(--aa-font-family);font-size:16px;font-size:var(--aa-font-size);height:44px;height:var(--aa-search-input-height);margin:0;padding:0 5.5px;padding:0 calc(var(--aa-search-input-height)/8);position:relative;text-align:left;width:100%}.aa-DetachedSearchButton:focus{border-color:#3e34d3;border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:0 0 0 3px #3e34d333,inset 0 0 0 2px #3e34d333;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 3px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:currentColor}.aa-DetachedSearchButtonIcon{align-items:center;color:#3e34d3;color:rgba(var(--aa-primary-color-rgb),1);cursor:auto;display:flex;flex-shrink:0;height:100%;justify-content:center;width:36px;width:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-DetachedSearchButtonQuery{color:#262627;color:rgba(var(--aa-text-color-rgb),1);line-height:1.25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aa-Detached{height:100vh;overflow:hidden}.aa-DetachedOverlay{background-color:#73728166;background-color:rgba(var(--aa-overlay-color-rgb),var(--aa-overlay-color-alpha));height:100vh;left:0;margin:0;padding:0;position:fixed;right:0;top:0;z-index:9998;z-index:calc(var(--aa-base-z-index) - 1)}.aa-GradientBottom,.aa-GradientTop{height:8px;height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-GradientTop{background-image:linear-gradient(#fff,#fff0);background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));top:0}.aa-GradientBottom{background-image:linear-gradient(#fff0,#fff);background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-background-color-rgb),1));border-bottom-left-radius:4px;border-bottom-left-radius:calc(var(--aa-spacing)/4);border-bottom-right-radius:4px;border-bottom-right-radius:calc(var(--aa-spacing)/4);bottom:0}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.lastUpdated_JAkA{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;list-style:none;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.containsTaskList_mC6p{list-style:none}:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.img_ev3q{height:auto}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{display:inline-block;height:1.6em;width:1.6em;fill:var(--ifm-alert-foreground-color)}.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.title_kItE{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-leading)*1.25)}.mdxPageWrapper_j9I6{justify-content:center}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);-webkit-text-decoration:none!important;text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_JAkA{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn,.generatedIndexPage_vN6x{max-width:75%!important}.list_eTzJ article:nth-last-child(-n+2){margin-bottom:0!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block;width:max-content}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}.aa-TouchOnly{display:none}}@media (hover:none) and (pointer:coarse){:root{--aa-spacing-factor:1.2;--aa-action-icon-size:22px}.aa-LoadingIndicator,.aa-SubmitButton{padding-left:3px;padding-left:calc(var(--aa-spacing-half)/ 2 - 1px);width:39px;width:calc(var(--aa-icon-size) + var(--aa-spacing)*1.25 - 1px)}.aa-ClearButton{padding:0 10.16672px;padding:0 calc(var(--aa-spacing)*.66667 - .5px)}.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:inherit}.aa-DesktopOnly{display:none}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media screen and (prefers-reduced-motion){.aa-Panel{transition:none}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/website/assets/js/029f537f.63119643.js b/website/assets/js/029f537f.63119643.js new file mode 100644 index 000000000..55a5ca5b9 --- /dev/null +++ b/website/assets/js/029f537f.63119643.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4459],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>p});const o={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=t(7119),i=t(6487),s=t(3007);const a="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n \n \n \n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n
\n \n ({\n errors: errors?.currentErrors,\n })}\n />\n \n
\n \n \n
\n {errors && (\n \n )}\n
\n );\n}\n";var c=t(7020),u=t(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const T=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:o.FormExample,children:[(0,u.jsxs)(r.A,{children:[(0,u.jsx)(i.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(s.A,{language:"json",className:o.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(i.A,{value:"data",label:"Data",children:(0,u.jsx)(s.A,{language:"json",className:o.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(r.A,{children:[(0,u.jsx)(i.A,{value:"code",label:"Code",children:(0,u.jsx)(s.A,{language:"tsx",className:o.FormExampleCode,children:T?l:a})}),(0,u.jsx)(i.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:o.FormExampleRender,children:(0,u.jsx)(c.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=T?t(5152).g:t(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>i});var o=t(1999),r=t(4848);function i(e){let{source:n,data:t}=e;const{getComponents:i,Provider:s}=(0,o.O1)(n,t,{initialPage:"1"});return(0,r.jsx)(s,{children:(0,r.jsx)(o.R2,{components:i()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>s});var o=t(1999),r=t(6540),i=t(4848);function s(e){let{source:n,data:t,options:s}=e;const{getComponents:a,isLastPage:l,isFirstPage:c,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,o.O1)(n,t,{initialPage:"1",...s}),[T,E]=(0,r.useState)();return(0,i.jsxs)("div",{children:[(0,i.jsx)(p,{children:(0,i.jsx)(o.R2,{components:a(),componentProps:()=>({errors:T?.currentErrors})})}),(0,i.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,i.jsx)("button",{className:"button button--primary",disabled:c,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,i.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?E(e):d()},children:"Suivant"})]}),T&&(0,i.jsx)(o.I1,{errors:T.currentErrors,goNext:()=>{E(void 0),d()},onClose:()=>{E(void 0)},isCritical:T.isCritical})]})}},7287:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"components/decorations/question","title":"Question","description":"Le composant Question entoure une question en lui donnant un contexte suppl\xe9mentaire avec un titre une description et des d\xe9clarations.","source":"@site/docs/components/decorations/question.mdx","sourceDirName":"components/decorations","slug":"/components/decorations/question","permalink":"/Lunatic/docs/components/decorations/question","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/decorations/question.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Sequence & SubSequence","permalink":"/Lunatic/docs/components/decorations/sequence"},"next":{"title":"FilterDescription","permalink":"/Lunatic/docs/components/decorations/filter-description"}}');var r=t(4848),i=t(8453);const s=JSON.parse('{"$schema":"../../../lunatic-schema.json","pagination":"question","maxPage":"2","variables":[{"variableType":"COLLECTED","name":"TESTTEXTE","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"QNUM","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}],"components":[{"componentType":"Question","id":"idQuestion","page":"1","label":{"type":"VTL|MD","value":"\\"Question\\""},"description":{"type":"VTL|MD","value":"\\"Description de la question\\""},"declarations":[{"declarationType":"HELP","id":"idQuestion-help1","label":{"type":"VTL|MD","value":"\\"Contenu de la premi\xe8re d\xe9claration avant (contexte)\\""},"position":"BEFORE_QUESTION_TEXT"},{"declarationType":"HELP","id":"idQuestion-help2","label":{"type":"VTL|MD","value":"\\"Contenu de la deuxi\xe8me d\xe9claration avant (contexte)\\""},"position":"BEFORE_QUESTION_TEXT"},{"declarationType":"HELP","id":"idQuestion-help3","label":{"type":"VTL|MD","value":"\\"Contenu de la premi\xe8re d\xe9claration apr\xe8s (Information)\\""},"position":"AFTER_QUESTION_TEXT"},{"declarationType":"HELP","id":"idQuestion-help4","label":{"type":"VTL|MD","value":"\\"Contenu de la deuxi\xe8me d\xe9claration apr\xe8s (Information)\\""},"position":"AFTER_QUESTION_TEXT"}],"components":[{"componentType":"Input","bindingDependencies":["TESTTEXTE"],"controls":[{"bindingDependencies":["TESTTEXTE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"L\'input ne peut pas valoir BLABLA\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTTEXTE,\\"\\") = \\"BLABLA\\")"},"id":"kfxn6f16-CI-0"},{"bindingDependencies":["TESTTEXTE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"Cette phrase un peu longue s\u2019affiche si on a du vide pour la variable sur le texte inf\xe9rieur \xe0 255 caract\xe8res et voil\xe0\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(isnull(TESTTEXTE))"},"id":"kfxn6f16-CI-1"}],"response":{"name":"TESTTEXTE"},"conditionFilter":{"type":"VTL","value":"true"},"id":"kfxn6f16","page":"1","label":{"type":"VTL|MD","value":"\\"Le label du champ input\\""},"mandatory":false,"maxLength":15,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxn6f16-kfxn36ru","label":{"type":"VTL|MD","value":"\\"Tester la saisie de BLABLA\\""},"position":"AFTER_QUESTION_TEXT"}]}]},{"componentType":"Question","id":"idQuestion2","page":"2","label":{"type":"VTL|MD","value":"\\"Question 2\\""},"description":{"type":"VTL|MD","value":"\\"Description de la question 2\\""},"components":[{"id":"k0dzbfek","componentType":"InputNumber","mandatory":false,"page":"2","min":0,"max":100,"decimals":0,"label":{"value":"\\"\u27a1 1. \\" || \\"Test de sup\xe9riorit\xe9 stricte - Saisie d\u2019un nombre compris entre 0 et 100 - Si valeur sup\xe9rieure \xe0 5 message d\u2019info. si superieur \xe0 6,5 autre message \\"","type":"VTL|MD"},"declarations":[{"id":"k0dzbfek-kzgzg0bk","declarationType":"HELP","position":"AFTER_QUESTION_TEXT","label":{"value":"\\"Tester 2 et 20 (pour v\xe9rifier ordre num\xe9rique et lexico)\\"","type":"VTL|MD"}}],"conditionFilter":{"value":"true","type":"VTL"},"controls":[{"id":"k0dzbfek-CI-0","criticality":"WARN","control":{"value":"not(cast(nvl(QNUM,0),integer) > 5)","type":"VTL"},"errorMessage":{"value":"\\"sup \xe0 5\\"","type":"VTL|MD"},"bindingDependencies":["QNUM"],"typeOfControl":"CONSISTENCY"},{"id":"k0dzbfek-CI-1","criticality":"WARN","control":{"value":"not(cast(nvl(QNUM,0),integer) > 6.5)","type":"VTL"},"errorMessage":{"value":"\\"superieur \xe0 6.5\\"","type":"VTL|MD"},"bindingDependencies":["QNUM"],"typeOfControl":"CONSISTENCY"}],"bindingDependencies":["QNUM"],"response":{"name":"QNUM"}}]}]}');var a=t(4264);const l={},c="Question",u={},d=[];function p(e){const n={h1:"h1",header:"header",p:"p",strong:"strong",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"question",children:"Question"})}),"\n",(0,r.jsxs)(n.p,{children:["Le composant ",(0,r.jsx)(n.strong,{children:"Question"})," entoure une question en lui donnant un contexte suppl\xe9mentaire avec un titre une description et des d\xe9clarations."]}),"\n","\n",(0,r.jsx)(a.L,{source:s})]})}function m(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/0cb2ce6a.46235ae7.js b/website/assets/js/0cb2ce6a.46235ae7.js new file mode 100644 index 000000000..f6f100377 --- /dev/null +++ b/website/assets/js/0cb2ce6a.46235ae7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9231],{6509:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>d,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>o});const i=JSON.parse('{"id":"api/functions/useLunatic","title":"Function: useLunatic()","description":"useLunatic(source, data, argOptions): LunaticState","source":"@site/docs/api/functions/useLunatic.md","sourceDirName":"api/functions","slug":"/api/functions/useLunatic","permalink":"/Lunatic/docs/api/functions/useLunatic","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/functions/useLunatic.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"ModalControls","permalink":"/Lunatic/docs/api/functions/ModalControls"}}');var c=t(4848),s=t(8453);const r={},d="Function: useLunatic()",a={},o=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Defined in",id:"defined-in",level:2}];function l(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"function-uselunatic",children:"Function: useLunatic()"})}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"useLunatic"}),"(",(0,c.jsx)(n.code,{children:"source"}),", ",(0,c.jsx)(n.code,{children:"data"}),", ",(0,c.jsx)(n.code,{children:"argOptions"}),"): ",(0,c.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticState",children:(0,c.jsx)(n.code,{children:"LunaticState"})})]}),"\n"]}),"\n",(0,c.jsxs)(n.p,{children:["The first library entrypoint is the ",(0,c.jsx)(n.code,{children:"useLunatic"})," hook."]}),"\n",(0,c.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,c.jsxs)(n.table,{children:[(0,c.jsx)(n.thead,{children:(0,c.jsxs)(n.tr,{children:[(0,c.jsx)(n.th,{children:"Parameter"}),(0,c.jsx)(n.th,{children:"Type"}),(0,c.jsx)(n.th,{children:"Default value"}),(0,c.jsx)(n.th,{children:"Description"})]})}),(0,c.jsxs)(n.tbody,{children:[(0,c.jsxs)(n.tr,{children:[(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"source"})}),(0,c.jsx)(n.td,{children:(0,c.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticSource",children:(0,c.jsx)(n.code,{children:"LunaticSource"})})}),(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"undefined"})}),(0,c.jsxs)(n.td,{children:["JSON representation of our survey unit in the Lunatic Model. ",(0,c.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic-Model",children:"https://github.com/InseeFr/Lunatic-Model"})]})]}),(0,c.jsxs)(n.tr,{children:[(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"data"})}),(0,c.jsxs)(n.td,{children:[(0,c.jsx)(n.code,{children:"Partial"}),"<",(0,c.jsx)(n.code,{children:"Record"}),"<",(0,c.jsx)(n.code,{children:'"EXTERNAL"'})," | ",(0,c.jsx)(n.code,{children:'"CALCULATED"'}),", ",(0,c.jsx)(n.code,{children:"Record"}),"<",(0,c.jsx)(n.code,{children:"string"}),", ",(0,c.jsx)(n.code,{children:"unknown"}),">> & ",(0,c.jsx)(n.code,{children:"object"}),">"]}),(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"DEFAULT_DATA"})}),(0,c.jsx)(n.td,{children:"Initial survey data (i.e. if it has been partially filled)."})]}),(0,c.jsxs)(n.tr,{children:[(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"argOptions"})}),(0,c.jsx)(n.td,{children:(0,c.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticOptions",children:(0,c.jsx)(n.code,{children:"LunaticOptions"})})}),(0,c.jsx)(n.td,{children:(0,c.jsx)(n.code,{children:"empty"})}),(0,c.jsx)(n.td,{children:"Specific behaviour options."})]})]})]}),"\n",(0,c.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticState",children:(0,c.jsx)(n.code,{children:"LunaticState"})})}),"\n",(0,c.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/use-lunatic.ts#L70",children:"src/use-lunatic/use-lunatic.ts:70"})})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>r,x:()=>d});var i=t(6540);const c={},s=i.createContext(c);function r(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:r(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/0e7a0dc8.9a766c11.js b/website/assets/js/0e7a0dc8.9a766c11.js new file mode 100644 index 000000000..f332fb58f --- /dev/null +++ b/website/assets/js/0e7a0dc8.9a766c11.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[891],{7951:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"internal/missing","title":"Missing","description":"Le syst\xe8me de missing permet \xe0 l\'utilisateur d\'indiquer qu\'il ne connait pas ou ne souhaite pas r\xe9pondre \xe0 la question. Le choix de ne pas r\xe9pondre est sauvegard\xe9 dans une variable distincte, mais doit aussi vider la valeur entr\xe9e pour la variable originale. Ce syst\xe8me est semblable \xe0 celui du cleaning mais la d\xe9claration se fait diff\xe9remment au travers de la propri\xe9t\xe9 missingBlock.","source":"@site/docs/internal/missing.mdx","sourceDirName":"internal","slug":"/internal/missing","permalink":"/Lunatic/docs/internal/missing","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/internal/missing.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Cleaning","permalink":"/Lunatic/docs/internal/cleaning"}}');var t=s(4848),r=s(8453);const a={},o="Missing",l={},c=[];function d(e){const n={admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"missing",children:"Missing"})}),"\n",(0,t.jsxs)(n.p,{children:["Le syst\xe8me de ",(0,t.jsx)(n.strong,{children:"missing"})," permet \xe0 l'utilisateur d'indiquer qu'il ne connait pas ou ne souhaite pas r\xe9pondre \xe0 la question. Le choix de ne pas r\xe9pondre est sauvegard\xe9 dans une variable distincte, mais doit aussi vider la valeur entr\xe9e pour la variable originale. Ce syst\xe8me est semblable \xe0 celui du cleaning mais la d\xe9claration se fait diff\xe9remment au travers de la propri\xe9t\xe9 ",(0,t.jsx)(n.code,{children:"missingBlock"}),"."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:'{\n\t"missingBlock": {\n\t\t"CADR_MISSING": ["CADR"],\n\t\t"CADR": ["CADR_MISSING"]\n }\n}\n'})}),"\n",(0,t.jsx)(n.p,{children:"Cette propri\xe9t\xe9 prend en clef les variables \xe0 observer et en valeur la liste des variables \xe0 nettoyer lorsque la valeur change."}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsx)(n.p,{children:"Vous ne pouvez observer que des variables collect\xe9es."})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>o});var i=s(6540);const t={},r=i.createContext(t);function a(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/0ea626f8.15745c0f.js b/website/assets/js/0ea626f8.15745c0f.js new file mode 100644 index 000000000..aae13f7d1 --- /dev/null +++ b/website/assets/js/0ea626f8.15745c0f.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1585],{4264:(n,e,t)=>{"use strict";t.d(e,{L:()=>p});const r={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=t(7119),s=t(6487),a=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n \n \n \n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n
\n \n ({\n errors: errors?.currentErrors,\n })}\n />\n \n
\n \n \n
\n {errors && (\n \n )}\n
\n );\n}\n";var l=t(7020),u=t(4848);const d={};function p(n){let{source:e,data:p=d,options:m}=n;const g=e.maxPage&&"1"!==e.maxPage;return(0,u.jsxs)("div",{className:r.FormExample,children:[(0,u.jsxs)(o.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(e,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(o.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:r.FormExampleCode,children:g?c:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:r.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const n=g?t(5152).g:t(3314).S;return(0,u.jsx)(n,{source:e,data:p,options:m})}})})})]})]})}},3314:(n,e,t)=>{"use strict";t.d(e,{S:()=>s});var r=t(1999),o=t(4848);function s(n){let{source:e,data:t}=n;const{getComponents:s,Provider:a}=(0,r.O1)(e,t,{initialPage:"1"});return(0,o.jsx)(a,{children:(0,o.jsx)(r.R2,{components:s()})})}},5152:(n,e,t)=>{"use strict";t.d(e,{g:()=>a});var r=t(1999),o=t(6540),s=t(4848);function a(n){let{source:e,data:t,options:a}=n;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,r.O1)(e,t,{initialPage:"1",...a}),[g,x]=(0,o.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(r.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const n=m();n.currentErrors?x(n):d()},children:"Suivant"})]}),g&&(0,s.jsx)(r.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),d()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},6609:(n,e,t)=>{"use strict";t.r(e),t.d(e,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"components/fields/input","title":"Input","description":"Le composant Input permet d\'afficher un simple champ texte.","source":"@site/docs/components/fields/input.mdx","sourceDirName":"components/fields","slug":"/components/fields/input","permalink":"/Lunatic/docs/components/fields/input","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/input.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Champs","permalink":"/Lunatic/docs/category/champs"},"next":{"title":"InputNumber","permalink":"/Lunatic/docs/components/fields/input-number"}}');var o=t(4848),s=t(8453),a=t(3067),i=t(4264);const c={},l="Input",u={},d=[];function p(n){const e={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.header,{children:(0,o.jsx)(e.h1,{id:"input",children:"Input"})}),"\n",(0,o.jsxs)(e.p,{children:["Le composant ",(0,o.jsx)(e.strong,{children:"Input"})," permet d'afficher un simple champ texte."]}),"\n",(0,o.jsxs)(e.ul,{children:["\n",(0,o.jsxs)(e.li,{children:[(0,o.jsx)(e.strong,{children:"maxLength"}),", permet de d\xe9finir la longueur maximale du texte (au niveau HTML seulement, un contr\xf4le est n\xe9cessaire si on souhaite valider la longueur)"]}),"\n"]}),"\n","\n",(0,o.jsx)(i.L,{source:a})]})}function m(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(p,{...n})}):p(n)}},5843:()=>{},3067:n=>{"use strict";n.exports=JSON.parse('{"components":[{"componentType":"Input","label":{"value":"\\"Nom de l\'occupant principal.\\"","type":"VTL|MD"},"maxLength":30,"id":"surname","description":{"value":"\\"For example, Bob.\\"","type":"VTL|MD"},"response":{"name":"NOM"},"page":"1"}],"variables":[{"variableType":"COLLECTED","name":"NOM","componentRef":"name","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}')}}]); \ No newline at end of file diff --git a/website/assets/js/0f175527.2ff71eda.js b/website/assets/js/0f175527.2ff71eda.js new file mode 100644 index 000000000..024699476 --- /dev/null +++ b/website/assets/js/0f175527.2ff71eda.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6298],{2709:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>d,default:()=>u,frontMatter:()=>t,metadata:()=>s,toc:()=>a});const s=JSON.parse('{"type":"mdx","permalink":"/Lunatic/docs/changelog","source":"@site/src/pages/changelog.mdx","description":"3.4.10","frontMatter":{},"unlisted":false}');var l=i(4848),r=i(8453);const t={},d=void 0,o={},a=[{value:"3.4.10",id:"3410",level:3},{value:"Correction de bugs",id:"correction-de-bugs",level:4},{value:"3.4.9",id:"349",level:3},{value:"Nouvelles fonctionnalit\xe9s",id:"nouvelles-fonctionnalit\xe9s",level:4},{value:"Correction de bugs",id:"correction-de-bugs-1",level:4},{value:"3.4.8",id:"348",level:3},{value:"Correction de bugs",id:"correction-de-bugs-2",level:4},{value:"3.0.0",id:"300",level:3},{value:"Nouvelles fonctionnalit\xe9s",id:"nouvelles-fonctionnalit\xe9s-1",level:4},{value:"Correction de bugs",id:"correction-de-bugs-3",level:4},{value:"Refactorisation",id:"refactorisation",level:4},{value:"Build",id:"build",level:4},{value:"2.7.23",id:"2723",level:3},{value:"2.7.22",id:"2722",level:3},{value:"2.7.4",id:"274",level:3},{value:"2.7.3",id:"273",level:3},{value:"2.7.2",id:"272",level:3},{value:"2.7.0",id:"270",level:3}];function c(e){const n={a:"a",code:"code",del:"del",h3:"h3",h4:"h4",li:"li",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.h3,{id:"3410",children:"3.4.10"}),"\n",(0,l.jsx)(n.h4,{id:"correction-de-bugs",children:"Correction de bugs"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"CheckboxOne : il n'\xe9tait plus possible de d\xe9cocher la modalit\xe9 s\xe9lectionn\xe9e"}),"\n",(0,l.jsx)(n.li,{children:'CheckboxGroup : la modalit\xe9 "detail" \xe9tait mal positionn\xe9e, et clic sur le champ de saisie d\xe9cochait la modalit\xe9 parent'}),"\n",(0,l.jsx)(n.li,{children:"le Provider fourni par le useLunatic se recalculait parfois \xe0 tord m\xeame si les param\xe8tres n'avaient pas chang\xe9"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"349",children:"3.4.9"}),"\n",(0,l.jsx)(n.h4,{id:"nouvelles-fonctionnalit\xe9s",children:"Nouvelles fonctionnalit\xe9s"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Input, InputNumber : lorsque la saisie d\xe9passe la taille du champ, ajout d'un '...' lorsque le champ n'est pas focus pour am\xe9liorer la lisibilit\xe9"}),"\n",(0,l.jsxs)(n.li,{children:["ajout d'un param\xe8tre ",(0,l.jsx)(n.code,{children:"disableFilters"})," dans le useLunatic pour permettre de d\xe9sactiver tous les filtres au sein du questionnaire"]}),"\n",(0,l.jsxs)(n.li,{children:["ajout d'un param\xe8tre ",(0,l.jsx)(n.code,{children:"detailAlwaysDisplayed"}),' dans le useLunatic pour permettre de toujours afficher les modalit\xe9s de r\xe9ponse "detail" (ex : "autre : pr\xe9ciser")']}),"\n"]}),"\n",(0,l.jsx)(n.h4,{id:"correction-de-bugs-1",children:"Correction de bugs"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Datepicker : la saisie d'une date au format YYYY-MM-DD avec une ann\xe9e sur 1 ou 2 digits \xe9tait consid\xe9r\xe9e invalide, et n'\xe9tait donc pas enregistr\xe9e"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"348",children:"3.4.8"}),"\n",(0,l.jsx)(n.h4,{id:"correction-de-bugs-2",children:"Correction de bugs"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Suggester : les stopwords n'\xe9taient plus pris en compte depuis la version 3.0.0"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"300",children:"3.0.0"}),"\n",(0,l.jsx)(n.h4,{id:"nouvelles-fonctionnalit\xe9s-1",children:"Nouvelles fonctionnalit\xe9s"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Pairwise : Les liens sym\xe9triques sont d\xe9duits et seulement affich\xe9s."}),"\n",(0,l.jsx)(n.li,{children:"Overview : R\xe9organisation du syst\xe8me d'overview avec prise en charge des boucles et ajout d'une propri\xe9t\xe9 current."}),"\n",(0,l.jsxs)(n.li,{children:["Suggester","\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:["Changement du moteur d'indexation et de recherche en utilisant la librairie ",(0,l.jsx)(n.a,{href:"https://lucaong.github.io/minisearch/",children:"minisearch"}),"."]}),"\n",(0,l.jsx)(n.li,{children:"Il est maintenant possible d'ajouter une option arbitraire."}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(n.li,{children:'Checkbox : Ajout de l\'option "autre" dans les questions \xe0 choix unique/multiple'}),"\n",(0,l.jsx)(n.li,{children:"Ajout du support du type TXT pour les labels (sans expression VTL)."}),"\n",(0,l.jsxs)(n.li,{children:["Cr\xe9ation d'un composant ",(0,l.jsx)(n.code,{children:"Question"}),"."]}),"\n",(0,l.jsxs)(n.li,{children:["Cr\xe9ation d'un composant ",(0,l.jsx)(n.code,{children:"Text"}),"."]}),"\n",(0,l.jsx)(n.li,{children:"La feuille de style CSS de la librairie n'est plus import\xe9e par d\xe9faut."}),"\n"]}),"\n",(0,l.jsx)(n.h4,{id:"correction-de-bugs-3",children:"Correction de bugs"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"RosterForLoop : Il \xe9tait possible de supprimer plus de lignes que le minimum sp\xe9cifi\xe9."}),"\n"]}),"\n",(0,l.jsx)(n.h4,{id:"refactorisation",children:"Refactorisation"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Nettoyage de tous les composants et simplification de la personnalisation."}),"\n",(0,l.jsxs)(n.li,{children:["Correction de la faute d'orthographe sur l'\xe9tat INPUTTED (",(0,l.jsx)(n.del,{children:"INPUTED"}),") des variables."]}),"\n",(0,l.jsx)(n.li,{children:"Typage plus pr\xe9cis du num\xe9ro de page (pager & pageTag)."}),"\n",(0,l.jsxs)(n.li,{children:["Refactorisation des diff\xe9rents reducers, changement de handleChange pour handleChange",(0,l.jsx)(n.strong,{children:"s"}),"."]}),"\n"]}),"\n",(0,l.jsx)(n.h4,{id:"build",children:"Build"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Suppression de Babel et Webpack pour le build, publication en ESM seulement (le build en CJS posait des probl\xe8mes \xe0 cause de l'utilisation d'ANTLR4 publi\xe9 en ESM seulement)."}),"\n",(0,l.jsx)(n.li,{children:"Mise \xe0 jour globale des d\xe9pendances."}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"2723",children:"2.7.23"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"hasPageResponse retourne false lorsque toutes les r\xe9ponses d'une checkbox sont d\xe9coch\xe9es."}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"2722",children:"2.7.22"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"duration: le nombre d'heure max est 99"}),"\n",(0,l.jsx)(n.li,{children:"Correction de la dimension de variable calcul\xe9es"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"274",children:"2.7.4"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Capture les erreurs en cas d'expression VTL invalide"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"273",children:"2.7.3"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Changement de la r\xe9solution des chemins des workers"}),"\n",(0,l.jsxs)(n.li,{children:["Ajout de la commande ",(0,l.jsx)(n.code,{children:"npx @inseefr/lunatic workers"})," pour copier les fichiers li\xe9s aux workers"]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"272",children:"2.7.2"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Datepicker utilise maintenant 3 champs au lieu du champ natif"}),"\n",(0,l.jsx)(n.li,{children:"Limite les valeurs dans le champ dur\xe9e"}),"\n",(0,l.jsx)(n.li,{children:"Mise \xe0 jour storybook (version 7)"}),"\n",(0,l.jsx)(n.li,{children:"GLOBAL_ITERATION_INDEX est maintenant un entier"}),"\n",(0,l.jsx)(n.li,{children:"fix: Propri\xe9t\xe9s d\xe9bordant sur les composants enfant d'un RosterForLoop"}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"270",children:"2.7.0"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"Changement interne du syst\xe8me de stockage de variable et d'\xe9x\xe9cution d'expression VTL."}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(c,{...e})}):c(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>t,x:()=>d});var s=i(6540);const l={},r=s.createContext(l);function t(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:t(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/1067611d.e3825ffe.js b/website/assets/js/1067611d.e3825ffe.js new file mode 100644 index 000000000..8ab723caf --- /dev/null +++ b/website/assets/js/1067611d.e3825ffe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5021],{9770:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>h,frontMatter:()=>l,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"api/type-aliases/LunaticPager","title":"Type Alias: LunaticPager","description":"LunaticPager: object","source":"@site/docs/api/type-aliases/LunaticPager.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticPager","permalink":"/Lunatic/docs/api/type-aliases/LunaticPager","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticPager.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticOptions","permalink":"/Lunatic/docs/api/type-aliases/LunaticOptions"},"next":{"title":"LunaticSlotComponents","permalink":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents"}}');var a=i(4848),t=i(8453);const l={},r="Type Alias: LunaticPager",o={},c=[{value:"Type declaration",id:"type-declaration",level:2},{value:"iteration?",id:"iteration",level:3},{value:"lastReachedPage?",id:"lastreachedpage",level:3},{value:"linksIterations?",id:"linksiterations",level:3},{value:"maxPage",id:"maxpage",level:3},{value:"nbIterations?",id:"nbiterations",level:3},{value:"nbSubPages?",id:"nbsubpages",level:3},{value:"page",id:"page",level:3},{value:"shallowIteration?",id:"shallowiteration",level:3},{value:"subPage?",id:"subpage",level:3},{value:"Defined in",id:"defined-in",level:2}];function d(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"type-alias-lunaticpager",children:"Type Alias: LunaticPager"})}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.strong,{children:"LunaticPager"}),": ",(0,a.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Contains informations about navigation (last page reached, number of pages, subpages, etc.)."}),"\n",(0,a.jsx)(n.p,{children:"This is the object used internally to determine where we are in the navigation."}),"\n",(0,a.jsx)(n.p,{children:"When we are in a loop, the pager will have additional properties."}),"\n",(0,a.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,a.jsx)(n.h3,{id:"iteration",children:"iteration?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"iteration"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Iteration index (starts at 0)."}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h3,{id:"lastreachedpage",children:"lastReachedPage?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"lastReachedPage"}),": ",(0,a.jsx)(n.code,{children:"PageTag"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Last page reached."}),"\n",(0,a.jsx)(n.h3,{id:"linksiterations",children:"linksIterations?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"linksIterations"}),": ",(0,a.jsx)(n.code,{children:"number"}),"[]"]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h3,{id:"maxpage",children:"maxPage"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.strong,{children:"maxPage"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Last page of the survey."}),"\n",(0,a.jsx)(n.h3,{id:"nbiterations",children:"nbIterations?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"nbIterations"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Number of iterations (i.e. number of people)."}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h3,{id:"nbsubpages",children:"nbSubPages?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"nbSubPages"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Number of pages in a loop."}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h3,{id:"page",children:"page"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.strong,{children:"page"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Current page."}),"\n",(0,a.jsx)(n.h3,{id:"shallowiteration",children:"shallowIteration?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"shallowIteration"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h3,{id:"subpage",children:"subPage?"}),"\n",(0,a.jsxs)(n.blockquote,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"optional"})," ",(0,a.jsx)(n.strong,{children:"subPage"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"Current subpage."}),"\n",(0,a.jsx)(n.p,{children:"Only in a loop."}),"\n",(0,a.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L100",children:"src/use-lunatic/type.ts:100"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>l,x:()=>r});var s=i(6540);const a={},t=s.createContext(a);function l(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:l(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/1107.6d76b575.js b/website/assets/js/1107.6d76b575.js new file mode 100644 index 000000000..43edf2a1a --- /dev/null +++ b/website/assets/js/1107.6d76b575.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1107],{3007:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var o=n(6540),s=n(4753),c=n(8215),r=n(5331),a=n(1436);function l(){const{prism:e}=(0,a.p)(),{colorMode:t}=(0,r.G)(),n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var i=n(4717),u=n(8426),d=n.n(u);const m=/title=(?["'])(?.*?)\1/,p=/\{(?<range>[\d,-]+)\}/,b={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},f={...b,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},h=Object.keys(b);function g(e,t){const n=e.map((e=>{const{start:n,end:o}=f[e];return`(?:${n}\\s*(${t.flatMap((e=>[e.line,e.block?.start,e.block?.end].filter(Boolean))).join("|")})\\s*${o})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function k(e,t){let n=e.replace(/\n$/,"");const{language:o,magicComments:s,metastring:c}=t;if(c&&p.test(c)){const e=c.match(p).groups.range;if(0===s.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${c}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=s[0].className,o=d()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(o),code:n}}if(void 0===o)return{lineClassNames:{},code:n};const r=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return g(["js","jsBlock"],t);case"jsx":case"tsx":return g(["js","jsBlock","jsx"],t);case"html":return g(["js","jsBlock","html"],t);case"python":case"py":case"bash":return g(["bash"],t);case"markdown":case"md":return g(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return g(["tex"],t);case"lua":case"haskell":case"sql":return g(["lua"],t);case"wasm":return g(["wasm"],t);case"vb":case"vba":case"visual-basic":return g(["vb","rem"],t);case"vbnet":return g(["vbnet","rem"],t);case"batch":return g(["rem"],t);case"basic":return g(["rem","f90"],t);case"fsharp":return g(["js","ml"],t);case"ocaml":case"sml":return g(["ml"],t);case"fortran":return g(["f90"],t);case"cobol":return g(["cobol"],t);default:return g(h,t)}}(o,s),a=n.split("\n"),l=Object.fromEntries(s.map((e=>[e.className,{start:0,range:""}]))),i=Object.fromEntries(s.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(s.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(s.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let d=0;d<a.length;){const e=a[d].match(r);if(!e){d+=1;continue}const t=e.slice(1).find((e=>void 0!==e));i[t]?l[i[t]].range+=`${d},`:u[t]?l[u[t]].start=d:m[t]&&(l[m[t]].range+=`${l[m[t]].start}-${d-1},`),a.splice(d,1)}n=a.join("\n");const b={};return Object.entries(l).forEach((e=>{let[t,{range:n}]=e;d()(n).forEach((e=>{b[e]??=[],b[e].push(t)}))})),{lineClassNames:b,code:n}}const x={codeBlockContainer:"codeBlockContainer_Ckt0"};var B=n(4848);function j(e){let{as:t,...n}=e;const o=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[o,s]=e;const c=t[o];c&&"string"==typeof s&&(n[c]=s)})),n}(l());return(0,B.jsx)(t,{...n,style:o,className:(0,c.A)(n.className,x.codeBlockContainer,i.G.common.codeBlock)})}const y={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function v(e){let{children:t,className:n}=e;return(0,B.jsx)(j,{as:"pre",tabIndex:0,className:(0,c.A)(y.codeBlockStandalone,"thin-scrollbar",n),children:(0,B.jsx)("code",{className:y.codeBlockLines,children:t})})}var C=n(5302);const N={attributes:!0,characterData:!0,childList:!0,subtree:!0};function w(e,t){const[n,s]=(0,o.useState)(),c=(0,o.useCallback)((()=>{s(e.current?.closest("[role=tabpanel][hidden]"))}),[e,s]);(0,o.useEffect)((()=>{c()}),[c]),function(e,t,n){void 0===n&&(n=N);const s=(0,C._q)(t),c=(0,C.Be)(n);(0,o.useEffect)((()=>{const t=new MutationObserver(s);return e&&t.observe(e,c),()=>t.disconnect()}),[e,s,c])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),c())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var E=n(8181);const L={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function A(e){let{line:t,classNames:n,showLineNumbers:o,getLineProps:s,getTokenProps:r}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const a=s({line:t,className:(0,c.A)(n,o&&L.codeLine)}),l=t.map(((e,t)=>(0,B.jsx)("span",{...r({token:e})},t)));return(0,B.jsxs)("span",{...a,children:[o?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("span",{className:L.codeLineNumber}),(0,B.jsx)("span",{className:L.codeLineContent,children:l})]}):l,(0,B.jsx)("br",{})]})}var S=n(2032);function T(e){return(0,B.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,B.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function _(e){return(0,B.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,B.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const I={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function $(e){let{code:t,className:n}=e;const[s,r]=(0,o.useState)(!1),a=(0,o.useRef)(void 0),l=(0,o.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const o=document.createElement("textarea"),s=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const c=document.getSelection(),r=c.rangeCount>0&&c.getRangeAt(0);n.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}o.remove(),r&&(c.removeAllRanges(),c.addRange(r)),s&&s.focus()}(t),r(!0),a.current=window.setTimeout((()=>{r(!1)}),1e3)}),[t]);return(0,o.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,B.jsx)("button",{type:"button","aria-label":s?(0,S.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,S.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,S.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.A)("clean-btn",n,I.copyButton,s&&I.copyButtonCopied),onClick:l,children:(0,B.jsxs)("span",{className:I.copyButtonIcons,"aria-hidden":"true",children:[(0,B.jsx)(T,{className:I.copyButtonIcon}),(0,B.jsx)(_,{className:I.copyButtonSuccessIcon})]})})}function W(e){return(0,B.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,B.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const M={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function H(e){let{className:t,onClick:n,isEnabled:o}=e;const s=(0,S.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,B.jsx)("button",{type:"button",onClick:n,className:(0,c.A)("clean-btn",t,o&&M.wordWrapButtonEnabled),"aria-label":s,title:s,children:(0,B.jsx)(W,{className:M.wordWrapButtonIcon,"aria-hidden":"true"})})}function R(e){let{children:t,className:n="",metastring:s,title:r,showLineNumbers:i,language:u}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,a.p)(),b=function(e){return e?.toLowerCase()}(u??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d),f=l(),h=function(){const[e,t]=(0,o.useState)(!1),[n,s]=(0,o.useState)(!1),c=(0,o.useRef)(null),r=(0,o.useCallback)((()=>{const n=c.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[c,e]),a=(0,o.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=c.current,n=e>t||c.current.querySelector("code").hasAttribute("style");s(n)}),[c]);return w(c,a),(0,o.useEffect)((()=>{a()}),[e,a]),(0,o.useEffect)((()=>(window.addEventListener("resize",a,{passive:!0}),()=>{window.removeEventListener("resize",a)})),[a]),{codeBlockRef:c,isEnabled:e,isCodeScrollable:n,toggle:r}}(),g=function(e){return e?.match(m)?.groups.title??""}(s)||r,{lineClassNames:x,code:v}=k(t,{metastring:s,language:b,magicComments:p}),C=i??function(e){return Boolean(e?.includes("showLineNumbers"))}(s);return(0,B.jsxs)(j,{as:"div",className:(0,c.A)(n,b&&!n.includes(`language-${b}`)&&`language-${b}`),children:[g&&(0,B.jsx)("div",{className:y.codeBlockTitle,children:g}),(0,B.jsxs)("div",{className:y.codeBlockContent,children:[(0,B.jsx)(E.f4,{theme:f,code:v,language:b??"text",children:e=>{let{className:t,style:n,tokens:o,getLineProps:s,getTokenProps:r}=e;return(0,B.jsx)("pre",{tabIndex:0,ref:h.codeBlockRef,className:(0,c.A)(t,y.codeBlock,"thin-scrollbar"),style:n,children:(0,B.jsx)("code",{className:(0,c.A)(y.codeBlockLines,C&&y.codeBlockLinesWithNumbering),children:o.map(((e,t)=>(0,B.jsx)(A,{line:e,getLineProps:s,getTokenProps:r,classNames:x[t],showLineNumbers:C},t)))})})}}),(0,B.jsxs)("div",{className:y.buttonGroup,children:[(h.isEnabled||h.isCodeScrollable)&&(0,B.jsx)(H,{className:y.codeButton,onClick:()=>h.toggle(),isEnabled:h.isEnabled}),(0,B.jsx)($,{className:y.codeButton,code:v})]})]})]})}function V(e){let{children:t,...n}=e;const c=(0,s.A)(),r=function(e){return o.Children.toArray(e).some((e=>(0,o.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),a="string"==typeof r?R:v;return(0,B.jsx)(a,{...n,children:r},String(c))}},8426:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,s,c]=t;if(o&&c){o=parseInt(o),c=parseInt(c);const e=o<c?1:-1;"-"!==s&&".."!==s&&"\u2025"!==s||(c+=e);for(let t=o;t!==c;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>r,x:()=>a});var o=n(6540);const s={},c=o.createContext(s);function r(e){const t=o.useContext(c);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/14eb3368.5ecd0fa3.js b/website/assets/js/14eb3368.5ecd0fa3.js new file mode 100644 index 000000000..ff6b26b75 --- /dev/null +++ b/website/assets/js/14eb3368.5ecd0fa3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6969],{4333:(e,t,n)=>{n.d(t,{A:()=>g});n(6540);var s=n(8215),r=n(4717),i=n(5246),a=n(6707),l=n(7880),o=n(2032),c=n(4763),d=n(4848);function u(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const m={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,c.Ay)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(l.A,{"aria-label":(0,o.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,d.jsx)(u,{className:m.breadcrumbHomeIcon})})})}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function x(e){let{children:t,href:n,isLast:s}=e;const r="breadcrumbs__link";return s?(0,d.jsx)("span",{className:r,itemProp:"name",children:t}):n?(0,d.jsx)(l.A,{className:r,href:n,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:r,children:t})}function p(e){let{children:t,active:n,index:r,addMicrodata:i}=e;return(0,d.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,s.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(r+1)})]})}function g(){const e=(0,i.OF)(),t=(0,a.Dt)();return e?(0,d.jsx)("nav",{className:(0,s.A)(r.G.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,o.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,n)=>{const s=n===e.length-1,r="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(p,{active:s,index:n,addMicrodata:!!r,children:(0,d.jsx)(x,{href:r,isLast:s,children:t.label})},n)}))]})}):null}},5985:(e,t,n)=>{n.r(t),n.d(t,{default:()=>V});var s=n(6540),r=n(3523),i=n(5246),a=n(4763),l=n(8215),o=n(7880),c=n(5792);const d=["zero","one","two","few","many","other"];function u(e){return d.filter((t=>e.includes(t)))}const m={locale:"en",pluralForms:u(["one","other"]),select:e=>1===e?"one":"other"};function h(){const{i18n:{currentLocale:e}}=(0,c.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:u(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),m}}),[e])}function b(){const e=h();return{selectMessage:(t,n)=>function(e,t,n){const s=e.split("|");if(1===s.length)return s[0];s.length>n.pluralForms.length&&console.error(`For locale=${n.locale}, a maximum of ${n.pluralForms.length} plural forms are expected (${n.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const r=n.select(t),i=n.pluralForms.indexOf(r);return s[Math.min(i,s.length-1)]}(n,t,e)}}var x=n(7056),p=n(2032),g=n(8445);const v={cardContainer:"cardContainer_fWXF",cardTitle:"cardTitle_rnsV",cardDescription:"cardDescription_PWke"};var f=n(4848);function j(e){let{href:t,children:n}=e;return(0,f.jsx)(o.A,{href:t,className:(0,l.A)("card padding--lg",v.cardContainer),children:n})}function A(e){let{href:t,icon:n,title:s,description:r}=e;return(0,f.jsxs)(j,{href:t,children:[(0,f.jsxs)(g.A,{as:"h2",className:(0,l.A)("text--truncate",v.cardTitle),title:s,children:[n," ",s]}),r&&(0,f.jsx)("p",{className:(0,l.A)("text--truncate",v.cardDescription),title:r,children:r})]})}function N(e){let{item:t}=e;const n=(0,i.Nr)(t),s=function(){const{selectMessage:e}=b();return t=>e(t,(0,p.T)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:t}))}();return n?(0,f.jsx)(A,{href:n,icon:"\ud83d\uddc3\ufe0f",title:t.label,description:t.description??s(t.items.length)}):null}function T(e){let{item:t}=e;const n=(0,x.A)(t.href)?"\ud83d\udcc4\ufe0f":"\ud83d\udd17",s=(0,i.cC)(t.docId??void 0);return(0,f.jsx)(A,{href:t.href,icon:n,title:t.label,description:t.description??s?.description})}function L(e){let{item:t}=e;switch(t.type){case"link":return(0,f.jsx)(T,{item:t});case"category":return(0,f.jsx)(N,{item:t});default:throw new Error(`unknown item type ${JSON.stringify(t)}`)}}function _(e){let{className:t}=e;const n=(0,i.$S)();return(0,f.jsx)(k,{items:n.items,className:t})}function k(e){const{items:t,className:n}=e;if(!t)return(0,f.jsx)(_,{...e});const s=(0,i.d1)(t);return(0,f.jsx)("section",{className:(0,l.A)("row",n),children:s.map(((e,t)=>(0,f.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,f.jsx)(L,{item:e})},t)))})}var y=n(6359),w=n(707),I=n(6073),C=n(4333);const F={generatedIndexPage:"generatedIndexPage_vN6x",list:"list_eTzJ",title:"title_kItE"};function M(e){let{categoryGeneratedIndex:t}=e;return(0,f.jsx)(r.be,{title:t.title,description:t.description,keywords:t.keywords,image:(0,a.Ay)(t.image)})}function P(e){let{categoryGeneratedIndex:t}=e;const n=(0,i.$S)();return(0,f.jsxs)("div",{className:F.generatedIndexPage,children:[(0,f.jsx)(w.A,{}),(0,f.jsx)(C.A,{}),(0,f.jsx)(I.A,{}),(0,f.jsxs)("header",{children:[(0,f.jsx)(g.A,{as:"h1",className:F.title,children:t.title}),t.description&&(0,f.jsx)("p",{children:t.description})]}),(0,f.jsx)("article",{className:"margin-top--lg",children:(0,f.jsx)(k,{items:n.items,className:F.list})}),(0,f.jsx)("footer",{className:"margin-top--lg",children:(0,f.jsx)(y.A,{previous:t.navigation.previous,next:t.navigation.next})})]})}function V(e){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(M,{...e}),(0,f.jsx)(P,{...e})]})}},6359:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(2032),r=n(8215),i=n(7880),a=n(4848);function l(e){const{permalink:t,title:n,subLabel:s,isNext:l}=e;return(0,a.jsxs)(i.A,{className:(0,r.A)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[s&&(0,a.jsx)("div",{className:"pagination-nav__sublabel",children:s}),(0,a.jsx)("div",{className:"pagination-nav__label",children:n})]})}function o(e){const{previous:t,next:n}=e;return(0,a.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,a.jsx)(l,{...t,subLabel:(0,a.jsx)(s.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,a.jsx)(l,{...n,subLabel:(0,a.jsx)(s.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},6073:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(8215),r=n(2032),i=n(4717),a=n(8875),l=n(4848);function o(e){let{className:t}=e;const n=(0,a.r)();return n.badge?(0,l.jsx)("span",{className:(0,s.A)(t,i.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(r.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},707:(e,t,n)=>{n.d(t,{A:()=>p});n(6540);var s=n(8215),r=n(5792),i=n(7880),a=n(2032),l=n(869),o=n(4717),c=n(6220),d=n(8875),u=n(4848);const m={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,u.jsx)(a.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,u.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,u.jsx)(a.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,u.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=m[e.versionMetadata.banner];return(0,u.jsx)(t,{...e})}function b(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,u.jsx)(a.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,u.jsx)("b",{children:(0,u.jsx)(i.A,{to:n,onClick:s,children:(0,u.jsx)(a.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function x(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:i}}=(0,r.A)(),{pluginId:a}=(0,l.vT)({failfast:!0}),{savePreferredVersionName:d}=(0,c.g1)(a),{latestDocSuggestion:m,latestVersionSuggestion:x}=(0,l.HW)(a),p=m??(g=x).docs.find((e=>e.id===g.mainDocId));var g;return(0,u.jsxs)("div",{className:(0,s.A)(t,o.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,u.jsx)("div",{children:(0,u.jsx)(h,{siteTitle:i,versionMetadata:n})}),(0,u.jsx)("div",{className:"margin-top--md",children:(0,u.jsx)(b,{versionLabel:x.label,to:p.path,onClick:()=>d(x.name)})})]})}function p(e){let{className:t}=e;const n=(0,d.r)();return n.banner?(0,u.jsx)(x,{className:t,versionMetadata:n}):null}}}]); \ No newline at end of file diff --git a/website/assets/js/165.60104c8f.js b/website/assets/js/165.60104c8f.js new file mode 100644 index 000000000..a9f947da1 --- /dev/null +++ b/website/assets/js/165.60104c8f.js @@ -0,0 +1,2 @@ +/*! For license information please see 165.60104c8f.js.LICENSE.txt */ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[165],{165:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(l){s=!0,a=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}n.d(t,{A:()=>Xc});var h="undefined"==typeof window?null:window,p=h?h.navigator:null;h&&h.document;var f=r(""),g=r({}),v=r((function(){})),y="undefined"==typeof HTMLElement?"undefined":r(HTMLElement),m=function(e){return e&&e.instanceString&&x(e.instanceString)?e.instanceString():null},b=function(e){return null!=e&&r(e)==f},x=function(e){return null!=e&&r(e)===v},w=function(e){return!S(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},E=function(e){return null!=e&&r(e)===g&&!w(e)&&e.constructor===Object},k=function(e){return null!=e&&r(e)===r(1)&&!isNaN(e)},C=function(e){return"undefined"===y?void 0:null!=e&&e instanceof HTMLElement},S=function(e){return P(e)||D(e)},P=function(e){return"collection"===m(e)&&e._private.single},D=function(e){return"collection"===m(e)&&!e._private.single},T=function(e){return"core"===m(e)},_=function(e){return"stylesheet"===m(e)},M=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},B=function(e){return function(e){return null!=e&&r(e)===g}(e)&&x(e.then)},N=function(e,t){t||(t=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);return e.join("$")});var n=function n(){var r,a=arguments,i=t.apply(this,a),o=n.cache;return(r=o[i])||(r=o[i]=e.apply(this,a)),r};return n.cache={},n},I=N((function(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))})),z=N((function(e){return e.replace(/(-\w)/g,(function(e){return e[1].toUpperCase()}))})),A=N((function(e,t){return e+t[0].toUpperCase()+t.substring(1)}),(function(e,t){return e+"$"+t})),L=function(e){return M(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},O="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",R="rgb[a]?\\(("+O+"[%]?)\\s*,\\s*("+O+"[%]?)\\s*,\\s*("+O+"[%]?)(?:\\s*,\\s*("+O+"))?\\)",V="rgb[a]?\\((?:"+O+"[%]?)\\s*,\\s*(?:"+O+"[%]?)\\s*,\\s*(?:"+O+"[%]?)(?:\\s*,\\s*(?:"+O+"))?\\)",F="hsl[a]?\\(("+O+")\\s*,\\s*("+O+"[%])\\s*,\\s*("+O+"[%])(?:\\s*,\\s*("+O+"))?\\)",j="hsl[a]?\\((?:"+O+")\\s*,\\s*(?:"+O+"[%])\\s*,\\s*(?:"+O+"[%])(?:\\s*,\\s*(?:"+O+"))?\\)",q=function(e,t){return e<t?-1:e>t?1:0},Y=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n<t.length;n++){var r=t[n];if(null!=r)for(var a=Object.keys(r),i=0;i<a.length;i++){var o=a[i];e[o]=r[o]}}return e},X=function(e){return(w(e)?e:null)||function(e){return W[e.toLowerCase()]}(e)||function(e){if((4===e.length||7===e.length)&&"#"===e[0]){var t,n,r,a=16;return 4===e.length?(t=parseInt(e[1]+e[1],a),n=parseInt(e[2]+e[2],a),r=parseInt(e[3]+e[3],a)):(t=parseInt(e[1]+e[2],a),n=parseInt(e[3]+e[4],a),r=parseInt(e[5]+e[6],a)),[t,n,r]}}(e)||function(e){var t,n=new RegExp("^"+R+"$").exec(e);if(n){t=[];for(var r=[],a=1;a<=3;a++){var i=n[a];if("%"===i[i.length-1]&&(r[a]=!0),i=parseFloat(i),r[a]&&(i=i/100*255),i<0||i>255)return;t.push(Math.floor(i))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||l>1)return;t.push(l)}}return t}(e)||function(e){var t,n,r,a,i,o,s,l;function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var c=new RegExp("^"+F+"$").exec(e);if(c){if((n=parseInt(c[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(c[2]))<0||r>100)return;if(r/=100,(a=parseFloat(c[3]))<0||a>100)return;if(a/=100,void 0!==(i=c[4])&&((i=parseFloat(i))<0||i>1))return;if(0===r)o=s=l=Math.round(255*a);else{var d=a<.5?a*(1+r):a+r-a*r,h=2*a-d;o=Math.round(255*u(h,d,n+1/3)),s=Math.round(255*u(h,d,n)),l=Math.round(255*u(h,d,n-1/3))}t=[o,s,l,i]}return t}(e)},W={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},H=function(e){for(var t=e.map,n=e.keys,r=n.length,a=0;a<r;a++){var i=n[a];if(E(i))throw Error("Tried to set map with object key");a<n.length-1?(null==t[i]&&(t[i]={}),t=t[i]):t[i]=e.value}},K=function(e){for(var t=e.map,n=e.keys,r=n.length,a=0;a<r;a++){var i=n[a];if(E(i))throw Error("Tried to get map with object key");if(null==(t=t[i]))return t}return t};var G=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Z="object"==typeof U&&U&&U.Object===Object&&U,$="object"==typeof self&&self&&self.Object===Object&&self,Q=Z||$||Function("return this")(),J=function(){return Q.Date.now()},ee=/\s/;var te=function(e){for(var t=e.length;t--&&ee.test(e.charAt(t)););return t},ne=/^\s+/;var re=function(e){return e?e.slice(0,te(e)+1).replace(ne,""):e},ae=Q.Symbol,ie=Object.prototype,oe=ie.hasOwnProperty,se=ie.toString,le=ae?ae.toStringTag:void 0;var ue=function(e){var t=oe.call(e,le),n=e[le];try{e[le]=void 0;var r=!0}catch(i){}var a=se.call(e);return r&&(t?e[le]=n:delete e[le]),a},ce=Object.prototype.toString;var de=function(e){return ce.call(e)},he=ae?ae.toStringTag:void 0;var pe=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":he&&he in Object(e)?ue(e):de(e)};var fe=function(e){return null!=e&&"object"==typeof e};var ge=function(e){return"symbol"==typeof e||fe(e)&&"[object Symbol]"==pe(e)},ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^0o[0-7]+$/i,be=parseInt;var xe=function(e){if("number"==typeof e)return e;if(ge(e))return NaN;if(G(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=G(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=re(e);var n=ye.test(e);return n||me.test(e)?be(e.slice(2),n?2:8):ve.test(e)?NaN:+e},we=Math.max,Ee=Math.min;var ke=function(e,t,n){var r,a,i,o,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=a;return r=a=void 0,u=t,o=e.apply(i,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=J();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?Ee(n,i-(e-u)):n}(e))}function v(e){return s=void 0,h&&r?p(e):(r=a=void 0,o)}function y(){var e=J(),n=f(e);if(r=arguments,a=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?p(e):o}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),o}return t=xe(t)||0,G(n)&&(c=!!n.leading,i=(d="maxWait"in n)?we(xe(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=a=s=void 0},y.flush=function(){return void 0===s?o:v(J())},y},Ce=h?h.performance:null,Se=Ce&&Ce.now?function(){return Ce.now()}:function(){return Date.now()},Pe=function(){if(h){if(h.requestAnimationFrame)return function(e){h.requestAnimationFrame(e)};if(h.mozRequestAnimationFrame)return function(e){h.mozRequestAnimationFrame(e)};if(h.webkitRequestAnimationFrame)return function(e){h.webkitRequestAnimationFrame(e)};if(h.msRequestAnimationFrame)return function(e){h.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout((function(){e(Se())}),1e3/60)}}(),De=function(e){return Pe(e)},Te=Se,_e=9261,Me=5381,Be=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e;!(t=e.next()).done;)n=65599*n+t.value|0;return n},Ne=function(e){return 65599*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e)+e|0},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me;return(t<<5)+t+e|0},ze=function(e){return 2097152*e[0]+e[1]},Ae=function(e,t){return[Ne(e[0],t[0]),Ie(e[1],t[1])]},Le=function(e,t){var n={value:0,done:!1},r=0,a=e.length;return Be({next:function(){return r<a?n.value=e.charCodeAt(r++):n.done=!0,n}},t)},Oe=function(){return Re(arguments)},Re=function(e){for(var t,n=0;n<e.length;n++){var r=e[n];t=0===n?Le(r):Le(r,t)}return t},Ve=!0,Fe=null!=console.warn,je=null!=console.trace,qe=Number.MAX_SAFE_INTEGER||9007199254740991,Ye=function(){return!0},Xe=function(){return!1},We=function(){return 0},He=function(){},Ke=function(e){throw new Error(e)},Ge=function(e){if(void 0===e)return Ve;Ve=!!e},Ue=function(e){Ge()&&(Fe?console.warn(e):(console.log(e),je&&console.trace()))},Ze=function(e){return null==e?e:w(e)?e.slice():E(e)?function(e){return Y({},e)}(e):e},$e=function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t},Qe={},Je=function(){return Qe},et=function(e){var t=Object.keys(e);return function(n){for(var r={},a=0;a<t.length;a++){var i=t[a],o=null==n?void 0:n[i];r[i]=void 0===o?e[i]:o}return r}},tt=function(e,t,n){for(var r=e.length-1;r>=0&&(e[r]!==t||(e.splice(r,1),!n));r--);},nt=function(e){e.splice(0,e.length)},rt=function(e,t,n){return n&&(t=A(n,t)),e[t]},at=function(e,t,n,r){n&&(t=A(n,t)),e[t]=r},it="undefined"!=typeof Map?Map:function(){function e(){a(this,e),this._obj={}}return o(e,[{key:"set",value:function(e,t){return this._obj[e]=t,this}},{key:"delete",value:function(e){return this._obj[e]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(e){return void 0!==this._obj[e]}},{key:"get",value:function(e){return this._obj[e]}}]),e}(),ot=function(){function e(t){if(a(this,e),this._obj=Object.create(null),this.size=0,null!=t){var n;n=null!=t.instanceString&&t.instanceString()===this.instanceString()?t.toArray():t;for(var r=0;r<n.length;r++)this.add(n[r])}}return o(e,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(e){var t=this._obj;1!==t[e]&&(t[e]=1,this.size++)}},{key:"delete",value:function(e){var t=this._obj;1===t[e]&&(t[e]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(e){return 1===this._obj[e]}},{key:"toArray",value:function(){var e=this;return Object.keys(this._obj).filter((function(t){return e.has(t)}))}},{key:"forEach",value:function(e,t){return this.toArray().forEach(e,t)}}]),e}(),st="undefined"!==("undefined"==typeof Set?"undefined":r(Set))?Set:ot,lt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&T(e)){var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new st,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==a.position.x&&(a.position.x=0),null==a.position.y&&(a.position.y=0),t.renderedPosition){var i=t.renderedPosition,o=e.pan(),s=e.zoom();a.position={x:(i.x-o.x)/s,y:(i.y-o.y)/s}}var l=[];w(t.classes)?l=t.classes:b(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,c=l.length;u<c;u++){var d=l[u];d&&""!==d&&a.classes.add(d)}this.createEmitter();var h=t.style||t.css;h&&(Ue("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(h)),(void 0===n||n)&&this.restore()}else Ke("An element must be of type `nodes` or `edges`; you specified `"+r+"`")}else Ke("An element must have a core reference and parameters set")},ut=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(t,n,r){var a;E(t)&&!S(t)&&(t=(a=t).roots||a.root,n=a.visit,r=a.directed),r=2!==arguments.length||x(n)?r:n,n=x(n)?n:function(){};for(var i,o=this._private.cy,s=t=b(t)?this.filter(t):t,l=[],u=[],c={},d={},h={},p=0,f=this.byGroup(),g=f.nodes,v=f.edges,y=0;y<s.length;y++){var m=s[y],w=m.id();m.isNode()&&(l.unshift(m),e.bfs&&(h[w]=!0,u.push(m)),d[w]=0)}for(var k=function(){var t=e.bfs?l.shift():l.pop(),a=t.id();if(e.dfs){if(h[a])return"continue";h[a]=!0,u.push(t)}var o,s=d[a],f=c[a],y=null!=f?f.source():null,m=null!=f?f.target():null,b=null==f?void 0:t.same(y)?m[0]:y[0];if(!0===(o=n(t,f,b,p++,s)))return i=t,"break";if(!1===o)return"break";for(var x=t.connectedEdges().filter((function(e){return(!r||e.source().same(t))&&v.has(e)})),w=0;w<x.length;w++){var E=x[w],k=E.connectedNodes().filter((function(e){return!e.same(t)&&g.has(e)})),C=k.id();0===k.length||h[C]||(k=k[0],l.push(k),e.bfs&&(h[C]=!0,u.push(k)),c[C]=E,d[C]=d[a]+1)}};0!==l.length;){var C=k();if("continue"!==C&&"break"===C)break}for(var P=o.collection(),D=0;D<u.length;D++){var T=u[D],_=c[T.id()];null!=_&&P.push(_),P.push(T)}return{path:o.collection(P),found:o.collection(i)}}},ct={breadthFirstSearch:ut({bfs:!0}),depthFirstSearch:ut({dfs:!0})};ct.bfs=ct.breadthFirstSearch,ct.dfs=ct.depthFirstSearch;var dt=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){(function(){var t,n,r,a,i,o,s,l,u,c,d,h,p,f,g;r=Math.floor,c=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},u=function(e,t,a,i,o){var s;if(null==a&&(a=0),null==o&&(o=n),a<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);a<i;)o(t,e[s=r((a+i)/2)])<0?i=s:a=s+1;return[].splice.apply(e,[a,a-a].concat(t)),t},o=function(e,t,r){return null==r&&(r=n),e.push(t),f(e,0,e.length-1,r)},i=function(e,t){var r,a;return null==t&&(t=n),r=e.pop(),e.length?(a=e[0],e[0]=r,g(e,0,t)):a=r,a},l=function(e,t,r){var a;return null==r&&(r=n),a=e[0],e[0]=t,g(e,0,r),a},s=function(e,t,r){var a;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(a=[e[0],t])[0],e[0]=a[1],g(e,0,r)),t},a=function(e,t){var a,i,o,s,l,u;for(null==t&&(t=n),l=[],i=0,o=(s=function(){u=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)u.push(t);return u}.apply(this).reverse()).length;i<o;i++)a=s[i],l.push(g(e,a,t));return l},p=function(e,t,r){var a;if(null==r&&(r=n),-1!==(a=e.indexOf(t)))return f(e,0,a,r),g(e,a,r)},d=function(e,t,r){var i,o,l,u,c;if(null==r&&(r=n),!(o=e.slice(0,t)).length)return o;for(a(o,r),l=0,u=(c=e.slice(t)).length;l<u;l++)i=c[l],s(o,i,r);return o.sort(r).reverse()},h=function(e,t,r){var o,s,l,d,h,p,f,g,v;if(null==r&&(r=n),10*t<=e.length){if(!(l=e.slice(0,t).sort(r)).length)return l;for(s=l[l.length-1],d=0,p=(f=e.slice(t)).length;d<p;d++)r(o=f[d],s)<0&&(u(l,o,0,null,r),l.pop(),s=l[l.length-1]);return l}for(a(e,r),v=[],h=0,g=c(t,e.length);0<=g?h<g:h>g;0<=g?++h:--h)v.push(i(e,r));return v},f=function(e,t,r,a){var i,o,s;for(null==a&&(a=n),i=e[r];r>t&&a(i,o=e[s=r-1>>1])<0;)e[r]=o,r=s;return e[r]=i},g=function(e,t,r){var a,i,o,s,l;for(null==r&&(r=n),i=e.length,l=t,o=e[t],a=2*t+1;a<i;)(s=a+1)<i&&!(r(e[a],e[s])<0)&&(a=s),e[t]=e[a],a=2*(t=a)+1;return e[t]=o,f(e,l,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=o,e.pop=i,e.replace=l,e.pushpop=s,e.heapify=a,e.updateItem=p,e.nlargest=d,e.nsmallest=h,e.prototype.push=function(e){return o(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return s(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return p(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),e.exports=t}).call(U)})),ht=dt,pt=et({root:null,weight:function(e){return 1},directed:!1}),ft={dijkstra:function(e){if(!E(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var n=pt(e),r=n.root,a=n.weight,i=n.directed,o=this,s=a,l=b(r)?this.filter(r)[0]:r[0],u={},c={},d={},h=this.byGroup(),p=h.nodes,f=h.edges;f.unmergeBy((function(e){return e.isLoop()}));for(var g=function(e){return u[e.id()]},v=function(e,t){u[e.id()]=t,y.updateItem(e)},y=new ht((function(e,t){return g(e)-g(t)})),m=0;m<p.length;m++){var x=p[m];u[x.id()]=x.same(l)?0:1/0,y.push(x)}for(var w=function(e,t){for(var n,r=(i?e.edgesTo(t):e.edgesWith(t)).intersect(f),a=1/0,o=0;o<r.length;o++){var l=r[o],u=s(l);(u<a||!n)&&(a=u,n=l)}return{edge:n,dist:a}};y.size()>0;){var k=y.pop(),C=g(k),S=k.id();if(d[S]=C,C!==1/0)for(var P=k.neighborhood().intersect(p),D=0;D<P.length;D++){var T=P[D],_=T.id(),M=w(k,T),B=C+M.dist;B<g(T)&&(v(T,B),c[_]={node:k,edge:M.edge})}}return{distanceTo:function(e){var t=b(e)?p.filter(e)[0]:e[0];return d[t.id()]},pathTo:function(e){var t=b(e)?p.filter(e)[0]:e[0],n=[],r=t,a=r.id();if(t.length>0)for(n.unshift(t);c[a];){var i=c[a];n.unshift(i.edge),n.unshift(i.node),a=(r=i.node).id()}return o.spawn(n)}}}},gt={kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,a=n.length,i=new Array(a),o=n,s=function(e){for(var t=0;t<i.length;t++){if(i[t].has(e))return t}},l=0;l<a;l++)i[l]=this.spawn(n[l]);for(var u=r.sort((function(t,n){return e(t)-e(n)})),c=0;c<u.length;c++){var d=u[c],h=d.source()[0],p=d.target()[0],f=s(h),g=s(p),v=i[f],y=i[g];f!==g&&(o.merge(d),v.merge(y),i.splice(g,1))}return o}},vt=et({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),yt={aStar:function(e){var t=this.cy(),n=vt(e),r=n.root,a=n.goal,i=n.heuristic,o=n.directed,s=n.weight;r=t.collection(r)[0],a=t.collection(a)[0];var l,u,c=r.id(),d=a.id(),h={},p={},f={},g=new ht((function(e,t){return p[e.id()]-p[t.id()]})),v=new st,y={},m={},b=function(e,t){g.push(e),v.add(t)};b(r,c),h[c]=0,p[c]=i(r);for(var x,w=0;g.size()>0;){if(l=g.pop(),u=l.id(),v.delete(u),w++,u===d){for(var E=[],k=a,C=d,S=m[C];E.unshift(k),null!=S&&E.unshift(S),null!=(k=y[C]);)S=m[C=k.id()];return{found:!0,distance:h[u],path:this.spawn(E),steps:w}}f[u]=!0;for(var P=l._private.edges,D=0;D<P.length;D++){var T=P[D];if(this.hasElementWithId(T.id())&&(!o||T.data("source")===u)){var _=T.source(),M=T.target(),B=_.id()!==u?_:M,N=B.id();if(this.hasElementWithId(N)&&!f[N]){var I=h[u]+s(T);x=N,v.has(x)?I<h[N]&&(h[N]=I,p[N]=I+i(B),y[N]=l,m[N]=T):(h[N]=I,p[N]=I+i(B),b(B,N),y[N]=l,m[N]=T)}}}}return{found:!1,distance:void 0,path:void 0,steps:w}}},mt=et({weight:function(e){return 1},directed:!1}),bt={floydWarshall:function(e){for(var t=this.cy(),n=mt(e),r=n.weight,a=n.directed,i=r,o=this.byGroup(),s=o.nodes,l=o.edges,u=s.length,c=u*u,d=function(e){return s.indexOf(e)},h=function(e){return s[e]},p=new Array(c),f=0;f<c;f++){var g=f%u,v=(f-g)/u;p[f]=v===g?0:1/0}for(var y=new Array(c),m=new Array(c),x=0;x<l.length;x++){var w=l[x],E=w.source()[0],k=w.target()[0];if(E!==k){var C=d(E),S=d(k),P=C*u+S,D=i(w);if(p[P]>D&&(p[P]=D,y[P]=S,m[P]=w),!a){var T=S*u+C;!a&&p[T]>D&&(p[T]=D,y[T]=C,m[T]=w)}}}for(var _=0;_<u;_++)for(var M=0;M<u;M++)for(var B=M*u+_,N=0;N<u;N++){var I=M*u+N,z=_*u+N;p[B]+p[z]<p[I]&&(p[I]=p[B]+p[z],y[I]=y[B])}var A=function(e){return d(function(e){return(b(e)?t.filter(e):e)[0]}(e))},L={distance:function(e,t){var n=A(e),r=A(t);return p[n*u+r]},path:function(e,n){var r=A(e),a=A(n),i=h(r);if(r===a)return i.collection();if(null==y[r*u+a])return t.collection();var o,s=t.collection(),l=r;for(s.merge(i);r!==a;)l=r,r=y[r*u+a],o=m[l*u+r],s.merge(o),s.merge(h(r));return s}};return L}},xt=et({weight:function(e){return 1},directed:!1,root:null}),wt={bellmanFord:function(e){var t=this,n=xt(e),r=n.weight,a=n.directed,i=n.root,o=r,s=this,l=this.cy(),u=this.byGroup(),c=u.edges,d=u.nodes,h=d.length,p=new it,f=!1,g=[];i=l.collection(i)[0],c.unmergeBy((function(e){return e.isLoop()}));for(var v=c.length,y=function(e){var t=p.get(e.id());return t||(t={},p.set(e.id(),t)),t},m=function(e){return(b(e)?l.$(e):e)[0]},x=0;x<h;x++){var w=d[x],E=y(w);w.same(i)?E.dist=0:E.dist=1/0,E.pred=null,E.edge=null}for(var k=!1,C=function(e,t,n,r,a,i){var o=r.dist+i;o<a.dist&&!n.same(r.edge)&&(a.dist=o,a.pred=e,a.edge=n,k=!0)},S=1;S<h;S++){k=!1;for(var P=0;P<v;P++){var D=c[P],T=D.source(),_=D.target(),M=o(D),B=y(T),N=y(_);C(T,0,D,B,N,M),a||C(_,0,D,N,B,M)}if(!k)break}if(k)for(var I=[],z=0;z<v;z++){var A=c[z],L=A.source(),O=A.target(),R=o(A),V=y(L).dist,F=y(O).dist;if(V+R<F||!a&&F+R<V){if(f||(Ue("Graph contains a negative weight cycle for Bellman-Ford"),f=!0),!1===e.findNegativeWeightCycles)break;var j=[];V+R<F&&j.push(L),!a&&F+R<V&&j.push(O);for(var q=j.length,Y=0;Y<q;Y++){var X=j[Y],W=[X];W.push(y(X).edge);for(var H=y(X).pred;-1===W.indexOf(H);)W.push(H),W.push(y(H).edge),H=y(H).pred;for(var K=(W=W.slice(W.indexOf(H)))[0].id(),G=0,U=2;U<W.length;U+=2)W[U].id()<K&&(K=W[U].id(),G=U);(W=W.slice(G).concat(W.slice(0,G))).push(W[0]);var Z=W.map((function(e){return e.id()})).join(",");-1===I.indexOf(Z)&&(g.push(s.spawn(W)),I.push(Z))}}}return{distanceTo:function(e){return y(m(e)).dist},pathTo:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,r=[],a=m(e);;){if(null==a)return t.spawn();var o=y(a),l=o.edge,u=o.pred;if(r.unshift(a[0]),a.same(n)&&r.length>0)break;null!=l&&r.unshift(l),a=u}return s.spawn(r)},hasNegativeWeightCycle:f,negativeWeightCycles:g}}},Et=Math.sqrt(2),kt=function(e,t,n){0===n.length&&Ke("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],a=r[1],i=r[2],o=t[a],s=t[i],l=n,u=l.length-1;u>=0;u--){var c=l[u],d=c[1],h=c[2];(t[d]===o&&t[h]===s||t[d]===s&&t[h]===o)&&l.splice(u,1)}for(var p=0;p<l.length;p++){var f=l[p];f[1]===s?(l[p]=f.slice(),l[p][1]=o):f[2]===s&&(l[p]=f.slice(),l[p][2]=o)}for(var g=0;g<t.length;g++)t[g]===s&&(t[g]=o);return l},Ct=function(e,t,n,r){for(;n>r;){var a=Math.floor(Math.random()*t.length);t=kt(a,e,t),n--}return t},St={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy((function(e){return e.isLoop()}));var a=n.length,i=r.length,o=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),s=Math.floor(a/Et);if(!(a<2)){for(var l=[],u=0;u<i;u++){var c=r[u];l.push([u,n.indexOf(c.source()),n.indexOf(c.target())])}for(var d=1/0,h=[],p=new Array(a),f=new Array(a),g=new Array(a),v=function(e,t){for(var n=0;n<a;n++)t[n]=e[n]},y=0;y<=o;y++){for(var m=0;m<a;m++)f[m]=m;var b=Ct(f,l.slice(),a,s),x=b.slice();v(f,g);var w=Ct(f,b,s,2),E=Ct(g,x,s,2);w.length<=E.length&&w.length<d?(d=w.length,h=w,v(f,p)):E.length<=w.length&&E.length<d&&(d=E.length,h=E,v(g,p))}for(var k=this.spawn(h.map((function(e){return r[e[0]]}))),C=this.spawn(),S=this.spawn(),P=p[0],D=0;D<p.length;D++){var T=p[D],_=n[D];T===P?C.merge(_):S.merge(_)}var M=function(t){var n=e.spawn();return t.forEach((function(t){n.merge(t),t.connectedEdges().forEach((function(t){e.contains(t)&&!k.contains(t)&&n.merge(t)}))})),n},B=[M(C),M(S)];return{cut:k,components:B,partition1:C,partition2:S}}Ke("At least 2 nodes are required for Karger-Stein algorithm")}},Pt=function(e,t,n){return{x:e.x*t+n.x,y:e.y*t+n.y}},Dt=function(e,t,n){return{x:(e.x-n.x)/t,y:(e.y-n.y)/t}},Tt=function(e){return{x:e[0],y:e[1]}},_t=function(e,t){return Math.atan2(t,e)-Math.PI/2},Mt=Math.log2||function(e){return Math.log(e)/Math.log(2)},Bt=function(e){return e>0?1:e<0?-1:0},Nt=function(e,t){return Math.sqrt(It(e,t))},It=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},zt=function(e){for(var t=e.length,n=0,r=0;r<t;r++)n+=e[r];for(var a=0;a<t;a++)e[a]=e[a]/n;return e},At=function(e,t,n,r){return(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n},Lt=function(e,t,n,r){return{x:At(e.x,t.x,n.x,r),y:At(e.y,t.y,n.y,r)}},Ot=function(e,t,n){return Math.max(e,Math.min(n,t))},Rt=function(e){if(null==e)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=e.x1&&null!=e.y1){if(null!=e.x2&&null!=e.y2&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Vt=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Ft=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qt=function(e){var t,n,r,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===i.length)t=n=r=a=i[0];else if(2===i.length)t=r=i[0],a=n=i[1];else if(4===i.length){var o=l(i,4);t=o[0],n=o[1],r=o[2],a=o[3]}return e.x1-=a,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Yt=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Xt=function(e,t){return!(e.x1>t.x2)&&(!(t.x1>e.x2)&&(!(e.x2<t.x1)&&(!(t.x2<e.x1)&&(!(e.y2<t.y1)&&(!(t.y2<e.y1)&&(!(e.y1>t.y2)&&!(t.y1>e.y2)))))))},Wt=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},Ht=function(e,t){return Wt(e,t.x1,t.y1)&&Wt(e,t.x2,t.y2)},Kt=function(e,t,n,r,a,i,o){var s,l,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",c="auto"===u?hn(a,i):u,d=a/2,h=i/2,p=(c=Math.min(c,d,h))!==d,f=c!==h;if(p){var g=r-h-o;if((s=on(e,t,n,r,n-d+c-o,g,n+d-c+o,g,!1)).length>0)return s}if(f){var v=n+d+o;if((s=on(e,t,n,r,v,r-h+c-o,v,r+h-c+o,!1)).length>0)return s}if(p){var y=r+h+o;if((s=on(e,t,n,r,n-d+c-o,y,n+d-c+o,y,!1)).length>0)return s}if(f){var m=n-d-o;if((s=on(e,t,n,r,m,r-h+c-o,m,r+h-c+o,!1)).length>0)return s}var b=n-d+c,x=r-h+c;if((l=rn(e,t,n,r,b,x,c+o)).length>0&&l[0]<=b&&l[1]<=x)return[l[0],l[1]];var w=n+d-c,E=r-h+c;if((l=rn(e,t,n,r,w,E,c+o)).length>0&&l[0]>=w&&l[1]<=E)return[l[0],l[1]];var k=n+d-c,C=r+h-c;if((l=rn(e,t,n,r,k,C,c+o)).length>0&&l[0]>=k&&l[1]>=C)return[l[0],l[1]];var S=n-d+c,P=r+h-c;return(l=rn(e,t,n,r,S,P,c+o)).length>0&&l[0]<=S&&l[1]>=P?[l[0],l[1]]:[]},Gt=function(e,t,n,r,a,i,o){var s=o,l=Math.min(n,a),u=Math.max(n,a),c=Math.min(r,i),d=Math.max(r,i);return l-s<=e&&e<=u+s&&c-s<=t&&t<=d+s},Ut=function(e,t,n,r,a,i,o,s,l){var u=Math.min(n,o,a)-l,c=Math.max(n,o,a)+l,d=Math.min(r,s,i)-l,h=Math.max(r,s,i)+l;return!(e<u||e>c||t<d||t>h)},Zt=function(e,t,n,r,a,i,o,s){var l=[];!function(e,t,n,r,a){var i,o,s,l,u,c,d,h;0===e&&(e=1e-5),s=-27*(r/=e)+(t/=e)*(9*(n/=e)-t*t*2),i=(o=(3*n-t*t)/9)*o*o+(s/=54)*s,a[1]=0,d=t/3,i>0?(u=(u=s+Math.sqrt(i))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),c=(c=s-Math.sqrt(i))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),a[0]=-d+u+c,d+=(u+c)/2,a[4]=a[2]=-d,d=Math.sqrt(3)*(-c+u)/2,a[3]=d,a[5]=-d):(a[5]=a[3]=0,0===i?(h=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),a[0]=2*h-d,a[4]=a[2]=-(h+d)):(l=(o=-o)*o*o,l=Math.acos(s/Math.sqrt(l)),h=2*Math.sqrt(o),a[0]=-d+h*Math.cos(l/3),a[2]=-d+h*Math.cos((l+2*Math.PI)/3),a[4]=-d+h*Math.cos((l+4*Math.PI)/3)))}(1*n*n-4*n*a+2*n*o+4*a*a-4*a*o+o*o+r*r-4*r*i+2*r*s+4*i*i-4*i*s+s*s,9*n*a-3*n*n-3*n*o-6*a*a+3*a*o+9*r*i-3*r*r-3*r*s-6*i*i+3*i*s,3*n*n-6*n*a+n*o-n*e+2*a*a+2*a*e-o*e+3*r*r-6*r*i+r*s-r*t+2*i*i+2*i*t-s*t,1*n*a-n*n+n*e-a*e+r*i-r*r+r*t-i*t,l);for(var u=[],c=0;c<6;c+=2)Math.abs(l[c+1])<1e-7&&l[c]>=0&&l[c]<=1&&u.push(l[c]);u.push(1),u.push(0);for(var d,h,p,f=-1,g=0;g<u.length;g++)d=Math.pow(1-u[g],2)*n+2*(1-u[g])*u[g]*a+u[g]*u[g]*o,h=Math.pow(1-u[g],2)*r+2*(1-u[g])*u[g]*i+u[g]*u[g]*s,p=Math.pow(d-e,2)+Math.pow(h-t,2),f>=0?p<f&&(f=p):f=p;return f},$t=function(e,t,n,r,a,i){var o=[e-n,t-r],s=[a-n,i-r],l=s[0]*s[0]+s[1]*s[1],u=o[0]*o[0]+o[1]*o[1],c=o[0]*s[0]+o[1]*s[1],d=c*c/l;return c<0?u:d>l?(e-a)*(e-a)+(t-i)*(t-i):u-d},Qt=function(e,t,n){for(var r,a,i,o,s=0,l=0;l<n.length/2;l++)if(r=n[2*l],a=n[2*l+1],l+1<n.length/2?(i=n[2*(l+1)],o=n[2*(l+1)+1]):(i=n[2*(l+1-n.length/2)],o=n[2*(l+1-n.length/2)+1]),r==e&&i==e);else{if(!(r>=e&&e>=i||r<=e&&e<=i))continue;(e-r)/(i-r)*(o-a)+a>t&&s++}return s%2!=0},Jt=function(e,t,n,r,a,i,o,s,l){var u,c=new Array(n.length);null!=s[0]?(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2):u=s;for(var d,h=Math.cos(-u),p=Math.sin(-u),f=0;f<c.length/2;f++)c[2*f]=i/2*(n[2*f]*h-n[2*f+1]*p),c[2*f+1]=o/2*(n[2*f+1]*h+n[2*f]*p),c[2*f]+=r,c[2*f+1]+=a;if(l>0){var g=tn(c,-l);d=en(g)}else d=c;return Qt(e,t,d)},en=function(e){for(var t,n,r,a,i,o,s,l,u=new Array(e.length/2),c=0;c<e.length/4;c++){t=e[4*c],n=e[4*c+1],r=e[4*c+2],a=e[4*c+3],c<e.length/4-1?(i=e[4*(c+1)],o=e[4*(c+1)+1],s=e[4*(c+1)+2],l=e[4*(c+1)+3]):(i=e[0],o=e[1],s=e[2],l=e[3]);var d=on(t,n,r,a,i,o,s,l,!0);u[2*c]=d[0],u[2*c+1]=d[1]}return u},tn=function(e,t){for(var n,r,a,i,o=new Array(2*e.length),s=0;s<e.length/2;s++){n=e[2*s],r=e[2*s+1],s<e.length/2-1?(a=e[2*(s+1)],i=e[2*(s+1)+1]):(a=e[0],i=e[1]);var l=i-r,u=-(a-n),c=Math.sqrt(l*l+u*u),d=l/c,h=u/c;o[4*s]=n+d*t,o[4*s+1]=r+h*t,o[4*s+2]=a+d*t,o[4*s+3]=i+h*t}return o},nn=function(e,t,n,r,a,i,o){return e-=a,t-=i,(e/=n/2+o)*e+(t/=r/2+o)*t<=1},rn=function(e,t,n,r,a,i,o){var s=[n-e,r-t],l=[e-a,t-i],u=s[0]*s[0]+s[1]*s[1],c=2*(l[0]*s[0]+l[1]*s[1]),d=c*c-4*u*(l[0]*l[0]+l[1]*l[1]-o*o);if(d<0)return[];var h=(-c+Math.sqrt(d))/(2*u),p=(-c-Math.sqrt(d))/(2*u),f=Math.min(h,p),g=Math.max(h,p),v=[];if(f>=0&&f<=1&&v.push(f),g>=0&&g<=1&&v.push(g),0===v.length)return[];var y=v[0]*s[0]+e,m=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,m]:[y,m,v[1]*s[0]+e,v[1]*s[1]+t]:[y,m]},an=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},on=function(e,t,n,r,a,i,o,s,l){var u=e-a,c=n-e,d=o-a,h=t-i,p=r-t,f=s-i,g=d*h-f*u,v=c*h-p*u,y=f*c-d*p;if(0!==y){var m=g/y,b=v/y,x=-.001;return x<=m&&m<=1.001&&x<=b&&b<=1.001||l?[e+m*c,t+m*p]:[]}return 0===g||0===v?an(e,n,o)===o?[o,s]:an(e,n,a)===a?[a,i]:an(a,o,n)===n?[n,r]:[]:[]},sn=function(e,t,n,r,a,i,o,s){var l,u,c,d,h,p,f=[],g=new Array(n.length),v=!0;if(null==i&&(v=!1),v){for(var y=0;y<g.length/2;y++)g[2*y]=n[2*y]*i+r,g[2*y+1]=n[2*y+1]*o+a;if(s>0){var m=tn(g,-s);u=en(m)}else u=g}else u=n;for(var b=0;b<u.length/2;b++)c=u[2*b],d=u[2*b+1],b<u.length/2-1?(h=u[2*(b+1)],p=u[2*(b+1)+1]):(h=u[0],p=u[1]),0!==(l=on(e,t,r,a,c,d,h,p)).length&&f.push(l[0],l[1]);return f},ln=function(e,t,n){var r=[e[0]-t[0],e[1]-t[1]],a=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i=(a-n)/a;return i<0&&(i=1e-5),[t[0]+i*r[0],t[1]+i*r[1]]},un=function(e,t){var n=dn(e,t);return n=cn(n)},cn=function(e){for(var t,n,r=e.length/2,a=1/0,i=1/0,o=-1/0,s=-1/0,l=0;l<r;l++)t=e[2*l],n=e[2*l+1],a=Math.min(a,t),o=Math.max(o,t),i=Math.min(i,n),s=Math.max(s,n);for(var u=2/(o-a),c=2/(s-i),d=0;d<r;d++)t=e[2*d]=e[2*d]*u,n=e[2*d+1]=e[2*d+1]*c,a=Math.min(a,t),o=Math.max(o,t),i=Math.min(i,n),s=Math.max(s,n);if(i<-1)for(var h=0;h<r;h++)n=e[2*h+1]=e[2*h+1]+(-1-i);return e},dn=function(e,t){var n=1/e*2*Math.PI,r=e%2==0?Math.PI/2+n/2:Math.PI/2;r+=t;for(var a,i=new Array(2*e),o=0;o<e;o++)a=o*n+r,i[2*o]=Math.cos(a),i[2*o+1]=Math.sin(-a);return i},hn=function(e,t){return Math.min(e/4,t/4,8)},pn=function(e,t){return Math.min(e/10,t/10,8)},fn=function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}},gn=et({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),vn={pageRank:function(e){for(var t=gn(e),n=t.dampingFactor,r=t.precision,a=t.iterations,i=t.weight,o=this._private.cy,s=this.byGroup(),l=s.nodes,u=s.edges,c=l.length,d=c*c,h=u.length,p=new Array(d),f=new Array(c),g=(1-n)/c,v=0;v<c;v++){for(var y=0;y<c;y++){p[v*c+y]=0}f[v]=0}for(var m=0;m<h;m++){var b=u[m],x=b.data("source"),w=b.data("target");if(x!==w){var E=l.indexOfId(x),k=l.indexOfId(w),C=i(b);p[k*c+E]+=C,f[E]+=C}}for(var S=1/c+g,P=0;P<c;P++)if(0===f[P])for(var D=0;D<c;D++){p[D*c+P]=S}else for(var T=0;T<c;T++){var _=T*c+P;p[_]=p[_]/f[P]+g}for(var M,B=new Array(c),N=new Array(c),I=0;I<c;I++)B[I]=1;for(var z=0;z<a;z++){for(var A=0;A<c;A++)N[A]=0;for(var L=0;L<c;L++)for(var O=0;O<c;O++){var R=L*c+O;N[L]+=p[R]*B[O]}zt(N),M=B,B=N,N=M;for(var V=0,F=0;F<c;F++){var j=M[F]-B[F];V+=j*j}if(V<r)break}return{rank:function(e){return e=o.collection(e)[0],B[l.indexOf(e)]}}}},yn=et({root:null,weight:function(e){return 1},directed:!1,alpha:0}),mn={degreeCentralityNormalized:function(e){e=yn(e);var t=this.cy(),n=this.nodes(),r=n.length;if(e.directed){for(var a={},i={},o=0,s=0,l=0;l<r;l++){var u=n[l],c=u.id();e.root=u;var d=this.degreeCentrality(e);o<d.indegree&&(o=d.indegree),s<d.outdegree&&(s=d.outdegree),a[c]=d.indegree,i[c]=d.outdegree}return{indegree:function(e){return 0==o?0:(b(e)&&(e=t.filter(e)),a[e.id()]/o)},outdegree:function(e){return 0===s?0:(b(e)&&(e=t.filter(e)),i[e.id()]/s)}}}for(var h={},p=0,f=0;f<r;f++){var g=n[f];e.root=g;var v=this.degreeCentrality(e);p<v.degree&&(p=v.degree),h[g.id()]=v.degree}return{degree:function(e){return 0===p?0:(b(e)&&(e=t.filter(e)),h[e.id()]/p)}}},degreeCentrality:function(e){e=yn(e);var t=this.cy(),n=this,r=e,a=r.root,i=r.weight,o=r.directed,s=r.alpha;if(a=t.collection(a)[0],o){for(var l=a.connectedEdges(),u=l.filter((function(e){return e.target().same(a)&&n.has(e)})),c=l.filter((function(e){return e.source().same(a)&&n.has(e)})),d=u.length,h=c.length,p=0,f=0,g=0;g<u.length;g++)p+=i(u[g]);for(var v=0;v<c.length;v++)f+=i(c[v]);return{indegree:Math.pow(d,1-s)*Math.pow(p,s),outdegree:Math.pow(h,1-s)*Math.pow(f,s)}}for(var y=a.connectedEdges().intersection(n),m=y.length,b=0,x=0;x<y.length;x++)b+=i(y[x]);return{degree:Math.pow(m,1-s)*Math.pow(b,s)}}};mn.dc=mn.degreeCentrality,mn.dcn=mn.degreeCentralityNormalised=mn.degreeCentralityNormalized;var bn=et({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),xn={closenessCentralityNormalized:function(e){for(var t=bn(e),n=t.harmonic,r=t.weight,a=t.directed,i=this.cy(),o={},s=0,l=this.nodes(),u=this.floydWarshall({weight:r,directed:a}),c=0;c<l.length;c++){for(var d=0,h=l[c],p=0;p<l.length;p++)if(c!==p){var f=u.distance(h,l[p]);d+=n?1/f:f}n||(d=1/d),s<d&&(s=d),o[h.id()]=d}return{closeness:function(e){return 0==s?0:(e=b(e)?i.filter(e)[0].id():e.id(),o[e]/s)}}},closenessCentrality:function(e){var t=bn(e),n=t.root,r=t.weight,a=t.directed,i=t.harmonic;n=this.filter(n)[0];for(var o=this.dijkstra({root:n,weight:r,directed:a}),s=0,l=this.nodes(),u=0;u<l.length;u++){var c=l[u];if(!c.same(n)){var d=o.distanceTo(c);s+=i?1/d:d}}return i?s:1/s}};xn.cc=xn.closenessCentrality,xn.ccn=xn.closenessCentralityNormalised=xn.closenessCentralityNormalized;var wn=et({weight:null,directed:!1}),En={betweennessCentrality:function(e){for(var t=wn(e),n=t.directed,r=t.weight,a=null!=r,i=this.cy(),o=this.nodes(),s={},l={},u=0,c=function(e,t){l[e]=t,t>u&&(u=t)},d=function(e){return l[e]},h=0;h<o.length;h++){var p=o[h],f=p.id();s[f]=n?p.outgoers().nodes():p.openNeighborhood().nodes(),c(f,0)}for(var g=function(e){for(var t=o[e].id(),n=[],l={},u={},h={},p=new ht((function(e,t){return h[e]-h[t]})),f=0;f<o.length;f++){var g=o[f].id();l[g]=[],u[g]=0,h[g]=1/0}for(u[t]=1,h[t]=0,p.push(t);!p.empty();){var v=p.pop();if(n.push(v),a)for(var y=0;y<s[v].length;y++){var m=s[v][y],b=i.getElementById(v),x=void 0;x=b.edgesTo(m).length>0?b.edgesTo(m)[0]:m.edgesTo(b)[0];var w=r(x);m=m.id(),h[m]>h[v]+w&&(h[m]=h[v]+w,p.nodes.indexOf(m)<0?p.push(m):p.updateItem(m),u[m]=0,l[m]=[]),h[m]==h[v]+w&&(u[m]=u[m]+u[v],l[m].push(v))}else for(var E=0;E<s[v].length;E++){var k=s[v][E].id();h[k]==1/0&&(p.push(k),h[k]=h[v]+1),h[k]==h[v]+1&&(u[k]=u[k]+u[v],l[k].push(v))}}for(var C={},S=0;S<o.length;S++)C[o[S].id()]=0;for(;n.length>0;){for(var P=n.pop(),D=0;D<l[P].length;D++){var T=l[P][D];C[T]=C[T]+u[T]/u[P]*(1+C[P])}P!=o[e].id()&&c(P,d(P)+C[P])}},v=0;v<o.length;v++)g(v);var y={betweenness:function(e){var t=i.collection(e).id();return d(t)},betweennessNormalized:function(e){if(0==u)return 0;var t=i.collection(e).id();return d(t)/u}};return y.betweennessNormalised=y.betweennessNormalized,y}};En.bc=En.betweennessCentrality;var kn=et({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),Cn=function(e,t){for(var n=0,r=0;r<t.length;r++)n+=t[r](e);return n},Sn=function(e,t){for(var n,r=0;r<t;r++){n=0;for(var a=0;a<t;a++)n+=e[a*t+r];for(var i=0;i<t;i++)e[i*t+r]=e[i*t+r]/n}},Pn=function(e,t,n){for(var r=new Array(n*n),a=0;a<n;a++){for(var i=0;i<n;i++)r[a*n+i]=0;for(var o=0;o<n;o++)for(var s=0;s<n;s++)r[a*n+s]+=e[a*n+o]*t[o*n+s]}return r},Dn=function(e,t,n){for(var r=e.slice(0),a=1;a<n;a++)e=Pn(e,r,t);return e},Tn=function(e,t,n){for(var r=new Array(t*t),a=0;a<t*t;a++)r[a]=Math.pow(e[a],n);return Sn(r,t),r},_n=function(e,t,n,r){for(var a=0;a<n;a++){if(Math.round(e[a]*Math.pow(10,r))/Math.pow(10,r)!==Math.round(t[a]*Math.pow(10,r))/Math.pow(10,r))return!1}return!0},Mn=function(e,t){for(var n=0;n<e.length;n++)if(!t[n]||e[n].id()!==t[n].id())return!1;return!0},Bn=function(e){for(var t=this.nodes(),n=this.edges(),r=this.cy(),a=function(e){return kn(e)}(e),i={},o=0;o<t.length;o++)i[t[o].id()]=o;for(var s,l=t.length,u=l*l,c=new Array(u),d=0;d<u;d++)c[d]=0;for(var h=0;h<n.length;h++){var p=n[h],f=i[p.source().id()],g=i[p.target().id()],v=Cn(p,a.attributes);c[f*l+g]+=v,c[g*l+f]+=v}!function(e,t,n){for(var r=0;r<t;r++)e[r*t+r]=n}(c,l,a.multFactor),Sn(c,l);for(var y=!0,m=0;y&&m<a.maxIterations;)y=!1,s=Dn(c,l,a.expandFactor),c=Tn(s,l,a.inflateFactor),_n(c,s,u,4)||(y=!0),m++;var b=function(e,t,n,r){for(var a=[],i=0;i<t;i++){for(var o=[],s=0;s<t;s++)Math.round(1e3*e[i*t+s])/1e3>0&&o.push(n[s]);0!==o.length&&a.push(r.collection(o))}return a}(c,l,t,r);return b=function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e.length;n++)t!=n&&Mn(e[t],e[n])&&e.splice(n,1);return e}(b),b},Nn={markovClustering:Bn,mcl:Bn},In=function(e){return e},zn=function(e,t){return Math.abs(t-e)},An=function(e,t,n){return e+zn(t,n)},Ln=function(e,t,n){return e+Math.pow(n-t,2)},On=function(e){return Math.sqrt(e)},Rn=function(e,t,n){return Math.max(e,zn(t,n))},Vn=function(e,t,n,r,a){for(var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:In,o=r,s=0;s<e;s++)o=a(o,t(s),n(s));return i(o)},Fn={euclidean:function(e,t,n){return e>=2?Vn(e,t,n,0,Ln,On):Vn(e,t,n,0,An)},squaredEuclidean:function(e,t,n){return Vn(e,t,n,0,Ln)},manhattan:function(e,t,n){return Vn(e,t,n,0,An)},max:function(e,t,n){return Vn(e,t,n,-1/0,Rn)}};function jn(e,t,n,r,a,i){var o;return o=x(e)?e:Fn[e]||Fn.euclidean,0===t&&x(e)?o(a,i):o(t,n,r,a,i)}Fn["squared-euclidean"]=Fn.squaredEuclidean,Fn.squaredeuclidean=Fn.squaredEuclidean;var qn=et({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Yn=function(e){return qn(e)},Xn=function(e,t,n,r,a){var i="kMedoids"!==a?function(e){return n[e]}:function(e){return r[e](n)},o=n,s=t;return jn(e,r.length,i,(function(e){return r[e](t)}),o,s)},Wn=function(e,t,n){for(var r=n.length,a=new Array(r),i=new Array(r),o=new Array(t),s=null,l=0;l<r;l++)a[l]=e.min(n[l]).value,i[l]=e.max(n[l]).value;for(var u=0;u<t;u++){s=[];for(var c=0;c<r;c++)s[c]=Math.random()*(i[c]-a[c])+a[c];o[u]=s}return o},Hn=function(e,t,n,r,a){for(var i=1/0,o=0,s=0;s<t.length;s++){var l=Xn(n,e,t[s],r,a);l<i&&(i=l,o=s)}return o},Kn=function(e,t,n){for(var r=[],a=null,i=0;i<t.length;i++)n[(a=t[i]).id()]===e&&r.push(a);return r},Gn=function(e,t,n){return Math.abs(t-e)<=n},Un=function(e,t,n){for(var r=0;r<e.length;r++)for(var a=0;a<e[r].length;a++){if(Math.abs(e[r][a]-t[r][a])>n)return!1}return!0},Zn=function(e,t,n){for(var r=0;r<n;r++)if(e===t[r])return!0;return!1},$n=function(e,t){var n=new Array(t);if(e.length<50)for(var r=0;r<t;r++){for(var a=e[Math.floor(Math.random()*e.length)];Zn(a,n,r);)a=e[Math.floor(Math.random()*e.length)];n[r]=a}else for(var i=0;i<t;i++)n[i]=e[Math.floor(Math.random()*e.length)];return n},Qn=function(e,t,n){for(var r=0,a=0;a<t.length;a++)r+=Xn("manhattan",t[a],e,n,"kMedoids");return r},Jn=function(e,t,n,r,a){for(var i,o,s=0;s<t.length;s++)for(var l=0;l<e.length;l++)r[s][l]=Math.pow(n[s][l],a.m);for(var u=0;u<e.length;u++)for(var c=0;c<a.attributes.length;c++){i=0,o=0;for(var d=0;d<t.length;d++)i+=r[d][u]*a.attributes[c](t[d]),o+=r[d][u];e[u][c]=i/o}},er=function(e,t,n,r,a){for(var i=0;i<e.length;i++)t[i]=e[i].slice();for(var o,s,l,u=2/(a.m-1),c=0;c<n.length;c++)for(var d=0;d<r.length;d++){o=0;for(var h=0;h<n.length;h++)s=Xn(a.distance,r[d],n[c],a.attributes,"cmeans"),l=Xn(a.distance,r[d],n[h],a.attributes,"cmeans"),o+=Math.pow(s/l,u);e[d][c]=1/o}},tr=function(e){var t,n,r,a,i,o=this.cy(),s=this.nodes(),l=Yn(e);a=new Array(s.length);for(var u=0;u<s.length;u++)a[u]=new Array(l.k);r=new Array(s.length);for(var c=0;c<s.length;c++)r[c]=new Array(l.k);for(var d=0;d<s.length;d++){for(var h=0,p=0;p<l.k;p++)r[d][p]=Math.random(),h+=r[d][p];for(var f=0;f<l.k;f++)r[d][f]=r[d][f]/h}n=new Array(l.k);for(var g=0;g<l.k;g++)n[g]=new Array(l.attributes.length);i=new Array(s.length);for(var v=0;v<s.length;v++)i[v]=new Array(l.k);for(var y=!0,m=0;y&&m<l.maxIterations;)y=!1,Jn(n,s,r,i,l),er(r,a,n,s,l),Un(r,a,l.sensitivityThreshold)||(y=!0),m++;return t=function(e,t,n,r){for(var a,i,o=new Array(n.k),s=0;s<o.length;s++)o[s]=[];for(var l=0;l<t.length;l++){a=-1/0,i=-1;for(var u=0;u<t[0].length;u++)t[l][u]>a&&(a=t[l][u],i=u);o[i].push(e[l])}for(var c=0;c<o.length;c++)o[c]=r.collection(o[c]);return o}(s,r,l,o),{clusters:t,degreeOfMembership:r}},nr={kMeans:function(e){var t,n=this.cy(),a=this.nodes(),i=null,o=Yn(e),s=new Array(o.k),l={};o.testMode?"number"==typeof o.testCentroids?(o.testCentroids,t=Wn(a,o.k,o.attributes)):t="object"===r(o.testCentroids)?o.testCentroids:Wn(a,o.k,o.attributes):t=Wn(a,o.k,o.attributes);for(var u=!0,c=0;u&&c<o.maxIterations;){for(var d=0;d<a.length;d++)l[(i=a[d]).id()]=Hn(i,t,o.distance,o.attributes,"kMeans");u=!1;for(var h=0;h<o.k;h++){var p=Kn(h,a,l);if(0!==p.length){for(var f=o.attributes.length,g=t[h],v=new Array(f),y=new Array(f),m=0;m<f;m++){y[m]=0;for(var b=0;b<p.length;b++)i=p[b],y[m]+=o.attributes[m](i);v[m]=y[m]/p.length,Gn(v[m],g[m],o.sensitivityThreshold)||(u=!0)}t[h]=v,s[h]=n.collection(p)}}c++}return s},kMedoids:function(e){var t,n,a=this.cy(),i=this.nodes(),o=null,s=Yn(e),l=new Array(s.k),u={},c=new Array(s.k);s.testMode?"number"==typeof s.testCentroids||(t="object"===r(s.testCentroids)?s.testCentroids:$n(i,s.k)):t=$n(i,s.k);for(var d=!0,h=0;d&&h<s.maxIterations;){for(var p=0;p<i.length;p++)u[(o=i[p]).id()]=Hn(o,t,s.distance,s.attributes,"kMedoids");d=!1;for(var f=0;f<t.length;f++){var g=Kn(f,i,u);if(0!==g.length){c[f]=Qn(t[f],g,s.attributes);for(var v=0;v<g.length;v++)(n=Qn(g[v],g,s.attributes))<c[f]&&(c[f]=n,t[f]=g[v],d=!0);l[f]=a.collection(g)}}h++}return l},fuzzyCMeans:tr,fcm:tr},rr=et({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),ar={single:"min",complete:"max"},ir=function(e,t,n,r,a){for(var i,o=0,s=1/0,l=a.attributes,u=function(e,t){return jn(a.distance,l.length,(function(t){return l[t](e)}),(function(e){return l[e](t)}),e,t)},c=0;c<e.length;c++){var d=e[c].key,h=n[d][r[d]];h<s&&(o=d,s=h)}if("threshold"===a.mode&&s>=a.threshold||"dendrogram"===a.mode&&1===e.length)return!1;var p,f=t[o],g=t[r[o]];p="dendrogram"===a.mode?{left:f,right:g,key:f.key}:{value:f.value.concat(g.value),key:f.key},e[f.index]=p,e.splice(g.index,1),t[f.key]=p;for(var v=0;v<e.length;v++){var y=e[v];f.key===y.key?i=1/0:"min"===a.linkage?(i=n[f.key][y.key],n[f.key][y.key]>n[g.key][y.key]&&(i=n[g.key][y.key])):"max"===a.linkage?(i=n[f.key][y.key],n[f.key][y.key]<n[g.key][y.key]&&(i=n[g.key][y.key])):i="mean"===a.linkage?(n[f.key][y.key]*f.size+n[g.key][y.key]*g.size)/(f.size+g.size):"dendrogram"===a.mode?u(y.value,f.value):u(y.value[0],f.value[0]),n[f.key][y.key]=n[y.key][f.key]=i}for(var m=0;m<e.length;m++){var b=e[m].key;if(r[b]===f.key||r[b]===g.key){for(var x=b,w=0;w<e.length;w++){var E=e[w].key;n[b][E]<n[b][x]&&(x=E)}r[b]=x}e[m].index=m}return f.key=g.key=f.index=g.index=null,!0},or=function e(t,n,r){t&&(t.value?n.push(t.value):(t.left&&e(t.left,n),t.right&&e(t.right,n)))},sr=function e(t,n){if(!t)return"";if(t.left&&t.right){var r=e(t.left,n),a=e(t.right,n),i=n.add({group:"nodes",data:{id:r+","+a}});return n.add({group:"edges",data:{source:r,target:i.id()}}),n.add({group:"edges",data:{source:a,target:i.id()}}),i.id()}return t.value?t.value.id():void 0},lr=function e(t,n,r){if(!t)return[];var a=[],i=[],o=[];return 0===n?(t.left&&or(t.left,a),t.right&&or(t.right,i),o=a.concat(i),[r.collection(o)]):1===n?t.value?[r.collection(t.value)]:(t.left&&or(t.left,a),t.right&&or(t.right,i),[r.collection(a),r.collection(i)]):t.value?[r.collection(t.value)]:(t.left&&(a=e(t.left,n-1,r)),t.right&&(i=e(t.right,n-1,r)),a.concat(i))},ur=function(e){for(var t=this.cy(),n=this.nodes(),r=function(e){var t=rr(e),n=ar[t.linkage];return null!=n&&(t.linkage=n),t}(e),a=r.attributes,i=function(e,t){return jn(r.distance,a.length,(function(t){return a[t](e)}),(function(e){return a[e](t)}),e,t)},o=[],s=[],l=[],u=[],c=0;c<n.length;c++){var d={value:"dendrogram"===r.mode?n[c]:[n[c]],key:c,index:c};o[c]=d,u[c]=d,s[c]=[],l[c]=0}for(var h=0;h<o.length;h++)for(var p=0;p<=h;p++){var f=void 0;f="dendrogram"===r.mode?h===p?1/0:i(o[h].value,o[p].value):h===p?1/0:i(o[h].value[0],o[p].value[0]),s[h][p]=f,s[p][h]=f,f<s[h][l[h]]&&(l[h]=p)}for(var g,v=ir(o,u,s,l,r);v;)v=ir(o,u,s,l,r);return"dendrogram"===r.mode?(g=lr(o[0],r.dendrogramDepth,t),r.addDendrogram&&sr(o[0],t)):(g=new Array(o.length),o.forEach((function(e,n){e.key=e.index=null,g[n]=t.collection(e.value)}))),g},cr={hierarchicalClustering:ur,hca:ur},dr=et({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),hr=function(e,t,n,r){var a=function(e,t){return r[t](e)};return-jn(e,r.length,(function(e){return a(t,e)}),(function(e){return a(n,e)}),t,n)},pr=function(e,t){var n=null;return n="median"===t?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n<e.length&&e.splice(n,e.length-n),t>0&&e.splice(0,t)):e=e.slice(t,n);for(var i=0,o=e.length-1;o>=0;o--){var s=e[o];a?isFinite(s)||(e[o]=-1/0,i++):e.splice(o,1)}r&&e.sort((function(e,t){return e-t}));var l=e.length,u=Math.floor(l/2);return l%2!=0?e[u+1+i]:(e[u-1+i]+e[u+i])/2}(e):"mean"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,a=0,i=t;i<n;i++){var o=e[i];isFinite(o)&&(r+=o,a++)}return r/a}(e):"min"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,a=t;a<n;a++){var i=e[a];isFinite(i)&&(r=Math.min(i,r))}return r}(e):"max"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,a=t;a<n;a++){var i=e[a];isFinite(i)&&(r=Math.max(i,r))}return r}(e):t,n},fr=function(e,t,n){for(var r=[],a=0;a<e;a++){for(var i=-1,o=-1/0,s=0;s<n.length;s++){var l=n[s];t[a*e+l]>o&&(i=l,o=t[a*e+l])}i>0&&r.push(i)}for(var u=0;u<n.length;u++)r[n[u]]=n[u];return r},gr=function(e){for(var t,n,r,a,i,o,s=this.cy(),l=this.nodes(),u=function(e){var t=e.damping,n=e.preference;.5<=t&&t<1||Ke("Damping must range on [0.5, 1). Got: ".concat(t));var r=["median","mean","min","max"];return r.some((function(e){return e===n}))||k(n)||Ke("Preference must be one of [".concat(r.map((function(e){return"'".concat(e,"'")})).join(", "),"] or a number. Got: ").concat(n)),dr(e)}(e),c={},d=0;d<l.length;d++)c[l[d].id()]=d;n=(t=l.length)*t,r=new Array(n);for(var h=0;h<n;h++)r[h]=-1/0;for(var p=0;p<t;p++)for(var f=0;f<t;f++)p!==f&&(r[p*t+f]=hr(u.distance,l[p],l[f],u.attributes));a=pr(r,u.preference);for(var g=0;g<t;g++)r[g*t+g]=a;i=new Array(n);for(var v=0;v<n;v++)i[v]=0;o=new Array(n);for(var y=0;y<n;y++)o[y]=0;for(var m=new Array(t),b=new Array(t),x=new Array(t),w=0;w<t;w++)m[w]=0,b[w]=0,x[w]=0;for(var E,C=new Array(t*u.minIterations),S=0;S<C.length;S++)C[S]=0;for(E=0;E<u.maxIterations;E++){for(var P=0;P<t;P++){for(var D=-1/0,T=-1/0,_=-1,M=0,B=0;B<t;B++)m[B]=i[P*t+B],(M=o[P*t+B]+r[P*t+B])>=D?(T=D,D=M,_=B):M>T&&(T=M);for(var N=0;N<t;N++)i[P*t+N]=(1-u.damping)*(r[P*t+N]-D)+u.damping*m[N];i[P*t+_]=(1-u.damping)*(r[P*t+_]-T)+u.damping*m[_]}for(var I=0;I<t;I++){for(var z=0,A=0;A<t;A++)m[A]=o[A*t+I],b[A]=Math.max(0,i[A*t+I]),z+=b[A];z-=b[I],b[I]=i[I*t+I],z+=b[I];for(var L=0;L<t;L++)o[L*t+I]=(1-u.damping)*Math.min(0,z-b[L])+u.damping*m[L];o[I*t+I]=(1-u.damping)*(z-b[I])+u.damping*m[I]}for(var O=0,R=0;R<t;R++){var V=o[R*t+R]+i[R*t+R]>0?1:0;C[E%u.minIterations*t+R]=V,O+=V}if(O>0&&(E>=u.minIterations-1||E==u.maxIterations-1)){for(var F=0,j=0;j<t;j++){x[j]=0;for(var q=0;q<u.minIterations;q++)x[j]+=C[q*t+j];0!==x[j]&&x[j]!==u.minIterations||F++}if(F===t)break}}for(var Y=function(e,t,n){for(var r=[],a=0;a<e;a++)t[a*e+a]+n[a*e+a]>0&&r.push(a);return r}(t,i,o),X=function(e,t,n){for(var r=fr(e,t,n),a=0;a<n.length;a++){for(var i=[],o=0;o<r.length;o++)r[o]===n[a]&&i.push(o);for(var s=-1,l=-1/0,u=0;u<i.length;u++){for(var c=0,d=0;d<i.length;d++)c+=t[i[d]*e+i[u]];c>l&&(s=u,l=c)}n[a]=i[s]}return fr(e,t,n)}(t,r,Y),W={},H=0;H<Y.length;H++)W[Y[H]]=[];for(var K=0;K<l.length;K++){var G=X[c[l[K].id()]];null!=G&&W[G].push(l[K])}for(var U=new Array(Y.length),Z=0;Z<Y.length;Z++)U[Z]=s.collection(W[Y[Z]]);return U},vr={affinityPropagation:gr,ap:gr},yr=et({root:void 0,directed:!1}),mr={hierholzer:function(e){if(!E(e)){var t=arguments;e={root:t[0],directed:t[1]}}var n,r,a,i=yr(e),o=i.root,s=i.directed,l=this,u=!1;o&&(a=b(o)?this.filter(o)[0].id():o[0].id());var c={},d={};s?l.forEach((function(e){var t=e.id();if(e.isNode()){var a=e.indegree(!0),i=e.outdegree(!0),o=a-i,s=i-a;1==o?n?u=!0:n=t:1==s?r?u=!0:r=t:(s>1||o>1)&&(u=!0),c[t]=[],e.outgoers().forEach((function(e){e.isEdge()&&c[t].push(e.id())}))}else d[t]=[void 0,e.target().id()]})):l.forEach((function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(n?r?u=!0:r=t:n=t),c[t]=[],e.connectedEdges().forEach((function(e){return c[t].push(e.id())}))):d[t]=[e.source().id(),e.target().id()]}));var h={found:!1,trail:void 0};if(u)return h;if(r&&n)if(s){if(a&&r!=a)return h;a=r}else{if(a&&r!=a&&n!=a)return h;a||(a=r)}else a||(a=l[0].id());var p=function(e){for(var t,n,r,a=e,i=[e];c[a].length;)t=c[a].shift(),n=d[t][0],a!=(r=d[t][1])?(c[r]=c[r].filter((function(e){return e!=t})),a=r):s||a==n||(c[n]=c[n].filter((function(e){return e!=t})),a=n),i.unshift(t),i.unshift(a);return i},f=[],g=[];for(g=p(a);1!=g.length;)0==c[g[0]].length?(f.unshift(l.getElementById(g.shift())),f.unshift(l.getElementById(g.shift()))):g=p(g.shift()).concat(g);for(var v in f.unshift(l.getElementById(g.shift())),c)if(c[v].length)return h;return h.found=!0,h.trail=this.spawn(f,!0),h}},br=function(){var e=this,t={},n=0,r=0,a=[],i=[],o={},s=function s(l,u,c){l===c&&(r+=1),t[u]={id:n,low:n++,cutVertex:!1};var d,h,p,f,g=e.getElementById(u).connectedEdges().intersection(e);0===g.size()?a.push(e.spawn(e.getElementById(u))):g.forEach((function(n){d=n.source().id(),h=n.target().id(),(p=d===u?h:d)!==c&&(f=n.id(),o[f]||(o[f]=!0,i.push({x:u,y:p,edge:n})),p in t?t[u].low=Math.min(t[u].low,t[p].id):(s(l,p,u),t[u].low=Math.min(t[u].low,t[p].low),t[u].id<=t[p].low&&(t[u].cutVertex=!0,function(n,r){for(var o=i.length-1,s=[],l=e.spawn();i[o].x!=n||i[o].y!=r;)s.push(i.pop().edge),o--;s.push(i.pop().edge),s.forEach((function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach((function(n){var r=n.id(),a=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(a.filter((function(e){return e.isLoop()}))):l.merge(a)}))})),a.push(l)}(u,p))))}))};e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||(r=0,s(n,n),t[n].cutVertex=r>1)}}));var l=Object.keys(t).filter((function(e){return t[e].cutVertex})).map((function(t){return e.getElementById(t)}));return{cut:e.spawn(l),components:a}},xr=function(){var e=this,t={},n=0,r=[],a=[],i=e.spawn(e),o=function o(s){if(a.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach((function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))})),t[s].index===t[s].low){for(var l=e.spawn();;){var u=a.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var c=l.edgesWith(l),d=l.merge(c);r.push(d),i=i.difference(d)}};return e.forEach((function(e){if(e.isNode()){var n=e.id();n in t||o(n)}})),{cut:i,components:r}},wr={};[ct,ft,gt,yt,bt,wt,St,vn,mn,xn,En,Nn,nr,cr,vr,mr,{hopcroftTarjanBiconnected:br,htbc:br,htb:br,hopcroftTarjanBiconnectedComponents:br},{tarjanStronglyConnected:xr,tsc:xr,tscc:xr,tarjanStronglyConnectedComponents:xr}].forEach((function(e){Y(wr,e)}));var Er=function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof t&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};Er.prototype={fulfill:function(e){return kr(this,1,"fulfillValue",e)},reject:function(e){return kr(this,2,"rejectReason",e)},then:function(e,t){var n=this,r=new Er;return n.onFulfilled.push(Pr(e,r,"fulfill")),n.onRejected.push(Pr(t,r,"reject")),Cr(n),r.proxy}};var kr=function(e,t,n,r){return 0===e.state&&(e.state=t,e[n]=r,Cr(e)),e},Cr=function(e){1===e.state?Sr(e,"onFulfilled",e.fulfillValue):2===e.state&&Sr(e,"onRejected",e.rejectReason)},Sr=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var a=function(){for(var e=0;e<r.length;e++)r[e](n)};"function"==typeof setImmediate?setImmediate(a):setTimeout(a,0)}},Pr=function(e,t,n){return function(r){if("function"!=typeof e)t[n].call(t,r);else{var a;try{a=e(r)}catch(i){return void t.reject(i)}Dr(t,a)}}},Dr=function e(t,n){if(t!==n&&t.proxy!==n){var a;if("object"===r(n)&&null!==n||"function"==typeof n)try{a=n.then}catch(o){return void t.reject(o)}if("function"!=typeof a)t.fulfill(n);else{var i=!1;try{a.call(n,(function(r){i||(i=!0,r===n?t.reject(new TypeError("circular thenable chain")):e(t,r))}),(function(e){i||(i=!0,t.reject(e))}))}catch(o){i||t.reject(o)}}}else t.reject(new TypeError("cannot resolve promise with itself"))};Er.all=function(e){return new Er((function(t,n){for(var r=new Array(e.length),a=0,i=function(n,i){r[n]=i,++a===e.length&&t(r)},o=0;o<e.length;o++)!function(t){var r=e[t];null!=r&&null!=r.then?r.then((function(e){i(t,e)}),(function(e){n(e)})):i(t,r)}(o)}))},Er.resolve=function(e){return new Er((function(t,n){t(e)}))},Er.reject=function(e){return new Er((function(t,n){n(e)}))};var Tr="undefined"!=typeof Promise?Promise:Er,_r=function(e,t,n){var r=T(e),a=!r,i=this._private=Y({duration:1e3},t,n);if(i.target=e,i.style=i.style||i.css,i.started=!1,i.playing=!1,i.hooked=!1,i.applying=!1,i.progress=0,i.completes=[],i.frames=[],i.complete&&x(i.complete)&&i.completes.push(i.complete),a){var o=e.position();i.startPosition=i.startPosition||{x:o.x,y:o.y},i.startStyle=i.startStyle||e.cy().style().getAnimationStartStyle(e,i.style)}if(r){var s=e.pan();i.startPan={x:s.x,y:s.y},i.startZoom=e.zoom()}this.length=1,this[0]=this},Mr=_r.prototype;Y(Mr,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var t=e.target._private.animation;(e.queue?t.queue:t.current).push(this),S(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return 1===e.progress&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var t=this._private;return void 0===e?t.progress*t.duration:this.progress(e/t.duration)},progress:function(e){var t=this._private,n=t.playing;return void 0===e?t.progress:(n&&this.pause(),t.progress=e,t.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var e=this._private,t=e.playing;t&&this.pause(),e.progress=1-e.progress,e.started=!1;var n=function(t,n){var r=e[t];null!=r&&(e[t]=e[n],e[n]=r)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),e.style)for(var r=0;r<e.style.length;r++){var a=e.style[r],i=a.name,o=e.startStyle[i];e.startStyle[i]=a,e.style[r]=o}return t&&this.play(),this},promise:function(e){var t,n=this._private;if("frame"===e)t=n.frames;else t=n.completes;return new Tr((function(e,n){t.push((function(){e()}))}))}}),Mr.complete=Mr.completed,Mr.run=Mr.play,Mr.running=Mr.playing;var Br={animated:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return!1;var n=t[0];return n?n._private.animation.current.length>0:void 0}},clearQueue:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n<t.length;n++){t[n]._private.animation.queue=[]}return this}},delay:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animate({delay:e,duration:e,complete:t}):this}},delayAnimation:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animation({delay:e,duration:e,complete:t}):this}},animation:function(){return function(e,t){var n=this,r=void 0!==n.length,a=r?n:[n],i=this._private.cy||this,o=!r,s=!o;if(!i.styleEnabled())return this;var l=i.style();if(e=Y({},e,t),0===Object.keys(e).length)return new _r(a[0],e);switch(void 0===e.duration&&(e.duration=400),e.duration){case"slow":e.duration=600;break;case"fast":e.duration=200}if(s&&(e.style=l.getPropsList(e.style||e.css),e.css=void 0),s&&null!=e.renderedPosition){var u=e.renderedPosition,c=i.pan(),d=i.zoom();e.position=Dt(u,d,c)}if(o&&null!=e.panBy){var h=e.panBy,p=i.pan();e.pan={x:p.x+h.x,y:p.y+h.y}}var f=e.center||e.centre;if(o&&null!=f){var g=i.getCenterPan(f.eles,e.zoom);null!=g&&(e.pan=g)}if(o&&null!=e.fit){var v=e.fit,y=i.getFitViewport(v.eles||v.boundingBox,v.padding);null!=y&&(e.pan=y.pan,e.zoom=y.zoom)}if(o&&E(e.zoom)){var m=i.getZoomedViewport(e.zoom);null!=m?(m.zoomed&&(e.zoom=m.zoom),m.panned&&(e.pan=m.pan)):e.zoom=null}return new _r(a[0],e)}},animate:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n];if(!(this._private.cy||this).styleEnabled())return this;t&&(e=Y({},e,t));for(var a=0;a<r.length;a++){var i=r[a],o=i.animated()&&(void 0===e.queue||e.queue);i.animation(e,o?{queue:!0}:void 0).play()}return this}},stop:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n],a=this._private.cy||this;if(!a.styleEnabled())return this;for(var i=0;i<r.length;i++){for(var o=r[i]._private,s=o.animation.current,l=0;l<s.length;l++){var u=s[l]._private;t&&(u.duration=0)}e&&(o.animation.queue=[]),t||(o.animation.current=[])}return a.notify("draw"),this}}},Nr=Array.isArray,Ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zr=/^\w*$/;var Ar=function(e,t){if(Nr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ge(e))||(zr.test(e)||!Ir.test(e)||null!=t&&e in Object(t))};var Lr,Or=function(e){if(!G(e))return!1;var t=pe(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Rr=Q["__core-js_shared__"],Vr=(Lr=/[^.]+$/.exec(Rr&&Rr.keys&&Rr.keys.IE_PROTO||""))?"Symbol(src)_1."+Lr:"";var Fr=function(e){return!!Vr&&Vr in e},jr=Function.prototype.toString;var qr=function(e){if(null!=e){try{return jr.call(e)}catch(t){}try{return e+""}catch(t){}}return""},Yr=/^\[object .+?Constructor\]$/,Xr=Function.prototype,Wr=Object.prototype,Hr=Xr.toString,Kr=Wr.hasOwnProperty,Gr=RegExp("^"+Hr.call(Kr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ur=function(e){return!(!G(e)||Fr(e))&&(Or(e)?Gr:Yr).test(qr(e))};var Zr=function(e,t){return null==e?void 0:e[t]};var $r=function(e,t){var n=Zr(e,t);return Ur(n)?n:void 0},Qr=$r(Object,"create");var Jr=function(){this.__data__=Qr?Qr(null):{},this.size=0};var ea=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ta=Object.prototype.hasOwnProperty;var na=function(e){var t=this.__data__;if(Qr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ta.call(t,e)?t[e]:void 0},ra=Object.prototype.hasOwnProperty;var aa=function(e){var t=this.__data__;return Qr?void 0!==t[e]:ra.call(t,e)};var ia=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qr&&void 0===t?"__lodash_hash_undefined__":t,this};function oa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oa.prototype.clear=Jr,oa.prototype.delete=ea,oa.prototype.get=na,oa.prototype.has=aa,oa.prototype.set=ia;var sa=oa;var la=function(){this.__data__=[],this.size=0};var ua=function(e,t){return e===t||e!=e&&t!=t};var ca=function(e,t){for(var n=e.length;n--;)if(ua(e[n][0],t))return n;return-1},da=Array.prototype.splice;var ha=function(e){var t=this.__data__,n=ca(t,e);return!(n<0)&&(n==t.length-1?t.pop():da.call(t,n,1),--this.size,!0)};var pa=function(e){var t=this.__data__,n=ca(t,e);return n<0?void 0:t[n][1]};var fa=function(e){return ca(this.__data__,e)>-1};var ga=function(e,t){var n=this.__data__,r=ca(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function va(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}va.prototype.clear=la,va.prototype.delete=ha,va.prototype.get=pa,va.prototype.has=fa,va.prototype.set=ga;var ya=va,ma=$r(Q,"Map");var ba=function(){this.size=0,this.__data__={hash:new sa,map:new(ma||ya),string:new sa}};var xa=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var wa=function(e,t){var n=e.__data__;return xa(t)?n["string"==typeof t?"string":"hash"]:n.map};var Ea=function(e){var t=wa(this,e).delete(e);return this.size-=t?1:0,t};var ka=function(e){return wa(this,e).get(e)};var Ca=function(e){return wa(this,e).has(e)};var Sa=function(e,t){var n=wa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Pa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pa.prototype.clear=ba,Pa.prototype.delete=Ea,Pa.prototype.get=ka,Pa.prototype.has=Ca,Pa.prototype.set=Sa;var Da=Pa;function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Ta.Cache||Da),n}Ta.Cache=Da;var _a=Ta;var Ma=function(e){var t=_a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Ba=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Na=/\\(\\)?/g,Ia=Ma((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ba,(function(e,n,r,a){t.push(r?a.replace(Na,"$1"):n||e)})),t})),za=Ia;var Aa=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a},La=ae?ae.prototype:void 0,Oa=La?La.toString:void 0;var Ra=function e(t){if("string"==typeof t)return t;if(Nr(t))return Aa(t,e)+"";if(ge(t))return Oa?Oa.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var Va=function(e){return null==e?"":Ra(e)};var Fa=function(e,t){return Nr(e)?e:Ar(e,t)?[e]:za(Va(e))};var ja=function(e){if("string"==typeof e||ge(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var qa=function(e,t){for(var n=0,r=(t=Fa(t,e)).length;null!=e&&n<r;)e=e[ja(t[n++])];return n&&n==r?e:void 0};var Ya=function(e,t,n){var r=null==e?void 0:qa(e,t);return void 0===r?n:r},Xa=function(){try{var e=$r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var Wa=function(e,t,n){"__proto__"==t&&Xa?Xa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ha=Object.prototype.hasOwnProperty;var Ka=function(e,t,n){var r=e[t];Ha.call(e,t)&&ua(r,n)&&(void 0!==n||t in e)||Wa(e,t,n)},Ga=/^(?:0|[1-9]\d*)$/;var Ua=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ga.test(e))&&e>-1&&e%1==0&&e<t};var Za=function(e,t,n,r){if(!G(e))return e;for(var a=-1,i=(t=Fa(t,e)).length,o=i-1,s=e;null!=s&&++a<i;){var l=ja(t[a]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=G(c)?c:Ua(t[a+1])?[]:{})}Ka(s,l,u),s=s[l]}return e};var $a=function(e,t,n){return null==e?e:Za(e,t,n)};var Qa=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Ja=function(e){return Nr(e)?Aa(e,ja):ge(e)?[e]:Qa(za(Va(e)))},ei={data:function(e){return e=Y({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(e){},beforeSet:function(e,t){},onSet:function(e){},canSet:function(e){return!0}},e),function(t,n){var r=e,a=this,i=void 0!==a.length,o=i?a:[a],l=i?a[0]:a;if(b(t)){var u,c=-1!==t.indexOf(".")&&Ja(t);if(r.allowGetting&&void 0===n)return l&&(r.beforeGet(l),u=c&&void 0===l._private[r.field][t]?Ya(l._private[r.field],c):l._private[r.field][t]),u;if(r.allowSetting&&void 0!==n&&!r.immutableKeys[t]){var d=s({},t,n);r.beforeSet(a,d);for(var h=0,p=o.length;h<p;h++){var f=o[h];r.canSet(f)&&(c&&void 0===l._private[r.field][t]?$a(f._private[r.field],c,n):f._private[r.field][t]=n)}r.updateStyle&&a.updateStyle(),r.onSet(a),r.settingTriggersEvent&&a[r.triggerFnName](r.settingEvent)}}else if(r.allowSetting&&E(t)){var g,v,y=t,m=Object.keys(y);r.beforeSet(a,y);for(var w=0;w<m.length;w++){if(v=y[g=m[w]],!r.immutableKeys[g])for(var k=0;k<o.length;k++){var C=o[k];r.canSet(C)&&(C._private[r.field][g]=v)}}r.updateStyle&&a.updateStyle(),r.onSet(a),r.settingTriggersEvent&&a[r.triggerFnName](r.settingEvent)}else if(r.allowBinding&&x(t)){var S=t;a.on(r.bindingEvent,S)}else if(r.allowGetting&&void 0===t){var P;return l&&(r.beforeGet(l),P=l._private[r.field]),P}return a}},removeData:function(e){return e=Y({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},e),function(t){var n=e,r=this,a=void 0!==r.length?r:[r];if(b(t)){for(var i=t.split(/\s+/),o=i.length,s=0;s<o;s++){var l=i[s];if(!M(l))if(!n.immutableKeys[l])for(var u=0,c=a.length;u<c;u++)a[u]._private[n.field][l]=void 0}n.triggerEvent&&r[n.triggerFnName](n.event)}else if(void 0===t){for(var d=0,h=a.length;d<h;d++)for(var p=a[d]._private[n.field],f=Object.keys(p),g=0;g<f.length;g++){var v=f[g];!n.immutableKeys[v]&&(p[v]=void 0)}n.triggerEvent&&r[n.triggerFnName](n.event)}return r}}},ti={eventAliasesOn:function(e){var t=e;t.addListener=t.listen=t.bind=t.on,t.unlisten=t.unbind=t.off=t.removeListener,t.trigger=t.emit,t.pon=t.promiseOn=function(e,t){var n=this,r=Array.prototype.slice.call(arguments,0);return new Tr((function(e,t){var a=r.concat([function(t){n.off.apply(n,i),e(t)}]),i=a.concat([]);n.on.apply(n,a)}))}}},ni={};[Br,ei,ti].forEach((function(e){Y(ni,e)}));var ri={animate:ni.animate(),animation:ni.animation(),animated:ni.animated(),clearQueue:ni.clearQueue(),delay:ni.delay(),delayAnimation:ni.delayAnimation(),stop:ni.stop()},ai={classes:function(e){var t=this;if(void 0===e){var n=[];return t[0]._private.classes.forEach((function(e){return n.push(e)})),n}w(e)||(e=(e||"").match(/\S+/g)||[]);for(var r=[],a=new st(e),i=0;i<t.length;i++){for(var o=t[i],s=o._private,l=s.classes,u=!1,c=0;c<e.length;c++){var d=e[c];if(!l.has(d)){u=!0;break}}u||(u=l.size!==e.length),u&&(s.classes=a,r.push(o))}return r.length>0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){w(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=void 0===t,a=[],i=0,o=n.length;i<o;i++)for(var s=n[i],l=s._private.classes,u=!1,c=0;c<e.length;c++){var d=e[c],h=l.has(d),p=!1;t||r&&!h?(l.add(d),p=!0):(!t||r&&h)&&(l.delete(d),p=!0),!u&&p&&(a.push(s),u=!0)}return a.length>0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout((function(){n.removeClass(e)}),t),n}};ai.className=ai.classNames=ai.classes;var ii={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:O,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ii.variable="(?:[\\w-.]|(?:\\\\"+ii.metaChar+"))+",ii.className="(?:[\\w-]|(?:\\\\"+ii.metaChar+"))+",ii.value=ii.string+"|"+ii.number,ii.id=ii.variable,function(){var e,t,n;for(e=ii.comparatorOp.split("|"),n=0;n<e.length;n++)t=e[n],ii.comparatorOp+="|@"+t;for(e=ii.comparatorOp.split("|"),n=0;n<e.length;n++)(t=e[n]).indexOf("!")>=0||"="!==t&&(ii.comparatorOp+="|\\!"+t)}();var oi=0,si=1,li=2,ui=3,ci=4,di=5,hi=6,pi=7,fi=8,gi=9,vi=10,yi=11,mi=12,bi=13,xi=14,wi=15,Ei=16,ki=17,Ci=18,Si=19,Pi=20,Di=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort((function(e,t){return function(e,t){return-1*q(e,t)}(e.selector,t.selector)})),Ti=function(){for(var e,t={},n=0;n<Di.length;n++)t[(e=Di[n]).selector]=e.matches;return t}(),_i="("+Di.map((function(e){return e.selector})).join("|")+")",Mi=function(e){return e.replace(new RegExp("\\\\("+ii.metaChar+")","g"),(function(e,t){return t}))},Bi=function(e,t,n){e[e.length-1]=n},Ni=[{name:"group",query:!0,regex:"("+ii.group+")",populate:function(e,t,n){var r=l(n,1)[0];t.checks.push({type:oi,value:"*"===r?r:r+"s"})}},{name:"state",query:!0,regex:_i,populate:function(e,t,n){var r=l(n,1)[0];t.checks.push({type:pi,value:r})}},{name:"id",query:!0,regex:"\\#("+ii.id+")",populate:function(e,t,n){var r=l(n,1)[0];t.checks.push({type:fi,value:Mi(r)})}},{name:"className",query:!0,regex:"\\.("+ii.className+")",populate:function(e,t,n){var r=l(n,1)[0];t.checks.push({type:gi,value:Mi(r)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+ii.variable+")\\s*\\]",populate:function(e,t,n){var r=l(n,1)[0];t.checks.push({type:ci,field:Mi(r)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+ii.variable+")\\s*("+ii.comparatorOp+")\\s*("+ii.value+")\\s*\\]",populate:function(e,t,n){var r=l(n,3),a=r[0],i=r[1],o=r[2];o=null!=new RegExp("^"+ii.string+"$").exec(o)?o.substring(1,o.length-1):parseFloat(o),t.checks.push({type:ui,field:Mi(a),operator:i,value:o})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+ii.boolOp+")\\s*("+ii.variable+")\\s*\\]",populate:function(e,t,n){var r=l(n,2),a=r[0],i=r[1];t.checks.push({type:di,field:Mi(i),operator:a})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+ii.meta+")\\s*("+ii.comparatorOp+")\\s*("+ii.number+")\\s*\\]\\]",populate:function(e,t,n){var r=l(n,3),a=r[0],i=r[1],o=r[2];t.checks.push({type:hi,field:Mi(a),operator:i,value:parseFloat(o)})}},{name:"nextQuery",separator:!0,regex:ii.separator,populate:function(e,t){var n=e.currentSubject,r=e.edgeCount,a=e.compoundCount,i=e[e.length-1];return null!=n&&(i.subject=n,e.currentSubject=null),i.edgeCount=r,i.compoundCount=a,e.edgeCount=0,e.compoundCount=0,e[e.length++]={checks:[]}}},{name:"directedEdge",separator:!0,regex:ii.directedEdge,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r=t,a={checks:[]};return n.checks.push({type:yi,source:r,target:a}),Bi(e,0,n),e.edgeCount++,a}var i={checks:[]},o=t,s={checks:[]};return i.checks.push({type:mi,source:o,target:s}),Bi(e,0,i),e.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:ii.undirectedEdge,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r=t,a={checks:[]};return n.checks.push({type:vi,nodes:[r,a]}),Bi(e,0,n),e.edgeCount++,a}var i={checks:[]},o=t,s={checks:[]};return i.checks.push({type:xi,node:o,neighbor:s}),Bi(e,0,i),s}},{name:"child",separator:!0,regex:ii.child,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r={checks:[]},a=e[e.length-1];return n.checks.push({type:wi,parent:a,child:r}),Bi(e,0,n),e.compoundCount++,r}if(e.currentSubject===t){var i={checks:[]},o=e[e.length-1],s={checks:[]},l={checks:[]},u={checks:[]},c={checks:[]};return i.checks.push({type:Si,left:o,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:Pi}],c.checks.push({type:Pi}),s.checks.push({type:ki,parent:c,child:u}),Bi(e,0,i),e.currentSubject=l,e.compoundCount++,u}var d={checks:[]},h={checks:[]},p=[{type:ki,parent:d,child:h}];return d.checks=t.checks,t.checks=p,e.compoundCount++,h}},{name:"descendant",separator:!0,regex:ii.descendant,populate:function(e,t){if(null==e.currentSubject){var n={checks:[]},r={checks:[]},a=e[e.length-1];return n.checks.push({type:Ei,ancestor:a,descendant:r}),Bi(e,0,n),e.compoundCount++,r}if(e.currentSubject===t){var i={checks:[]},o=e[e.length-1],s={checks:[]},l={checks:[]},u={checks:[]},c={checks:[]};return i.checks.push({type:Si,left:o,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:Pi}],c.checks.push({type:Pi}),s.checks.push({type:Ci,ancestor:c,descendant:u}),Bi(e,0,i),e.currentSubject=l,e.compoundCount++,u}var d={checks:[]},h={checks:[]},p=[{type:Ci,ancestor:d,descendant:h}];return d.checks=t.checks,t.checks=p,e.compoundCount++,h}},{name:"subject",modifier:!0,regex:ii.subject,populate:function(e,t){if(null!=e.currentSubject&&e.currentSubject!==t)return Ue("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=t;var n=e[e.length-1].checks[0],r=null==n?null:n.type;r===yi?n.type=bi:r===vi&&(n.type=xi,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];Ni.forEach((function(e){return e.regexObj=new RegExp("^"+e.regex)}));var Ii=function(e){for(var t,n,r,a=0;a<Ni.length;a++){var i=Ni[a],o=i.name,s=e.match(i.regexObj);if(null!=s){n=s,t=i,r=o;var l=s[0];e=e.substring(l.length);break}}return{expr:t,match:n,name:r,remaining:e}},zi={parse:function(e){var t=this,n=t.inputText=e,r=t[0]={checks:[]};for(t.length=1,n=function(e){var t=e.match(/^\s+/);if(t){var n=t[0];e=e.substring(n.length)}return e}(n);;){var a=Ii(n);if(null==a.expr)return Ue("The selector `"+e+"`is invalid"),!1;var i=a.match.slice(1),o=a.expr.populate(t,r,i);if(!1===o)return!1;if(null!=o&&(r=o),(n=a.remaining).match(/^\s*$/))break}var s=t[t.length-1];null!=t.currentSubject&&(s.subject=t.currentSubject),s.edgeCount=t.edgeCount,s.compoundCount=t.compoundCount;for(var l=0;l<t.length;l++){var u=t[l];if(u.compoundCount>0&&u.edgeCount>0)return Ue("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(u.edgeCount>1)return Ue("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===u.edgeCount&&Ue("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return b(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(r,i){var o=r.type,s=r.value;switch(o){case oi:var l=e(s);return l.substring(0,l.length-1);case ui:var u=r.field,c=r.operator;return"["+u+n(e(c))+t(s)+"]";case di:var d=r.operator,h=r.field;return"["+e(d)+h+"]";case ci:return"["+r.field+"]";case hi:var p=r.operator;return"[["+r.field+n(e(p))+t(s)+"]]";case pi:return s;case fi:return"#"+s;case gi:return"."+s;case ki:case wi:return a(r.parent,i)+n(">")+a(r.child,i);case Ci:case Ei:return a(r.ancestor,i)+" "+a(r.descendant,i);case Si:var f=a(r.left,i),g=a(r.subject,i),v=a(r.right,i);return f+(f.length>0?" ":"")+g+v;case Pi:return""}},a=function(e,t){return e.checks.reduce((function(n,a,i){return n+(t===e&&0===i?"$":"")+r(a,t)}),"")},i="",o=0;o<this.length;o++){var s=this[o];i+=a(s,s.subject),this.length>1&&o<this.length-1&&(i+=", ")}return this.toStringCache=i,i}},Ai=function(e,t,n){var r,a,i,o=b(e),s=k(e),l=b(n),u=!1,c=!1,d=!1;switch(t.indexOf("!")>=0&&(t=t.replace("!",""),c=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),u=!0),(o||l||u)&&(a=o||s?""+e:"",i=""+n),u&&(e=a=a.toLowerCase(),n=i=i.toLowerCase()),t){case"*=":r=a.indexOf(i)>=0;break;case"$=":r=a.indexOf(i,a.length-i.length)>=0;break;case"^=":r=0===a.indexOf(i);break;case"=":r=e===n;break;case">":d=!0,r=e>n;break;case">=":d=!0,r=e>=n;break;case"<":d=!0,r=e<n;break;case"<=":d=!0,r=e<=n;break;default:r=!1}return!c||null==e&&d||(r=!r),r},Li=function(e,t){return e.data(t)},Oi=[],Ri=function(e,t){return e.checks.every((function(e){return Oi[e.type](e,t)}))};Oi[oi]=function(e,t){var n=e.value;return"*"===n||n===t.group()},Oi[pi]=function(e,t){return function(e,t){return Ti[e](t)}(e.value,t)},Oi[fi]=function(e,t){var n=e.value;return t.id()===n},Oi[gi]=function(e,t){var n=e.value;return t.hasClass(n)},Oi[hi]=function(e,t){var n=e.field,r=e.operator,a=e.value;return Ai(function(e,t){return e[t]()}(t,n),r,a)},Oi[ui]=function(e,t){var n=e.field,r=e.operator,a=e.value;return Ai(Li(t,n),r,a)},Oi[di]=function(e,t){var n=e.field,r=e.operator;return function(e,t){switch(t){case"?":return!!e;case"!":return!e;case"^":return void 0===e}}(Li(t,n),r)},Oi[ci]=function(e,t){var n=e.field;return e.operator,void 0!==Li(t,n)},Oi[vi]=function(e,t){var n=e.nodes[0],r=e.nodes[1],a=t.source(),i=t.target();return Ri(n,a)&&Ri(r,i)||Ri(r,a)&&Ri(n,i)},Oi[xi]=function(e,t){return Ri(e.node,t)&&t.neighborhood().some((function(t){return t.isNode()&&Ri(e.neighbor,t)}))},Oi[yi]=function(e,t){return Ri(e.source,t.source())&&Ri(e.target,t.target())},Oi[mi]=function(e,t){return Ri(e.source,t)&&t.outgoers().some((function(t){return t.isNode()&&Ri(e.target,t)}))},Oi[bi]=function(e,t){return Ri(e.target,t)&&t.incomers().some((function(t){return t.isNode()&&Ri(e.source,t)}))},Oi[wi]=function(e,t){return Ri(e.child,t)&&Ri(e.parent,t.parent())},Oi[ki]=function(e,t){return Ri(e.parent,t)&&t.children().some((function(t){return Ri(e.child,t)}))},Oi[Ei]=function(e,t){return Ri(e.descendant,t)&&t.ancestors().some((function(t){return Ri(e.ancestor,t)}))},Oi[Ci]=function(e,t){return Ri(e.ancestor,t)&&t.descendants().some((function(t){return Ri(e.descendant,t)}))},Oi[Si]=function(e,t){return Ri(e.subject,t)&&Ri(e.left,t)&&Ri(e.right,t)},Oi[Pi]=function(){return!0},Oi[si]=function(e,t){return e.value.has(t)},Oi[li]=function(e,t){return(0,e.value)(t)};var Vi={matches:function(e){for(var t=0;t<this.length;t++){var n=this[t];if(Ri(n,e))return!0}return!1},filter:function(e){var t=this;if(1===t.length&&1===t[0].checks.length&&t[0].checks[0].type===fi)return e.getElementById(t[0].checks[0].value).collection();var n=function(e){for(var n=0;n<t.length;n++){var r=t[n];if(Ri(r,e))return!0}return!1};return null==t.text()&&(n=function(){return!0}),e.filter(n)}},Fi=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==e||b(e)&&e.match(/^\s*$/)||(S(e)?this.addQuery({checks:[{type:si,value:e.collection()}]}):x(e)?this.addQuery({checks:[{type:li,value:e}]}):b(e)?this.parse(e)||(this.invalid=!0):Ke("A selector must be created from a string; found "))},ji=Fi.prototype;[zi,Vi].forEach((function(e){return Y(ji,e)})),ji.text=function(){return this.inputText},ji.size=function(){return this.length},ji.eq=function(e){return this[e]},ji.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()},ji.addQuery=function(e){this[this.length++]=e},ji.selector=ji.toString;var qi={allAre:function(e){var t=new Fi(e);return this.every((function(e){return t.matches(e)}))},is:function(e){var t=new Fi(e);return this.some((function(e){return t.matches(e)}))},some:function(e,t){for(var n=0;n<this.length;n++){if(t?e.apply(t,[this[n],n,this]):e(this[n],n,this))return!0}return!1},every:function(e,t){for(var n=0;n<this.length;n++){if(!(t?e.apply(t,[this[n],n,this]):e(this[n],n,this)))return!1}return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var t=this.length;return t===e.length&&(1===t?this[0]===e[0]:this.every((function(t){return e.hasElementWithId(t.id())})))},anySame:function(e){return e=this.cy().collection(e),this.some((function(t){return e.hasElementWithId(t.id())}))},allAreNeighbors:function(e){e=this.cy().collection(e);var t=this.neighborhood();return e.every((function(e){return t.hasElementWithId(e.id())}))},contains:function(e){e=this.cy().collection(e);var t=this;return e.every((function(e){return t.hasElementWithId(e.id())}))}};qi.allAreNeighbours=qi.allAreNeighbors,qi.has=qi.contains,qi.equal=qi.equals=qi.same;var Yi,Xi,Wi=function(e,t){return function(n,r,a,i){var o,s=n,l=this;if(null==s?o="":S(s)&&1===s.length&&(o=s.id()),1===l.length&&o){var u=l[0]._private,c=u.traversalCache=u.traversalCache||{},d=c[t]=c[t]||[],h=Le(o),p=d[h];return p||(d[h]=e.call(l,n,r,a,i))}return e.call(l,n,r,a,i)}},Hi={parent:function(e){var t=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var r=0;r<this.length;r++){var a=this[r]._private.parent;a&&t.push(a)}return this.spawn(t,!0).filter(e)},parents:function(e){for(var t=[],n=this.parent();n.nonempty();){for(var r=0;r<n.length;r++){var a=n[r];t.push(a)}n=n.parent()}return this.spawn(t,!0).filter(e)},commonAncestors:function(e){for(var t,n=0;n<this.length;n++){var r=this[n].parents();t=(t=t||r).intersect(r)}return t.filter(e)},orphans:function(e){return this.stdFilter((function(e){return e.isOrphan()})).filter(e)},nonorphans:function(e){return this.stdFilter((function(e){return e.isChild()})).filter(e)},children:Wi((function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n]._private.children,a=0;a<r.length;a++)t.push(r[a]);return this.spawn(t,!0).filter(e)}),"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&0!==e._private.children.length},isChildless:function(){var e=this[0];if(e)return e.isNode()&&0===e._private.children.length},isChild:function(){var e=this[0];if(e)return e.isNode()&&null!=e._private.parent},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&null==e._private.parent},descendants:function(e){var t=[];return function e(n){for(var r=0;r<n.length;r++){var a=n[r];t.push(a),a.children().nonempty()&&e(a.children())}}(this.children()),this.spawn(t,!0).filter(e)}};function Ki(e,t,n,r){for(var a=[],i=new st,o=e.cy().hasCompoundNodes(),s=0;s<e.length;s++){var l=e[s];n?a.push(l):o&&r(a,i,l)}for(;a.length>0;){var u=a.shift();t(u),i.add(u.id()),o&&r(a,i,u)}return e}function Gi(e,t,n){if(n.isParent())for(var r=n._private.children,a=0;a<r.length;a++){var i=r[a];t.has(i.id())||e.push(i)}}function Ui(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}function Zi(e,t,n){Ui(e,t,n),Gi(e,t,n)}Hi.forEachDown=function(e){return Ki(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gi)},Hi.forEachUp=function(e){return Ki(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Ui)},Hi.forEachUpAndDown=function(e){return Ki(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Zi)},Hi.ancestors=Hi.parents,(Yi=Xi={data:ni.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ni.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ni.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ni.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ni.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ni.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=Yi.data,Yi.removeAttr=Yi.removeData;var $i,Qi,Ji=Xi,eo={};function to(e){return function(t){var n=this;if(void 0===t&&(t=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,a=n[0],i=a._private.edges,o=0;o<i.length;o++){var s=i[o];!t&&s.isLoop()||(r+=e(a,s))}return r}}}function no(e,t){return function(n){for(var r,a=this.nodes(),i=0;i<a.length;i++){var o=a[i][e](n);void 0===o||void 0!==r&&!t(o,r)||(r=o)}return r}}Y(eo,{degree:to((function(e,t){return t.source().same(t.target())?2:1})),indegree:to((function(e,t){return t.target().same(e)?1:0})),outdegree:to((function(e,t){return t.source().same(e)?1:0}))}),Y(eo,{minDegree:no("degree",(function(e,t){return e<t})),maxDegree:no("degree",(function(e,t){return e>t})),minIndegree:no("indegree",(function(e,t){return e<t})),maxIndegree:no("indegree",(function(e,t){return e>t})),minOutdegree:no("outdegree",(function(e,t){return e<t})),maxOutdegree:no("outdegree",(function(e,t){return e>t}))}),Y(eo,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r<n.length;r++)t+=n[r].degree(e);return t}});var ro=function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if(!a.locked()){var i=a._private.position,o={x:null!=t.x?t.x-i.x:0,y:null!=t.y?t.y-i.y:0};!a.isParent()||0===o.x&&0===o.y||a.children().shift(o,n),a.dirtyBoundingBoxCache()}}},ao={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,t){ro(e,t,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};$i=Qi={position:ni.data(ao),silentPosition:ni.data(Y({},ao,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,t){ro(e,t,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,t){if(E(e))t?this.silentPosition(e):this.position(e);else if(x(e)){var n=e,r=this.cy();r.startBatch();for(var a=0;a<this.length;a++){var i,o=this[a];(i=n(o,a))&&(t?o.silentPosition(i):o.position(i))}r.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,t,n){var r;if(E(e)?(r={x:k(e.x)?e.x:0,y:k(e.y)?e.y:0},n=t):b(e)&&k(t)&&((r={x:0,y:0})[e]=t),null!=r){var a=this.cy();a.startBatch();for(var i=0;i<this.length;i++){var o=this[i];if(!(a.hasCompoundNodes()&&o.isChild()&&o.ancestors().anySame(this))){var s=o.position(),l={x:s.x+r.x,y:s.y+r.y};n?o.silentPosition(l):o.position(l)}}a.endBatch()}return this},silentShift:function(e,t){return E(e)?this.shift(e,!0):b(e)&&k(t)&&this.shift(e,t,!0),this},renderedPosition:function(e,t){var n=this[0],r=this.cy(),a=r.zoom(),i=r.pan(),o=E(e)?e:void 0,s=void 0!==o||void 0!==t&&b(e);if(n&&n.isNode()){if(!s){var l=n.position();return o=Pt(l,a,i),void 0===e?o:o[e]}for(var u=0;u<this.length;u++){var c=this[u];void 0!==t?c.position(e,(t-i[e])/a):void 0!==o&&c.position(Dt(o,a,i))}}else if(!s)return;return this},relativePosition:function(e,t){var n=this[0],r=this.cy(),a=E(e)?e:void 0,i=void 0!==a||void 0!==t&&b(e),o=r.hasCompoundNodes();if(n&&n.isNode()){if(!i){var s=n.position(),l=o?n.parent():null,u=l&&l.length>0,c=u;u&&(l=l[0]);var d=c?l.position():{x:0,y:0};return a={x:s.x-d.x,y:s.y-d.y},void 0===e?a:a[e]}for(var h=0;h<this.length;h++){var p=this[h],f=o?p.parent():null,g=f&&f.length>0,v=g;g&&(f=f[0]);var y=v?f.position():{x:0,y:0};void 0!==t?p.position(e,t+y[e]):void 0!==a&&p.position({x:a.x+y.x,y:a.y+y.y})}}else if(!i)return;return this}},$i.modelPosition=$i.point=$i.position,$i.modelPositions=$i.points=$i.positions,$i.renderedPoint=$i.renderedPosition,$i.relativePoint=$i.relativePosition;var io,oo,so=Qi;io=oo={},oo.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),a=n.pan(),i=t.x1*r+a.x,o=t.x2*r+a.x,s=t.y1*r+a.y,l=t.y2*r+a.y;return{x1:i,x2:o,y1:s,y2:l,w:o-i,h:l-s}},oo.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp((function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}})),this):this},oo.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(e){if(e.isParent()){var t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,a={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},i=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),o=t.position;0!==i.w&&0!==i.h||((i={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=o.x-i.w/2,i.x2=o.x+i.w/2,i.y1=o.y-i.h/2,i.y2=o.y+i.h/2);var s=a.width.left.value;"px"===a.width.left.units&&a.width.val>0&&(s=100*s/a.width.val);var l=a.width.right.value;"px"===a.width.right.units&&a.width.val>0&&(l=100*l/a.width.val);var u=a.height.top.value;"px"===a.height.top.units&&a.height.val>0&&(u=100*u/a.height.val);var c=a.height.bottom.value;"px"===a.height.bottom.units&&a.height.val>0&&(c=100*c/a.height.val);var d=y(a.width.val-i.w,s,l),h=d.biasDiff,p=d.biasComplementDiff,f=y(a.height.val-i.h,u,c),g=f.biasDiff,v=f.biasComplementDiff;t.autoPadding=function(e,t,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}}(i.w,i.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(i.w,a.width.val),o.x=(-h+i.x1+i.x2+p)/2,t.autoHeight=Math.max(i.h,a.height.val),o.y=(-g+i.y1+i.y2+v)/2}function y(e,t,n){var r=0,a=0,i=t+n;return e>0&&i>0&&(r=t/i*e,a=n/i*e),{biasDiff:r,biasComplementDiff:a}}}for(var r=0;r<this.length;r++){var a=this[r],i=a._private;i.compoundBoundsClean&&!e||(n(a),t.batching()||(i.compoundBoundsClean=!0))}return this};var lo=function(e){return e===1/0||e===-1/0?0:e},uo=function(e,t,n,r,a){r-t!=0&&a-n!=0&&null!=t&&null!=n&&null!=r&&null!=a&&(e.x1=t<e.x1?t:e.x1,e.x2=r>e.x2?r:e.x2,e.y1=n<e.y1?n:e.y1,e.y2=a>e.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},co=function(e,t){return null==t?e:uo(e,t.x1,t.y1,t.x2,t.y2)},ho=function(e,t,n){return rt(e,t,n)},po=function(e,t,n){if(!t.cy().headless()){var r,a,i=t._private,o=i.rstyle,s=o.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=o.srcX,a=o.srcY):"target"===n?(r=o.tgtX,a=o.tgtY):(r=o.midX,a=o.midY);var l=i.arrowBounds=i.arrowBounds||{},u=l[n]=l[n]||{};u.x1=r-s,u.y1=a-s,u.x2=r+s,u.y2=a+s,u.w=u.x2-u.x1,u.h=u.y2-u.y1,jt(u,1),uo(e,u.x1,u.y1,u.x2,u.y2)}}},fo=function(e,t,n){if(!t.cy().headless()){var r;r=n?n+"-":"";var a=t._private,i=a.rstyle;if(t.pstyle(r+"label").strValue){var o,s,l,u,c=t.pstyle("text-halign"),d=t.pstyle("text-valign"),h=ho(i,"labelWidth",n),p=ho(i,"labelHeight",n),f=ho(i,"labelX",n),g=ho(i,"labelY",n),v=t.pstyle(r+"text-margin-x").pfValue,y=t.pstyle(r+"text-margin-y").pfValue,m=t.isEdge(),b=t.pstyle(r+"text-rotation"),x=t.pstyle("text-outline-width").pfValue,w=t.pstyle("text-border-width").pfValue/2,E=t.pstyle("text-background-padding").pfValue,k=p,C=h,S=C/2,P=k/2;if(m)o=f-S,s=f+S,l=g-P,u=g+P;else{switch(c.value){case"left":o=f-C,s=f;break;case"center":o=f-S,s=f+S;break;case"right":o=f,s=f+C}switch(d.value){case"top":l=g-k,u=g;break;case"center":l=g-P,u=g+P;break;case"bottom":l=g,u=g+k}}var D=v-Math.max(x,w)-E-2,T=v+Math.max(x,w)+E+2,_=y-Math.max(x,w)-E-2,M=y+Math.max(x,w)+E+2;o+=D,s+=T,l+=_,u+=M;var B=n||"main",N=a.labelBounds,I=N[B]=N[B]||{};I.x1=o,I.y1=l,I.x2=s,I.y2=u,I.w=s-o,I.h=u-l,I.leftPad=D,I.rightPad=T,I.topPad=_,I.botPad=M;var z=m&&"autorotate"===b.strValue,A=null!=b.pfValue&&0!==b.pfValue;if(z||A){var L=z?ho(a.rstyle,"labelAngle",n):b.pfValue,O=Math.cos(L),R=Math.sin(L),V=(o+s)/2,F=(l+u)/2;if(!m){switch(c.value){case"left":V=s;break;case"right":V=o}switch(d.value){case"top":F=u;break;case"bottom":F=l}}var j=function(e,t){return{x:(e-=V)*O-(t-=F)*R+V,y:e*R+t*O+F}},q=j(o,l),Y=j(o,u),X=j(s,l),W=j(s,u);o=Math.min(q.x,Y.x,X.x,W.x),s=Math.max(q.x,Y.x,X.x,W.x),l=Math.min(q.y,Y.y,X.y,W.y),u=Math.max(q.y,Y.y,X.y,W.y)}var H=B+"Rot",K=N[H]=N[H]||{};K.x1=o,K.y1=l,K.x2=s,K.y2=u,K.w=s-o,K.h=u-l,uo(e,o,l,s,u),uo(a.labelBounds.all,o,l,s,u)}return e}},go=function(e,t){var n,r,a,i,o,s,l,u=e._private.cy,c=u.styleEnabled(),d=u.headless(),h=Rt(),p=e._private,f=e.isNode(),g=e.isEdge(),v=p.rstyle,y=f&&c?e.pstyle("bounds-expansion").pfValue:[0],m=function(e){return"none"!==e.pstyle("display").value},b=!c||m(e)&&(!g||m(e.source())&&m(e.target()));if(b){var x=0;c&&t.includeOverlays&&0!==e.pstyle("overlay-opacity").value&&(x=e.pstyle("overlay-padding").value);var w=0;c&&t.includeUnderlays&&0!==e.pstyle("underlay-opacity").value&&(w=e.pstyle("underlay-padding").value);var E=Math.max(x,w),k=0;if(c&&(k=e.pstyle("width").pfValue/2),f&&t.includeNodes){var C=e.position();o=C.x,s=C.y;var S=e.outerWidth()/2,P=e.outerHeight()/2;uo(h,n=o-S,a=s-P,r=o+S,i=s+P),c&&t.includeOutlines&&function(e,t){if(!t.cy().headless()){var n,r,a,i=t.pstyle("outline-opacity").value,o=t.pstyle("outline-width").value;if(i>0&&o>0){var s=t.pstyle("outline-offset").value,l=t.pstyle("shape").value,u=o+s,c=(e.w+2*u)/e.w,d=(e.h+2*u)/e.h,h=0;["diamond","pentagon","round-triangle"].includes(l)?(c=(e.w+2.4*u)/e.w,h=-u/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(l)?c=(e.w+2.4*u)/e.w:"star"===l?(c=(e.w+2.8*u)/e.w,d=(e.h+2.6*u)/e.h,h=-u/3.8):"triangle"===l?(c=(e.w+2.8*u)/e.w,d=(e.h+2.4*u)/e.h,h=-u/1.4):"vee"===l&&(c=(e.w+4.4*u)/e.w,d=(e.h+3.8*u)/e.h,h=.5*-u);var p=e.h*d-e.h,f=e.w*c-e.w;if(qt(e,[Math.ceil(p/2),Math.ceil(f/2)]),0!==h){var g=(r=0,a=h,{x1:(n=e).x1+r,x2:n.x2+r,y1:n.y1+a,y2:n.y2+a,w:n.w,h:n.h});Vt(e,g)}}}}(h,e)}else if(g&&t.includeEdges)if(c&&!d){var D=e.pstyle("curve-style").strValue;if(n=Math.min(v.srcX,v.midX,v.tgtX),r=Math.max(v.srcX,v.midX,v.tgtX),a=Math.min(v.srcY,v.midY,v.tgtY),i=Math.max(v.srcY,v.midY,v.tgtY),uo(h,n-=k,a-=k,r+=k,i+=k),"haystack"===D){var T=v.haystackPts;if(T&&2===T.length){if(n=T[0].x,a=T[0].y,n>(r=T[1].x)){var _=n;n=r,r=_}if(a>(i=T[1].y)){var M=a;a=i,i=M}uo(h,n-k,a-k,r+k,i+k)}}else if("bezier"===D||"unbundled-bezier"===D||D.endsWith("segments")||D.endsWith("taxi")){var B;switch(D){case"bezier":case"unbundled-bezier":B=v.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":B=v.linePts}if(null!=B)for(var N=0;N<B.length;N++){var I=B[N];n=I.x-k,r=I.x+k,a=I.y-k,i=I.y+k,uo(h,n,a,r,i)}}}else{var z=e.source().position(),A=e.target().position();if((n=z.x)>(r=A.x)){var L=n;n=r,r=L}if((a=z.y)>(i=A.y)){var O=a;a=i,i=O}uo(h,n-=k,a-=k,r+=k,i+=k)}if(c&&t.includeEdges&&g&&(po(h,e,"mid-source"),po(h,e,"mid-target"),po(h,e,"source"),po(h,e,"target")),c)if("yes"===e.pstyle("ghost").value){var R=e.pstyle("ghost-offset-x").pfValue,V=e.pstyle("ghost-offset-y").pfValue;uo(h,h.x1+R,h.y1+V,h.x2+R,h.y2+V)}var F=p.bodyBounds=p.bodyBounds||{};Yt(F,h),qt(F,y),jt(F,1),c&&(n=h.x1,r=h.x2,a=h.y1,i=h.y2,uo(h,n-E,a-E,r+E,i+E));var j=p.overlayBounds=p.overlayBounds||{};Yt(j,h),qt(j,y),jt(j,1);var q=p.labelBounds=p.labelBounds||{};null!=q.all?((l=q.all).x1=1/0,l.y1=1/0,l.x2=-1/0,l.y2=-1/0,l.w=0,l.h=0):q.all=Rt(),c&&t.includeLabels&&(t.includeMainLabels&&fo(h,e,null),g&&(t.includeSourceLabels&&fo(h,e,"source"),t.includeTargetLabels&&fo(h,e,"target")))}return h.x1=lo(h.x1),h.y1=lo(h.y1),h.x2=lo(h.x2),h.y2=lo(h.y2),h.w=lo(h.x2-h.x1),h.h=lo(h.y2-h.y1),h.w>0&&h.h>0&&b&&(qt(h,y),jt(h,1)),h},vo=function(e){var t=0,n=function(e){return(e?1:0)<<t++},r=0;return r+=n(e.incudeNodes),r+=n(e.includeEdges),r+=n(e.includeLabels),r+=n(e.includeMainLabels),r+=n(e.includeSourceLabels),r+=n(e.includeTargetLabels),r+=n(e.includeOverlays),r+=n(e.includeOutlines)},yo=function(e){if(e.isEdge()){var t=e.source().position(),n=e.target().position(),r=function(e){return Math.round(e)};return function(e,t){var n={value:0,done:!1},r=0,a=e.length;return Be({next:function(){return r<a?n.value=e[r++]:n.done=!0,n}},t)}([r(t.x),r(t.y),r(n.x),r(n.y)])}return 0},mo=function(e,t){var n,r=e._private,a=e.isEdge(),i=(null==t?xo:vo(t))===xo,o=yo(e),s=r.bbCachePosKey===o,l=t.useCache&&s,u=function(e){return null==e._private.bbCache||e._private.styleDirty};if(!l||u(e)||a&&(u(e.source())||u(e.target()))?(s||e.recalculateRenderedStyle(l),n=go(e,bo),r.bbCache=n,r.bbCachePosKey=o):n=r.bbCache,!i){var c=e.isNode();n=Rt(),(t.includeNodes&&c||t.includeEdges&&!c)&&(t.includeOverlays?co(n,r.overlayBounds):co(n,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!a||t.includeSourceLabels&&t.includeTargetLabels)?co(n,r.labelBounds.all):(t.includeMainLabels&&co(n,r.labelBounds.mainRot),t.includeSourceLabels&&co(n,r.labelBounds.sourceRot),t.includeTargetLabels&&co(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},bo={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},xo=vo(bo),wo=et(bo);oo.boundingBox=function(e){var t;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==e&&void 0!==e.useCache&&!0!==e.useCache){t=Rt();var n=wo(e=e||bo),r=this;if(r.cy().styleEnabled())for(var a=0;a<r.length;a++){var i=r[a],o=i._private,s=yo(i),l=o.bbCachePosKey===s,u=n.useCache&&l&&!o.styleDirty;i.recalculateRenderedStyle(u)}this.updateCompoundBounds(!e.useCache);for(var c=0;c<r.length;c++){var d=r[c];co(t,mo(d,n))}}else e=void 0===e?bo:wo(e),t=mo(this[0],e);return t.x1=lo(t.x1),t.y1=lo(t.y1),t.x2=lo(t.x2),t.y2=lo(t.y2),t.w=lo(t.x2-t.x1),t.h=lo(t.y2-t.y1),t},oo.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},oo.boundingBoxAt=function(e){var t=this.nodes(),n=this.cy(),r=n.hasCompoundNodes(),a=n.collection();if(r&&(a=t.filter((function(e){return e.isParent()})),t=t.not(a)),E(e)){var i=e;e=function(){return i}}n.startBatch(),t.forEach((function(t,n){return t._private.bbAtOldPos=e(t,n)})).silentPositions(e),r&&(a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),a.updateCompoundBounds(!0));var o=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}}(this.boundingBox({useCache:!1}));return t.silentPositions((function(e){return e._private.bbAtOldPos})),r&&(a.dirtyCompoundBoundsCache(),a.dirtyBoundingBoxCache(),a.updateCompoundBounds(!0)),n.endBatch(),o},io.boundingbox=io.bb=io.boundingBox,io.renderedBoundingbox=io.renderedBoundingBox;var Eo,ko,Co=oo;Eo=ko={};var So=function(e){e.uppercaseName=L(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=L(e.outerName),Eo[e.name]=function(){var t=this[0],n=t._private,r=n.cy._private.styleEnabled;if(t){if(r){if(t.isParent())return t.updateCompoundBounds(),n[e.autoName]||0;var a=t.pstyle(e.name);return"label"===a.strValue?(t.recalculateRenderedStyle(),n.rstyle[e.labelName]||0):a.pfValue}return 1}},Eo["outer"+e.uppercaseName]=function(){var t=this[0],n=t._private.cy._private.styleEnabled;if(t)return n?t[e.name]()+t.pstyle("border-width").pfValue+2*t.padding():1},Eo["rendered"+e.uppercaseName]=function(){var t=this[0];if(t)return t[e.name]()*this.cy().zoom()},Eo["rendered"+e.uppercaseOuterName]=function(){var t=this[0];if(t)return t[e.outerName]()*this.cy().zoom()}};So({name:"width"}),So({name:"height"}),ko.padding=function(){var e=this[0],t=e._private;return e.isParent()?(e.updateCompoundBounds(),void 0!==t.autoPadding?t.autoPadding:e.pstyle("padding").pfValue):e.pstyle("padding").pfValue},ko.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()},ko.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()};var Po=ko,Do={controlPoints:{get:function(e){return e.renderer().getControlPoints(e)},mult:!0},segmentPoints:{get:function(e){return e.renderer().getSegmentPoints(e)},mult:!0},sourceEndpoint:{get:function(e){return e.renderer().getSourceEndpoint(e)}},targetEndpoint:{get:function(e){return e.renderer().getTargetEndpoint(e)}},midpoint:{get:function(e){return e.renderer().getEdgeMidpoint(e)}}},To=Object.keys(Do).reduce((function(e,t){var n=Do[t],r=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)}(t);return e[t]=function(){return function(e,t){if(e.isEdge())return t(e)}(this,n.get)},n.mult?e[r]=function(){return function(e,t){if(e.isEdge()){var n=e.cy(),r=n.pan(),a=n.zoom();return t(e).map((function(e){return Pt(e,a,r)}))}}(this,n.get)}:e[r]=function(){return function(e,t){if(e.isEdge()){var n=e.cy();return Pt(t(e),n.zoom(),n.pan())}}(this,n.get)},e}),{}),_o=Y({},so,Co,Po,To),Mo=function(e,t){this.recycle(e,t)};function Bo(){return!1}function No(){return!0}Mo.prototype={instanceString:function(){return"event"},recycle:function(e,t){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Bo,null!=e&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?No:Bo):null!=e&&e.type?t=e:this.type=e,null!=t&&(this.originalEvent=t.originalEvent,this.type=null!=t.type?t.type:this.type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,r=this.cy.zoom(),a=this.cy.pan();this.renderedPosition={x:n.x*r+a.x,y:n.y*r+a.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=No;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=No;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=No,this.stopPropagation()},isDefaultPrevented:Bo,isPropagationStopped:Bo,isImmediatePropagationStopped:Bo};var Io=/^([^.]+)(\.(?:[^.]+))?$/,zo={qualifierCompare:function(e,t){return e===t},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Ao=Object.keys(zo),Lo={};function Oo(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lo,t=arguments.length>1?arguments[1]:void 0,n=0;n<Ao.length;n++){var r=Ao[n];this[r]=e[r]||zo[r]}this.context=t||this.context,this.listeners=[],this.emitting=0}var Ro=Oo.prototype,Vo=function(e,t,n,r,a,i,o){x(r)&&(a=r,r=null),o&&(i=null==i?o:Y({},i,o));for(var s=w(n)?n:n.split(/\s+/),l=0;l<s.length;l++){var u=s[l];if(!M(u)){var c=u.match(Io);if(c)if(!1===t(e,u,c[1],c[2]?c[2]:null,r,a,i))break}}},Fo=function(e,t){return e.addEventFields(e.context,t),new Mo(t.type,t)},jo=function(e,t,n){if("event"!==m(n))if(E(n))t(e,Fo(e,n));else for(var r=w(n)?n:n.split(/\s+/),a=0;a<r.length;a++){var i=r[a];if(!M(i)){var o=i.match(Io);if(o){var s=o[1],l=o[2]?o[2]:null;t(e,Fo(e,{type:s,namespace:l,target:e.context}))}}}else t(e,n)};Ro.on=Ro.addListener=function(e,t,n,r,a){return Vo(this,(function(e,t,n,r,a,i,o){x(i)&&e.listeners.push({event:t,callback:i,type:n,namespace:r,qualifier:a,conf:o})}),e,t,n,r,a),this},Ro.one=function(e,t,n,r){return this.on(e,t,n,r,{one:!0})},Ro.removeListener=Ro.off=function(e,t,n,r){var a=this;0!==this.emitting&&(this.listeners=this.listeners.slice());for(var i=this.listeners,o=function(o){var s=i[o];Vo(a,(function(t,n,r,a,l,u){if((s.type===r||"*"===e)&&(!a&&".*"!==s.namespace||s.namespace===a)&&(!l||t.qualifierCompare(s.qualifier,l))&&(!u||s.callback===u))return i.splice(o,1),!1}),e,t,n,r)},s=i.length-1;s>=0;s--)o(s);return this},Ro.removeAllListeners=function(){return this.removeListener("*")},Ro.emit=Ro.trigger=function(e,t,n){var r=this.listeners,a=r.length;return this.emitting++,w(t)||(t=[t]),jo(this,(function(e,i){null!=n&&(r=[{event:i.event,type:i.type,namespace:i.namespace,callback:n}],a=r.length);for(var o=function(n){var a=r[n];if(a.type===i.type&&(!a.namespace||a.namespace===i.namespace||".*"===a.namespace)&&e.eventMatches(e.context,a,i)){var o=[i];null!=t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}}(o,t),e.beforeEmit(e.context,a,i),a.conf&&a.conf.one&&(e.listeners=e.listeners.filter((function(e){return e!==a})));var s=e.callbackContext(e.context,a,i),l=a.callback.apply(s,o);e.afterEmit(e.context,a,i),!1===l&&(i.stopPropagation(),i.preventDefault())}},s=0;s<a;s++)o(s);e.bubble(e.context)&&!i.isPropagationStopped()&&e.parent(e.context).emit(i,t)}),e),this.emitting--,this};var qo={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&P(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e.cy(),t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e},beforeEmit:function(e,t){t.conf&&t.conf.once&&t.conf.onceCollection.removeListener(t.event,t.qualifier,t.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Yo=function(e){return b(e)?new Fi(e):e},Xo={createEmitter:function(){for(var e=0;e<this.length;e++){var t=this[e],n=t._private;n.emitter||(n.emitter=new Oo(qo,t))}return this},emitter:function(){return this._private.emitter},on:function(e,t,n){for(var r=Yo(t),a=0;a<this.length;a++){this[a].emitter().on(e,r,n)}return this},removeListener:function(e,t,n){for(var r=Yo(t),a=0;a<this.length;a++){this[a].emitter().removeListener(e,r,n)}return this},removeAllListeners:function(){for(var e=0;e<this.length;e++){this[e].emitter().removeAllListeners()}return this},one:function(e,t,n){for(var r=Yo(t),a=0;a<this.length;a++){this[a].emitter().one(e,r,n)}return this},once:function(e,t,n){for(var r=Yo(t),a=0;a<this.length;a++){this[a].emitter().on(e,r,n,{once:!0,onceCollection:this})}},emit:function(e,t){for(var n=0;n<this.length;n++){this[n].emitter().emit(e,t)}return this},emitAndNotify:function(e,t){if(0!==this.length)return this.cy().notify(e,this),this.emit(e,t),this}};ni.eventAliasesOn(Xo);var Wo={nodes:function(e){return this.filter((function(e){return e.isNode()})).filter(e)},edges:function(e){return this.filter((function(e){return e.isEdge()})).filter(e)},byGroup:function(){for(var e=this.spawn(),t=this.spawn(),n=0;n<this.length;n++){var r=this[n];r.isNode()?e.push(r):t.push(r)}return{nodes:e,edges:t}},filter:function(e,t){if(void 0===e)return this;if(b(e)||S(e))return new Fi(e).filter(this);if(x(e)){for(var n=this.spawn(),r=this,a=0;a<r.length;a++){var i=r[a];(t?e.apply(t,[i,a,r]):e(i,a,r))&&n.push(i)}return n}return this.spawn()},not:function(e){if(e){b(e)&&(e=this.filter(e));for(var t=this.spawn(),n=0;n<this.length;n++){var r=this[n];e.has(r)||t.push(r)}return t}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(e){if(b(e)){var t=e;return this.filter(t)}for(var n=this.spawn(),r=e,a=this.length<e.length,i=a?this:r,o=a?r:this,s=0;s<i.length;s++){var l=i[s];o.has(l)&&n.push(l)}return n},xor:function(e){var t=this._private.cy;b(e)&&(e=t.$(e));var n=this.spawn(),r=e,a=function(e,t){for(var r=0;r<e.length;r++){var a=e[r],i=a._private.data.id;t.hasElementWithId(i)||n.push(a)}};return a(this,r),a(r,this),n},diff:function(e){var t=this._private.cy;b(e)&&(e=t.$(e));var n=this.spawn(),r=this.spawn(),a=this.spawn(),i=e,o=function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r],o=i._private.data.id;t.hasElementWithId(o)?a.merge(i):n.push(i)}};return o(this,i,n),o(i,this,r),{left:n,right:r,both:a}},add:function(e){var t=this._private.cy;if(!e)return this;if(b(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=this.spawnSelf(),a=0;a<e.length;a++){var i=e[a],o=!this.has(i);o&&r.push(i)}return r},merge:function(e){var t=this._private,n=t.cy;if(!e)return this;if(e&&b(e)){var r=e;e=n.mutableElements().filter(r)}for(var a=t.map,i=0;i<e.length;i++){var o=e[i],s=o._private.data.id;if(!a.has(s)){var l=this.length++;this[l]=o,a.set(s,{ele:o,index:l})}}return this},unmergeAt:function(e){var t=this[e].id(),n=this._private.map;this[e]=void 0,n.delete(t);var r=e===this.length-1;if(this.length>1&&!r){var a=this.length-1,i=this[a],o=i._private.data.id;this[a]=void 0,this[e]=i,n.set(o,{ele:i,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var a=r.index;return this.unmergeAt(a),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&b(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r<e.length;r++)this.unmergeOne(e[r]);return this},unmergeBy:function(e){for(var t=this.length-1;t>=0;t--){e(this[t])&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,a=0;a<r.length;a++){var i=r[a],o=t?e.apply(t,[i,a,r]):e(i,a,r);n.push(o)}return n},reduce:function(e,t){for(var n=t,r=this,a=0;a<r.length;a++)n=e(n,r[a],a,r);return n},max:function(e,t){for(var n,r=-1/0,a=this,i=0;i<a.length;i++){var o=a[i],s=t?e.apply(t,[o,i,a]):e(o,i,a);s>r&&(r=s,n=o)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,a=this,i=0;i<a.length;i++){var o=a[i],s=t?e.apply(t,[o,i,a]):e(o,i,a);s<r&&(r=s,n=o)}return{value:r,ele:n}}},Ho=Wo;Ho.u=Ho["|"]=Ho["+"]=Ho.union=Ho.or=Ho.add,Ho["\\"]=Ho["!"]=Ho["-"]=Ho.difference=Ho.relativeComplement=Ho.subtract=Ho.not,Ho.n=Ho["&"]=Ho["."]=Ho.and=Ho.intersection=Ho.intersect,Ho["^"]=Ho["(+)"]=Ho["(-)"]=Ho.symmetricDifference=Ho.symdiff=Ho.xor,Ho.fnFilter=Ho.filterFn=Ho.stdFilter=Ho.filter,Ho.complement=Ho.abscomp=Ho.absoluteComplement;var Ko=function(e,t){var n=e.cy().hasCompoundNodes();function r(e){var t=e.pstyle("z-compound-depth");return"auto"===t.value?n?e.zDepth():0:"bottom"===t.value?-1:"top"===t.value?qe:0}var a=r(e)-r(t);if(0!==a)return a;function i(e){return"auto"===e.pstyle("z-index-compare").value&&e.isNode()?1:0}var o=i(e)-i(t);if(0!==o)return o;var s=e.pstyle("z-index").value-t.pstyle("z-index").value;return 0!==s?s:e.poolIndex()-t.poolIndex()},Go={forEach:function(e,t){if(x(e))for(var n=this.length,r=0;r<n;r++){var a=this[r];if(!1===(t?e.apply(t,[a,r,this]):e(a,r,this)))break}return this},toArray:function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t]);return e},slice:function(e,t){var n=[],r=this.length;null==t&&(t=r),null==e&&(e=0),e<0&&(e=r+e),t<0&&(t=r+t);for(var a=e;a>=0&&a<t&&a<r;a++)n.push(this[a]);return this.spawn(n)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(e){if(!x(e))return this;var t=this.toArray().sort(e);return this.spawn(t)},sortByZIndex:function(){return this.sort(Ko)},zDepth:function(){var e=this[0];if(e){var t=e._private;if("nodes"===t.group){var n=t.data.parent?e.parents().size():0;return e.isParent()?n:qe-1}var r=t.source,a=t.target,i=r.zDepth(),o=a.zDepth();return Math.max(i,o,0)}}};Go.each=Go.forEach;var Uo;Uo="undefined",("undefined"==typeof Symbol?"undefined":r(Symbol))!=Uo&&r(Symbol.iterator)!=Uo&&(Go[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return s({next:function(){return n<r?t.value=e[n++]:(t.value=void 0,t.done=!0),t}},Symbol.iterator,(function(){return this}))});var Zo=et({nodeDimensionsIncludeLabels:!1}),$o={layoutDimensions:function(e){var t;if(e=Zo(e),this.takesUpSpace())if(e.nodeDimensionsIncludeLabels){var n=this.boundingBox();t={w:n.w,h:n.h}}else t={w:this.outerWidth(),h:this.outerHeight()};else t={w:0,h:0};return 0!==t.w&&0!==t.h||(t.w=t.h=1),t},layoutPositions:function(e,t,n){var r=this.nodes().filter((function(e){return!e.isParent()})),a=this.cy(),i=t.eles,o=function(e){return e.id()},s=N(n,o);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=t.spacingFactor&&1!==t.spacingFactor,u=function(){if(!l)return null;for(var e=Rt(),t=0;t<r.length;t++){var n=r[t],a=s(n,t);Ft(e,a.x,a.y)}return e}(),c=N((function(e,n){var r=s(e,n);l&&(r=function(e,t,n){var r=t.x1+t.w/2,a=t.y1+t.h/2;return{x:r+(n.x-r)*e,y:a+(n.y-a)*e}}(Math.abs(t.spacingFactor),u,r));return null!=t.transform&&(r=t.transform(e,r)),r}),o);if(t.animate){for(var d=0;d<r.length;d++){var h=r[d],p=c(h,d);if(null==t.animateFilter||t.animateFilter(h,d)){var f=h.animation({position:p,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(f)}else h.position(p)}if(t.fit){var g=a.animation({fit:{boundingBox:i.boundingBoxAt(c),padding:t.padding},duration:t.animationDuration,easing:t.animationEasing});e.animations.push(g)}else if(void 0!==t.zoom&&void 0!==t.pan){var v=a.animation({zoom:t.zoom,pan:t.pan,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(v)}e.animations.forEach((function(e){return e.play()})),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),Tr.all(e.animations.map((function(e){return e.promise()}))).then((function(){e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e})}))}else r.positions(c),t.fit&&a.fit(t.eles,t.padding),null!=t.zoom&&a.zoom(t.zoom),t.pan&&a.pan(t.pan),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){return this.cy().makeLayout(Y({},e,{eles:this}))}};function Qo(e,t,n){var r,a=n._private,i=a.styleCache=a.styleCache||[];return null!=(r=i[e])?r:r=i[e]=t(n)}function Jo(e,t){return e=Le(e),function(n){return Qo(e,t,n)}}function es(e,t){e=Le(e);var n=function(e){return t.call(e)};return function(){var t=this[0];if(t)return Qo(e,n,t)}}$o.createLayout=$o.makeLayout=$o.layout;var ts={recalculateRenderedStyle:function(e){var t=this.cy(),n=t.renderer(),r=t.styleEnabled();return n&&r&&n.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e,t=this.cy(),n=function(e){return e._private.styleCache=null};t.hasCompoundNodes()?((e=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(e.connectedEdges()),e.forEach(n)):this.forEach((function(e){n(e),e.connectedEdges().forEach(n)}));return this},updateStyle:function(e){var t=this._private.cy;if(!t.styleEnabled())return this;if(t.batching())return t._private.batchStyleEles.merge(this),this;var n=this;e=!(!e&&void 0!==e),t.hasCompoundNodes()&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var r=n;return e?r.emitAndNotify("style"):r.emit("style"),n.forEach((function(e){return e._private.styleDirty=!0})),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var t=0;t<this.length;t++){var n=this[t];n._private.styleDirty&&(n._private.styleDirty=!1,e.style().apply(n))}},parsedStyle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[e];return null!=a?a:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled())return t?t.pstyle(e).units:void 0},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];return n?t.style().getRenderedStyle(n,e):void 0},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,a=n.style();if(E(e)){var i=e;a.applyBypass(this,i,r),this.emitAndNotify("style")}else if(b(e)){if(void 0===t){var o=this[0];return o?a.getStylePropertyValue(o,e):void 0}a.applyBypass(this,e,t,r),this.emitAndNotify("style")}else if(void 0===e){var s=this[0];return s?a.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),a=this;if(void 0===e)for(var i=0;i<a.length;i++){var o=a[i];r.removeAllBypasses(o,n)}else{e=e.split(/\s+/);for(var s=0;s<a.length;s++){var l=a[s];r.removeBypasses(l,e,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var t=e.hasCompoundNodes(),n=this[0];if(n){var r=n._private,a=n.pstyle("opacity").value;if(!t)return a;var i=r.data.parent?n.parents():null;if(i)for(var o=0;o<i.length;o++){a*=i[o].pstyle("opacity").value}return a}},transparent:function(){if(!this.cy().styleEnabled())return!1;var e=this[0],t=e.cy().hasCompoundNodes();return e?t?0===e.effectiveOpacity():0===e.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function ns(e,t){var n=e._private.data.parent?e.parents():null;if(n)for(var r=0;r<n.length;r++){if(!t(n[r]))return!1}return!0}function rs(e){var t=e.ok,n=e.edgeOkViaNode||e.ok,r=e.parentOk||e.ok;return function(){var e=this.cy();if(!e.styleEnabled())return!0;var a=this[0],i=e.hasCompoundNodes();if(a){var o=a._private;if(!t(a))return!1;if(a.isNode())return!i||ns(a,r);var s=o.source,l=o.target;return n(s)&&(!i||ns(s,n))&&(s===l||n(l)&&(!i||ns(l,n)))}}}var as=Jo("eleTakesUpSpace",(function(e){return"element"===e.pstyle("display").value&&0!==e.width()&&(!e.isNode()||0!==e.height())}));ts.takesUpSpace=es("takesUpSpace",rs({ok:as}));var is=Jo("eleInteractive",(function(e){return"yes"===e.pstyle("events").value&&"visible"===e.pstyle("visibility").value&&as(e)})),os=Jo("parentInteractive",(function(e){return"visible"===e.pstyle("visibility").value&&as(e)}));ts.interactive=es("interactive",rs({ok:is,parentOk:os,edgeOkViaNode:as})),ts.noninteractive=function(){var e=this[0];if(e)return!e.interactive()};var ss=Jo("eleVisible",(function(e){return"visible"===e.pstyle("visibility").value&&0!==e.pstyle("opacity").pfValue&&as(e)})),ls=as;ts.visible=es("visible",rs({ok:ss,edgeOkViaNode:ls})),ts.hidden=function(){var e=this[0];if(e)return!e.visible()},ts.isBundledBezier=es("isBundledBezier",(function(){return!!this.cy().styleEnabled()&&(!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace())})),ts.bypass=ts.css=ts.style,ts.renderedCss=ts.renderedStyle,ts.removeBypass=ts.removeCss=ts.removeStyle,ts.pstyle=ts.parsedStyle;var us={};function cs(e){return function(){var t=arguments,n=[];if(2===t.length){var r=t[0],a=t[1];this.on(e.event,r,a)}else if(1===t.length&&x(t[0])){var i=t[0];this.on(e.event,i)}else if(0===t.length||1===t.length&&w(t[0])){for(var o=1===t.length?t[0]:null,s=0;s<this.length;s++){var l=this[s],u=!e.ableField||l._private[e.ableField],c=l._private[e.field]!=e.value;if(e.overrideAble){var d=e.overrideAble(l);if(void 0!==d&&(u=d,!d))return this}u&&(l._private[e.field]=e.value,c&&n.push(l))}var h=this.spawn(n);h.updateStyle(),h.emit(e.event),o&&h.emit(o)}return this}}function ds(e){us[e.field]=function(){var t=this[0];if(t){if(e.overrideField){var n=e.overrideField(t);if(void 0!==n)return n}return t._private[e.field]}},us[e.on]=cs({event:e.on,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!0}),us[e.off]=cs({event:e.off,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!1})}ds({field:"locked",overrideField:function(e){return!!e.cy().autolock()||void 0},on:"lock",off:"unlock"}),ds({field:"grabbable",overrideField:function(e){return!e.cy().autoungrabify()&&!e.pannable()&&void 0},on:"grabify",off:"ungrabify"}),ds({field:"selected",ableField:"selectable",overrideAble:function(e){return!e.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),ds({field:"selectable",overrideField:function(e){return!e.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),us.deselect=us.unselect,us.grabbed=function(){var e=this[0];if(e)return e._private.grabbed},ds({field:"active",on:"activate",off:"unactivate"}),ds({field:"pannable",on:"panify",off:"unpanify"}),us.inactive=function(){var e=this[0];if(e)return!e._private.active};var hs={},ps=function(e){return function(t){for(var n=[],r=0;r<this.length;r++){var a=this[r];if(a.isNode()){for(var i=!1,o=a.connectedEdges(),s=0;s<o.length;s++){var l=o[s],u=l.source(),c=l.target();if(e.noIncomingEdges&&c===a&&u!==a||e.noOutgoingEdges&&u===a&&c!==a){i=!0;break}}i||n.push(a)}}return this.spawn(n,!0).filter(t)}},fs=function(e){return function(t){for(var n=[],r=0;r<this.length;r++){var a=this[r];if(a.isNode())for(var i=a.connectedEdges(),o=0;o<i.length;o++){var s=i[o],l=s.source(),u=s.target();e.outgoing&&l===a?(n.push(s),n.push(u)):e.incoming&&u===a&&(n.push(s),n.push(l))}}return this.spawn(n,!0).filter(t)}},gs=function(e){return function(t){for(var n=this,r=[],a={};;){var i=e.outgoing?n.outgoers():n.incomers();if(0===i.length)break;for(var o=!1,s=0;s<i.length;s++){var l=i[s],u=l.id();a[u]||(a[u]=!0,r.push(l),o=!0)}if(!o)break;n=i}return this.spawn(r,!0).filter(t)}};function vs(e){return function(t){for(var n=[],r=0;r<this.length;r++){var a=this[r]._private[e.attr];a&&n.push(a)}return this.spawn(n,!0).filter(t)}}function ys(e){return function(t){var n=[],r=this._private.cy,a=e||{};b(t)&&(t=r.$(t));for(var i=0;i<t.length;i++)for(var o=t[i]._private.edges,s=0;s<o.length;s++){var l=o[s],u=l._private.data,c=this.hasElementWithId(u.source)&&t.hasElementWithId(u.target),d=t.hasElementWithId(u.source)&&this.hasElementWithId(u.target);if(c||d){if(a.thisIsSrc||a.thisIsTgt){if(a.thisIsSrc&&!c)continue;if(a.thisIsTgt&&!d)continue}n.push(l)}}return this.spawn(n,!0)}}function ms(e){return e=Y({},{codirected:!1},e),function(t){for(var n=[],r=this.edges(),a=e,i=0;i<r.length;i++)for(var o=r[i]._private,s=o.source,l=s._private.data.id,u=o.data.target,c=s._private.edges,d=0;d<c.length;d++){var h=c[d],p=h._private.data,f=p.target,g=p.source,v=f===u&&g===l,y=l===f&&u===g;(a.codirected&&v||!a.codirected&&(v||y))&&n.push(h)}return this.spawn(n,!0).filter(t)}}hs.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null},Y(hs,{roots:ps({noIncomingEdges:!0}),leaves:ps({noOutgoingEdges:!0}),outgoers:Wi(fs({outgoing:!0}),"outgoers"),successors:gs({outgoing:!0}),incomers:Wi(fs({incoming:!0}),"incomers"),predecessors:gs({incoming:!0})}),Y(hs,{neighborhood:Wi((function(e){for(var t=[],n=this.nodes(),r=0;r<n.length;r++)for(var a=n[r],i=a.connectedEdges(),o=0;o<i.length;o++){var s=i[o],l=s.source(),u=s.target(),c=a===l?u:l;c.length>0&&t.push(c[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)}),"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),hs.neighbourhood=hs.neighborhood,hs.closedNeighbourhood=hs.closedNeighborhood,hs.openNeighbourhood=hs.openNeighborhood,Y(hs,{source:Wi((function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t}),"source"),target:Wi((function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t}),"target"),sources:vs({attr:"source"}),targets:vs({attr:"target"})}),Y(hs,{edgesWith:Wi(ys(),"edgesWith"),edgesTo:Wi(ys({thisIsSrc:!0}),"edgesTo")}),Y(hs,{connectedEdges:Wi((function(e){for(var t=[],n=0;n<this.length;n++){var r=this[n];if(r.isNode())for(var a=r._private.edges,i=0;i<a.length;i++){var o=a[i];t.push(o)}}return this.spawn(t,!0).filter(e)}),"connectedEdges"),connectedNodes:Wi((function(e){for(var t=[],n=0;n<this.length;n++){var r=this[n];r.isEdge()&&(t.push(r.source()[0]),t.push(r.target()[0]))}return this.spawn(t,!0).filter(e)}),"connectedNodes"),parallelEdges:Wi(ms(),"parallelEdges"),codirectedEdges:Wi(ms({codirected:!0}),"codirectedEdges")}),Y(hs,{components:function(e){var t=this,n=t.cy(),r=n.collection(),a=null==e?t.nodes():e.nodes(),i=[];null!=e&&a.empty()&&(a=e.sources());var o=function(e,t){r.merge(e),a.unmerge(e),t.merge(e)};if(a.empty())return t.spawn();var s=function(){var e=n.collection();i.push(e);var r=a[0];o(r,e),t.bfs({directed:!1,roots:r,visit:function(t){return o(t,e)}}),e.forEach((function(n){n.connectedEdges().forEach((function(n){t.has(n)&&e.has(n.source())&&e.has(n.target())&&e.merge(n)}))}))};do{s()}while(a.length>0);return i},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),hs.componentsOf=hs.components;var bs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var a=new it,i=!1;if(t){if(t.length>0&&E(t[0])&&!P(t[0])){i=!0;for(var o=[],s=new st,l=0,u=t.length;l<u;l++){var c=t[l];null==c.data&&(c.data={});var d=c.data;if(null==d.id)d.id=$e();else if(e.hasElementWithId(d.id)||s.has(d.id))continue;var h=new lt(e,c,!1);o.push(h),s.add(d.id)}t=o}}else t=[];this.length=0;for(var p=0,f=t.length;p<f;p++){var g=t[p][0];if(null!=g){var v=g._private.data.id;n&&a.has(v)||(n&&a.set(v,{index:this.length,ele:g}),this[this.length]=g,this.length++)}}this._private={eles:this,cy:e,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(e){this.lazyMap=e},rebuildMap:function(){for(var e=this.lazyMap=new it,t=this.eles,n=0;n<t.length;n++){var r=t[n];e.set(r.id(),{index:n,ele:r})}}},n&&(this._private.map=a),i&&!r&&this.restore()}else Ke("A collection must have a reference to the core")},xs=lt.prototype=bs.prototype=Object.create(Array.prototype);xs.instanceString=function(){return"collection"},xs.spawn=function(e,t){return new bs(this.cy(),e,t)},xs.spawnSelf=function(){return this.spawn(this)},xs.cy=function(){return this._private.cy},xs.renderer=function(){return this._private.cy.renderer()},xs.element=function(){return this[0]},xs.collection=function(){return D(this)?this:new bs(this._private.cy,[this])},xs.unique=function(){return new bs(this._private.cy,this,!0)},xs.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)},xs.getElementById=function(e){e=""+e;var t=this._private.cy,n=this._private.map.get(e);return n?n.ele:new bs(t)},xs.$id=xs.getElementById,xs.poolIndex=function(){var e=this._private.cy._private.elements,t=this[0]._private.data.id;return e._private.map.get(t).index},xs.indexOf=function(e){var t=e[0]._private.data.id;return this._private.map.get(t).index},xs.indexOfId=function(e){return e=""+e,this._private.map.get(e).index},xs.json=function(e){var t=this.element(),n=this.cy();if(null==t&&e)return this;if(null!=t){var r=t._private;if(E(e)){if(n.startBatch(),e.data){t.data(e.data);var a=r.data;if(t.isEdge()){var i=!1,o={},s=e.data.source,l=e.data.target;null!=s&&s!=a.source&&(o.source=""+s,i=!0),null!=l&&l!=a.target&&(o.target=""+l,i=!0),i&&(t=t.move(o))}else{var u="parent"in e.data,c=e.data.parent;!u||null==c&&null==a.parent||c==a.parent||(void 0===c&&(c=null),null!=c&&(c=""+c),t=t.move({parent:c}))}}e.position&&t.position(e.position);var d=function(n,a,i){var o=e[n];null!=o&&o!==r[n]&&(o?t[a]():t[i]())};return d("removed","remove","restore"),d("selected","select","unselect"),d("selectable","selectify","unselectify"),d("locked","lock","unlock"),d("grabbable","grabify","ungrabify"),d("pannable","panify","unpanify"),null!=e.classes&&t.classes(e.classes),n.endBatch(),this}if(void 0===e){var h={data:Ze(r.data),position:Ze(r.position),group:r.group,removed:r.removed,selected:r.selected,selectable:r.selectable,locked:r.locked,grabbable:r.grabbable,pannable:r.pannable,classes:null};h.classes="";var p=0;return r.classes.forEach((function(e){return h.classes+=0==p++?e:" "+e})),h}}},xs.jsons=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t].json();e.push(n)}return e},xs.clone=function(){for(var e=this.cy(),t=[],n=0;n<this.length;n++){var r=this[n].json(),a=new lt(e,r,!1);t.push(a)}return new bs(e,t)},xs.copy=xs.clone,xs.restore=function(){for(var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=this,i=a.cy(),o=i._private,s=[],l=[],u=0,c=a.length;u<c;u++){var d=a[u];r&&!d.removed()||(d.isNode()?s.push(d):l.push(d))}e=s.concat(l);var h=function(){e.splice(t,1),t--};for(t=0;t<e.length;t++){var p=e[t],f=p._private,g=f.data;if(p.clearTraversalCache(),r||f.removed)if(void 0===g.id)g.id=$e();else if(k(g.id))g.id=""+g.id;else{if(M(g.id)||!b(g.id)){Ke("Can not create element with invalid string ID `"+g.id+"`"),h();continue}if(i.hasElementWithId(g.id)){Ke("Can not create second element with ID `"+g.id+"`"),h();continue}}else;var v=g.id;if(p.isNode()){var y=f.position;null==y.x&&(y.x=0),null==y.y&&(y.y=0)}if(p.isEdge()){for(var m=p,x=["source","target"],w=x.length,E=!1,C=0;C<w;C++){var S=x[C],P=g[S];k(P)&&(P=g[S]=""+g[S]),null==P||""===P?(Ke("Can not create edge `"+v+"` with unspecified "+S),E=!0):i.hasElementWithId(P)||(Ke("Can not create edge `"+v+"` with nonexistant "+S+" `"+P+"`"),E=!0)}if(E){h();continue}var D=i.getElementById(g.source),T=i.getElementById(g.target);D.same(T)?D._private.edges.push(m):(D._private.edges.push(m),T._private.edges.push(m)),m._private.source=D,m._private.target=T}f.map=new it,f.map.set(v,{ele:p,index:0}),f.removed=!1,r&&i.addToPool(p)}for(var _=0;_<s.length;_++){var B=s[_],N=B._private.data;k(N.parent)&&(N.parent=""+N.parent);var I=N.parent;if(null!=I||B._private.parent){var z=B._private.parent?i.collection().merge(B._private.parent):i.getElementById(I);if(z.empty())N.parent=void 0;else if(z[0].removed())Ue("Node added with missing parent, reference to parent removed"),N.parent=void 0,B._private.parent=null;else{for(var A=!1,L=z;!L.empty();){if(B.same(L)){A=!0,N.parent=void 0;break}L=L.parent()}A||(z[0]._private.children.push(B),B._private.parent=z[0],o.hasCompoundNodes=!0)}}}if(e.length>0){for(var O=e.length===a.length?a:new bs(i,e),R=0;R<O.length;R++){var V=O[R];V.isNode()||(V.parallelEdges().clearTraversalCache(),V.source().clearTraversalCache(),V.target().clearTraversalCache())}(o.hasCompoundNodes?i.collection().merge(O).merge(O.connectedNodes()).merge(O.parent()):O).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?O.emitAndNotify("add"):r&&O.emit("add")}return a},xs.removed=function(){var e=this[0];return e&&e._private.removed},xs.inside=function(){var e=this[0];return e&&!e._private.removed},xs.remove=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],a={},i=n._private.cy;function o(e){var n=a[e.id()];t&&e.removed()||n||(a[e.id()]=!0,e.isNode()?(r.push(e),function(e){for(var t=e._private.edges,n=0;n<t.length;n++)o(t[n])}(e),function(e){for(var t=e._private.children,n=0;n<t.length;n++)o(t[n])}(e)):r.unshift(e))}for(var s=0,l=n.length;s<l;s++){o(n[s])}function u(e,t){var n=e._private.edges;tt(n,t),e.clearTraversalCache()}function c(e){e.clearTraversalCache()}var d=[];function h(e,t){t=t[0];var n=(e=e[0])._private.children,r=e.id();tt(n,t),t._private.parent=null,d.ids[r]||(d.ids[r]=!0,d.push(e))}d.ids={},n.dirtyCompoundBoundsCache(),t&&i.removeFromPool(r);for(var p=0;p<r.length;p++){var f=r[p];if(f.isEdge()){var g=f.source()[0],v=f.target()[0];u(g,f),u(v,f);for(var y=f.parallelEdges(),m=0;m<y.length;m++){var b=y[m];c(b),b.isBundledBezier()&&b.dirtyBoundingBoxCache()}}else{var x=f.parent();0!==x.length&&h(x,f)}t&&(f._private.removed=!0)}var w=i._private.elements;i._private.hasCompoundNodes=!1;for(var E=0;E<w.length;E++){if(w[E].isParent()){i._private.hasCompoundNodes=!0;break}}var k=new bs(this.cy(),r);k.size()>0&&(e?k.emitAndNotify("remove"):t&&k.emit("remove"));for(var C=0;C<d.length;C++){var S=d[C];t&&S.removed()||S.updateStyle()}return k},xs.move=function(e){var t=this._private.cy,n=this,r=!1,a=!1,i=function(e){return null==e?e:""+e};if(void 0!==e.source||void 0!==e.target){var o=i(e.source),s=i(e.target),l=null!=o&&t.hasElementWithId(o),u=null!=s&&t.hasElementWithId(s);(l||u)&&(t.batch((function(){n.remove(r,a),n.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var t=n[e],i=t._private.data;t.isEdge()&&(l&&(i.source=o),u&&(i.target=s))}n.restore(r,a)})),n.emitAndNotify("move"))}else if(void 0!==e.parent){var c=i(e.parent);if(null===c||t.hasElementWithId(c)){var d=null===c?void 0:c;t.batch((function(){var e=n.remove(r,a);e.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var i=n[t],o=i._private.data;i.isNode()&&(o.parent=d)}e.restore(r,a)})),n.emitAndNotify("move")}}return this},[wr,ri,ai,qi,Hi,Ji,eo,_o,Xo,Wo,{isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},Go,$o,ts,us,hs].forEach((function(e){Y(xs,e)}));var ws={add:function(e){var t,n=this;if(S(e)){var r=e;if(r._private.cy===n)t=r.restore();else{for(var a=[],i=0;i<r.length;i++){var o=r[i];a.push(o.json())}t=new bs(n,a)}}else if(w(e)){t=new bs(n,e)}else if(E(e)&&(w(e.nodes)||w(e.edges))){for(var s=e,l=[],u=["nodes","edges"],c=0,d=u.length;c<d;c++){var h=u[c],p=s[h];if(w(p))for(var f=0,g=p.length;f<g;f++){var v=Y({group:h},p[f]);l.push(v)}}t=new bs(n,l)}else{t=new lt(n,e).collection()}return t},remove:function(e){if(S(e));else if(b(e)){var t=e;e=this.$(t)}return e.remove()}};function Es(e,t,n,r){var a=4,i=1e-7,o=10,s=11,l=1/(s-1),u="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var c=0;c<4;++c)if("number"!=typeof arguments[c]||isNaN(arguments[c])||!isFinite(arguments[c]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var d=u?new Float32Array(s):new Array(s);function h(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function f(e){return 3*e}function g(e,t,n){return((h(t,n)*e+p(t,n))*e+f(t))*e}function v(e,t,n){return 3*h(t,n)*e*e+2*p(t,n)*e+f(t)}function y(t){for(var r=0,u=1,c=s-1;u!==c&&d[u]<=t;++u)r+=l;--u;var h=r+(t-d[u])/(d[u+1]-d[u])*l,p=v(h,e,n);return p>=.001?function(t,r){for(var i=0;i<a;++i){var o=v(r,e,n);if(0===o)return r;r-=(g(r,e,n)-t)/o}return r}(t,h):0===p?h:function(t,r,a){var s,l,u=0;do{(s=g(l=r+(a-r)/2,e,n)-t)>0?a=l:r=l}while(Math.abs(s)>i&&++u<o);return l}(t,r,r+l)}var m=!1;function b(){m=!0,e===t&&n===r||function(){for(var t=0;t<s;++t)d[t]=g(t*l,e,n)}()}var x=function(a){return m||b(),e===t&&n===r?a:0===a?0:1===a?1:g(y(a),t,r)};x.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var w="generateBezier("+[e,t,n,r]+")";return x.toString=function(){return w},x}var ks=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var a={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:a.v,dv:e(a)}}function n(n,r){var a={dx:n.v,dv:e(n)},i=t(n,.5*r,a),o=t(n,.5*r,i),s=t(n,r,o),l=1/6*(a.dx+2*(i.dx+o.dx)+s.dx),u=1/6*(a.dv+2*(i.dv+o.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+u*r,n}return function e(t,r,a){var i,o,s,l={x:-1,v:0,tension:null,friction:null},u=[0],c=0,d=1e-4;for(t=parseFloat(t)||500,r=parseFloat(r)||20,a=a||null,l.tension=t,l.friction=r,o=(i=null!==a)?(c=e(t,r))/a*.016:.016;s=n(s||l,o),u.push(1+s.x),c+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return i?function(e){return u[e*(u.length-1)|0]}:c}}(),Cs=function(e,t,n,r){var a=Es(e,t,n,r);return function(e,t,n){return e+(t-e)*a(n)}},Ss={linear:function(e,t,n){return e+(t-e)*n},ease:Cs(.25,.1,.25,1),"ease-in":Cs(.42,0,1,1),"ease-out":Cs(0,0,.58,1),"ease-in-out":Cs(.42,0,.58,1),"ease-in-sine":Cs(.47,0,.745,.715),"ease-out-sine":Cs(.39,.575,.565,1),"ease-in-out-sine":Cs(.445,.05,.55,.95),"ease-in-quad":Cs(.55,.085,.68,.53),"ease-out-quad":Cs(.25,.46,.45,.94),"ease-in-out-quad":Cs(.455,.03,.515,.955),"ease-in-cubic":Cs(.55,.055,.675,.19),"ease-out-cubic":Cs(.215,.61,.355,1),"ease-in-out-cubic":Cs(.645,.045,.355,1),"ease-in-quart":Cs(.895,.03,.685,.22),"ease-out-quart":Cs(.165,.84,.44,1),"ease-in-out-quart":Cs(.77,0,.175,1),"ease-in-quint":Cs(.755,.05,.855,.06),"ease-out-quint":Cs(.23,1,.32,1),"ease-in-out-quint":Cs(.86,0,.07,1),"ease-in-expo":Cs(.95,.05,.795,.035),"ease-out-expo":Cs(.19,1,.22,1),"ease-in-out-expo":Cs(1,0,0,1),"ease-in-circ":Cs(.6,.04,.98,.335),"ease-out-circ":Cs(.075,.82,.165,1),"ease-in-out-circ":Cs(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return Ss.linear;var r=ks(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":Cs};function Ps(e,t,n,r,a){if(1===r)return n;if(t===n)return n;var i=a(t,n,r);return null==e||((e.roundValue||e.color)&&(i=Math.round(i)),void 0!==e.min&&(i=Math.max(i,e.min)),void 0!==e.max&&(i=Math.min(i,e.max))),i}function Ds(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function Ts(e,t,n,r,a){var i=null!=a?a.type:null;n<0?n=0:n>1&&(n=1);var o=Ds(e,a),s=Ds(t,a);if(k(o)&&k(s))return Ps(i,o,s,n,r);if(w(o)&&w(s)){for(var l=[],u=0;u<s.length;u++){var c=o[u],d=s[u];if(null!=c&&null!=d){var h=Ps(i,c,d,n,r);l.push(h)}else l.push(d)}return l}}function _s(e,t,n,r){var a=!r,i=e._private,o=t._private,s=o.easing,l=o.startTime,u=(r?e:e.cy()).style();if(!o.easingImpl)if(null==s)o.easingImpl=Ss.linear;else{var c,d,h;if(b(s))c=u.parse("transition-timing-function",s).value;else c=s;b(c)?(d=c,h=[]):(d=c[1],h=c.slice(2).map((function(e){return+e}))),h.length>0?("spring"===d&&h.push(o.duration),o.easingImpl=Ss[d].apply(null,h)):o.easingImpl=Ss[d]}var p,f=o.easingImpl;if(p=0===o.duration?1:(n-l)/o.duration,o.applying&&(p=o.progress),p<0?p=0:p>1&&(p=1),null==o.delay){var g=o.startPosition,v=o.position;if(v&&a&&!e.locked()){var y={};Ms(g.x,v.x)&&(y.x=Ts(g.x,v.x,p,f)),Ms(g.y,v.y)&&(y.y=Ts(g.y,v.y,p,f)),e.position(y)}var m=o.startPan,x=o.pan,w=i.pan,E=null!=x&&r;E&&(Ms(m.x,x.x)&&(w.x=Ts(m.x,x.x,p,f)),Ms(m.y,x.y)&&(w.y=Ts(m.y,x.y,p,f)),e.emit("pan"));var k=o.startZoom,C=o.zoom,S=null!=C&&r;S&&(Ms(k,C)&&(i.zoom=Ot(i.minZoom,Ts(k,C,p,f),i.maxZoom)),e.emit("zoom")),(E||S)&&e.emit("viewport");var P=o.style;if(P&&P.length>0&&a){for(var D=0;D<P.length;D++){var T=P[D],_=T.name,M=T,B=o.startStyle[_],N=Ts(B,M,p,f,u.properties[B.name]);u.overrideBypass(e,_,N)}e.emit("style")}}return o.progress=p,p}function Ms(e,t){return null!=e&&null!=t&&(!(!k(e)||!k(t))||!(!e||!t))}function Bs(e,t,n,r){var a=t._private;a.started=!0,a.startTime=n-a.progress*a.duration}function Ns(e,t){var n=t._private.aniEles,r=[];function a(t,n){var a=t._private,i=a.animation.current,o=a.animation.queue,s=!1;if(0===i.length){var l=o.shift();l&&i.push(l)}for(var u=function(e){for(var t=e.length-1;t>=0;t--){(0,e[t])()}e.splice(0,e.length)},c=i.length-1;c>=0;c--){var d=i[c],h=d._private;h.stopped?(i.splice(c,1),h.hooked=!1,h.playing=!1,h.started=!1,u(h.frames)):(h.playing||h.applying)&&(h.playing&&h.applying&&(h.applying=!1),h.started||Bs(0,d,e),_s(t,d,e,n),h.applying&&(h.applying=!1),u(h.frames),null!=h.step&&h.step(e),d.completed()&&(i.splice(c,1),h.hooked=!1,h.playing=!1,h.started=!1,u(h.completes)),s=!0)}return n||0!==i.length||0!==o.length||r.push(t),s}for(var i=!1,o=0;o<n.length;o++){var s=a(n[o]);i=i||s}var l=a(t,!0);(i||l)&&(n.length>0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var Is={animate:ni.animate(),animation:ni.animation(),animated:ni.animated(),clearQueue:ni.clearQueue(),delay:ni.delay(),delayAnimation:ni.delayAnimation(),stop:ni.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender((function(t,n){Ns(n,e)}),t.beforeRenderPriorities.animations):function t(){e._private.animationsRunning&&De((function(n){Ns(n,e),t()}))}()}}},zs={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&P(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},As=function(e){return b(e)?new Fi(e):e},Ls={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Oo(zs,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,As(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,As(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,As(t),n),this},once:function(e,t,n){return this.emitter().one(e,As(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};ni.eventAliasesOn(Ls);var Os={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};Os.jpeg=Os.jpg;var Rs={layout:function(e){var t=this;if(null!=e)if(null!=e.name){var n=e.name,r=t.extension("layout",n);if(null!=r){var a;a=b(e.eles)?t.$(e.eles):null!=e.eles?e.eles:t.$();var i=new r(Y({},e,{cy:t,eles:a}));return i}Ke("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?")}else Ke("A `name` must be specified to make a layout");else Ke("Layout options must be specified to make a layout")}};Rs.createLayout=Rs.makeLayout=Rs.layout;var Vs={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();null!=t&&r.merge(t)}else if(n.notificationsEnabled){var a=this.renderer();!this.destroyed()&&a&&a.notify(e,t)}},notifications:function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach((function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)}))}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch((function(){for(var n=Object.keys(e),r=0;r<n.length;r++){var a=n[r],i=e[a];t.getElementById(a).data(i)}}))}},Fs=et({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),js={renderTo:function(e,t,n,r){return this._private.renderer.renderTo(e,t,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var t=this,n=t.extension("renderer",e.name);if(null!=n){void 0!==e.wheelSensitivity&&Ue("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var r=Fs(e);r.cy=t,t._private.renderer=new n(r),this.notify("init")}else Ke("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){var e=this;e.notify("destroy");var t=e.container();if(t)for(t._cyreg=null;t.childNodes.length>0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach((function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]}))},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};js.invalidateDimensions=js.resize;var qs={collection:function(e,t){return b(e)?this.$(e):S(e)?e.collection():w(e)?(t||(t={}),new bs(this,e,t.unique,t.removed)):new bs(this)},nodes:function(e){var t=this.$((function(e){return e.isNode()}));return e?t.filter(e):t},edges:function(e){var t=this.$((function(e){return e.isEdge()}));return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};qs.elements=qs.filter=qs.$;var Ys={},Xs="t";Ys.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r<e.length;r++){var a=e[r],i=t.getContextMeta(a);if(!i.empty){var o=t.getContextStyle(i),s=t.applyContextStyle(i,o,a);a._private.appliedInitStyle?t.updateTransitions(a,s.diffProps):a._private.appliedInitStyle=!0,t.updateStyleHints(a)&&n.push(a)}}return n},Ys.getPropertiesDiff=function(e,t){var n=this,r=n._private.propDiffs=n._private.propDiffs||{},a=e+"-"+t,i=r[a];if(i)return i;for(var o=[],s={},l=0;l<n.length;l++){var u=n[l],c=e[l]===Xs,d=t[l]===Xs,h=c!==d,p=u.mappedProperties.length>0;if(h||d&&p){var f=void 0;h&&p||h?f=u.properties:p&&(f=u.mappedProperties);for(var g=0;g<f.length;g++){for(var v=f[g],y=v.name,m=!1,b=l+1;b<n.length;b++){var x=n[b];if(t[b]===Xs&&(m=null!=x.properties[v.name]))break}s[y]||m||(s[y]=!0,o.push(y))}}}return r[a]=o,o},Ys.getContextMeta=function(e){for(var t,n=this,r="",a=e._private.styleCxtKey||"",i=0;i<n.length;i++){var o=n[i];r+=o.selector&&o.selector.matches(e)?Xs:"f"}return t=n.getPropertiesDiff(a,r),e._private.styleCxtKey=r,{key:r,diffPropNames:t,empty:0===t.length}},Ys.getContextStyle=function(e){var t=e.key,n=this._private.contextStyles=this._private.contextStyles||{};if(n[t])return n[t];for(var r={_private:{key:t}},a=0;a<this.length;a++){var i=this[a];if(t[a]===Xs)for(var o=0;o<i.properties.length;o++){var s=i.properties[o];r[s.name]=s}}return n[t]=r,r},Ys.applyContextStyle=function(e,t,n){for(var r=e.diffPropNames,a={},i=this.types,o=0;o<r.length;o++){var s=r[o],l=t[s],u=n.pstyle(s);if(!l){if(!u)continue;l=u.bypass?{name:s,deleteBypassed:!0}:{name:s,delete:!0}}if(u!==l){if(l.mapped===i.fn&&null!=u&&null!=u.mapping&&u.mapping.value===l.value){var c=u.mapping;if((c.fnValue=l.value(n))===c.prevFnValue)continue}var d=a[s]={prev:u};this.applyParsedProperty(n,l),d.next=n.pstyle(s),d.next&&d.next.bypass&&(d.next=d.next.bypassed)}}return{diffProps:a}},Ys.updateStyleHints=function(e){var t=e._private,n=this,r=n.propertyGroupNames,a=n.propertyGroupKeys,i=function(e,t,r){return n.getPropertiesHash(e,t,r)},o=t.styleKey;if(e.removed())return!1;var s="nodes"===t.group,l=e._private.style;r=Object.keys(l);for(var u=0;u<a.length;u++){var c=a[u];t.styleKeys[c]=[_e,Me]}for(var d,h=function(e,n){return t.styleKeys[n][0]=Ne(e,t.styleKeys[n][0])},p=function(e,n){return t.styleKeys[n][1]=Ie(e,t.styleKeys[n][1])},f=function(e,t){h(e,t),p(e,t)},g=function(e,t){for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);h(r,t),p(r,t)}},v=0;v<r.length;v++){var y=r[v],m=l[y];if(null!=m){var b=this.properties[y],x=b.type,w=b.groupKey,E=void 0;null!=b.hashOverride?E=b.hashOverride(e,m):null!=m.pfValue&&(E=m.pfValue);var k=null==b.enums?m.value:null,C=null!=E,S=C||null!=k,P=m.units;if(x.number&&S&&!x.multiple)f(-128<(d=C?E:k)&&d<128&&Math.floor(d)!==d?2e9-(1024*d|0):d,w),C||null==P||g(P,w);else g(m.strValue,w)}}for(var D,T,_=[_e,Me],M=0;M<a.length;M++){var B=a[M],N=t.styleKeys[B];_[0]=Ne(N[0],_[0]),_[1]=Ie(N[1],_[1])}t.styleKey=(D=_[0],T=_[1],2097152*D+T);var I=t.styleKeys;t.labelDimsKey=ze(I.labelDimensions);var z=i(e,["label"],I.labelDimensions);if(t.labelKey=ze(z),t.labelStyleKey=ze(Ae(I.commonLabel,z)),!s){var A=i(e,["source-label"],I.labelDimensions);t.sourceLabelKey=ze(A),t.sourceLabelStyleKey=ze(Ae(I.commonLabel,A));var L=i(e,["target-label"],I.labelDimensions);t.targetLabelKey=ze(L),t.targetLabelStyleKey=ze(Ae(I.commonLabel,L))}if(s){var O=t.styleKeys,R=O.nodeBody,V=O.nodeBorder,F=O.nodeOutline,j=O.backgroundImage,q=O.compound,Y=O.pie,X=[R,V,F,j,q,Y].filter((function(e){return null!=e})).reduce(Ae,[_e,Me]);t.nodeKey=ze(X),t.hasPie=null!=Y&&Y[0]!==_e&&Y[1]!==Me}return o!==t.styleKey},Ys.clearStyleHints=function(e){var t=e._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null},Ys.applyParsedProperty=function(e,t){var n,r=this,a=t,i=e._private.style,o=r.types,s=r.properties[a.name].type,l=a.bypass,u=i[a.name],c=u&&u.bypass,d=e._private,h="mapping",p=function(e){return null==e?null:null!=e.pfValue?e.pfValue:e.value},f=function(){var t=p(u),n=p(a);r.checkTriggers(e,a.name,t,n)};if("curve-style"===t.name&&e.isEdge()&&("bezier"!==t.value&&e.isLoop()||"haystack"===t.value&&(e.source().isParent()||e.target().isParent()))&&(a=t=this.parse(t.name,"bezier",l)),a.delete)return i[a.name]=void 0,f(),!0;if(a.deleteBypassed)return u?!!u.bypass&&(u.bypassed=void 0,f(),!0):(f(),!0);if(a.deleteBypass)return u?!!u.bypass&&(i[a.name]=u.bypassed,f(),!0):(f(),!0);var g=function(){Ue("Do not assign mappings to elements without corresponding data (i.e. ele `"+e.id()+"` has no mapping for property `"+a.name+"` with data field `"+a.field+"`); try a `["+a.field+"]` selector to limit scope to elements with `"+a.field+"` defined")};switch(a.mapped){case o.mapData:for(var v,y=a.field.split("."),m=d.data,b=0;b<y.length&&m;b++){m=m[y[b]]}if(null==m)return g(),!1;if(!k(m))return Ue("Do not use continuous mappers without specifying numeric data (i.e. `"+a.field+": "+m+"` for `"+e.id()+"` is non-numeric)"),!1;var x=a.fieldMax-a.fieldMin;if((v=0===x?0:(m-a.fieldMin)/x)<0?v=0:v>1&&(v=1),s.color){var w=a.valueMin[0],E=a.valueMax[0],C=a.valueMin[1],S=a.valueMax[1],P=a.valueMin[2],D=a.valueMax[2],T=null==a.valueMin[3]?1:a.valueMin[3],_=null==a.valueMax[3]?1:a.valueMax[3],M=[Math.round(w+(E-w)*v),Math.round(C+(S-C)*v),Math.round(P+(D-P)*v),Math.round(T+(_-T)*v)];n={bypass:a.bypass,name:a.name,value:M,strValue:"rgb("+M[0]+", "+M[1]+", "+M[2]+")"}}else{if(!s.number)return!1;var B=a.valueMin+(a.valueMax-a.valueMin)*v;n=this.parse(a.name,B,a.bypass,h)}if(!n)return g(),!1;n.mapping=a,a=n;break;case o.data:for(var N=a.field.split("."),I=d.data,z=0;z<N.length&&I;z++){I=I[N[z]]}if(null!=I&&(n=this.parse(a.name,I,a.bypass,h)),!n)return g(),!1;n.mapping=a,a=n;break;case o.fn:var A=a.value,L=null!=a.fnValue?a.fnValue:A(e);if(a.prevFnValue=L,null==L)return Ue("Custom function mappers may not return null (i.e. `"+a.name+"` for ele `"+e.id()+"` is null)"),!1;if(!(n=this.parse(a.name,L,a.bypass,h)))return Ue("Custom function mappers may not return invalid values for the property type (i.e. `"+a.name+"` for ele `"+e.id()+"` is invalid)"),!1;n.mapping=Ze(a),a=n;break;case void 0:break;default:return!1}return l?(a.bypassed=c?u.bypassed:u,i[a.name]=a):c?u.bypassed=a:i[a.name]=a,f(),!0},Ys.cleanElements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(this.clearStyleHints(r),r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),t)for(var a=r._private.style,i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],l=a[s];null!=l&&(l.bypass?l.bypassed=null:a[s]=null)}else r._private.style={}}},Ys.update=function(){this._private.cy.mutableElements().updateStyle()},Ys.updateTransitions=function(e,t){var n=this,r=e._private,a=e.pstyle("transition-property").value,i=e.pstyle("transition-duration").pfValue,o=e.pstyle("transition-delay").pfValue;if(a.length>0&&i>0){for(var s={},l=!1,u=0;u<a.length;u++){var c=a[u],d=e.pstyle(c),h=t[c];if(h){var p=h.prev,f=null!=h.next?h.next:d,g=!1,v=void 0,y=1e-6;p&&(k(p.pfValue)&&k(f.pfValue)?(g=f.pfValue-p.pfValue,v=p.pfValue+y*g):k(p.value)&&k(f.value)?(g=f.value-p.value,v=p.value+y*g):w(p.value)&&w(f.value)&&(g=p.value[0]!==f.value[0]||p.value[1]!==f.value[1]||p.value[2]!==f.value[2],v=p.strValue),g&&(s[c]=f.strValue,this.applyBypass(e,c,v),l=!0))}}if(!l)return;r.transitioning=!0,new Tr((function(t){o>0?e.delayAnimation(o).play().promise().then(t):t()})).then((function(){return e.animation({style:s,duration:i,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(e,a),e.emitAndNotify("style"),r.transitioning=!1}))}else r.transitioning&&(this.removeBypasses(e,a),e.emitAndNotify("style"),r.transitioning=!1)},Ys.checkTrigger=function(e,t,n,r,a,i){var o=this.properties[t],s=a(o);null!=s&&s(n,r)&&i(o)},Ys.checkZOrderTrigger=function(e,t,n,r){var a=this;this.checkTrigger(e,t,n,r,(function(e){return e.triggersZOrder}),(function(){a._private.cy.notify("zorder",e)}))},Ys.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,(function(e){return e.triggersBounds}),(function(a){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache(),!a.triggersBoundsOfParallelBeziers||"curve-style"!==t||"bezier"!==n&&"bezier"!==r||e.parallelEdges().forEach((function(e){e.dirtyBoundingBoxCache()})),!a.triggersBoundsOfConnectedEdges||"display"!==t||"none"!==n&&"none"!==r||e.connectedEdges().forEach((function(e){e.dirtyBoundingBoxCache()}))}))},Ys.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r)};var Ws={applyBypass:function(e,t,n,r){var a=[];if("*"===t||"**"===t){if(void 0!==n)for(var i=0;i<this.properties.length;i++){var o=this.properties[i].name,s=this.parse(o,n,!0);s&&a.push(s)}}else if(b(t)){var l=this.parse(t,n,!0);l&&a.push(l)}else{if(!E(t))return!1;var u=t;r=n;for(var c=Object.keys(u),d=0;d<c.length;d++){var h=c[d],p=u[h];if(void 0===p&&(p=u[z(h)]),void 0!==p){var f=this.parse(h,p,!0);f&&a.push(f)}}}if(0===a.length)return!1;for(var g=!1,v=0;v<e.length;v++){for(var y=e[v],m={},x=void 0,w=0;w<a.length;w++){var k=a[w];if(r){var C=y.pstyle(k.name);x=m[k.name]={prev:C}}g=this.applyParsedProperty(y,Ze(k))||g,r&&(x.next=y.pstyle(k.name))}g&&this.updateStyleHints(y),r&&this.updateTransitions(y,m,true)}return g},overrideBypass:function(e,t,n){t=I(t);for(var r=0;r<e.length;r++){var a=e[r],i=a._private.style[t],o=this.properties[t].type,s=o.color,l=o.mutiple,u=i?null!=i.pfValue?i.pfValue:i.value:null;i&&i.bypass?(i.value=n,null!=i.pfValue&&(i.pfValue=n),i.strValue=s?"rgb("+n.join(",")+")":l?n.join(" "):""+n,this.updateStyleHints(a)):this.applyBypass(a,t,n),this.checkTriggers(a,t,u,n)}},removeAllBypasses:function(e,t){return this.removeBypasses(e,this.propertyNames,t)},removeBypasses:function(e,t,n){for(var r=0;r<e.length;r++){for(var a=e[r],i={},o=0;o<t.length;o++){var s=t[o],l=this.properties[s],u=a.pstyle(l.name);if(u&&u.bypass){var c=this.parse(s,"",!0),d=i[l.name]={prev:u};this.applyParsedProperty(a,c),d.next=a.pstyle(l.name)}}this.updateStyleHints(a),n&&this.updateTransitions(a,i,true)}}},Hs={getEmSizeInPixels:function(){var e=this.containerCss("font-size");return null!=e?parseFloat(e):1},containerCss:function(e){var t=this._private.cy,n=t.container(),r=t.window();if(r&&n&&r.getComputedStyle)return r.getComputedStyle(n).getPropertyValue(e)}},Ks={getRenderedStyle:function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)},getRawStyle:function(e,t){var n=this;if(e=e[0]){for(var r={},a=0;a<n.properties.length;a++){var i=n.properties[a],o=n.getStylePropertyValue(e,i.name,t);null!=o&&(r[i.name]=o,r[z(i.name)]=o)}return r}},getIndexedStyle:function(e,t,n,r){var a=e.pstyle(t)[n][r];return null!=a?a:e.cy().style().getDefaultProperty(t)[n][0]},getStylePropertyValue:function(e,t,n){if(e=e[0]){var r=this.properties[t];r.alias&&(r=r.pointsTo);var a=r.type,i=e.pstyle(r.name);if(i){var o=i.value,s=i.units,l=i.strValue;if(n&&a.number&&null!=o&&k(o)){var u=e.cy().zoom(),c=function(e){return e*u},d=function(e,t){return c(e)+t},h=w(o);return(h?s.every((function(e){return null!=e})):null!=s)?h?o.map((function(e,t){return d(e,s[t])})).join(" "):d(o,s):h?o.map((function(e){return b(e)?e:""+c(e)})).join(" "):""+c(o)}if(null!=l)return l}return null}},getAnimationStartStyle:function(e,t){for(var n={},r=0;r<t.length;r++){var a=t[r].name,i=e.pstyle(a);void 0!==i&&(i=E(i)?this.parse(a,i.strValue):this.parse(a,i)),i&&(n[a]=i)}return n},getPropsList:function(e){var t=[],n=e,r=this.properties;if(n)for(var a=Object.keys(n),i=0;i<a.length;i++){var o=a[i],s=n[o],l=r[o]||r[I(o)],u=this.parse(l.name,s);u&&t.push(u)}return t},getNonDefaultPropertiesHash:function(e,t,n){var r,a,i,o,s,l,u=n.slice();for(s=0;s<t.length;s++)if(r=t[s],null!=(a=e.pstyle(r,!1)))if(null!=a.pfValue)u[0]=Ne(o,u[0]),u[1]=Ie(o,u[1]);else for(i=a.strValue,l=0;l<i.length;l++)o=i.charCodeAt(l),u[0]=Ne(o,u[0]),u[1]=Ie(o,u[1]);return u}};Ks.getPropertiesHash=Ks.getNonDefaultPropertiesHash;var Gs={appendFromJson:function(e){for(var t=this,n=0;n<e.length;n++){var r=e[n],a=r.selector,i=r.style||r.css,o=Object.keys(i);t.selector(a);for(var s=0;s<o.length;s++){var l=o[s],u=i[l];t.css(l,u)}}return t},fromJson:function(e){var t=this;return t.resetToDefault(),t.appendFromJson(e),t},json:function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var n=this[t],r=n.selector,a=n.properties,i={},o=0;o<a.length;o++){var s=a[o];i[s.name]=s.strValue}e.push({selector:r?r.toString():"core",style:i})}return e}},Us={appendFromString:function(e){var t,n,r,a=this,i=""+e;function o(){i=i.length>t.length?i.substr(t.length):""}function s(){n=n.length>r.length?n.substr(r.length):""}for(i=i.replace(/[/][*](\s|.)+?[*][/]/g,"");;){if(i.match(/^\s*$/))break;var l=i.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){Ue("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+i);break}t=l[0];var u=l[1];if("core"!==u)if(new Fi(u).invalid){Ue("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),o();continue}var c=l[2],d=!1;n=c;for(var h=[];;){if(n.match(/^\s*$/))break;var p=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){Ue("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+c),d=!0;break}r=p[0];var f=p[1],g=p[2];if(this.properties[f])a.parse(f,g)?(h.push({name:f,val:g}),s()):(Ue("Skipping property: Invalid property definition in: "+r),s());else Ue("Skipping property: Invalid property name in: "+r),s()}if(d){o();break}a.selector(u);for(var v=0;v<h.length;v++){var y=h[v];a.css(y.name,y.val)}o()}return a},fromString:function(e){var t=this;return t.resetToDefault(),t.appendFromString(e),t}},Zs={};!function(){var e=O,t=V,n=j,r=function(e){return"^"+e+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},a=function(r){var a=e+"|\\w+|"+t+"|"+n+"|\\#[0-9a-fA-F]{3}|\\#[0-9a-fA-F]{6}";return"^"+r+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+e+")\\s*\\,\\s*("+e+")\\s*,\\s*("+a+")\\s*\\,\\s*("+a+")\\)$"},i=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];Zs.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:r("data")},layoutData:{mapping:!0,regex:r("layoutData")},scratch:{mapping:!0,regex:r("scratch")},mapData:{mapping:!0,regex:a("mapData")},mapLayoutData:{mapping:!0,regex:a("mapLayoutData")},mapScratch:{mapping:!0,regex:a("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:i,singleRegexMatchValue:!0},urls:{regexes:i,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(e,t){switch(e.length){case 2:return"deg"!==t[0]&&"rad"!==t[0]&&"deg"!==t[1]&&"rad"!==t[1];case 1:return b(e[0])||"deg"===t[0]||"rad"===t[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(e){var t=e.length;return 1===t||2===t||4===t}}};var o={zeroNonZero:function(e,t){return(null==e||null==t)&&e!==t||(0==e&&0!=t||0!=e&&0==t)},any:function(e,t){return e!=t},emptyNonEmpty:function(e,t){var n=M(e),r=M(t);return n&&!r||!n&&r}},s=Zs.types,l=[{name:"label",type:s.text,triggersBounds:o.any,triggersZOrder:o.emptyNonEmpty},{name:"text-rotation",type:s.textRotation,triggersBounds:o.any},{name:"text-margin-x",type:s.bidirectionalSize,triggersBounds:o.any},{name:"text-margin-y",type:s.bidirectionalSize,triggersBounds:o.any}],u=[{name:"source-label",type:s.text,triggersBounds:o.any},{name:"source-text-rotation",type:s.textRotation,triggersBounds:o.any},{name:"source-text-margin-x",type:s.bidirectionalSize,triggersBounds:o.any},{name:"source-text-margin-y",type:s.bidirectionalSize,triggersBounds:o.any},{name:"source-text-offset",type:s.size,triggersBounds:o.any}],c=[{name:"target-label",type:s.text,triggersBounds:o.any},{name:"target-text-rotation",type:s.textRotation,triggersBounds:o.any},{name:"target-text-margin-x",type:s.bidirectionalSize,triggersBounds:o.any},{name:"target-text-margin-y",type:s.bidirectionalSize,triggersBounds:o.any},{name:"target-text-offset",type:s.size,triggersBounds:o.any}],d=[{name:"font-family",type:s.fontFamily,triggersBounds:o.any},{name:"font-style",type:s.fontStyle,triggersBounds:o.any},{name:"font-weight",type:s.fontWeight,triggersBounds:o.any},{name:"font-size",type:s.size,triggersBounds:o.any},{name:"text-transform",type:s.textTransform,triggersBounds:o.any},{name:"text-wrap",type:s.textWrap,triggersBounds:o.any},{name:"text-overflow-wrap",type:s.textOverflowWrap,triggersBounds:o.any},{name:"text-max-width",type:s.size,triggersBounds:o.any},{name:"text-outline-width",type:s.size,triggersBounds:o.any},{name:"line-height",type:s.positiveNumber,triggersBounds:o.any}],h=[{name:"text-valign",type:s.valign,triggersBounds:o.any},{name:"text-halign",type:s.halign,triggersBounds:o.any},{name:"color",type:s.color},{name:"text-outline-color",type:s.color},{name:"text-outline-opacity",type:s.zeroOneNumber},{name:"text-background-color",type:s.color},{name:"text-background-opacity",type:s.zeroOneNumber},{name:"text-background-padding",type:s.size,triggersBounds:o.any},{name:"text-border-opacity",type:s.zeroOneNumber},{name:"text-border-color",type:s.color},{name:"text-border-width",type:s.size,triggersBounds:o.any},{name:"text-border-style",type:s.borderStyle,triggersBounds:o.any},{name:"text-background-shape",type:s.textBackgroundShape,triggersBounds:o.any},{name:"text-justification",type:s.justification}],p=[{name:"events",type:s.bool,triggersZOrder:o.any},{name:"text-events",type:s.bool,triggersZOrder:o.any}],f=[{name:"display",type:s.display,triggersZOrder:o.any,triggersBounds:o.any,triggersBoundsOfConnectedEdges:!0},{name:"visibility",type:s.visibility,triggersZOrder:o.any},{name:"opacity",type:s.zeroOneNumber,triggersZOrder:o.zeroNonZero},{name:"text-opacity",type:s.zeroOneNumber},{name:"min-zoomed-font-size",type:s.size},{name:"z-compound-depth",type:s.zCompoundDepth,triggersZOrder:o.any},{name:"z-index-compare",type:s.zIndexCompare,triggersZOrder:o.any},{name:"z-index",type:s.number,triggersZOrder:o.any}],g=[{name:"overlay-padding",type:s.size,triggersBounds:o.any},{name:"overlay-color",type:s.color},{name:"overlay-opacity",type:s.zeroOneNumber,triggersBounds:o.zeroNonZero},{name:"overlay-shape",type:s.overlayShape,triggersBounds:o.any},{name:"overlay-corner-radius",type:s.cornerRadius}],v=[{name:"underlay-padding",type:s.size,triggersBounds:o.any},{name:"underlay-color",type:s.color},{name:"underlay-opacity",type:s.zeroOneNumber,triggersBounds:o.zeroNonZero},{name:"underlay-shape",type:s.overlayShape,triggersBounds:o.any},{name:"underlay-corner-radius",type:s.cornerRadius}],y=[{name:"transition-property",type:s.propList},{name:"transition-duration",type:s.time},{name:"transition-delay",type:s.time},{name:"transition-timing-function",type:s.easing}],m=function(e,t){return"label"===t.value?-e.poolIndex():t.pfValue},x=[{name:"height",type:s.nodeSize,triggersBounds:o.any,hashOverride:m},{name:"width",type:s.nodeSize,triggersBounds:o.any,hashOverride:m},{name:"shape",type:s.nodeShape,triggersBounds:o.any},{name:"shape-polygon-points",type:s.polygonPointList,triggersBounds:o.any},{name:"corner-radius",type:s.cornerRadius},{name:"background-color",type:s.color},{name:"background-fill",type:s.fill},{name:"background-opacity",type:s.zeroOneNumber},{name:"background-blacken",type:s.nOneOneNumber},{name:"background-gradient-stop-colors",type:s.colors},{name:"background-gradient-stop-positions",type:s.percentages},{name:"background-gradient-direction",type:s.gradientDirection},{name:"padding",type:s.sizeMaybePercent,triggersBounds:o.any},{name:"padding-relative-to",type:s.paddingRelativeTo,triggersBounds:o.any},{name:"bounds-expansion",type:s.boundsExpansion,triggersBounds:o.any}],w=[{name:"border-color",type:s.color},{name:"border-opacity",type:s.zeroOneNumber},{name:"border-width",type:s.size,triggersBounds:o.any},{name:"border-style",type:s.borderStyle},{name:"border-cap",type:s.lineCap},{name:"border-join",type:s.lineJoin},{name:"border-dash-pattern",type:s.numbers},{name:"border-dash-offset",type:s.number},{name:"border-position",type:s.linePosition}],E=[{name:"outline-color",type:s.color},{name:"outline-opacity",type:s.zeroOneNumber},{name:"outline-width",type:s.size,triggersBounds:o.any},{name:"outline-style",type:s.borderStyle},{name:"outline-offset",type:s.size,triggersBounds:o.any}],k=[{name:"background-image",type:s.urls},{name:"background-image-crossorigin",type:s.bgCrossOrigin},{name:"background-image-opacity",type:s.zeroOneNumbers},{name:"background-image-containment",type:s.bgContainment},{name:"background-image-smoothing",type:s.bools},{name:"background-position-x",type:s.bgPos},{name:"background-position-y",type:s.bgPos},{name:"background-width-relative-to",type:s.bgRelativeTo},{name:"background-height-relative-to",type:s.bgRelativeTo},{name:"background-repeat",type:s.bgRepeat},{name:"background-fit",type:s.bgFit},{name:"background-clip",type:s.bgClip},{name:"background-width",type:s.bgWH},{name:"background-height",type:s.bgWH},{name:"background-offset-x",type:s.bgPos},{name:"background-offset-y",type:s.bgPos}],C=[{name:"position",type:s.position,triggersBounds:o.any},{name:"compound-sizing-wrt-labels",type:s.compoundIncludeLabels,triggersBounds:o.any},{name:"min-width",type:s.size,triggersBounds:o.any},{name:"min-width-bias-left",type:s.sizeMaybePercent,triggersBounds:o.any},{name:"min-width-bias-right",type:s.sizeMaybePercent,triggersBounds:o.any},{name:"min-height",type:s.size,triggersBounds:o.any},{name:"min-height-bias-top",type:s.sizeMaybePercent,triggersBounds:o.any},{name:"min-height-bias-bottom",type:s.sizeMaybePercent,triggersBounds:o.any}],S=[{name:"line-style",type:s.lineStyle},{name:"line-color",type:s.color},{name:"line-fill",type:s.fill},{name:"line-cap",type:s.lineCap},{name:"line-opacity",type:s.zeroOneNumber},{name:"line-dash-pattern",type:s.numbers},{name:"line-dash-offset",type:s.number},{name:"line-outline-width",type:s.size},{name:"line-outline-color",type:s.color},{name:"line-gradient-stop-colors",type:s.colors},{name:"line-gradient-stop-positions",type:s.percentages},{name:"curve-style",type:s.curveStyle,triggersBounds:o.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:s.zeroOneNumber,triggersBounds:o.any},{name:"source-endpoint",type:s.edgeEndpoint,triggersBounds:o.any},{name:"target-endpoint",type:s.edgeEndpoint,triggersBounds:o.any},{name:"control-point-step-size",type:s.size,triggersBounds:o.any},{name:"control-point-distances",type:s.bidirectionalSizes,triggersBounds:o.any},{name:"control-point-weights",type:s.numbers,triggersBounds:o.any},{name:"segment-distances",type:s.bidirectionalSizes,triggersBounds:o.any},{name:"segment-weights",type:s.numbers,triggersBounds:o.any},{name:"segment-radii",type:s.numbers,triggersBounds:o.any},{name:"radius-type",type:s.radiusType,triggersBounds:o.any},{name:"taxi-turn",type:s.bidirectionalSizeMaybePercent,triggersBounds:o.any},{name:"taxi-turn-min-distance",type:s.size,triggersBounds:o.any},{name:"taxi-direction",type:s.axisDirection,triggersBounds:o.any},{name:"taxi-radius",type:s.number,triggersBounds:o.any},{name:"edge-distances",type:s.edgeDistances,triggersBounds:o.any},{name:"arrow-scale",type:s.positiveNumber,triggersBounds:o.any},{name:"loop-direction",type:s.angle,triggersBounds:o.any},{name:"loop-sweep",type:s.angle,triggersBounds:o.any},{name:"source-distance-from-node",type:s.size,triggersBounds:o.any},{name:"target-distance-from-node",type:s.size,triggersBounds:o.any}],P=[{name:"ghost",type:s.bool,triggersBounds:o.any},{name:"ghost-offset-x",type:s.bidirectionalSize,triggersBounds:o.any},{name:"ghost-offset-y",type:s.bidirectionalSize,triggersBounds:o.any},{name:"ghost-opacity",type:s.zeroOneNumber}],D=[{name:"selection-box-color",type:s.color},{name:"selection-box-opacity",type:s.zeroOneNumber},{name:"selection-box-border-color",type:s.color},{name:"selection-box-border-width",type:s.size},{name:"active-bg-color",type:s.color},{name:"active-bg-opacity",type:s.zeroOneNumber},{name:"active-bg-size",type:s.size},{name:"outside-texture-bg-color",type:s.color},{name:"outside-texture-bg-opacity",type:s.zeroOneNumber}],T=[];Zs.pieBackgroundN=16,T.push({name:"pie-size",type:s.sizeMaybePercent});for(var _=1;_<=Zs.pieBackgroundN;_++)T.push({name:"pie-"+_+"-background-color",type:s.color}),T.push({name:"pie-"+_+"-background-size",type:s.percent}),T.push({name:"pie-"+_+"-background-opacity",type:s.zeroOneNumber});var B=[],N=Zs.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:s.arrowShape,triggersBounds:o.any},{name:"arrow-color",type:s.color},{name:"arrow-fill",type:s.arrowFill},{name:"arrow-width",type:s.arrowWidth}].forEach((function(e){N.forEach((function(t){var n=t+"-"+e.name,r=e.type,a=e.triggersBounds;B.push({name:n,type:r,triggersBounds:a})}))}),{});var I=Zs.properties=[].concat(p,y,f,g,v,P,h,d,l,u,c,x,w,E,k,T,C,S,B,D),z=Zs.propertyGroups={behavior:p,transition:y,visibility:f,overlay:g,underlay:v,ghost:P,commonLabel:h,labelDimensions:d,mainLabel:l,sourceLabel:u,targetLabel:c,nodeBody:x,nodeBorder:w,nodeOutline:E,backgroundImage:k,pie:T,compound:C,edgeLine:S,edgeArrow:B,core:D},A=Zs.propertyGroupNames={};(Zs.propertyGroupKeys=Object.keys(z)).forEach((function(e){A[e]=z[e].map((function(e){return e.name})),z[e].forEach((function(t){return t.groupKey=e}))}));var L=Zs.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Zs.propertyNames=I.map((function(e){return e.name}));for(var R=0;R<I.length;R++){var F=I[R];I[F.name]=F}for(var q=0;q<L.length;q++){var Y=L[q],X=I[Y.pointsTo],W={name:Y.name,alias:!0,pointsTo:X};I.push(W),I[Y.name]=W}}(),Zs.getDefaultProperty=function(e){return this.getDefaultProperties()[e]},Zs.getDefaultProperties=function(){var e=this._private;if(null!=e.defaultProperties)return e.defaultProperties;for(var t=Y({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce((function(e,t){for(var n=1;n<=Zs.pieBackgroundN;n++){var r=t.name.replace("{{i}}",n),a=t.value;e[r]=a}return e}),{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce((function(e,t){return Zs.arrowPrefixes.forEach((function(n){var r=n+"-"+t.name,a=t.value;e[r]=a})),e}),{})),n={},r=0;r<this.properties.length;r++){var a=this.properties[r];if(!a.pointsTo){var i=a.name,o=t[i],s=this.parse(i,o);n[i]=s}}return e.defaultProperties=n,e.defaultProperties},Zs.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var $s={parse:function(e,t,n,r){var a=this;if(x(t))return a.parseImplWarn(e,t,n,r);var i,o=Oe(e,""+t,n?"t":"f","mapping"===r||!0===r||!1===r||null==r?"dontcare":r),s=a.propCache=a.propCache||[];return(i=s[o])||(i=s[o]=a.parseImplWarn(e,t,n,r)),(n||"mapping"===r)&&(i=Ze(i))&&(i.value=Ze(i.value)),i},parseImplWarn:function(e,t,n,r){var a=this.parseImpl(e,t,n,r);return a||null==t||Ue("The style property `".concat(e,": ").concat(t,"` is invalid")),!a||"width"!==a.name&&"height"!==a.name||"label"!==t||Ue("The style value of `label` is deprecated for `"+a.name+"`"),a}};$s.parseImpl=function(e,t,n,r){var a=this;e=I(e);var i=a.properties[e],o=t,s=a.types;if(!i)return null;if(void 0===t)return null;i.alias&&(i=i.pointsTo,e=i.name);var l=b(t);l&&(t=t.trim());var u,c,d=i.type;if(!d)return null;if(n&&(""===t||null===t))return{name:e,value:t,bypass:!0,deleteBypass:!0};if(x(t))return{name:e,value:t,strValue:"fn",mapped:s.fn,bypass:n};if(!l||r||t.length<7||"a"!==t[1]);else{if(t.length>=7&&"d"===t[0]&&(u=new RegExp(s.data.regex).exec(t))){if(n)return!1;var h=s.data;return{name:e,value:u,strValue:""+t,mapped:h,field:u[1],bypass:n}}if(t.length>=10&&"m"===t[0]&&(c=new RegExp(s.mapData.regex).exec(t))){if(n)return!1;if(d.multiple)return!1;var p=s.mapData;if(!d.color&&!d.number)return!1;var f=this.parse(e,c[4]);if(!f||f.mapped)return!1;var g=this.parse(e,c[5]);if(!g||g.mapped)return!1;if(f.pfValue===g.pfValue||f.strValue===g.strValue)return Ue("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+f.strValue+"`"),this.parse(e,f.strValue);if(d.color){var v=f.value,y=g.value;if(!(v[0]!==y[0]||v[1]!==y[1]||v[2]!==y[2]||v[3]!==y[3]&&(null!=v[3]&&1!==v[3]||null!=y[3]&&1!==y[3])))return!1}return{name:e,value:c,strValue:""+t,mapped:p,field:c[1],fieldMin:parseFloat(c[2]),fieldMax:parseFloat(c[3]),valueMin:f.value,valueMax:g.value,bypass:n}}}if(d.multiple&&"multiple"!==r){var m;if(m=l?t.split(/\s+/):w(t)?t:[t],d.evenMultiple&&m.length%2!=0)return null;for(var E=[],C=[],S=[],P="",D=!1,T=0;T<m.length;T++){var _=a.parse(e,m[T],n,"multiple");D=D||b(_.value),E.push(_.value),S.push(null!=_.pfValue?_.pfValue:_.value),C.push(_.units),P+=(T>0?" ":"")+_.strValue}return d.validate&&!d.validate(E,C)?null:d.singleEnum&&D?1===E.length&&b(E[0])?{name:e,value:E[0],strValue:E[0],bypass:n}:null:{name:e,value:E,pfValue:S,strValue:P,bypass:n,units:C}}var M,B,N=function(){for(var r=0;r<d.enums.length;r++){if(d.enums[r]===t)return{name:e,value:t,strValue:""+t,bypass:n}}return null};if(d.number){var z,A="px";if(d.units&&(z=d.units),d.implicitUnits&&(A=d.implicitUnits),!d.unitless)if(l){var L="px|em"+(d.allowPercent?"|\\%":"");z&&(L=z);var R=t.match("^("+O+")("+L+")?$");R&&(t=R[1],z=R[2]||A)}else z&&!d.implicitUnits||(z=A);if(t=parseFloat(t),isNaN(t)&&void 0===d.enums)return null;if(isNaN(t)&&void 0!==d.enums)return t=o,N();if(d.integer&&(!k(B=t)||Math.floor(B)!==B))return null;if(void 0!==d.min&&(t<d.min||d.strictMin&&t===d.min)||void 0!==d.max&&(t>d.max||d.strictMax&&t===d.max))return null;var V={name:e,value:t,strValue:""+t+(z||""),units:z,bypass:n};return d.unitless||"px"!==z&&"em"!==z?V.pfValue=t:V.pfValue="px"!==z&&z?this.getEmSizeInPixels()*t:t,"ms"!==z&&"s"!==z||(V.pfValue="ms"===z?t:1e3*t),"deg"!==z&&"rad"!==z||(V.pfValue="rad"===z?t:(M=t,Math.PI*M/180)),"%"===z&&(V.pfValue=t/100),V}if(d.propList){var F=[],j=""+t;if("none"===j);else{for(var q=j.split(/\s*,\s*|\s+/),Y=0;Y<q.length;Y++){var W=q[Y].trim();a.properties[W]?F.push(W):Ue("`"+W+"` is not a valid property name")}if(0===F.length)return null}return{name:e,value:F,strValue:0===F.length?"none":F.join(" "),bypass:n}}if(d.color){var H=X(t);return H?{name:e,value:H,pfValue:H,strValue:"rgb("+H[0]+","+H[1]+","+H[2]+")",bypass:n}:null}if(d.regex||d.regexes){if(d.enums){var K=N();if(K)return K}for(var G=d.regexes?d.regexes:[d.regex],U=0;U<G.length;U++){var Z=new RegExp(G[U]).exec(t);if(Z)return{name:e,value:d.singleRegexMatchValue?Z[1]:Z,strValue:""+t,bypass:n}}return null}return d.string?{name:e,value:""+t,strValue:""+t,bypass:n}:d.enums?N():null};var Qs=function e(t){if(!(this instanceof e))return new e(t);T(t)?(this._private={cy:t,coreStyle:{}},this.length=0,this.resetToDefault()):Ke("A style must have a core reference")},Js=Qs.prototype;Js.instanceString=function(){return"style"},Js.clear=function(){for(var e=this._private,t=e.cy.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(t,!0),t.forEach((function(e){var t=e[0]._private;t.styleDirty=!0,t.appliedInitStyle=!1})),this},Js.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Js.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)},Js.selector=function(e){var t="core"===e?null:new Fi(e),n=this.length++;return this[n]={selector:t,properties:[],mappedProperties:[],index:n},this},Js.css=function(){var e=arguments;if(1===e.length)for(var t=e[0],n=0;n<this.properties.length;n++){var r=this.properties[n],a=t[r.name];void 0===a&&(a=t[z(r.name)]),void 0!==a&&this.cssRule(r.name,a)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},Js.style=Js.css,Js.cssRule=function(e,t){var n=this.parse(e,t);if(n){var r=this.length-1;this[r].properties.push(n),this[r].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.mapped&&this[r].mappedProperties.push(n),!this[r].selector&&(this._private.coreStyle[n.name]=n)}return this},Js.append=function(e){return _(e)?e.appendToStyle(this):w(e)?this.appendFromJson(e):b(e)&&this.appendFromString(e),this},Qs.fromJson=function(e,t){var n=new Qs(e);return n.fromJson(t),n},Qs.fromString=function(e,t){return new Qs(e).fromString(t)},[Ys,Ws,Hs,Ks,Gs,Us,Zs,$s].forEach((function(e){Y(Js,e)})),Qs.types=Js.types,Qs.properties=Js.properties,Qs.propertyGroups=Js.propertyGroups,Qs.propertyGroupNames=Js.propertyGroupNames,Qs.propertyGroupKeys=Js.propertyGroupKeys;var el={style:function(e){e&&this.setStyle(e).update();return this._private.style},setStyle:function(e){var t=this._private;return _(e)?t.style=e.generateStyle(this):w(e)?t.style=Qs.fromJson(this,e):b(e)?t.style=Qs.fromString(this,e):t.style=Qs(this),t.style},updateStyle:function(){this.mutableElements().updateStyle()}},tl={autolock:function(e){return void 0===e?this._private.autolock:(this._private.autolock=!!e,this)},autoungrabify:function(e){return void 0===e?this._private.autoungrabify:(this._private.autoungrabify=!!e,this)},autounselectify:function(e){return void 0===e?this._private.autounselectify:(this._private.autounselectify=!!e,this)},selectionType:function(e){var t=this._private;return null==t.selectionType&&(t.selectionType="single"),void 0===e?t.selectionType:("additive"!==e&&"single"!==e||(t.selectionType=e),this)},panningEnabled:function(e){return void 0===e?this._private.panningEnabled:(this._private.panningEnabled=!!e,this)},userPanningEnabled:function(e){return void 0===e?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!e,this)},zoomingEnabled:function(e){return void 0===e?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!e,this)},userZoomingEnabled:function(e){return void 0===e?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!e,this)},boxSelectionEnabled:function(e){return void 0===e?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!e,this)},pan:function(){var e,t,n,r,a,i=arguments,o=this._private.pan;switch(i.length){case 0:return o;case 1:if(b(i[0]))return o[e=i[0]];if(E(i[0])){if(!this._private.panningEnabled)return this;r=(n=i[0]).x,a=n.y,k(r)&&(o.x=r),k(a)&&(o.y=a),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=i[1],"x"!==(e=i[0])&&"y"!==e||!k(t)||(o[e]=t),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(e,t){var n,r,a,i,o,s=arguments,l=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:E(e)&&(i=(a=s[0]).x,o=a.y,k(i)&&(l.x+=i),k(o)&&(l.y+=o),this.emit("pan viewport"));break;case 2:r=t,"x"!==(n=e)&&"y"!==n||!k(r)||(l[n]+=r),this.emit("pan viewport")}return this.notify("viewport"),this},fit:function(e,t){var n=this.getFitViewport(e,t);if(n){var r=this._private;r.zoom=n.zoom,r.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,t){if(k(e)&&void 0===t&&(t=e,e=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n,r;if(b(e)){var a=e;e=this.$(a)}else if(E(r=e)&&k(r.x1)&&k(r.x2)&&k(r.y1)&&k(r.y2)){var i=e;(n={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else S(e)||(e=this.mutableElements());if(!S(e)||!e.empty()){n=n||e.boundingBox();var o,s=this.width(),l=this.height();if(t=k(t)?t:0,!isNaN(s)&&!isNaN(l)&&s>0&&l>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:o=(o=(o=Math.min((s-2*t)/n.w,(l-2*t)/n.h))>this._private.maxZoom?this._private.maxZoom:o)<this._private.minZoom?this._private.minZoom:o,pan:{x:(s-o*(n.x1+n.x2))/2,y:(l-o*(n.y1+n.y2))/2}}}}},zoomRange:function(e,t){var n=this._private;if(null==t){var r=e;e=r.min,t=r.max}return k(e)&&k(t)&&e<=t?(n.minZoom=e,n.maxZoom=t):k(e)&&void 0===t&&e<=n.maxZoom?n.minZoom=e:k(t)&&void 0===e&&t>=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,a=r.pan,i=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),k(e)?n=e:E(e)&&(n=e.level,null!=e.position?t=Pt(e.position,i,a):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)<r.minZoom?r.minZoom:n,o||!k(n)||n===i||null!=t&&(!k(t.x)||!k(t.y)))return null;if(null!=t){var s=a,l=i,u=n;return{zoomed:!0,panned:!0,zoom:u,pan:{x:-u/l*(t.x-s.x)+t.x,y:-u/l*(t.y-s.y)+t.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:a}},zoom:function(e){if(void 0===e)return this._private.zoom;var t=this.getZoomedViewport(e),n=this._private;return null!=t&&t.zoomed?(n.zoom=t.zoom,t.panned&&(n.pan.x=t.pan.x,n.pan.y=t.pan.y),this.emit("zoom"+(t.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(e){var t=this._private,n=!0,r=!0,a=[],i=!1,o=!1;if(!e)return this;if(k(e.zoom)||(n=!1),E(e.pan)||(r=!1),!n&&!r)return this;if(n){var s=e.zoom;s<t.minZoom||s>t.maxZoom||!t.zoomingEnabled?i=!0:(t.zoom=s,a.push("zoom"))}if(r&&(!i||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;k(l.x)&&(t.pan.x=l.x,o=!1),k(l.y)&&(t.pan.y=l.y,o=!1),o||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(b(e)){var n=e;e=this.mutableElements().filter(n)}else S(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),a=this.width(),i=this.height();return{x:(a-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(i-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e,t,n=this._private,r=n.container,a=this;return n.sizeCache=n.sizeCache||(r?(e=a.window().getComputedStyle(r),t=function(t){return parseFloat(e.getPropertyValue(t))},{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};tl.centre=tl.center,tl.autolockNodes=tl.autolock,tl.autoungrabifyNodes=tl.autoungrabify;var nl={data:ni.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ni.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ni.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ni.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};nl.attr=nl.data,nl.removeAttr=nl.removeData;var rl=function(e){var t=this,n=(e=Y({},e)).container;n&&!C(n)&&C(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var a=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var i=void 0!==h&&void 0!==n&&!e.headless,o=e;o.layout=Y({name:i?"grid":"null"},o.layout),o.renderer=Y({name:i?"canvas":"null"},o.renderer);var s=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},l=this._private={container:n,ready:!1,options:o,elements:new bs(this),listeners:[],aniEles:new bs(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?i:o.styleEnabled,zoom:k(o.zoom)?o.zoom:1,pan:{x:E(o.pan)&&k(o.pan.x)?o.pan.x:0,y:E(o.pan)&&k(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom});l.styleEnabled&&t.setStyle([]);var u=Y({},o,o.renderer);t.initRenderer(u);!function(e,t){if(e.some(B))return Tr.all(e).then(t);t(e)}([o.style,o.elements],(function(e){var n=e[0],i=e[1];l.styleEnabled&&t.style().append(n),function(e,n,r){t.notifications(!1);var a=t.mutableElements();a.length>0&&a.remove(),null!=e&&(E(e)||w(e))&&t.add(e),t.one("layoutready",(function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")})).one("layoutstop",(function(){t.one("done",r),t.emit("done")}));var i=Y({},t._private.options.layout);i.eles=t.elements(),t.layout(i).run()}(i,(function(){t.startAnimationLoop(),l.ready=!0,x(o.ready)&&t.on("ready",o.ready);for(var e=0;e<a.length;e++){var n=a[e];t.on("ready",n)}r&&(r.readies=[]),t.emit("ready")}),o.done)}))},al=rl.prototype;Y(al,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){if(null==this._private.container)return h;var e=this._private.container.ownerDocument;return void 0===e||null==e?h:e.defaultView||h},mount:function(e){if(null!=e){var t=this,n=t._private,r=n.options;return!C(e)&&C(e[0])&&(e=e[0]),t.stopAnimationLoop(),t.destroyRenderer(),n.container=e,n.styleEnabled=!0,t.invalidateSize(),t.initRenderer(Y({},r,r.renderer,{name:"null"===r.renderer.name?"canvas":r.renderer.name})),t.startAnimationLoop(),t.style(r.style),t.emit("mount"),t}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return Ze(this._private.options)},json:function(e){var t=this,n=t._private,r=t.mutableElements();if(E(e)){if(t.startBatch(),e.elements){var a={},i=function(e,n){for(var r=[],i=[],o=0;o<e.length;o++){var s=e[o];if(s.data.id){var l=""+s.data.id,u=t.getElementById(l);a[l]=!0,0!==u.length?i.push({ele:u,json:s}):n?(s.group=n,r.push(s)):r.push(s)}else Ue("cy.json() cannot handle elements without an ID attribute")}t.add(r);for(var c=0;c<i.length;c++){var d=i[c],h=d.ele,p=d.json;h.json(p)}};if(w(e.elements))i(e.elements);else for(var o=["nodes","edges"],s=0;s<o.length;s++){var l=o[s],u=e.elements[l];w(u)&&i(u,l)}var c=t.collection();r.filter((function(e){return!a[e.id()]})).forEach((function(e){e.isParent()?c.merge(e):e.remove()})),c.forEach((function(e){return e.children().move({parent:null})})),c.forEach((function(e){return function(e){return t.getElementById(e.id())}(e).remove()}))}e.style&&t.style(e.style),null!=e.zoom&&e.zoom!==n.zoom&&t.zoom(e.zoom),e.pan&&(e.pan.x===n.pan.x&&e.pan.y===n.pan.y||t.pan(e.pan)),e.data&&t.data(e.data);for(var d=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],h=0;h<d.length;h++){var p=d[h];null!=e[p]&&t[p](e[p])}return t.endBatch(),this}var f={};!!e?f.elements=this.elements().map((function(e){return e.json()})):(f.elements={},r.forEach((function(e){var t=e.group();f.elements[t]||(f.elements[t]=[]),f.elements[t].push(e.json())}))),this._private.styleEnabled&&(f.style=t.style().json()),f.data=Ze(t.data());var g=n.options;return f.zoomingEnabled=n.zoomingEnabled,f.userZoomingEnabled=n.userZoomingEnabled,f.zoom=n.zoom,f.minZoom=n.minZoom,f.maxZoom=n.maxZoom,f.panningEnabled=n.panningEnabled,f.userPanningEnabled=n.userPanningEnabled,f.pan=Ze(n.pan),f.boxSelectionEnabled=n.boxSelectionEnabled,f.renderer=Ze(g.renderer),f.hideEdgesOnViewport=g.hideEdgesOnViewport,f.textureOnViewport=g.textureOnViewport,f.wheelSensitivity=g.wheelSensitivity,f.motionBlur=g.motionBlur,f.multiClickDebounceTime=g.multiClickDebounceTime,f}}),al.$id=al.getElementById,[ws,Is,Ls,Os,Rs,Vs,js,qs,el,tl,nl].forEach((function(e){Y(al,e)}));var il={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},ol={maximal:!1,acyclic:!1},sl=function(e){return e.scratch("breadthfirst")},ll=function(e,t){return e.scratch("breadthfirst",t)};function ul(e){this.options=Y({},il,ol,e)}ul.prototype.run=function(){var e,t=this.options,n=t,r=t.cy,a=n.eles,i=a.nodes().filter((function(e){return!e.isParent()})),o=a,s=n.directed,l=n.acyclic||n.maximal||n.maximalAdjustments>0,u=Rt(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()});if(S(n.roots))e=n.roots;else if(w(n.roots)){for(var c=[],d=0;d<n.roots.length;d++){var h=n.roots[d],p=r.getElementById(h);c.push(p)}e=r.collection(c)}else if(b(n.roots))e=r.$(n.roots);else if(s)e=i.roots();else{var f=a.components();e=r.collection();for(var g=function(t){var n=f[t],r=n.maxDegree(!1),a=n.filter((function(e){return e.degree(!1)===r}));e=e.add(a)},v=0;v<f.length;v++)g(v)}var y=[],m={},x=function(e,t){null==y[t]&&(y[t]=[]);var n=y[t].length;y[t].push(e),ll(e,{index:n,depth:t})};o.bfs({roots:e,directed:n.directed,visit:function(e,t,n,r,a){var i=e[0],o=i.id();x(i,a),m[o]=!0}});for(var E=[],k=0;k<i.length;k++){var C=i[k];m[C.id()]||E.push(C)}var P=function(e){for(var t=y[e],n=0;n<t.length;n++){var r=t[n];null!=r?ll(r,{depth:e,index:n}):(t.splice(n,1),n--)}},D=function(){for(var e=0;e<y.length;e++)P(e)},T=function(e,t){for(var r=sl(e),i=e.incomers().filter((function(e){return e.isNode()&&a.has(e)})),o=-1,s=e.id(),l=0;l<i.length;l++){var u=i[l],c=sl(u);o=Math.max(o,c.depth)}if(r.depth<=o){if(!n.acyclic&&t[s])return null;var d=o+1;return function(e,t){var n=sl(e),r=n.depth,a=n.index;y[r][a]=null,x(e,t)}(e,d),t[s]=d,!0}return!1};if(s&&l){var _=[],M={},B=function(e){return _.push(e)};for(i.forEach((function(e){return _.push(e)}));_.length>0;){var N=_.shift(),I=T(N,M);if(I)N.outgoers().filter((function(e){return e.isNode()&&a.has(e)})).forEach(B);else if(null===I){Ue("Detected double maximal shift for node `"+N.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}D();var z=0;if(n.avoidOverlap)for(var A=0;A<i.length;A++){var L=i[A].layoutDimensions(n),O=L.w,R=L.h;z=Math.max(z,O,R)}var V={},F=function(e){if(V[e.id()])return V[e.id()];for(var t=sl(e).depth,n=e.neighborhood(),r=0,a=0,o=0;o<n.length;o++){var s=n[o];if(!s.isEdge()&&!s.isParent()&&i.has(s)){var l=sl(s);if(null!=l){var u=l.index,c=l.depth;if(null!=u&&null!=c){var d=y[c].length;c<t&&(r+=u/d,a++)}}}}return r/=a=Math.max(1,a),0===a&&(r=0),V[e.id()]=r,r},j=function(e,t){var n=F(e)-F(t);return 0===n?q(e.id(),t.id()):n};void 0!==n.depthSort&&(j=n.depthSort);for(var Y=0;Y<y.length;Y++)y[Y].sort(j),P(Y);for(var X=[],W=0;W<E.length;W++)X.push(E[W]);y.unshift(X),D();for(var H=0,K=0;K<y.length;K++)H=Math.max(y[K].length,H);var G=u.x1+u.w/2,U=u.x1+u.h/2,Z=y.reduce((function(e,t){return Math.max(e,t.length)}),0);return a.nodes().layoutPositions(this,n,(function(e){var t=sl(e),r=t.depth,a=t.index,i=y[r].length,o=Math.max(u.w/((n.grid?Z:i)+1),z),s=Math.max(u.h/(y.length+1),z),l=Math.min(u.w/2/y.length,u.h/2/y.length);if(l=Math.max(l,z),n.circle){var c=l*r+l-(y.length>0&&y[0].length<=3?l/2:0),d=2*Math.PI/y[r].length*a;return 0===r&&1===y[0].length&&(c=1),{x:G+c*Math.cos(d),y:U+c*Math.sin(d)}}return{x:G+(a+1-(i+1)/2)*o,y:(r+1)*s}})),this};var cl={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function dl(e){this.options=Y({},cl,e)}dl.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,a=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));for(var o,s=Rt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l=s.x1+s.w/2,u=s.y1+s.h/2,c=(void 0===t.sweep?2*Math.PI-2*Math.PI/i.length:t.sweep)/Math.max(1,i.length-1),d=0,h=0;h<i.length;h++){var p=i[h].layoutDimensions(t),f=p.w,g=p.h;d=Math.max(d,f,g)}if(o=k(t.radius)?t.radius:i.length<=1?0:Math.min(s.h,s.w)/2-d,i.length>1&&t.avoidOverlap){d*=1.75;var v=Math.cos(c)-Math.cos(0),y=Math.sin(c)-Math.sin(0),m=Math.sqrt(d*d/(v*v+y*y));o=Math.max(m,o)}return r.nodes().layoutPositions(this,t,(function(e,n){var r=t.startAngle+n*c*(a?1:-1),i=o*Math.cos(r),s=o*Math.sin(r);return{x:l+i,y:u+s}})),this};var hl,pl={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function fl(e){this.options=Y({},pl,e)}fl.prototype.run=function(){for(var e=this.options,t=e,n=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,r=e.cy,a=t.eles,i=a.nodes().not(":parent"),o=Rt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s=o.x1+o.w/2,l=o.y1+o.h/2,u=[],c=0,d=0;d<i.length;d++){var h,p=i[d];h=t.concentric(p),u.push({value:h,node:p}),p._private.scratch.concentric=h}i.updateStyle();for(var f=0;f<i.length;f++){var g=i[f].layoutDimensions(t);c=Math.max(c,g.w,g.h)}u.sort((function(e,t){return t.value-e.value}));for(var v=t.levelWidth(i),y=[[]],m=y[0],b=0;b<u.length;b++){var x=u[b];if(m.length>0)Math.abs(m[0].value-x.value)>=v&&(m=[],y.push(m));m.push(x)}var w=c+t.minNodeSpacing;if(!t.avoidOverlap){var E=y.length>0&&y[0].length>1,k=(Math.min(o.w,o.h)/2-w)/(y.length+E?1:0);w=Math.min(w,k)}for(var C=0,S=0;S<y.length;S++){var P=y[S],D=void 0===t.sweep?2*Math.PI-2*Math.PI/P.length:t.sweep,T=P.dTheta=D/Math.max(1,P.length-1);if(P.length>1&&t.avoidOverlap){var _=Math.cos(T)-Math.cos(0),M=Math.sin(T)-Math.sin(0),B=Math.sqrt(w*w/(_*_+M*M));C=Math.max(B,C)}P.r=C,C+=w}if(t.equidistant){for(var N=0,I=0,z=0;z<y.length;z++){var A=y[z].r-I;N=Math.max(N,A)}I=0;for(var L=0;L<y.length;L++){var O=y[L];0===L&&(I=O.r),O.r=I,I+=N}}for(var R={},V=0;V<y.length;V++)for(var F=y[V],j=F.dTheta,q=F.r,Y=0;Y<F.length;Y++){var X=F[Y],W=t.startAngle+(n?1:-1)*j*Y,H={x:s+q*Math.cos(W),y:l+q*Math.sin(W)};R[X.node.id()]=H}return a.nodes().layoutPositions(this,t,(function(e){var t=e.id();return R[t]})),this};var gl={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,t){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function vl(e){this.options=Y({},gl,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter((function(e){var n=e.source().data("id"),r=e.target().data("id"),a=t.some((function(e){return e.data("id")===n})),i=t.some((function(e){return e.data("id")===r}));return!a||!i}));this.options.eles=this.options.eles.not(n)}vl.prototype.run=function(){var e=this.options,t=e.cy,n=this;n.stopped=!1,!0!==e.animate&&!1!==e.animate||n.emit({type:"layoutstart",layout:n}),hl=!0===e.debug;var r=yl(t,n,e);hl&&undefined(r),e.randomize&&xl(r);var a=Te(),i=function(){El(r,t,e),!0===e.fit&&t.fit(e.padding)},o=function(t){return!(n.stopped||t>=e.numIter)&&(kl(r,e),r.temperature=r.temperature*e.coolingFactor,!(r.temperature<e.minTemp))},s=function(){if(!0===e.animate||!1===e.animate)i(),n.one("layoutstop",e.stop),n.emit({type:"layoutstop",layout:n});else{var t=e.eles.nodes(),a=wl(r,e,t);t.layoutPositions(n,e,a)}},l=0,u=!0;if(!0===e.animate){!function t(){for(var n=0;u&&n<e.refresh;)u=o(l),l++,n++;u?(Te()-a>=e.animationThreshold&&i(),De(t)):(Al(r,e),s())}()}else{for(;u;)u=o(l),l++;Al(r,e),s()}return this},vl.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},vl.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var yl=function(e,t,n){for(var r=n.eles.edges(),a=n.eles.nodes(),i=Rt(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:i.w,clientHeight:i.h,boundingBox:i},s=n.eles.components(),l={},u=0;u<s.length;u++)for(var c=s[u],d=0;d<c.length;d++){l[c[d].id()]=u}for(u=0;u<o.nodeSize;u++){var h=(y=a[u]).layoutDimensions(n);(z={}).isLocked=y.locked(),z.id=y.data("id"),z.parentId=y.data("parent"),z.cmptId=l[y.id()],z.children=[],z.positionX=y.position("x"),z.positionY=y.position("y"),z.offsetX=0,z.offsetY=0,z.height=h.w,z.width=h.h,z.maxX=z.positionX+z.width/2,z.minX=z.positionX-z.width/2,z.maxY=z.positionY+z.height/2,z.minY=z.positionY-z.height/2,z.padLeft=parseFloat(y.style("padding")),z.padRight=parseFloat(y.style("padding")),z.padTop=parseFloat(y.style("padding")),z.padBottom=parseFloat(y.style("padding")),z.nodeRepulsion=x(n.nodeRepulsion)?n.nodeRepulsion(y):n.nodeRepulsion,o.layoutNodes.push(z),o.idToIndex[z.id]=u}var p=[],f=0,g=-1,v=[];for(u=0;u<o.nodeSize;u++){var y,m=(y=o.layoutNodes[u]).parentId;null!=m?o.layoutNodes[o.idToIndex[m]].children.push(y.id):(p[++g]=y.id,v.push(y.id))}for(o.graphSet.push(v);f<=g;){var b=p[f++],w=o.idToIndex[b],E=o.layoutNodes[w].children;if(E.length>0){o.graphSet.push(E);for(u=0;u<E.length;u++)p[++g]=E[u]}}for(u=0;u<o.graphSet.length;u++){var k=o.graphSet[u];for(d=0;d<k.length;d++){var C=o.idToIndex[k[d]];o.indexToGraph[C]=u}}for(u=0;u<o.edgeSize;u++){var S=r[u],P={};P.id=S.data("id"),P.sourceId=S.data("source"),P.targetId=S.data("target");var D=x(n.idealEdgeLength)?n.idealEdgeLength(S):n.idealEdgeLength,T=x(n.edgeElasticity)?n.edgeElasticity(S):n.edgeElasticity,_=o.idToIndex[P.sourceId],M=o.idToIndex[P.targetId];if(o.indexToGraph[_]!=o.indexToGraph[M]){for(var B=ml(P.sourceId,P.targetId,o),N=o.graphSet[B],I=0,z=o.layoutNodes[_];-1===N.indexOf(z.id);)z=o.layoutNodes[o.idToIndex[z.parentId]],I++;for(z=o.layoutNodes[M];-1===N.indexOf(z.id);)z=o.layoutNodes[o.idToIndex[z.parentId]],I++;D*=I*n.nestingFactor}P.idealLength=D,P.elasticity=T,o.layoutEdges.push(P)}return o},ml=function(e,t,n){var r=bl(e,t,0,n);return 2>r.count?0:r.graph},bl=function e(t,n,r,a){var i=a.graphSet[r];if(-1<i.indexOf(t)&&-1<i.indexOf(n))return{count:2,graph:r};for(var o=0,s=0;s<i.length;s++){var l=i[s],u=a.idToIndex[l],c=a.layoutNodes[u].children;if(0!==c.length){var d=e(t,n,a.indexToGraph[a.idToIndex[c[0]]],a);if(0!==d.count){if(1!==d.count)return d;if(2===++o)break}}}return{count:o,graph:r}},xl=function(e,t){for(var n=e.clientWidth,r=e.clientHeight,a=0;a<e.nodeSize;a++){var i=e.layoutNodes[a];0!==i.children.length||i.isLocked||(i.positionX=Math.random()*n,i.positionY=Math.random()*r)}},wl=function(e,t,n){var r=e.boundingBox,a={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return t.boundingBox&&(n.forEach((function(t){var n=e.layoutNodes[e.idToIndex[t.data("id")]];a.x1=Math.min(a.x1,n.positionX),a.x2=Math.max(a.x2,n.positionX),a.y1=Math.min(a.y1,n.positionY),a.y2=Math.max(a.y2,n.positionY)})),a.w=a.x2-a.x1,a.h=a.y2-a.y1),function(n,i){var o=e.layoutNodes[e.idToIndex[n.data("id")]];if(t.boundingBox){var s=(o.positionX-a.x1)/a.w,l=(o.positionY-a.y1)/a.h;return{x:r.x1+s*r.w,y:r.y1+l*r.h}}return{x:o.positionX,y:o.positionY}}},El=function(e,t,n){var r=n.layout,a=n.eles.nodes(),i=wl(e,n,a);a.positions(i),!0!==e.ready&&(e.ready=!0,r.one("layoutready",n.ready),r.emit({type:"layoutready",layout:this}))},kl=function(e,t,n){Cl(e,t),_l(e),Ml(e,t),Bl(e),Nl(e)},Cl=function(e,t){for(var n=0;n<e.graphSet.length;n++)for(var r=e.graphSet[n],a=r.length,i=0;i<a;i++)for(var o=e.layoutNodes[e.idToIndex[r[i]]],s=i+1;s<a;s++){var l=e.layoutNodes[e.idToIndex[r[s]]];Pl(o,l,e,t)}},Sl=function(e){return-e+2*e*Math.random()},Pl=function(e,t,n,r){if(e.cmptId===t.cmptId||n.isCompound){var a=t.positionX-e.positionX,i=t.positionY-e.positionY;0===a&&0===i&&(a=Sl(1),i=Sl(1));var o=Dl(e,t,a,i);if(o>0)var s=(u=r.nodeOverlap*o)*a/(g=Math.sqrt(a*a+i*i)),l=u*i/g;else{var u,c=Tl(e,a,i),d=Tl(t,-1*a,-1*i),h=d.x-c.x,p=d.y-c.y,f=h*h+p*p,g=Math.sqrt(f);s=(u=(e.nodeRepulsion+t.nodeRepulsion)/f)*h/g,l=u*p/g}e.isLocked||(e.offsetX-=s,e.offsetY-=l),t.isLocked||(t.offsetX+=s,t.offsetY+=l)}},Dl=function(e,t,n,r){if(n>0)var a=e.maxX-t.minX;else a=t.maxX-e.minX;if(r>0)var i=e.maxY-t.minY;else i=t.maxY-e.minY;return a>=0&&i>=0?Math.sqrt(a*a+i*i):0},Tl=function(e,t,n){var r=e.positionX,a=e.positionY,i=e.height||1,o=e.width||1,s=n/t,l=i/o,u={};return 0===t&&0<n||0===t&&0>n?(u.x=r,u.y=a+i/2,u):0<t&&-1*l<=s&&s<=l?(u.x=r+o/2,u.y=a+o*n/2/t,u):0>t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=a-o*n/2/t,u):0<n&&(s<=-1*l||s>=l)?(u.x=r+i*t/2/n,u.y=a+i/2,u):0>n&&(s<=-1*l||s>=l)?(u.x=r-i*t/2/n,u.y=a-i/2,u):u},_l=function(e,t){for(var n=0;n<e.edgeSize;n++){var r=e.layoutEdges[n],a=e.idToIndex[r.sourceId],i=e.layoutNodes[a],o=e.idToIndex[r.targetId],s=e.layoutNodes[o],l=s.positionX-i.positionX,u=s.positionY-i.positionY;if(0!==l||0!==u){var c=Tl(i,l,u),d=Tl(s,-1*l,-1*u),h=d.x-c.x,p=d.y-c.y,f=Math.sqrt(h*h+p*p),g=Math.pow(r.idealLength-f,2)/r.elasticity;if(0!==f)var v=g*h/f,y=g*p/f;else v=0,y=0;i.isLocked||(i.offsetX+=v,i.offsetY+=y),s.isLocked||(s.offsetX-=v,s.offsetY-=y)}}},Ml=function(e,t){if(0!==t.gravity)for(var n=0;n<e.graphSet.length;n++){var r=e.graphSet[n],a=r.length;if(0===n)var i=e.clientHeight/2,o=e.clientWidth/2;else{var s=e.layoutNodes[e.idToIndex[r[0]]],l=e.layoutNodes[e.idToIndex[s.parentId]];i=l.positionX,o=l.positionY}for(var u=0;u<a;u++){var c=e.layoutNodes[e.idToIndex[r[u]]];if(!c.isLocked){var d=i-c.positionX,h=o-c.positionY,p=Math.sqrt(d*d+h*h);if(p>1){var f=t.gravity*d/p,g=t.gravity*h/p;c.offsetX+=f,c.offsetY+=g}}}}},Bl=function(e,t){var n=[],r=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;r<=a;){var i=n[r++],o=e.idToIndex[i],s=e.layoutNodes[o],l=s.children;if(0<l.length&&!s.isLocked){for(var u=s.offsetX,c=s.offsetY,d=0;d<l.length;d++){var h=e.layoutNodes[e.idToIndex[l[d]]];h.offsetX+=u,h.offsetY+=c,n[++a]=l[d]}s.offsetX=0,s.offsetY=0}}},Nl=function(e,t){for(var n=0;n<e.nodeSize;n++){0<(a=e.layoutNodes[n]).children.length&&(a.maxX=void 0,a.minX=void 0,a.maxY=void 0,a.minY=void 0)}for(n=0;n<e.nodeSize;n++){if(!(0<(a=e.layoutNodes[n]).children.length||a.isLocked)){var r=Il(a.offsetX,a.offsetY,e.temperature);a.positionX+=r.x,a.positionY+=r.y,a.offsetX=0,a.offsetY=0,a.minX=a.positionX-a.width,a.maxX=a.positionX+a.width,a.minY=a.positionY-a.height,a.maxY=a.positionY+a.height,zl(a,e)}}for(n=0;n<e.nodeSize;n++){var a;0<(a=e.layoutNodes[n]).children.length&&!a.isLocked&&(a.positionX=(a.maxX+a.minX)/2,a.positionY=(a.maxY+a.minY)/2,a.width=a.maxX-a.minX,a.height=a.maxY-a.minY)}},Il=function(e,t,n){var r=Math.sqrt(e*e+t*t);if(r>n)var a={x:n*e/r,y:n*t/r};else a={x:e,y:t};return a},zl=function e(t,n){var r=t.parentId;if(null!=r){var a=n.layoutNodes[n.idToIndex[r]],i=!1;return(null==a.maxX||t.maxX+a.padRight>a.maxX)&&(a.maxX=t.maxX+a.padRight,i=!0),(null==a.minX||t.minX-a.padLeft<a.minX)&&(a.minX=t.minX-a.padLeft,i=!0),(null==a.maxY||t.maxY+a.padBottom>a.maxY)&&(a.maxY=t.maxY+a.padBottom,i=!0),(null==a.minY||t.minY-a.padTop<a.minY)&&(a.minY=t.minY-a.padTop,i=!0),i?e(a,n):void 0}},Al=function(e,t){for(var n=e.layoutNodes,r=[],a=0;a<n.length;a++){var i=n[a],o=i.cmptId;(r[o]=r[o]||[]).push(i)}var s=0;for(a=0;a<r.length;a++){if(g=r[a]){g.x1=1/0,g.x2=-1/0,g.y1=1/0,g.y2=-1/0;for(var l=0;l<g.length;l++){var u=g[l];g.x1=Math.min(g.x1,u.positionX-u.width/2),g.x2=Math.max(g.x2,u.positionX+u.width/2),g.y1=Math.min(g.y1,u.positionY-u.height/2),g.y2=Math.max(g.y2,u.positionY+u.height/2)}g.w=g.x2-g.x1,g.h=g.y2-g.y1,s+=g.w*g.h}}r.sort((function(e,t){return t.w*t.h-e.w*e.h}));var c=0,d=0,h=0,p=0,f=Math.sqrt(s)*e.clientWidth/e.clientHeight;for(a=0;a<r.length;a++){var g;if(g=r[a]){for(l=0;l<g.length;l++){(u=g[l]).isLocked||(u.positionX+=c-g.x1,u.positionY+=d-g.y1)}c+=g.w+t.componentSpacing,h+=g.w+t.componentSpacing,p=Math.max(p,g.h),h>f&&(d+=p+t.componentSpacing,c=0,h=0,p=0)}}},Ll={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Ol(e){this.options=Y({},Ll,e)}Ol.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,a=r.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));var i=Rt(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===i.h||0===i.w)r.nodes().layoutPositions(this,t,(function(e){return{x:i.x1,y:i.y1}}));else{var o=a.size(),s=Math.sqrt(o*i.h/i.w),l=Math.round(s),u=Math.round(i.w/i.h*s),c=function(e){if(null==e)return Math.min(l,u);Math.min(l,u)==l?l=e:u=e},d=function(e){if(null==e)return Math.max(l,u);Math.max(l,u)==l?l=e:u=e},h=t.rows,p=null!=t.cols?t.cols:t.columns;if(null!=h&&null!=p)l=h,u=p;else if(null!=h&&null==p)l=h,u=Math.ceil(o/l);else if(null==h&&null!=p)u=p,l=Math.ceil(o/u);else if(u*l>o){var f=c(),g=d();(f-1)*g>=o?c(f-1):(g-1)*f>=o&&d(g-1)}else for(;u*l<o;){var v=c(),y=d();(y+1)*v>=o?d(y+1):c(v+1)}var m=i.w/u,b=i.h/l;if(t.condense&&(m=0,b=0),t.avoidOverlap)for(var x=0;x<a.length;x++){var w=a[x],E=w._private.position;null!=E.x&&null!=E.y||(E.x=0,E.y=0);var k=w.layoutDimensions(t),C=t.avoidOverlapPadding,S=k.w+C,P=k.h+C;m=Math.max(m,S),b=Math.max(b,P)}for(var D={},T=function(e,t){return!!D["c-"+e+"-"+t]},_=function(e,t){D["c-"+e+"-"+t]=!0},M=0,B=0,N=function(){++B>=u&&(B=0,M++)},I={},z=0;z<a.length;z++){var A=a[z],L=t.position(A);if(L&&(void 0!==L.row||void 0!==L.col)){var O={row:L.row,col:L.col};if(void 0===O.col)for(O.col=0;T(O.row,O.col);)O.col++;else if(void 0===O.row)for(O.row=0;T(O.row,O.col);)O.row++;I[A.id()]=O,_(O.row,O.col)}}a.layoutPositions(this,t,(function(e,t){var n,r;if(e.locked()||e.isParent())return!1;var a=I[e.id()];if(a)n=a.col*m+m/2+i.x1,r=a.row*b+b/2+i.y1;else{for(;T(M,B);)N();n=B*m+m/2+i.x1,r=M*b+b/2+i.y1,_(M,B),N()}return{x:n,y:r}}))}return this};var Rl={ready:function(){},stop:function(){}};function Vl(e){this.options=Y({},Rl,e)}Vl.prototype.run=function(){var e=this.options,t=e.eles,n=this;return e.cy,n.emit("layoutstart"),t.nodes().positions((function(){return{x:0,y:0}})),n.one("layoutready",e.ready),n.emit("layoutready"),n.one("layoutstop",e.stop),n.emit("layoutstop"),this},Vl.prototype.stop=function(){return this};var Fl={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function jl(e){this.options=Y({},Fl,e)}jl.prototype.run=function(){var e=this.options,t=e.eles.nodes(),n=x(e.positions);return t.layoutPositions(this,e,(function(t,r){var a=function(t){if(null==e.positions)return function(e){return{x:e.x,y:e.y}}(t.position());if(n)return e.positions(t);var r=e.positions[t._private.data.id];return null==r?null:r}(t);return!t.locked()&&null!=a&&a})),this};var ql={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Yl(e){this.options=Y({},ql,e)}Yl.prototype.run=function(){var e=this.options,t=e.cy,n=e.eles,r=Rt(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});return n.nodes().layoutPositions(this,e,(function(e,t){return{x:r.x1+Math.round(Math.random()*r.w),y:r.y1+Math.round(Math.random()*r.h)}})),this};var Xl=[{name:"breadthfirst",impl:ul},{name:"circle",impl:dl},{name:"concentric",impl:fl},{name:"cose",impl:vl},{name:"grid",impl:Ol},{name:"null",impl:Vl},{name:"preset",impl:jl},{name:"random",impl:Yl}];function Wl(e){this.options=e,this.notifications=0}var Hl=function(){},Kl=function(){throw new Error("A headless instance can not render images")};Wl.prototype={recalculateRenderedStyle:Hl,notify:function(){this.notifications++},init:Hl,isHeadless:function(){return!0},png:Kl,jpg:Kl};var Gl={arrowShapeWidth:.3,registerArrowShapes:function(){var e=this.arrowShapes={},t=this,n=function(e,t,n,r,a,i,o){var s=a.x-n/2-o,l=a.x+n/2+o,u=a.y-n/2-o,c=a.y+n/2+o;return s<=e&&e<=l&&u<=t&&t<=c},r=function(e,t,n,r,a){var i=e*Math.cos(r)-t*Math.sin(r),o=(e*Math.sin(r)+t*Math.cos(r))*n;return{x:i*n+a.x,y:o+a.y}},a=function(e,t,n,a){for(var i=[],o=0;o<e.length;o+=2){var s=e[o],l=e[o+1];i.push(r(s,l,t,n,a))}return i},i=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r.x,r.y)}return t},o=function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").pfValue*2},s=function(r,s){b(s)&&(s=e[s]),e[r]=Y({name:r,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(e,t,n,r,o,s){var l=i(a(this.points,n+2*s,r,o));return Qt(e,t,l)},roughCollide:n,draw:function(e,n,r,i){var o=a(this.points,n,r,i);t.arrowShapeImpl("polygon")(e,o)},spacing:function(e){return 0},gap:o},s)};s("none",{collide:Xe,roughCollide:Xe,draw:He,spacing:We,gap:We}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:e.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(e,n,i,o,s){var l=a(this.points,n,i,o),u=this.controlPoint,c=r(u[0],u[1],n,i,o);t.arrowShapeImpl(this.name)(e,l,c)},gap:function(e){return.8*o(e)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(e,t,n,r,o,s,l){var u=i(a(this.points,n+2*l,r,o)),c=i(a(this.pointsTee,n+2*l,r,o));return Qt(e,t,u)||Qt(e,t,c)},draw:function(e,n,r,i,o){var s=a(this.points,n,r,i),l=a(this.pointsTee,n,r,i);t.arrowShapeImpl(this.name)(e,s,l)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(e,t,n,r,o,s,l){var u=o,c=Math.pow(u.x-e,2)+Math.pow(u.y-t,2)<=Math.pow((n+2*l)*this.radius,2),d=i(a(this.points,n+2*l,r,o));return Qt(e,t,d)||c},draw:function(e,n,r,i,o){var s=a(this.pointsTr,n,r,i);t.arrowShapeImpl(this.name)(e,s,i.x,i.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(e,t){var n=this.baseCrossLinePts.slice(),r=t/e;return n[3]=n[3]-r,n[5]=n[5]-r,n},collide:function(e,t,n,r,o,s,l){var u=i(a(this.points,n+2*l,r,o)),c=i(a(this.crossLinePts(n,s),n+2*l,r,o));return Qt(e,t,u)||Qt(e,t,c)},draw:function(e,n,r,i,o){var s=a(this.points,n,r,i),l=a(this.crossLinePts(n,o),n,r,i);t.arrowShapeImpl(this.name)(e,s,l)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(e){return.525*o(e)}}),s("circle",{radius:.15,collide:function(e,t,n,r,a,i,o){var s=a;return Math.pow(s.x-e,2)+Math.pow(s.y-t,2)<=Math.pow((n+2*o)*this.radius,2)},draw:function(e,n,r,a,i){t.arrowShapeImpl(this.name)(e,a.x,a.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(e){return 1},gap:function(e){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(e){return.95*e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}})}},Ul={projectIntoViewport:function(e,t){var n=this.cy,r=this.findContainerClientCoords(),a=r[0],i=r[1],o=r[4],s=n.pan(),l=n.zoom();return[((e-a)/o-s.x)/l,((t-i)/o-s.y)/l]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var e=this.container,t=e.getBoundingClientRect(),n=this.cy.window().getComputedStyle(e),r=function(e){return parseFloat(n.getPropertyValue(e))},a=r("padding-left"),i=r("padding-right"),o=r("padding-top"),s=r("padding-bottom"),l=r("border-left-width"),u=r("border-right-width"),c=r("border-top-width"),d=(r("border-bottom-width"),e.clientWidth),h=e.clientHeight,p=a+i,f=o+s,g=l+u,v=t.width/(d+g),y=d-p,m=h-f,b=t.left+a+l,x=t.top+o+c;return this.containerBB=[b,x,y,m,v]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(e,t,n,r){return this.findNearestElements(e,t,n,r)[0]},findNearestElements:function(e,t,n,r){var a,i,o=this,s=this,l=s.getCachedZSortedEles(),u=[],c=s.cy.zoom(),d=s.cy.hasCompoundNodes(),h=(r?24:8)/c,p=(r?8:2)/c,f=(r?8:2)/c,g=1/0;function v(e,t){if(e.isNode()){if(i)return;i=e,u.push(e)}if(e.isEdge()&&(null==t||t<g))if(a){if(a.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value&&a.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value)for(var n=0;n<u.length;n++)if(u[n].isEdge()){u[n]=e,a=e,g=null!=t?t:g;break}}else u.push(e),a=e,g=null!=t?t:g}function y(n){var r=n.outerWidth()+2*p,a=n.outerHeight()+2*p,i=r/2,l=a/2,u=n.position(),c="auto"===n.pstyle("corner-radius").value?"auto":n.pstyle("corner-radius").pfValue,d=n._private.rscratch;if(u.x-i<=e&&e<=u.x+i&&u.y-l<=t&&t<=u.y+l&&s.nodeShapes[o.getNodeShape(n)].checkPoint(e,t,0,r,a,u.x,u.y,c,d))return v(n,0),!0}function m(n){var r,a=n._private,i=a.rscratch,l=n.pstyle("width").pfValue,c=n.pstyle("arrow-scale").value,p=l/2+h,f=p*p,g=2*p,m=a.source,b=a.target;if("segments"===i.edgeType||"straight"===i.edgeType||"haystack"===i.edgeType){for(var x=i.allpts,w=0;w+3<x.length;w+=2)if(Gt(e,t,x[w],x[w+1],x[w+2],x[w+3],g)&&f>(r=$t(e,t,x[w],x[w+1],x[w+2],x[w+3])))return v(n,r),!0}else if("bezier"===i.edgeType||"multibezier"===i.edgeType||"self"===i.edgeType||"compound"===i.edgeType)for(x=i.allpts,w=0;w+5<i.allpts.length;w+=4)if(Ut(e,t,x[w],x[w+1],x[w+2],x[w+3],x[w+4],x[w+5],g)&&f>(r=Zt(e,t,x[w],x[w+1],x[w+2],x[w+3],x[w+4],x[w+5])))return v(n,r),!0;m=m||a.source,b=b||a.target;var E=o.getArrowWidth(l,c),k=[{name:"source",x:i.arrowStartX,y:i.arrowStartY,angle:i.srcArrowAngle},{name:"target",x:i.arrowEndX,y:i.arrowEndY,angle:i.tgtArrowAngle},{name:"mid-source",x:i.midX,y:i.midY,angle:i.midsrcArrowAngle},{name:"mid-target",x:i.midX,y:i.midY,angle:i.midtgtArrowAngle}];for(w=0;w<k.length;w++){var C=k[w],S=s.arrowShapes[n.pstyle(C.name+"-arrow-shape").value],P=n.pstyle("width").pfValue;if(S.roughCollide(e,t,E,C.angle,{x:C.x,y:C.y},P,h)&&S.collide(e,t,E,C.angle,{x:C.x,y:C.y},P,h))return v(n),!0}d&&u.length>0&&(y(m),y(b))}function b(e,t,n){return rt(e,t,n)}function x(n,r){var a,i=n._private,o=f;a=r?r+"-":"",n.boundingBox();var s=i.labelBounds[r||"main"],l=n.pstyle(a+"label").value;if("yes"===n.pstyle("text-events").strValue&&l){var u=b(i.rscratch,"labelX",r),c=b(i.rscratch,"labelY",r),d=b(i.rscratch,"labelAngle",r),h=n.pstyle(a+"text-margin-x").pfValue,p=n.pstyle(a+"text-margin-y").pfValue,g=s.x1-o-h,y=s.x2+o-h,m=s.y1-o-p,x=s.y2+o-p;if(d){var w=Math.cos(d),E=Math.sin(d),k=function(e,t){return{x:(e-=u)*w-(t-=c)*E+u,y:e*E+t*w+c}},C=k(g,m),S=k(g,x),P=k(y,m),D=k(y,x),T=[C.x+h,C.y+p,P.x+h,P.y+p,D.x+h,D.y+p,S.x+h,S.y+p];if(Qt(e,t,T))return v(n),!0}else if(Wt(s,e,t))return v(n),!0}}n&&(l=l.interactive);for(var w=l.length-1;w>=0;w--){var E=l[w];E.isNode()?y(E)||x(E):m(E)||x(E)||x(E,"source")||x(E,"target")}return u},getAllInBox:function(e,t,n,r){for(var a,i,o=this.getCachedZSortedEles().interactive,s=[],l=Math.min(e,n),u=Math.max(e,n),c=Math.min(t,r),d=Math.max(t,r),h=Rt({x1:e=l,y1:t=c,x2:n=u,y2:r=d}),p=0;p<o.length;p++){var f=o[p];if(f.isNode()){var g=f,v=g.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});Xt(h,v)&&!Ht(v,h)&&s.push(g)}else{var y=f,m=y._private,b=m.rscratch;if(null!=b.startX&&null!=b.startY&&!Wt(h,b.startX,b.startY))continue;if(null!=b.endX&&null!=b.endY&&!Wt(h,b.endX,b.endY))continue;if("bezier"===b.edgeType||"multibezier"===b.edgeType||"self"===b.edgeType||"compound"===b.edgeType||"segments"===b.edgeType||"haystack"===b.edgeType){for(var x=m.rstyle.bezierPts||m.rstyle.linePts||m.rstyle.haystackPts,w=!0,E=0;E<x.length;E++)if(a=h,i=x[E],!Wt(a,i.x,i.y)){w=!1;break}w&&s.push(y)}else"haystack"!==b.edgeType&&"straight"!==b.edgeType||s.push(y)}}return s}},Zl={calculateArrowAngles:function(e){var t,n,r,a,i,o,s=e._private.rscratch,l="haystack"===s.edgeType,u="bezier"===s.edgeType,c="multibezier"===s.edgeType,d="segments"===s.edgeType,h="compound"===s.edgeType,p="self"===s.edgeType;if(l?(r=s.haystackPts[0],a=s.haystackPts[1],i=s.haystackPts[2],o=s.haystackPts[3]):(r=s.arrowStartX,a=s.arrowStartY,i=s.arrowEndX,o=s.arrowEndY),g=s.midX,v=s.midY,d)t=r-s.segpts[0],n=a-s.segpts[1];else if(c||h||p||u){var f=s.allpts;t=r-At(f[0],f[2],f[4],.1),n=a-At(f[1],f[3],f[5],.1)}else t=r-g,n=a-v;s.srcArrowAngle=_t(t,n);var g=s.midX,v=s.midY;if(l&&(g=(r+i)/2,v=(a+o)/2),t=i-r,n=o-a,d)if((f=s.allpts).length/2%2==0){var y=(S=f.length/2)-2;t=f[S]-f[y],n=f[S+1]-f[y+1]}else if(s.isRound)t=s.midVector[1],n=-s.midVector[0];else{y=(S=f.length/2-1)-2;t=f[S]-f[y],n=f[S+1]-f[y+1]}else if(c||h||p){var m,b,x,w,f=s.allpts;if(s.ctrlpts.length/2%2==0){var E=(k=(C=f.length/2-1)+2)+2;m=At(f[C],f[k],f[E],0),b=At(f[C+1],f[k+1],f[E+1],0),x=At(f[C],f[k],f[E],1e-4),w=At(f[C+1],f[k+1],f[E+1],1e-4)}else{var k,C;E=(k=f.length/2-1)+2;m=At(f[C=k-2],f[k],f[E],.4999),b=At(f[C+1],f[k+1],f[E+1],.4999),x=At(f[C],f[k],f[E],.5),w=At(f[C+1],f[k+1],f[E+1],.5)}t=x-m,n=w-b}if(s.midtgtArrowAngle=_t(t,n),s.midDispX=t,s.midDispY=n,t*=-1,n*=-1,d)if((f=s.allpts).length/2%2==0);else if(!s.isRound){var S,P=(S=f.length/2-1)+2;t=-(f[P]-f[S]),n=-(f[P+1]-f[S+1])}if(s.midsrcArrowAngle=_t(t,n),d)t=i-s.segpts[s.segpts.length-2],n=o-s.segpts[s.segpts.length-1];else if(c||h||p||u){var D=(f=s.allpts).length;t=i-At(f[D-6],f[D-4],f[D-2],.9),n=o-At(f[D-5],f[D-3],f[D-1],.9)}else t=i-g,n=o-v;s.tgtArrowAngle=_t(t,n)}};Zl.getArrowWidth=Zl.getArrowHeight=function(e,t){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[e+", "+t];return r||(r=Math.max(Math.pow(13.37*e,.9),29)*t,n[e+", "+t]=r,r)};var $l,Ql,Jl,eu,tu,nu,ru,au,iu,ou,su,lu,uu,cu,du,hu,pu,fu={},gu={},vu=function(e,t,n){n.x=t.x-e.x,n.y=t.y-e.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},yu=function(e,t,n,r,a){var i,o;if(e!==pu?vu(t,e,fu):((o=fu).x=-1*(i=gu).x,o.y=-1*i.y,o.nx=-1*i.nx,o.ny=-1*i.ny,o.ang=i.ang>0?-(Math.PI-i.ang):Math.PI+i.ang),vu(t,n,gu),Jl=fu.nx*gu.ny-fu.ny*gu.nx,eu=fu.nx*gu.nx-fu.ny*-gu.ny,ru=Math.asin(Math.max(-1,Math.min(1,Jl))),Math.abs(ru)<1e-6)return $l=t.x,Ql=t.y,void(iu=su=0);tu=1,nu=!1,eu<0?ru<0?ru=Math.PI+ru:(ru=Math.PI-ru,tu=-1,nu=!0):ru>0&&(tu=-1,nu=!0),su=void 0!==t.radius?t.radius:r,au=ru/2,lu=Math.min(fu.len/2,gu.len/2),a?(ou=Math.abs(Math.cos(au)*su/Math.sin(au)))>lu?(ou=lu,iu=Math.abs(ou*Math.sin(au)/Math.cos(au))):iu=su:(ou=Math.min(lu,su),iu=Math.abs(ou*Math.sin(au)/Math.cos(au))),du=t.x+gu.nx*ou,hu=t.y+gu.ny*ou,$l=du-gu.ny*iu*tu,Ql=hu+gu.nx*iu*tu,uu=t.x+fu.nx*ou,cu=t.y+fu.ny*ou,pu=t};function mu(e,t){0===t.radius?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function bu(e,t,n,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return 0===r||0===t.radius?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(yu(e,t,n,r,a),{cx:$l,cy:Ql,radius:iu,startX:uu,startY:cu,stopX:du,stopY:hu,startAngle:fu.ang+Math.PI/2*tu,endAngle:gu.ang-Math.PI/2*tu,counterClockwise:nu})}var xu={};function wu(e){var t=[];if(null!=e){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];t.push({x:r,y:a})}return t}}xu.findMidptPtsEtc=function(e,t){var n,r=t.posPts,a=t.intersectionPts,i=t.vectorNormInverse,o=e.pstyle("source-endpoint"),s=e.pstyle("target-endpoint"),u=null!=o.units&&null!=s.units;switch(e.pstyle("edge-distances").value){case"node-position":n=r;break;case"intersection":n=a;break;case"endpoints":if(u){var c=l(this.manualEndptToPx(e.source()[0],o),2),d=c[0],h=c[1],p=l(this.manualEndptToPx(e.target()[0],s),2),f=p[0],g=p[1],v={x1:d,y1:h,x2:f,y2:g};i=function(e,t,n,r){var a=r-t,i=n-e,o=Math.sqrt(i*i+a*a);return{x:-a/o,y:i/o}}(d,h,f,g),n=v}else Ue("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),n=a}return{midptPts:n,vectorNormInverse:i}},xu.findHaystackPoints=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n._private,a=r.rscratch;if(!a.haystack){var i=2*Math.random()*Math.PI;a.source={x:Math.cos(i),y:Math.sin(i)},i=2*Math.random()*Math.PI,a.target={x:Math.cos(i),y:Math.sin(i)}}var o=r.source,s=r.target,l=o.position(),u=s.position(),c=o.width(),d=s.width(),h=o.height(),p=s.height(),f=n.pstyle("haystack-radius").value/2;a.haystackPts=a.allpts=[a.source.x*c*f+l.x,a.source.y*h*f+l.y,a.target.x*d*f+u.x,a.target.y*p*f+u.y],a.midX=(a.allpts[0]+a.allpts[2])/2,a.midY=(a.allpts[1]+a.allpts[3])/2,a.edgeType="haystack",a.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},xu.findSegmentsPoints=function(e,t){var n=e._private.rscratch,r=e.pstyle("segment-weights"),a=e.pstyle("segment-distances"),i=e.pstyle("segment-radii"),o=e.pstyle("radius-type"),s=Math.min(r.pfValue.length,a.pfValue.length),l=i.pfValue[i.pfValue.length-1],u=o.pfValue[o.pfValue.length-1];n.edgeType="segments",n.segpts=[],n.radii=[],n.isArcRadius=[];for(var c=0;c<s;c++){var d=r.pfValue[c],h=a.pfValue[c],p=1-d,f=d,g=this.findMidptPtsEtc(e,t),v=g.midptPts,y=g.vectorNormInverse,m={x:v.x1*p+v.x2*f,y:v.y1*p+v.y2*f};n.segpts.push(m.x+y.x*h,m.y+y.y*h),n.radii.push(void 0!==i.pfValue[c]?i.pfValue[c]:l),n.isArcRadius.push("arc-radius"===(void 0!==o.pfValue[c]?o.pfValue[c]:u))}},xu.findLoopPoints=function(e,t,n,r){var a=e._private.rscratch,i=t.dirCounts,o=t.srcPos,s=e.pstyle("control-point-distances"),l=s?s.pfValue[0]:void 0,u=e.pstyle("loop-direction").pfValue,c=e.pstyle("loop-sweep").pfValue,d=e.pstyle("control-point-step-size").pfValue;a.edgeType="self";var h=n,p=d;r&&(h=0,p=l);var f=u-Math.PI/2,g=f-c/2,v=f+c/2,y=String(u+"_"+c);h=void 0===i[y]?i[y]=0:++i[y],a.ctrlpts=[o.x+1.4*Math.cos(g)*p*(h/3+1),o.y+1.4*Math.sin(g)*p*(h/3+1),o.x+1.4*Math.cos(v)*p*(h/3+1),o.y+1.4*Math.sin(v)*p*(h/3+1)]},xu.findCompoundLoopPoints=function(e,t,n,r){var a=e._private.rscratch;a.edgeType="compound";var i=t.srcPos,o=t.tgtPos,s=t.srcW,l=t.srcH,u=t.tgtW,c=t.tgtH,d=e.pstyle("control-point-step-size").pfValue,h=e.pstyle("control-point-distances"),p=h?h.pfValue[0]:void 0,f=n,g=d;r&&(f=0,g=p);var v={x:i.x-s/2,y:i.y-l/2},y={x:o.x-u/2,y:o.y-c/2},m={x:Math.min(v.x,y.x),y:Math.min(v.y,y.y)},b=Math.max(.5,Math.log(.01*s)),x=Math.max(.5,Math.log(.01*u));a.ctrlpts=[m.x,m.y-(1+Math.pow(50,1.12)/100)*g*(f/3+1)*b,m.x-(1+Math.pow(50,1.12)/100)*g*(f/3+1)*x,m.y]},xu.findStraightEdgePoints=function(e){e._private.rscratch.edgeType="straight"},xu.findBezierPoints=function(e,t,n,r,a){var i=e._private.rscratch,o=e.pstyle("control-point-step-size").pfValue,s=e.pstyle("control-point-distances"),l=e.pstyle("control-point-weights"),u=s&&l?Math.min(s.value.length,l.value.length):1,c=s?s.pfValue[0]:void 0,d=l.value[0],h=r;i.edgeType=h?"multibezier":"bezier",i.ctrlpts=[];for(var p=0;p<u;p++){var f=(.5-t.eles.length/2+n)*o*(a?-1:1),g=void 0,v=Bt(f);h&&(c=s?s.pfValue[p]:o,d=l.value[p]);var y=void 0!==(g=r?c:void 0!==c?v*c:void 0)?g:f,m=1-d,b=d,x=this.findMidptPtsEtc(e,t),w=x.midptPts,E=x.vectorNormInverse,k={x:w.x1*m+w.x2*b,y:w.y1*m+w.y2*b};i.ctrlpts.push(k.x+E.x*y,k.y+E.y*y)}},xu.findTaxiPoints=function(e,t){var n=e._private.rscratch;n.edgeType="segments";var r="vertical",a="horizontal",i="leftward",o="rightward",s="downward",l="upward",u=t.posPts,c=t.srcW,d=t.srcH,h=t.tgtW,p=t.tgtH,f="node-position"!==e.pstyle("edge-distances").value,g=e.pstyle("taxi-direction").value,v=g,y=e.pstyle("taxi-turn"),m="%"===y.units,b=y.pfValue,x=b<0,w=e.pstyle("taxi-turn-min-distance").pfValue,E=f?(c+h)/2:0,k=f?(d+p)/2:0,C=u.x2-u.x1,S=u.y2-u.y1,P=function(e,t){return e>0?Math.max(e-t,0):Math.min(e+t,0)},D=P(C,E),T=P(S,k),_=!1;"auto"===v?g=Math.abs(D)>Math.abs(T)?a:r:v===l||v===s?(g=r,_=!0):v!==i&&v!==o||(g=a,_=!0);var M,B=g===r,N=B?T:D,I=B?S:C,z=Bt(I),A=!1;(_&&(m||x)||!(v===s&&I<0||v===l&&I>0||v===i&&I>0||v===o&&I<0)||(N=(z*=-1)*Math.abs(N),A=!0),m)?M=(b<0?1+b:b)*N:M=(b<0?N:0)+b*z;var L=function(e){return Math.abs(e)<w||Math.abs(e)>=Math.abs(N)},O=L(M),R=L(Math.abs(N)-Math.abs(M));if((O||R)&&!A)if(B){var V=Math.abs(I)<=d/2,F=Math.abs(C)<=h/2;if(V){var j=(u.x1+u.x2)/2,q=u.y1,Y=u.y2;n.segpts=[j,q,j,Y]}else if(F){var X=(u.y1+u.y2)/2,W=u.x1,H=u.x2;n.segpts=[W,X,H,X]}else n.segpts=[u.x1,u.y2]}else{var K=Math.abs(I)<=c/2,G=Math.abs(S)<=p/2;if(K){var U=(u.y1+u.y2)/2,Z=u.x1,$=u.x2;n.segpts=[Z,U,$,U]}else if(G){var Q=(u.x1+u.x2)/2,J=u.y1,ee=u.y2;n.segpts=[Q,J,Q,ee]}else n.segpts=[u.x2,u.y1]}else if(B){var te=u.y1+M+(f?d/2*z:0),ne=u.x1,re=u.x2;n.segpts=[ne,te,re,te]}else{var ae=u.x1+M+(f?c/2*z:0),ie=u.y1,oe=u.y2;n.segpts=[ae,ie,ae,oe]}if(n.isRound){var se=e.pstyle("taxi-radius").value,le="arc-radius"===e.pstyle("radius-type").value[0];n.radii=new Array(n.segpts.length/2).fill(se),n.isArcRadius=new Array(n.segpts.length/2).fill(le)}},xu.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,a=t.tgtPos,i=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,c=t.tgtShape,d=t.srcCornerRadius,h=t.tgtCornerRadius,p=t.srcRs,f=t.tgtRs,g=!k(n.startX)||!k(n.startY),v=!k(n.arrowStartX)||!k(n.arrowStartY),y=!k(n.endX)||!k(n.endY),m=!k(n.arrowEndX)||!k(n.arrowEndY),b=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),x=Nt({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),w=x<b,E=Nt({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),C=E<b,S=!1;if(g||v||w){S=!0;var P={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},D=Math.sqrt(P.x*P.x+P.y*P.y),T={x:P.x/D,y:P.y/D},_=Math.max(i,o),M={x:n.ctrlpts[0]+2*T.x*_,y:n.ctrlpts[1]+2*T.y*_},B=u.intersectLine(r.x,r.y,i,o,M.x,M.y,0,d,p);w?(n.ctrlpts[0]=n.ctrlpts[0]+T.x*(b-x),n.ctrlpts[1]=n.ctrlpts[1]+T.y*(b-x)):(n.ctrlpts[0]=B[0]+T.x*b,n.ctrlpts[1]=B[1]+T.y*b)}if(y||m||C){S=!0;var N={x:n.ctrlpts[0]-a.x,y:n.ctrlpts[1]-a.y},I=Math.sqrt(N.x*N.x+N.y*N.y),z={x:N.x/I,y:N.y/I},A=Math.max(i,o),L={x:n.ctrlpts[0]+2*z.x*A,y:n.ctrlpts[1]+2*z.y*A},O=c.intersectLine(a.x,a.y,s,l,L.x,L.y,0,h,f);C?(n.ctrlpts[0]=n.ctrlpts[0]+z.x*(b-E),n.ctrlpts[1]=n.ctrlpts[1]+z.y*(b-E)):(n.ctrlpts[0]=O[0]+z.x*b,n.ctrlpts[1]=O[1]+z.y*b)}S&&this.findEndpoints(e)}},xu.storeAllpts=function(e){var t=e._private.rscratch;if("multibezier"===t.edgeType||"bezier"===t.edgeType||"self"===t.edgeType||"compound"===t.edgeType){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var n=0;n+1<t.ctrlpts.length;n+=2)t.allpts.push(t.ctrlpts[n],t.ctrlpts[n+1]),n+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[n]+t.ctrlpts[n+2])/2,(t.ctrlpts[n+1]+t.ctrlpts[n+3])/2);var r;t.allpts.push(t.endX,t.endY),t.ctrlpts.length/2%2==0?(r=t.allpts.length/2-1,t.midX=t.allpts[r],t.midY=t.allpts[r+1]):(r=t.allpts.length/2-3,.5,t.midX=At(t.allpts[r],t.allpts[r+2],t.allpts[r+4],.5),t.midY=At(t.allpts[r+1],t.allpts[r+3],t.allpts[r+5],.5))}else if("straight"===t.edgeType)t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if("segments"===t.edgeType){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var a=2;a+3<t.allpts.length;a+=2){var i=t.radii[a/2-1],o=t.isArcRadius[a/2-1];t.roundCorners.push(bu({x:t.allpts[a-2],y:t.allpts[a-1]},{x:t.allpts[a],y:t.allpts[a+1],radius:i},{x:t.allpts[a+2],y:t.allpts[a+3]},i,o))}}if(t.segpts.length%4==0){var s=t.segpts.length/2,l=s-2;t.midX=(t.segpts[l]+t.segpts[s])/2,t.midY=(t.segpts[l+1]+t.segpts[s+1])/2}else{var u=t.segpts.length/2-1;if(t.isRound){var c={x:t.segpts[u],y:t.segpts[u+1]},d=t.roundCorners[u/2],h=[c.x-d.cx,c.y-d.cy],p=d.radius/Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2));h=h.map((function(e){return e*p})),t.midX=d.cx+h[0],t.midY=d.cy+h[1],t.midVector=h}else t.midX=t.segpts[u],t.midY=t.segpts[u+1]}}},xu.checkForInvalidEdgeWarning=function(e){var t=e[0]._private.rscratch;t.nodesOverlap||k(t.startX)&&k(t.startY)&&k(t.endX)&&k(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,Ue("Edge `"+e.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},xu.findEdgeControlPoints=function(e){var t=this;if(e&&0!==e.length){for(var n=this,r=n.cy.hasCompoundNodes(),a={map:new it,get:function(e){var t=this.map.get(e[0]);return null!=t?t.get(e[1]):null},set:function(e,t){var n=this.map.get(e[0]);null==n&&(n=new it,this.map.set(e[0],n)),n.set(e[1],t)}},i=[],o=[],s=0;s<e.length;s++){var l=e[s],u=l._private,c=l.pstyle("curve-style").value;if(!l.removed()&&l.takesUpSpace())if("haystack"!==c){var d="unbundled-bezier"===c||c.endsWith("segments")||"straight"===c||"straight-triangle"===c||c.endsWith("taxi"),h="unbundled-bezier"===c||"bezier"===c,p=u.source,f=u.target,g=[p.poolIndex(),f.poolIndex()].sort(),v=a.get(g);null==v&&(v={eles:[]},a.set(g,v),i.push(g)),v.eles.push(l),d&&(v.hasUnbundled=!0),h&&(v.hasBezier=!0)}else o.push(l)}for(var y=function(e){var o=i[e],s=a.get(o),l=void 0;if(!s.hasUnbundled){var u=s.eles[0].parallelEdges().filter((function(e){return e.isBundledBezier()}));nt(s.eles),u.forEach((function(e){return s.eles.push(e)})),s.eles.sort((function(e,t){return e.poolIndex()-t.poolIndex()}))}var c=s.eles[0],d=c.source(),h=c.target();if(d.poolIndex()>h.poolIndex()){var p=d;d=h,h=p}var f=s.srcPos=d.position(),g=s.tgtPos=h.position(),v=s.srcW=d.outerWidth(),y=s.srcH=d.outerHeight(),m=s.tgtW=h.outerWidth(),b=s.tgtH=h.outerHeight(),x=s.srcShape=n.nodeShapes[t.getNodeShape(d)],w=s.tgtShape=n.nodeShapes[t.getNodeShape(h)],E=s.srcCornerRadius="auto"===d.pstyle("corner-radius").value?"auto":d.pstyle("corner-radius").pfValue,C=s.tgtCornerRadius="auto"===h.pstyle("corner-radius").value?"auto":h.pstyle("corner-radius").pfValue,S=s.tgtRs=h._private.rscratch,P=s.srcRs=d._private.rscratch;s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var D=0;D<s.eles.length;D++){var T=s.eles[D],_=T[0]._private.rscratch,M=T.pstyle("curve-style").value,B="unbundled-bezier"===M||M.endsWith("segments")||M.endsWith("taxi"),N=!d.same(T.source());if(!s.calculatedIntersection&&d!==h&&(s.hasBezier||s.hasUnbundled)){s.calculatedIntersection=!0;var I=x.intersectLine(f.x,f.y,v,y,g.x,g.y,0,E,P),z=s.srcIntn=I,A=w.intersectLine(g.x,g.y,m,b,f.x,f.y,0,C,S),L=s.tgtIntn=A,O=s.intersectionPts={x1:I[0],x2:A[0],y1:I[1],y2:A[1]},R=s.posPts={x1:f.x,x2:g.x,y1:f.y,y2:g.y},V=A[1]-I[1],F=A[0]-I[0],j=Math.sqrt(F*F+V*V),q=s.vector={x:F,y:V},Y=s.vectorNorm={x:q.x/j,y:q.y/j},X={x:-Y.y,y:Y.x};s.nodesOverlap=!k(j)||w.checkPoint(I[0],I[1],0,m,b,g.x,g.y,C,S)||x.checkPoint(A[0],A[1],0,v,y,f.x,f.y,E,P),s.vectorNormInverse=X,l={nodesOverlap:s.nodesOverlap,dirCounts:s.dirCounts,calculatedIntersection:!0,hasBezier:s.hasBezier,hasUnbundled:s.hasUnbundled,eles:s.eles,srcPos:g,srcRs:S,tgtPos:f,tgtRs:P,srcW:m,srcH:b,tgtW:v,tgtH:y,srcIntn:L,tgtIntn:z,srcShape:w,tgtShape:x,posPts:{x1:R.x2,y1:R.y2,x2:R.x1,y2:R.y1},intersectionPts:{x1:O.x2,y1:O.y2,x2:O.x1,y2:O.y1},vector:{x:-q.x,y:-q.y},vectorNorm:{x:-Y.x,y:-Y.y},vectorNormInverse:{x:-X.x,y:-X.y}}}var W=N?l:s;_.nodesOverlap=W.nodesOverlap,_.srcIntn=W.srcIntn,_.tgtIntn=W.tgtIntn,_.isRound=M.startsWith("round"),r&&(d.isParent()||d.isChild()||h.isParent()||h.isChild())&&(d.parents().anySame(h)||h.parents().anySame(d)||d.same(h)&&d.isParent())?t.findCompoundLoopPoints(T,W,D,B):d===h?t.findLoopPoints(T,W,D,B):M.endsWith("segments")?t.findSegmentsPoints(T,W):M.endsWith("taxi")?t.findTaxiPoints(T,W):"straight"===M||!B&&s.eles.length%2==1&&D===Math.floor(s.eles.length/2)?t.findStraightEdgePoints(T):t.findBezierPoints(T,W,D,B,N),t.findEndpoints(T),t.tryToCorrectInvalidPoints(T,W),t.checkForInvalidEdgeWarning(T),t.storeAllpts(T),t.storeEdgeProjections(T),t.calculateArrowAngles(T),t.recalculateEdgeLabelProjections(T),t.calculateLabelAngles(T)}},m=0;m<i.length;m++)y(m);this.findHaystackPoints(o)}},xu.getSegmentPoints=function(e){var t=e[0]._private.rscratch;if(this.recalculateRenderedStyle(e),"segments"===t.edgeType)return wu(t.segpts)},xu.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var n=t.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return wu(t.ctrlpts)},xu.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}};var Eu={manualEndptToPx:function(e,t){var n=e.position(),r=e.outerWidth(),a=e.outerHeight(),i=e._private.rscratch;if(2===t.value.length){var o=[t.pfValue[0],t.pfValue[1]];return"%"===t.units[0]&&(o[0]=o[0]*r),"%"===t.units[1]&&(o[1]=o[1]*a),o[0]+=n.x,o[1]+=n.y,o}var s=t.pfValue[0];s=-Math.PI/2+s;var l=2*Math.max(r,a),u=[n.x+Math.cos(s)*l,n.y+Math.sin(s)*l];return this.nodeShapes[this.getNodeShape(e)].intersectLine(n.x,n.y,r,a,u[0],u[1],0,"auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,i)},findEndpoints:function(e){var t,n,r,a,i,o=this,s=e.source()[0],l=e.target()[0],u=s.position(),c=l.position(),d=e.pstyle("target-arrow-shape").value,h=e.pstyle("source-arrow-shape").value,p=e.pstyle("target-distance-from-node").pfValue,f=e.pstyle("source-distance-from-node").pfValue,g=s._private.rscratch,v=l._private.rscratch,y=e.pstyle("curve-style").value,m=e._private.rscratch,b=m.edgeType,x="self"===b||"compound"===b,w="bezier"===b||"multibezier"===b||x,E="bezier"!==b,C="straight"===b||"segments"===b,S="segments"===b,P=w||E||C,D=x||"taxi"===y,T=e.pstyle("source-endpoint"),_=D?"outside-to-node":T.value,M="auto"===s.pstyle("corner-radius").value?"auto":s.pstyle("corner-radius").pfValue,B=e.pstyle("target-endpoint"),N=D?"outside-to-node":B.value,I="auto"===l.pstyle("corner-radius").value?"auto":l.pstyle("corner-radius").pfValue;if(m.srcManEndpt=T,m.tgtManEndpt=B,w){var z=[m.ctrlpts[0],m.ctrlpts[1]];n=E?[m.ctrlpts[m.ctrlpts.length-2],m.ctrlpts[m.ctrlpts.length-1]]:z,r=z}else if(C){var A=S?m.segpts.slice(0,2):[c.x,c.y];n=S?m.segpts.slice(m.segpts.length-2):[u.x,u.y],r=A}if("inside-to-node"===N)t=[c.x,c.y];else if(B.units)t=this.manualEndptToPx(l,B);else if("outside-to-line"===N)t=m.tgtIntn;else if("outside-to-node"===N||"outside-to-node-or-label"===N?a=n:"outside-to-line"!==N&&"outside-to-line-or-label"!==N||(a=[u.x,u.y]),t=o.nodeShapes[this.getNodeShape(l)].intersectLine(c.x,c.y,l.outerWidth(),l.outerHeight(),a[0],a[1],0,I,v),"outside-to-node-or-label"===N||"outside-to-line-or-label"===N){var L=l._private.rscratch,O=L.labelWidth,R=L.labelHeight,V=L.labelX,F=L.labelY,j=O/2,q=R/2,Y=l.pstyle("text-valign").value;"top"===Y?F-=q:"bottom"===Y&&(F+=q);var X=l.pstyle("text-halign").value;"left"===X?V-=j:"right"===X&&(V+=j);var W=sn(a[0],a[1],[V-j,F-q,V+j,F-q,V+j,F+q,V-j,F+q],c.x,c.y);if(W.length>0){var H=u,K=It(H,Tt(t)),G=It(H,Tt(W)),U=K;if(G<K&&(t=W,U=G),W.length>2)It(H,{x:W[2],y:W[3]})<U&&(t=[W[2],W[3]])}}var Z=ln(t,n,o.arrowShapes[d].spacing(e)+p),$=ln(t,n,o.arrowShapes[d].gap(e)+p);if(m.endX=$[0],m.endY=$[1],m.arrowEndX=Z[0],m.arrowEndY=Z[1],"inside-to-node"===_)t=[u.x,u.y];else if(T.units)t=this.manualEndptToPx(s,T);else if("outside-to-line"===_)t=m.srcIntn;else if("outside-to-node"===_||"outside-to-node-or-label"===_?i=r:"outside-to-line"!==_&&"outside-to-line-or-label"!==_||(i=[c.x,c.y]),t=o.nodeShapes[this.getNodeShape(s)].intersectLine(u.x,u.y,s.outerWidth(),s.outerHeight(),i[0],i[1],0,M,g),"outside-to-node-or-label"===_||"outside-to-line-or-label"===_){var Q=s._private.rscratch,J=Q.labelWidth,ee=Q.labelHeight,te=Q.labelX,ne=Q.labelY,re=J/2,ae=ee/2,ie=s.pstyle("text-valign").value;"top"===ie?ne-=ae:"bottom"===ie&&(ne+=ae);var oe=s.pstyle("text-halign").value;"left"===oe?te-=re:"right"===oe&&(te+=re);var se=sn(i[0],i[1],[te-re,ne-ae,te+re,ne-ae,te+re,ne+ae,te-re,ne+ae],u.x,u.y);if(se.length>0){var le=c,ue=It(le,Tt(t)),ce=It(le,Tt(se)),de=ue;if(ce<ue&&(t=[se[0],se[1]],de=ce),se.length>2)It(le,{x:se[2],y:se[3]})<de&&(t=[se[2],se[3]])}}var he=ln(t,r,o.arrowShapes[h].spacing(e)+f),pe=ln(t,r,o.arrowShapes[h].gap(e)+f);m.startX=pe[0],m.startY=pe[1],m.arrowStartX=he[0],m.arrowStartY=he[1],P&&(k(m.startX)&&k(m.startY)&&k(m.endX)&&k(m.endY)?m.badLine=!1:m.badLine=!0)},getSourceEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[0],y:t.haystackPts[1]}:{x:t.arrowStartX,y:t.arrowStartY}},getTargetEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[2],y:t.haystackPts[3]}:{x:t.arrowEndX,y:t.arrowEndY}}},ku={};function Cu(e,t,n){for(var r=function(e,t,n,r){return At(e,t,n,r)},a=t._private.rstyle.bezierPts,i=0;i<e.bezierProjPcts.length;i++){var o=e.bezierProjPcts[i];a.push({x:r(n[0],n[2],n[4],o),y:r(n[1],n[3],n[5],o)})}}ku.storeEdgeProjections=function(e){var t=e._private,n=t.rscratch,r=n.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,"multibezier"===r||"bezier"===r||"self"===r||"compound"===r){t.rstyle.bezierPts=[];for(var a=0;a+5<n.allpts.length;a+=4)Cu(this,e,n.allpts.slice(a,a+6))}else if("segments"===r){var i=t.rstyle.linePts=[];for(a=0;a+1<n.allpts.length;a+=2)i.push({x:n.allpts[a],y:n.allpts[a+1]})}else if("haystack"===r){var o=n.haystackPts;t.rstyle.haystackPts=[{x:o[0],y:o[1]},{x:o[2],y:o[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth},ku.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)};var Su={recalculateNodeLabelProjection:function(e){var t=e.pstyle("label").strValue;if(!M(t)){var n,r,a=e._private,i=e.width(),o=e.height(),s=e.padding(),l=e.position(),u=e.pstyle("text-halign").strValue,c=e.pstyle("text-valign").strValue,d=a.rscratch,h=a.rstyle;switch(u){case"left":n=l.x-i/2-s;break;case"right":n=l.x+i/2+s;break;default:n=l.x}switch(c){case"top":r=l.y-o/2-s;break;case"bottom":r=l.y+o/2+s;break;default:r=l.y}d.labelX=n,d.labelY=r,h.labelX=n,h.labelY=r,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}}},Pu=function(e,t){var n=Math.atan(t/e);return 0===e&&n<0&&(n*=-1),n},Du=function(e,t){var n=t.x-e.x,r=t.y-e.y;return Pu(n,r)};Su.recalculateEdgeLabelProjections=function(e){var t,n=e._private,r=n.rscratch,a=this,i={mid:e.pstyle("label").strValue,source:e.pstyle("source-label").strValue,target:e.pstyle("target-label").strValue};if(i.mid||i.source||i.target){t={x:r.midX,y:r.midY};var o=function(e,t,r){at(n.rscratch,e,t,r),at(n.rstyle,e,t,r)};o("labelX",null,t.x),o("labelY",null,t.y);var s=Pu(r.midDispX,r.midDispY);o("labelAutoAngle",null,s);var l=function e(){if(e.cache)return e.cache;for(var t=[],i=0;i+5<r.allpts.length;i+=4){var o={x:r.allpts[i],y:r.allpts[i+1]},s={x:r.allpts[i+2],y:r.allpts[i+3]},l={x:r.allpts[i+4],y:r.allpts[i+5]};t.push({p0:o,p1:s,p2:l,startDist:0,length:0,segments:[]})}var u=n.rstyle.bezierPts,c=a.bezierProjPcts.length;function d(e,t,n,r,a){var i=Nt(t,n),o=e.segments[e.segments.length-1],s={p0:t,p1:n,t0:r,t1:a,startDist:o?o.startDist+o.length:0,length:i};e.segments.push(s),e.length+=i}for(var h=0;h<t.length;h++){var p=t[h],f=t[h-1];f&&(p.startDist=f.startDist+f.length),d(p,p.p0,u[h*c],0,a.bezierProjPcts[0]);for(var g=0;g<c-1;g++)d(p,u[h*c+g],u[h*c+g+1],a.bezierProjPcts[g],a.bezierProjPcts[g+1]);d(p,u[h*c+c-1],p.p2,a.bezierProjPcts[c-1],1)}return e.cache=t},u=function(n){var a,s="source"===n;if(i[n]){var u=e.pstyle(n+"-text-offset").pfValue;switch(r.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var c,d=l(),h=0,p=0,f=0;f<d.length;f++){for(var g=d[s?f:d.length-1-f],v=0;v<g.segments.length;v++){var y=g.segments[s?v:g.segments.length-1-v],m=f===d.length-1&&v===g.segments.length-1;if(h=p,(p+=y.length)>=u||m){c={cp:g,segment:y};break}}if(c)break}var b=c.cp,x=c.segment,w=(u-h)/x.length,E=x.t1-x.t0,k=s?x.t0+E*w:x.t1-E*w;k=Ot(0,k,1),t=Lt(b.p0,b.p1,b.p2,k),a=function(e,t,n,r){var a=Ot(0,r-.001,1),i=Ot(0,r+.001,1),o=Lt(e,t,n,a),s=Lt(e,t,n,i);return Du(o,s)}(b.p0,b.p1,b.p2,k);break;case"straight":case"segments":case"haystack":for(var C,S,P,D,T=0,_=r.allpts.length,M=0;M+3<_&&(s?(P={x:r.allpts[M],y:r.allpts[M+1]},D={x:r.allpts[M+2],y:r.allpts[M+3]}):(P={x:r.allpts[_-2-M],y:r.allpts[_-1-M]},D={x:r.allpts[_-4-M],y:r.allpts[_-3-M]}),S=T,!((T+=C=Nt(P,D))>=u));M+=2);var B=(u-S)/C;B=Ot(0,B,1),t=function(e,t,n,r){var a=t.x-e.x,i=t.y-e.y,o=Nt(e,t),s=a/o,l=i/o;return n=null==n?0:n,r=null!=r?r:n*o,{x:e.x+s*r,y:e.y+l*r}}(P,D,B),a=Du(P,D)}o("labelX",n,t.x),o("labelY",n,t.y),o("labelAutoAngle",n,a)}};u("source"),u("target"),this.applyLabelDimensions(e)}},Su.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Su.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),a=this.calculateLabelDimensions(e,r),i=e.pstyle("line-height").pfValue,o=e.pstyle("text-wrap").strValue,s=rt(n.rscratch,"labelWrapCachedLines",t)||[],l="wrap"!==o?1:Math.max(s.length,1),u=a.height/l,c=u*i,d=a.width,h=a.height+(l-1)*(i-1)*u;at(n.rstyle,"labelWidth",t,d),at(n.rscratch,"labelWidth",t,d),at(n.rstyle,"labelHeight",t,h),at(n.rscratch,"labelHeight",t,h),at(n.rscratch,"labelLineHeight",t,c)},Su.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",a=e.pstyle(r+"label").strValue,i=e.pstyle("text-transform").value,o=function(e,r){return r?(at(n.rscratch,e,t,r),r):rt(n.rscratch,e,t)};if(!a)return"";"none"==i||("uppercase"==i?a=a.toUpperCase():"lowercase"==i&&(a=a.toLowerCase()));var s=e.pstyle("text-wrap").value;if("wrap"===s){var l=o("labelKey");if(null!=l&&o("labelWrapKey")===l)return o("labelWrapCachedText");for(var u=a.split("\n"),c=e.pstyle("text-max-width").pfValue,h="anywhere"===e.pstyle("text-overflow-wrap").value,p=[],f=/[\s\u200b]+|$/g,g=0;g<u.length;g++){var v=u[g],y=this.calculateLabelDimensions(e,v).width;if(h){var m=v.split("").join("\u200b");v=m}if(y>c){var b,x="",w=0,E=d(v.matchAll(f));try{for(E.s();!(b=E.n()).done;){var k=b.value,C=k[0],S=v.substring(w,k.index);w=k.index+C.length;var P=0===x.length?S:x+S+C;this.calculateLabelDimensions(e,P).width<=c?x+=S+C:(x&&p.push(x),x=S+C)}}catch(B){E.e(B)}finally{E.f()}x.match(/^[\s\u200b]+$/)||p.push(x)}else p.push(v)}o("labelWrapCachedLines",p),a=o("labelWrapCachedText",p.join("\n")),o("labelWrapKey",l)}else if("ellipsis"===s){var D=e.pstyle("text-max-width").pfValue,T="",_=!1;if(this.calculateLabelDimensions(e,a).width<D)return a;for(var M=0;M<a.length;M++){if(this.calculateLabelDimensions(e,T+a[M]+"\u2026").width>D)break;T+=a[M],M===a.length-1&&(_=!0)}return _||(T+="\u2026"),T}return a},Su.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Su.calculateLabelDimensions=function(e,t){var n=this,r=n.cy.window().document,a=Le(t,e._private.labelDimsKey),i=n.labelDimCache||(n.labelDimCache=[]),o=i[a];if(null!=o)return o;var s=e.pstyle("font-style").strValue,l=e.pstyle("font-size").pfValue,u=e.pstyle("font-family").strValue,c=e.pstyle("font-weight").strValue,d=this.labelCalcCanvas,h=this.labelCalcCanvasContext;if(!d){d=this.labelCalcCanvas=r.createElement("canvas"),h=this.labelCalcCanvasContext=d.getContext("2d");var p=d.style;p.position="absolute",p.left="-9999px",p.top="-9999px",p.zIndex="-1",p.visibility="hidden",p.pointerEvents="none"}h.font="".concat(s," ").concat(c," ").concat(l,"px ").concat(u);for(var f=0,g=0,v=t.split("\n"),y=0;y<v.length;y++){var m=v[y],b=h.measureText(m),x=Math.ceil(b.width),w=l;f=Math.max(x,f),g+=w}return f+=0,g+=0,i[a]={width:f,height:g}},Su.calculateLabelAngle=function(e,t){var n=e._private.rscratch,r=e.isEdge(),a=t?t+"-":"",i=e.pstyle(a+"text-rotation"),o=i.strValue;return"none"===o?0:r&&"autorotate"===o?n.labelAutoAngle:"autorotate"===o?0:i.pfValue},Su.calculateLabelAngles=function(e){var t=this,n=e.isEdge(),r=e._private.rscratch;r.labelAngle=t.calculateLabelAngle(e),n&&(r.sourceLabelAngle=t.calculateLabelAngle(e,"source"),r.targetLabelAngle=t.calculateLabelAngle(e,"target"))};var Tu={},_u=!1;Tu.getNodeShape=function(e){var t=e.pstyle("shape").value;if("cutrectangle"===t&&(e.width()<28||e.height()<28))return _u||(Ue("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),_u=!0),"rectangle";if(e.isParent())return"rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t?t:"rectangle";if("polygon"===t){var n=e.pstyle("shape-polygon-points").value;return this.nodeShapes.makePolygon(n).name}return t};var Mu={registerCalculationListeners:function(){var e=this.cy,t=e.collection(),n=this,r=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.merge(e),n)for(var r=0;r<e.length;r++){var a=e[r]._private.rstyle;a.clean=!1,a.cleanConnected=!1}};n.binder(e).on("bounds.* dirty.*",(function(e){var t=e.target;r(t)})).on("style.* background.*",(function(e){var t=e.target;r(t,!1)}));var a=function(a){if(a){var i=n.onUpdateEleCalcsFns;t.cleanStyle();for(var o=0;o<t.length;o++){var s=t[o],l=s._private.rstyle;s.isNode()&&!l.cleanConnected&&(r(s.connectedEdges()),l.cleanConnected=!0)}if(i)for(var u=0;u<i.length;u++){(0,i[u])(a,t)}n.recalculateRenderedStyle(t),t=e.collection()}};n.flushRenderedStyleQueue=function(){a(!0)},n.beforeRender(a,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var n=function(e){return e._private.rstyle.cleanConnected},r=[],a=[];if(!this.destroyed){void 0===t&&(t=!0);for(var i=0;i<e.length;i++){var o=e[i],s=o._private,l=s.rstyle;!o.isEdge()||n(o.source())&&n(o.target())||(l.clean=!1),t&&l.clean||o.removed()||"none"!==o.pstyle("display").value&&("nodes"===s.group?a.push(o):r.push(o),l.clean=!0)}for(var u=0;u<a.length;u++){var c=a[u],d=c._private.rstyle,h=c.position();this.recalculateNodeLabelProjection(c),d.nodeX=h.x,d.nodeY=h.y,d.nodeW=c.pstyle("width").pfValue,d.nodeH=c.pstyle("height").pfValue}this.recalculateEdgeProjections(r);for(var p=0;p<r.length;p++){var f=r[p]._private,g=f.rstyle,v=f.rscratch;g.srcX=v.arrowStartX,g.srcY=v.arrowStartY,g.tgtX=v.arrowEndX,g.tgtY=v.arrowEndY,g.midX=v.midX,g.midY=v.midY,g.labelAngle=v.labelAngle,g.sourceLabelAngle=v.sourceLabelAngle,g.targetLabelAngle=v.targetLabelAngle}}}},Bu={updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],n=0;n<e.length;n++){var r=(a=e[n])._private.rscratch;a.grabbed()&&!a.isParent()?t.push(a):r.inDragLayer?e.drag.push(a):e.nondrag.push(a)}for(n=0;n<t.length;n++){var a=t[n];e.drag.push(a)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){if(e||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(Ko),t.interactive=t.filter((function(e){return e.interactive()})),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t}},Nu={};[Ul,Zl,xu,Eu,ku,Su,Tu,Mu,Bu].forEach((function(e){Y(Nu,e)}));var Iu={getCachedImage:function(e,t,n){var r=this.imageCache=this.imageCache||{},a=r[e];if(a)return a.image.complete||a.image.addEventListener("load",n),a.image;var i=(a=r[e]=r[e]||{}).image=new Image;i.addEventListener("load",n),i.addEventListener("error",(function(){i.error=!0}));var o="data:";return e.substring(0,5).toLowerCase()===o||(t="null"===t?null:t,i.crossOrigin=t),i.src=e,i}},zu={registerBinding:function(e,t,n,r){var a=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var i=[],o=0;o<e.length;o++){var s=e[o];if(void 0!==s){var l=this.binder(s);i.push(l.on.apply(l,a))}}return i}return(l=this.binder(e)).on.apply(l,a)}};zu.binder=function(e){var t,n=this,r=n.cy.window(),a=e===r||e===r.document||e===r.document.body||(t=e,"undefined"!=typeof HTMLElement&&t instanceof HTMLElement);if(null==n.supportsPassiveEvents){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});r.addEventListener("test",null,o)}catch(l){}n.supportsPassiveEvents=i}var s=function(t,r,i){var o=Array.prototype.slice.call(arguments);return a&&n.supportsPassiveEvents&&(o[2]={capture:null!=i&&i,passive:!1,once:!1}),n.bindings.push({target:e,args:o}),(e.addEventListener||e.on).apply(e,o),this};return{on:s,addEventListener:s,addListener:s,bind:s}},zu.nodeIsDraggable=function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()},zu.nodeIsGrabbable=function(e){return this.nodeIsDraggable(e)&&e.interactive()},zu.load=function(){var e=this,t=e.cy.window(),n=function(e){return e.selected()},r=function(t,n,r,a){null==t&&(t=e.cy);for(var i=0;i<n.length;i++){var o=n[i];t.emit({originalEvent:r,type:o,position:a})}},a=function(e){return e.shiftKey||e.metaKey||e.ctrlKey},i=function(t,n){var r=!0;if(e.cy.hasCompoundNodes()&&t&&t.pannable())for(var a=0;n&&a<n.length;a++){if((t=n[a]).isNode()&&t.isParent()&&!t.pannable()){r=!1;break}}else r=!0;return r},o=function(e){e[0]._private.rscratch.inDragLayer=!0},s=function(e){e[0]._private.rscratch.isGrabTarget=!0},l=function(e,t){var n=t.addToList;n.has(e)||!e.grabbable()||e.locked()||(n.merge(e),function(e){e[0]._private.grabbed=!0}(e))},u=function(t,n){n=n||{};var r=t.cy().hasCompoundNodes();n.inDragLayer&&(t.forEach(o),t.neighborhood().stdFilter((function(e){return!r||e.isEdge()})).forEach(o)),n.addToList&&t.forEach((function(e){l(e,n)})),function(e,t){if(e.cy().hasCompoundNodes()&&(null!=t.inDragLayer||null!=t.addToList)){var n=e.descendants();t.inDragLayer&&(n.forEach(o),n.connectedEdges().forEach(o)),t.addToList&&l(n,t)}}(t,n),h(t,{inDragLayer:n.inDragLayer}),e.updateCachedGrabbedEles()},c=u,d=function(t){t&&(e.getCachedZSortedEles().forEach((function(e){!function(e){e[0]._private.grabbed=!1}(e),function(e){e[0]._private.rscratch.inDragLayer=!1}(e),function(e){e[0]._private.rscratch.isGrabTarget=!1}(e)})),e.updateCachedGrabbedEles())},h=function(e,t){if((null!=t.inDragLayer||null!=t.addToList)&&e.cy().hasCompoundNodes()){var n=e.ancestors().orphans();if(!n.same(e)){var r=n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()),a=r.connectedEdges();t.inDragLayer&&(a.forEach(o),r.forEach(o)),t.addToList&&r.forEach((function(e){l(e,t)}))}}},p=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},f="undefined"!=typeof MutationObserver,g="undefined"!=typeof ResizeObserver;f?(e.removeObserver=new MutationObserver((function(t){for(var n=0;n<t.length;n++){var r=t[n].removedNodes;if(r)for(var a=0;a<r.length;a++){if(r[a]===e.container){e.destroy();break}}}})),e.container.parentNode&&e.removeObserver.observe(e.container.parentNode,{childList:!0})):e.registerBinding(e.container,"DOMNodeRemoved",(function(t){e.destroy()}));var v=ke((function(){e.cy.resize()}),100);f&&(e.styleObserver=new MutationObserver(v),e.styleObserver.observe(e.container,{attributes:!0})),e.registerBinding(t,"resize",v),g&&(e.resizeObserver=new ResizeObserver(v),e.resizeObserver.observe(e.container));var y=function(){e.invalidateContainerClientCoordsCache()};!function(e,t){for(;null!=e;)t(e),e=e.parentNode}(e.container,(function(t){e.registerBinding(t,"transitionend",y),e.registerBinding(t,"animationend",y),e.registerBinding(t,"scroll",y)})),e.registerBinding(e.container,"contextmenu",(function(e){e.preventDefault()}));var m=function(t){for(var n=e.findContainerClientCoords(),r=n[0],a=n[1],i=n[2],o=n[3],s=t.touches?t.touches:[t],l=!1,u=0;u<s.length;u++){var c=s[u];if(r<=c.clientX&&c.clientX<=r+i&&a<=c.clientY&&c.clientY<=a+o){l=!0;break}}if(!l)return!1;for(var d=e.container,h=t.target.parentNode,p=!1;h;){if(h===d){p=!0;break}h=h.parentNode}return!!p};e.registerBinding(e.container,"mousedown",(function(t){if(m(t)&&(1!==e.hoverData.which||1===t.which)){t.preventDefault(),p(),e.hoverData.capture=!0,e.hoverData.which=t.which;var n=e.cy,a=[t.clientX,t.clientY],i=e.projectIntoViewport(a[0],a[1]),o=e.selection,l=e.findNearestElements(i[0],i[1],!0,!1),d=l[0],h=e.dragData.possibleDragElements;e.hoverData.mdownPos=i,e.hoverData.mdownGPos=a;if(3==t.which){e.hoverData.cxtStarted=!0;var f={originalEvent:t,type:"cxttapstart",position:{x:i[0],y:i[1]}};d?(d.activate(),d.emit(f),e.hoverData.down=d):n.emit(f),e.hoverData.downTime=(new Date).getTime(),e.hoverData.cxtDragged=!1}else if(1==t.which){if(d&&d.activate(),null!=d&&e.nodeIsGrabbable(d)){var g=function(e){return{originalEvent:t,type:e,position:{x:i[0],y:i[1]}}};if(s(d),d.selected()){h=e.dragData.possibleDragElements=n.collection();var v=n.$((function(t){return t.isNode()&&t.selected()&&e.nodeIsGrabbable(t)}));u(v,{addToList:h}),d.emit(g("grabon")),v.forEach((function(e){e.emit(g("grab"))}))}else h=e.dragData.possibleDragElements=n.collection(),c(d,{addToList:h}),d.emit(g("grabon")).emit(g("grab"));e.redrawHint("eles",!0),e.redrawHint("drag",!0)}e.hoverData.down=d,e.hoverData.downs=l,e.hoverData.downTime=(new Date).getTime(),r(d,["mousedown","tapstart","vmousedown"],t,{x:i[0],y:i[1]}),null==d?(o[4]=1,e.data.bgActivePosistion={x:i[0],y:i[1]},e.redrawHint("select",!0),e.redraw()):d.pannable()&&(o[4]=1),e.hoverData.tapholdCancelled=!1,clearTimeout(e.hoverData.tapholdTimeout),e.hoverData.tapholdTimeout=setTimeout((function(){if(!e.hoverData.tapholdCancelled){var r=e.hoverData.down;r?r.emit({originalEvent:t,type:"taphold",position:{x:i[0],y:i[1]}}):n.emit({originalEvent:t,type:"taphold",position:{x:i[0],y:i[1]}})}}),e.tapholdDuration)}o[0]=o[2]=i[0],o[1]=o[3]=i[1]}}),!1);var b,x,w,E=function(e){var t=e.getRootNode();if(t&&11===t.nodeType&&void 0!==t.host)return t}(e.container);e.registerBinding([t,E],"mousemove",(function(t){if(e.hoverData.capture||m(t)){var n=!1,o=e.cy,s=o.zoom(),l=[t.clientX,t.clientY],c=e.projectIntoViewport(l[0],l[1]),h=e.hoverData.mdownPos,p=e.hoverData.mdownGPos,f=e.selection,g=null;e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.selecting||(g=e.findNearestElement(c[0],c[1],!0,!1));var v,y=e.hoverData.last,b=e.hoverData.down,x=[c[0]-f[2],c[1]-f[3]],w=e.dragData.possibleDragElements;if(p){var E=l[0]-p[0],C=E*E,S=l[1]-p[1],P=C+S*S;e.hoverData.isOverThresholdDrag=v=P>=e.desktopTapThreshold2}var D=a(t);v&&(e.hoverData.tapholdCancelled=!0);n=!0,r(g,["mousemove","vmousemove","tapdrag"],t,{x:c[0],y:c[1]});var T=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:c[0],y:c[1]}}),f[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(3===e.hoverData.which){if(v){var _={originalEvent:t,type:"cxtdrag",position:{x:c[0],y:c[1]}};b?b.emit(_):o.emit(_),e.hoverData.cxtDragged=!0,e.hoverData.cxtOver&&g===e.hoverData.cxtOver||(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:c[0],y:c[1]}}),e.hoverData.cxtOver=g,g&&g.emit({originalEvent:t,type:"cxtdragover",position:{x:c[0],y:c[1]}}))}}else if(e.hoverData.dragging){if(n=!0,o.panningEnabled()&&o.userPanningEnabled()){var M;if(e.hoverData.justStartedPan){var B=e.hoverData.mdownPos;M={x:(c[0]-B[0])*s,y:(c[1]-B[1])*s},e.hoverData.justStartedPan=!1}else M={x:x[0]*s,y:x[1]*s};o.panBy(M),o.emit("dragpan"),e.hoverData.dragged=!0}c=e.projectIntoViewport(t.clientX,t.clientY)}else if(1!=f[4]||null!=b&&!b.pannable()){if(b&&b.pannable()&&b.active()&&b.unactivate(),b&&b.grabbed()||g==y||(y&&r(y,["mouseout","tapdragout"],t,{x:c[0],y:c[1]}),g&&r(g,["mouseover","tapdragover"],t,{x:c[0],y:c[1]}),e.hoverData.last=g),b)if(v){if(o.boxSelectionEnabled()&&D)b&&b.grabbed()&&(d(w),b.emit("freeon"),w.emit("free"),e.dragData.didDrag&&(b.emit("dragfreeon"),w.emit("dragfree"))),T();else if(b&&b.grabbed()&&e.nodeIsDraggable(b)){var N=!e.dragData.didDrag;N&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||u(w,{inDragLayer:!0});var I={x:0,y:0};if(k(x[0])&&k(x[1])&&(I.x+=x[0],I.y+=x[1],N)){var z=e.hoverData.dragDelta;z&&k(z[0])&&k(z[1])&&(I.x+=z[0],I.y+=z[1])}e.hoverData.draggingEles=!0,w.silentShift(I).emit("position drag"),e.redrawHint("drag",!0),e.redraw()}}else!function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];0===t.length?(t.push(x[0]),t.push(x[1])):(t[0]+=x[0],t[1]+=x[1])}();n=!0}else if(v){if(e.hoverData.dragging||!o.boxSelectionEnabled()||!D&&o.panningEnabled()&&o.userPanningEnabled()){if(!e.hoverData.selecting&&o.panningEnabled()&&o.userPanningEnabled()){i(b,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,f[4]=0,e.data.bgActivePosistion=Tt(h),e.redrawHint("select",!0),e.redraw())}}else T();b&&b.pannable()&&b.active()&&b.unactivate()}return f[2]=c[0],f[3]=c[1],n?(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1):void 0}}),!1),e.registerBinding(t,"mouseup",(function(t){if((1!==e.hoverData.which||1===t.which||!e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var i=e.cy,o=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(o[0],o[1],!0,!1),u=e.dragData.possibleDragElements,c=e.hoverData.down,h=a(t);if(e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,c&&c.unactivate(),3===e.hoverData.which){var p={originalEvent:t,type:"cxttapend",position:{x:o[0],y:o[1]}};if(c?c.emit(p):i.emit(p),!e.hoverData.cxtDragged){var f={originalEvent:t,type:"cxttap",position:{x:o[0],y:o[1]}};c?c.emit(f):i.emit(f)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(1===e.hoverData.which){if(r(l,["mouseup","tapend","vmouseup"],t,{x:o[0],y:o[1]}),e.dragData.didDrag||e.hoverData.dragged||e.hoverData.selecting||e.hoverData.isOverThresholdDrag||(r(c,["click","tap","vclick"],t,{x:o[0],y:o[1]}),x=!1,t.timeStamp-w<=i.multiClickDebounceTime()?(b&&clearTimeout(b),x=!0,w=null,r(c,["dblclick","dbltap","vdblclick"],t,{x:o[0],y:o[1]})):(b=setTimeout((function(){x||r(c,["oneclick","onetap","voneclick"],t,{x:o[0],y:o[1]})}),i.multiClickDebounceTime()),w=t.timeStamp)),null!=c||e.dragData.didDrag||e.hoverData.selecting||e.hoverData.dragged||a(t)||(i.$(n).unselect(["tapunselect"]),u.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=u=i.collection()),l!=c||e.dragData.didDrag||e.hoverData.selecting||null!=l&&l._private.selectable&&(e.hoverData.dragging||("additive"===i.selectionType()||h?l.selected()?l.unselect(["tapunselect"]):l.select(["tapselect"]):h||(i.$(n).unmerge(l).unselect(["tapunselect"]),l.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var g=i.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint("select",!0),g.length>0&&e.redrawHint("eles",!0),i.emit({type:"boxend",originalEvent:t,position:{x:o[0],y:o[1]}});var v=function(e){return e.selectable()&&!e.selected()};"additive"===i.selectionType()||h||i.$(n).unmerge(g).unselect(),g.emit("box").stdFilter(v).select().emit("boxselect"),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!s[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var y=c&&c.grabbed();d(u),y&&(c.emit("freeon"),u.emit("free"),e.dragData.didDrag&&(c.emit("dragfreeon"),u.emit("dragfree")))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}}),!1);var C,S,P,D,T,_,M,B,N,I,z,A,L,O=function(t){if(!e.scrollingPage){var n=e.cy,r=n.zoom(),a=n.pan(),i=e.projectIntoViewport(t.clientX,t.clientY),o=[i[0]*r+a.x,i[1]*r+a.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||0!==e.selection[4])t.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout((function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()}),150),s=null!=t.deltaY?t.deltaY/-250:null!=t.wheelDeltaY?t.wheelDeltaY/1e3:t.wheelDelta/1e3,s*=e.wheelSensitivity,1===t.deltaMode&&(s*=33);var l=n.zoom()*Math.pow(10,s);"gesturechange"===t.type&&(l=e.gestureStartZoom*t.scale),n.zoom({level:l,renderedPosition:{x:o[0],y:o[1]}}),n.emit("gesturechange"===t.type?"pinchzoom":"scrollzoom")}}};e.registerBinding(e.container,"wheel",O,!0),e.registerBinding(t,"scroll",(function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout((function(){e.scrollingPage=!1}),250)}),!0),e.registerBinding(e.container,"gesturestart",(function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()}),!0),e.registerBinding(e.container,"gesturechange",(function(t){e.hasTouchStarted||O(t)}),!0),e.registerBinding(e.container,"mouseout",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),e.registerBinding(e.container,"mouseover",(function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var R,V,F,j,q,Y,X,W=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},H=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(e.registerBinding(e.container,"touchstart",R=function(t){if(e.hasTouchStarted=!0,m(t)){p(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,a=e.touchData.now,i=e.touchData.earlier;if(t.touches[0]){var o=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);a[0]=o[0],a[1]=o[1]}if(t.touches[1]){o=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);a[2]=o[0],a[3]=o[1]}if(t.touches[2]){o=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);a[4]=o[0],a[5]=o[1]}if(t.touches[1]){e.touchData.singleTouchMoved=!0,d(e.dragData.touchDragEles);var l=e.findContainerClientCoords();N=l[0],I=l[1],z=l[2],A=l[3],C=t.touches[0].clientX-N,S=t.touches[0].clientY-I,P=t.touches[1].clientX-N,D=t.touches[1].clientY-I,L=0<=C&&C<=z&&0<=P&&P<=z&&0<=S&&S<=A&&0<=D&&D<=A;var h=n.pan(),f=n.zoom();T=W(C,S,P,D),_=H(C,S,P,D),B=[((M=[(C+P)/2,(S+D)/2])[0]-h.x)/f,(M[1]-h.y)/f];if(_<4e4&&!t.touches[2]){var g=e.findNearestElement(a[0],a[1],!0,!0),v=e.findNearestElement(a[2],a[3],!0,!0);return g&&g.isNode()?(g.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:a[0],y:a[1]}}),e.touchData.start=g):v&&v.isNode()?(v.activate().emit({originalEvent:t,type:"cxttapstart",position:{x:a[0],y:a[1]}}),e.touchData.start=v):n.emit({originalEvent:t,type:"cxttapstart",position:{x:a[0],y:a[1]}}),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,void e.redraw()}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(t.touches[1]);else if(t.touches[0]){var y=e.findNearestElements(a[0],a[1],!0,!0),b=y[0];if(null!=b&&(b.activate(),e.touchData.start=b,e.touchData.starts=y,e.nodeIsGrabbable(b))){var x=e.dragData.touchDragEles=n.collection(),w=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),b.selected()?(w=n.$((function(t){return t.selected()&&e.nodeIsGrabbable(t)})),u(w,{addToList:x})):c(b,{addToList:x}),s(b);var E=function(e){return{originalEvent:t,type:e,position:{x:a[0],y:a[1]}}};b.emit(E("grabon")),w?w.forEach((function(e){e.emit(E("grab"))})):b.emit(E("grab"))}r(b,["touchstart","tapstart","vmousedown"],t,{x:a[0],y:a[1]}),null==b&&(e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout((function(){!1!==e.touchData.singleTouchMoved||e.pinching||e.touchData.selecting||r(e.touchData.start,["taphold"],t,{x:a[0],y:a[1]})}),e.tapholdDuration)}if(t.touches.length>=1){for(var k=e.touchData.startPosition=[null,null,null,null,null,null],O=0;O<a.length;O++)k[O]=i[O]=a[O];var R=t.touches[0];e.touchData.startGPosition=[R.clientX,R.clientY]}}},!1),e.registerBinding(t,"touchmove",V=function(t){var n=e.touchData.capture;if(n||m(t)){var a=e.selection,o=e.cy,s=e.touchData.now,l=e.touchData.earlier,c=o.zoom();if(t.touches[0]){var h=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=h[0],s[1]=h[1]}if(t.touches[1]){h=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);s[2]=h[0],s[3]=h[1]}if(t.touches[2]){h=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);s[4]=h[0],s[5]=h[1]}var p,f=e.touchData.startGPosition;if(n&&t.touches[0]&&f){for(var g=[],v=0;v<s.length;v++)g[v]=s[v]-l[v];var y=t.touches[0].clientX-f[0],b=y*y,x=t.touches[0].clientY-f[1];p=b+x*x>=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var w=t.touches[0].clientX-N,E=t.touches[0].clientY-I,M=t.touches[1].clientX-N,z=t.touches[1].clientY-I,A=H(w,E,M,z);if(A/_>=2.25||A>=22500){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var O={originalEvent:t,type:"cxttapend",position:{x:s[0],y:s[1]}};e.touchData.start?(e.touchData.start.unactivate().emit(O),e.touchData.start=null):o.emit(O)}}if(n&&e.touchData.cxt){O={originalEvent:t,type:"cxtdrag",position:{x:s[0],y:s[1]}};e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(O):o.emit(O),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var R=e.findNearestElement(s[0],s[1],!0,!0);e.touchData.cxtOver&&R===e.touchData.cxtOver||(e.touchData.cxtOver&&e.touchData.cxtOver.emit({originalEvent:t,type:"cxtdragout",position:{x:s[0],y:s[1]}}),e.touchData.cxtOver=R,R&&R.emit({originalEvent:t,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(n&&t.touches[2]&&o.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||o.emit({originalEvent:t,type:"boxstart",position:{x:s[0],y:s[1]}}),e.touchData.selecting=!0,e.touchData.didSelect=!0,a[4]=1,a&&0!==a.length&&void 0!==a[0]?(a[2]=(s[0]+s[2]+s[4])/3,a[3]=(s[1]+s[3]+s[5])/3):(a[0]=(s[0]+s[2]+s[4])/3,a[1]=(s[1]+s[3]+s[5])/3,a[2]=(s[0]+s[2]+s[4])/3+1,a[3]=(s[1]+s[3]+s[5])/3+1),e.redrawHint("select",!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),ee=e.dragData.touchDragEles){e.redrawHint("drag",!0);for(var V=0;V<ee.length;V++){var F=ee[V]._private;F.grabbed=!1,F.rscratch.inDragLayer=!1}}var j=e.touchData.start,q=(w=t.touches[0].clientX-N,E=t.touches[0].clientY-I,M=t.touches[1].clientX-N,z=t.touches[1].clientY-I,W(w,E,M,z)),Y=q/T;if(L){var X=(w-C+(M-P))/2,K=(E-S+(z-D))/2,G=o.zoom(),U=G*Y,Z=o.pan(),$=B[0]*G+Z.x,Q=B[1]*G+Z.y,J={x:-U/G*($-Z.x-X)+$,y:-U/G*(Q-Z.y-K)+Q};if(j&&j.active()){var ee=e.dragData.touchDragEles;d(ee),e.redrawHint("drag",!0),e.redrawHint("eles",!0),j.unactivate().emit("freeon"),ee.emit("free"),e.dragData.didDrag&&(j.emit("dragfreeon"),ee.emit("dragfree"))}o.viewport({zoom:U,pan:J,cancelOnFailedZoom:!0}),o.emit("pinchzoom"),T=q,C=w,S=E,P=M,D=z,e.pinching=!0}if(t.touches[0]){h=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=h[0],s[1]=h[1]}if(t.touches[1]){h=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);s[2]=h[0],s[3]=h[1]}if(t.touches[2]){h=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);s[4]=h[0],s[5]=h[1]}}else if(t.touches[0]&&!e.touchData.didSelect){var te=e.touchData.start,ne=e.touchData.last;if(e.hoverData.draggingEles||e.swipePanning||(R=e.findNearestElement(s[0],s[1],!0,!0)),n&&null!=te&&t.preventDefault(),n&&null!=te&&e.nodeIsDraggable(te))if(p){ee=e.dragData.touchDragEles;var re=!e.dragData.didDrag;re&&u(ee,{inDragLayer:!0}),e.dragData.didDrag=!0;var ae={x:0,y:0};if(k(g[0])&&k(g[1]))if(ae.x+=g[0],ae.y+=g[1],re)e.redrawHint("eles",!0),(ie=e.touchData.dragDelta)&&k(ie[0])&&k(ie[1])&&(ae.x+=ie[0],ae.y+=ie[1]);e.hoverData.draggingEles=!0,ee.silentShift(ae).emit("position drag"),e.redrawHint("drag",!0),e.touchData.startPosition[0]==l[0]&&e.touchData.startPosition[1]==l[1]&&e.redrawHint("eles",!0),e.redraw()}else{var ie;0===(ie=e.touchData.dragDelta=e.touchData.dragDelta||[]).length?(ie.push(g[0]),ie.push(g[1])):(ie[0]+=g[0],ie[1]+=g[1])}if(r(te||R,["touchmove","tapdrag","vmousemove"],t,{x:s[0],y:s[1]}),te&&te.grabbed()||R==ne||(ne&&ne.emit({originalEvent:t,type:"tapdragout",position:{x:s[0],y:s[1]}}),R&&R.emit({originalEvent:t,type:"tapdragover",position:{x:s[0],y:s[1]}})),e.touchData.last=R,n)for(V=0;V<s.length;V++)s[V]&&e.touchData.startPosition[V]&&p&&(e.touchData.singleTouchMoved=!0);if(n&&(null==te||te.pannable())&&o.panningEnabled()&&o.userPanningEnabled()){i(te,e.touchData.starts)&&(t.preventDefault(),e.data.bgActivePosistion||(e.data.bgActivePosistion=Tt(e.touchData.startPosition)),e.swipePanning?(o.panBy({x:g[0]*c,y:g[1]*c}),o.emit("dragpan")):p&&(e.swipePanning=!0,o.panBy({x:y*c,y:x*c}),o.emit("dragpan"),te&&(te.unactivate(),e.redrawHint("select",!0),e.touchData.start=null)));h=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=h[0],s[1]=h[1]}}for(v=0;v<s.length;v++)l[v]=s[v];n&&t.touches.length>0&&!e.hoverData.draggingEles&&!e.swipePanning&&null!=e.data.bgActivePosistion&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1),e.registerBinding(t,"touchcancel",F=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()}),e.registerBinding(t,"touchend",j=function(t){var a=e.touchData.start;if(e.touchData.capture){0===t.touches.length&&(e.touchData.capture=!1),t.preventDefault();var i=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var o,s=e.cy,l=s.zoom(),u=e.touchData.now,c=e.touchData.earlier;if(t.touches[0]){var h=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);u[0]=h[0],u[1]=h[1]}if(t.touches[1]){h=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY);u[2]=h[0],u[3]=h[1]}if(t.touches[2]){h=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY);u[4]=h[0],u[5]=h[1]}if(a&&a.unactivate(),e.touchData.cxt){if(o={originalEvent:t,type:"cxttapend",position:{x:u[0],y:u[1]}},a?a.emit(o):s.emit(o),!e.touchData.cxtDragged){var p={originalEvent:t,type:"cxttap",position:{x:u[0],y:u[1]}};a?a.emit(p):s.emit(p)}return e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,void e.redraw()}if(!t.touches[2]&&s.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var f=s.collection(e.getAllInBox(i[0],i[1],i[2],i[3]));i[0]=void 0,i[1]=void 0,i[2]=void 0,i[3]=void 0,i[4]=0,e.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:t,position:{x:u[0],y:u[1]}});f.emit("box").stdFilter((function(e){return e.selectable()&&!e.selected()})).select().emit("boxselect"),f.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(null!=a&&a.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(t.touches[1]);else if(t.touches[0]);else if(!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var g=e.dragData.touchDragEles;if(null!=a){var v=a._private.grabbed;d(g),e.redrawHint("drag",!0),e.redrawHint("eles",!0),v&&(a.emit("freeon"),g.emit("free"),e.dragData.didDrag&&(a.emit("dragfreeon"),g.emit("dragfree"))),r(a,["touchend","tapend","vmouseup","tapdragout"],t,{x:u[0],y:u[1]}),a.unactivate(),e.touchData.start=null}else{var y=e.findNearestElement(u[0],u[1],!0,!0);r(y,["touchend","tapend","vmouseup","tapdragout"],t,{x:u[0],y:u[1]})}var m=e.touchData.startPosition[0]-u[0],b=m*m,x=e.touchData.startPosition[1]-u[1],w=(b+x*x)*l*l;e.touchData.singleTouchMoved||(a||s.$(":selected").unselect(["tapunselect"]),r(a,["tap","vclick"],t,{x:u[0],y:u[1]}),q=!1,t.timeStamp-X<=s.multiClickDebounceTime()?(Y&&clearTimeout(Y),q=!0,X=null,r(a,["dbltap","vdblclick"],t,{x:u[0],y:u[1]})):(Y=setTimeout((function(){q||r(a,["onetap","voneclick"],t,{x:u[0],y:u[1]})}),s.multiClickDebounceTime()),X=t.timeStamp)),null!=a&&!e.dragData.didDrag&&a._private.selectable&&w<e.touchTapThreshold2&&!e.pinching&&("single"===s.selectionType()?(s.$(n).unmerge(a).unselect(["tapunselect"]),a.select(["tapselect"])):a.selected()?a.unselect(["tapunselect"]):a.select(["tapselect"]),e.redrawHint("eles",!0)),e.touchData.singleTouchMoved=!0}for(var E=0;E<u.length;E++)c[E]=u[E];e.dragData.didDrag=!1,0===t.touches.length&&(e.touchData.dragDelta=[],e.touchData.startPosition=[null,null,null,null,null,null],e.touchData.startGPosition=null,e.touchData.didSelect=!1),t.touches.length<2&&(1===t.touches.length&&(e.touchData.startGPosition=[t.touches[0].clientX,t.touches[0].clientY]),e.pinching=!1,e.redrawHint("eles",!0),e.redraw())}},!1),"undefined"==typeof TouchEvent){var K=[],G=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},U=function(e){K.push(function(e){return{event:e,touch:G(e)}}(e))},Z=function(e){for(var t=0;t<K.length;t++){if(K[t].event.pointerId===e.pointerId)return void K.splice(t,1)}},$=function(e){e.touches=K.map((function(e){return e.touch}))},Q=function(e){return"mouse"===e.pointerType||4===e.pointerType};e.registerBinding(e.container,"pointerdown",(function(e){Q(e)||(e.preventDefault(),U(e),$(e),R(e))})),e.registerBinding(e.container,"pointerup",(function(e){Q(e)||(Z(e),$(e),j(e))})),e.registerBinding(e.container,"pointercancel",(function(e){Q(e)||(Z(e),$(e),F())})),e.registerBinding(e.container,"pointermove",(function(e){Q(e)||(e.preventDefault(),function(e){var t=K.filter((function(t){return t.event.pointerId===e.pointerId}))[0];t.event=e,t.touch=G(e)}(e),$(e),V(e))}))}};var Au={generatePolygon:function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl("polygon",e,t,n,r,a,this.points)},intersectLine:function(e,t,n,r,a,i,o,s){return sn(a,i,this.points,e,t,n/2,r/2,o)},checkPoint:function(e,t,n,r,a,i,o,s){return Jt(e,t,this.points,i,o,r,a,[0,-1],n)}}}};Au.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl(this.name,e,t,n,r,a)},intersectLine:function(e,t,n,r,a,i,o,s){return function(e,t,n,r,a,i){var o=n-e,s=r-t;o/=a,s/=i;var l=Math.sqrt(o*o+s*s),u=l-1;if(u<0)return[];var c=u/l;return[(n-e)*c+e,(r-t)*c+t]}(a,i,e,t,n/2+o,r/2+o)},checkPoint:function(e,t,n,r,a,i,o,s){return nn(e,t,r,a,i,o,n)}}},Au.generateRoundPolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:function(e,n,r,a,i,o,s){if(void 0!==o[s]&&o[s+"-cx"]===e&&o[s+"-cy"]===n)return o[s];o[s]=new Array(t.length/2),o[s+"-cx"]=e,o[s+"-cy"]=n;var l=r/2,u=a/2;i="auto"===i?pn(r,a):i;for(var c=new Array(t.length/2),d=0;d<t.length/2;d++)c[d]={x:e+l*t[2*d],y:n+u*t[2*d+1]};var h,p,f,g,v=c.length;for(p=c[v-1],h=0;h<v;h++)f=c[h%v],g=c[(h+1)%v],o[s][h]=bu(p,f,g,i),p=f,f=g;return o[s]},draw:function(e,t,n,r,a,i,o){this.renderer.nodeShapeImpl("round-polygon",e,t,n,r,a,this.points,this.getOrCreateCorners(t,n,r,a,i,o,"drawCorners"))},intersectLine:function(e,t,n,r,a,i,o,s,l){return function(e,t,n,r,a,i,o,s,l){var u,c=[],d=new Array(2*n.length);l.forEach((function(n,i){0===i?(d[d.length-2]=n.startX,d[d.length-1]=n.startY):(d[4*i-2]=n.startX,d[4*i-1]=n.startY),d[4*i]=n.stopX,d[4*i+1]=n.stopY,0!==(u=rn(e,t,r,a,n.cx,n.cy,n.radius)).length&&c.push(u[0],u[1])}));for(var h=0;h<d.length/4;h++)0!==(u=on(e,t,r,a,d[4*h],d[4*h+1],d[4*h+2],d[4*h+3],!1)).length&&c.push(u[0],u[1]);if(c.length>2){for(var p=[c[0],c[1]],f=Math.pow(p[0]-e,2)+Math.pow(p[1]-t,2),g=1;g<c.length/2;g++){var v=Math.pow(c[2*g]-e,2)+Math.pow(c[2*g+1]-t,2);v<=f&&(p[0]=c[2*g],p[1]=c[2*g+1],f=v)}return p}return c}(a,i,this.points,e,t,0,0,0,this.getOrCreateCorners(e,t,n,r,s,l,"corners"))},checkPoint:function(e,t,n,r,a,i,o,s,l){return function(e,t,n,r,a,i,o,s){for(var l=new Array(2*n.length),u=0;u<s.length;u++){var c=s[u];if(l[4*u+0]=c.startX,l[4*u+1]=c.startY,l[4*u+2]=c.stopX,l[4*u+3]=c.stopY,Math.pow(c.cx-e,2)+Math.pow(c.cy-t,2)<=Math.pow(c.radius,2))return!0}return Qt(e,t,l)}(e,t,this.points,0,0,0,0,this.getOrCreateCorners(i,o,r,a,s,l,"corners"))}}},Au.generateRoundRectangle=function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:un(4,0),draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl(this.name,e,t,n,r,a,this.points,i)},intersectLine:function(e,t,n,r,a,i,o,s){return Kt(a,i,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,a,i,o,s){var l=r/2,u=a/2;s="auto"===s?hn(r,a):s;var c=2*(s=Math.min(l,u,s));return!!Jt(e,t,this.points,i,o,r,a-c,[0,-1],n)||(!!Jt(e,t,this.points,i,o,r-c,a,[0,-1],n)||(!!nn(e,t,c,c,i-l+s,o-u+s,n)||(!!nn(e,t,c,c,i+l-s,o-u+s,n)||(!!nn(e,t,c,c,i+l-s,o+u-s,n)||!!nn(e,t,c,c,i-l+s,o+u-s,n)))))}}},Au.generateCutRectangle=function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:8,points:un(4,0),draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl(this.name,e,t,n,r,a,null,i)},generateCutTrianglePts:function(e,t,n,r,a){var i="auto"===a?this.cornerLength:a,o=t/2,s=e/2,l=n-s,u=n+s,c=r-o,d=r+o;return{topLeft:[l,c+i,l+i,c,l+i,c+i],topRight:[u-i,c,u,c+i,u-i,c+i],bottomRight:[u,d-i,u-i,d,u-i,d-i],bottomLeft:[l+i,d,l,d-i,l+i,d-i]}},intersectLine:function(e,t,n,r,a,i,o,s){var l=this.generateCutTrianglePts(n+2*o,r+2*o,e,t,s),u=[].concat.apply([],[l.topLeft.splice(0,4),l.topRight.splice(0,4),l.bottomRight.splice(0,4),l.bottomLeft.splice(0,4)]);return sn(a,i,u,e,t)},checkPoint:function(e,t,n,r,a,i,o,s){var l="auto"===s?this.cornerLength:s;if(Jt(e,t,this.points,i,o,r,a-2*l,[0,-1],n))return!0;if(Jt(e,t,this.points,i,o,r-2*l,a,[0,-1],n))return!0;var u=this.generateCutTrianglePts(r,a,i,o);return Qt(e,t,u.topLeft)||Qt(e,t,u.topRight)||Qt(e,t,u.bottomRight)||Qt(e,t,u.bottomLeft)}}},Au.generateBarrel=function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:un(4,0),draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl(this.name,e,t,n,r,a)},intersectLine:function(e,t,n,r,a,i,o,s){var l=this.generateBarrelBezierPts(n+2*o,r+2*o,e,t),u=function(e){var t=Lt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.15),n=Lt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.5),r=Lt({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},.85);return[e[0],e[1],t.x,t.y,n.x,n.y,r.x,r.y,e[4],e[5]]},c=[].concat(u(l.topLeft),u(l.topRight),u(l.bottomRight),u(l.bottomLeft));return sn(a,i,c,e,t)},generateBarrelBezierPts:function(e,t,n,r){var a=t/2,i=e/2,o=n-i,s=n+i,l=r-a,u=r+a,c=fn(e,t),d=c.heightOffset,h=c.widthOffset,p=c.ctrlPtOffsetPct*e,f={topLeft:[o,l+d,o+p,l,o+h,l],topRight:[s-h,l,s-p,l,s,l+d],bottomRight:[s,u-d,s-p,u,s-h,u],bottomLeft:[o+h,u,o+p,u,o,u-d]};return f.topLeft.isTop=!0,f.topRight.isTop=!0,f.bottomLeft.isBottom=!0,f.bottomRight.isBottom=!0,f},checkPoint:function(e,t,n,r,a,i,o,s){var l=fn(r,a),u=l.heightOffset,c=l.widthOffset;if(Jt(e,t,this.points,i,o,r,a-2*u,[0,-1],n))return!0;if(Jt(e,t,this.points,i,o,r-2*c,a,[0,-1],n))return!0;for(var d=this.generateBarrelBezierPts(r,a,i,o),h=function(e,t,n){var r,a,i=n[4],o=n[2],s=n[0],l=n[5],u=n[1],c=Math.min(i,s),d=Math.max(i,s),h=Math.min(l,u),p=Math.max(l,u);if(c<=e&&e<=d&&h<=t&&t<=p){var f=[(r=i)-2*(a=o)+s,2*(a-r),r],g=function(e,t,n,r){var a=t*t-4*e*(n-=r);if(a<0)return[];var i=Math.sqrt(a),o=2*e;return[(-t+i)/o,(-t-i)/o]}(f[0],f[1],f[2],e).filter((function(e){return 0<=e&&e<=1}));if(g.length>0)return g[0]}return null},p=Object.keys(d),f=0;f<p.length;f++){var g=d[p[f]],v=h(e,t,g);if(null!=v){var y=g[5],m=g[3],b=g[1],x=At(y,m,b,v);if(g.isTop&&x<=t)return!0;if(g.isBottom&&t<=x)return!0}}return!1}}},Au.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:un(4,0),draw:function(e,t,n,r,a,i){this.renderer.nodeShapeImpl(this.name,e,t,n,r,a,this.points,i)},intersectLine:function(e,t,n,r,a,i,o,s){var l=t-(r/2+o),u=on(a,i,e,t,e-(n/2+o),l,e+(n/2+o),l,!1);return u.length>0?u:Kt(a,i,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,a,i,o,s){var l=2*(s="auto"===s?hn(r,a):s);if(Jt(e,t,this.points,i,o,r,a-l,[0,-1],n))return!0;if(Jt(e,t,this.points,i,o,r-l,a,[0,-1],n))return!0;var u=r/2+2*n,c=a/2+2*n;return!!Qt(e,t,[i-u,o-c,i-u,o,i+u,o,i+u,o-c])||(!!nn(e,t,l,l,i+r/2-s,o+a/2-s,n)||!!nn(e,t,l,l,i-r/2+s,o+a/2-s,n))}}},Au.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",un(3,0)),this.generateRoundPolygon("round-triangle",un(3,0)),this.generatePolygon("rectangle",un(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",un(5,0)),this.generateRoundPolygon("round-pentagon",un(5,0)),this.generatePolygon("hexagon",un(6,0)),this.generateRoundPolygon("round-hexagon",un(6,0)),this.generatePolygon("heptagon",un(7,0)),this.generateRoundPolygon("round-heptagon",un(7,0)),this.generatePolygon("octagon",un(8,0)),this.generateRoundPolygon("round-octagon",un(8,0));var r=new Array(20),a=dn(5,0),i=dn(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;s<i.length/2;s++)i[2*s]*=o,i[2*s+1]*=o;for(s=0;s<5;s++)r[4*s]=a[2*s],r[4*s+1]=a[2*s+1],r[4*s+2]=i[2*s],r[4*s+3]=i[2*s+1];r=cn(r),this.generatePolygon("star",r),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var l=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",l),this.generateRoundPolygon("round-tag",l),e.makePolygon=function(e){var n,r="polygon-"+e.join("$");return(n=this[r])?n:t.generatePolygon(r,e)}};var Lu={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(e){e=e||Je();var t=this;void 0===t.averageRedrawTime&&(t.averageRedrawTime=0),void 0===t.lastRedrawTime&&(t.lastRedrawTime=0),void 0===t.lastDrawTime&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=e},beforeRender:function(e,t){if(!this.destroyed){null==t&&Ke("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:e,priority:t}),n.sort((function(e,t){return t.priority-e.priority}))}}},Ou=function(e,t,n){for(var r=e.beforeRenderCallbacks,a=0;a<r.length;a++)r[a].fn(t,n)};Lu.startRenderLoop=function(){var e=this,t=e.cy;if(!e.renderLoopStarted){e.renderLoopStarted=!0;De((function n(r){if(!e.destroyed){if(t.batching());else if(e.requestedFrame&&!e.skipFrame){Ou(e,!0,r);var a=Te();e.render(e.renderOptions);var i=e.lastDrawTime=Te();void 0===e.averageRedrawTime&&(e.averageRedrawTime=i-a),void 0===e.redrawCount&&(e.redrawCount=0),e.redrawCount++,void 0===e.redrawTotalTime&&(e.redrawTotalTime=0);var o=i-a;e.redrawTotalTime+=o,e.lastRedrawTime=o,e.averageRedrawTime=e.averageRedrawTime/2+o/2,e.requestedFrame=!1}else Ou(e,!1,r);e.skipFrame=!1,De(n)}}))}};var Ru=function(e){this.init(e)},Vu=Ru.prototype;Vu.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],Vu.init=function(e){var t=this;t.options=e,t.cy=e.cy;var n=t.container=e.cy.container(),r=t.cy.window();if(r){var a=r.document,i=a.head,o="__________cytoscape_stylesheet",s="__________cytoscape_container",l=null!=a.getElementById(o);if(n.className.indexOf(s)<0&&(n.className=(n.className||"")+" "+s),!l){var u=a.createElement("style");u.id=o,u.textContent="."+s+" { position: relative; }",i.insertBefore(u,i.children[0])}"static"===r.getComputedStyle(n).getPropertyValue("position")&&Ue("A Cytoscape container has style position:static and so can not use UI extensions properly")}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},t.redraws=0,t.showFps=e.showFps,t.debug=e.debug,t.hideEdgesOnViewport=e.hideEdgesOnViewport,t.textureOnViewport=e.textureOnViewport,t.wheelSensitivity=e.wheelSensitivity,t.motionBlurEnabled=e.motionBlur,t.forcedPixelRatio=k(e.pixelRatio)?e.pixelRatio:null,t.motionBlur=e.motionBlur,t.motionBlurOpacity=e.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=e.desktopTapThreshold,t.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,t.touchTapThreshold=e.touchTapThreshold,t.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()},Vu.notify=function(e,t){var n=this,r=n.cy;this.destroyed||("init"!==e?"destroy"!==e?(("add"===e||"remove"===e||"move"===e&&r.hasCompoundNodes()||"load"===e||"zorder"===e||"mount"===e)&&n.invalidateCachedZSortedEles(),"viewport"===e&&n.redrawHint("select",!0),"load"!==e&&"resize"!==e&&"mount"!==e||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},Vu.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var n=e.bindings[t],r=n.target;(r.off||r.removeEventListener).apply(r,n.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch(a){}},Vu.isHeadless=function(){return!1},[Gl,Nu,Iu,zu,Au,Lu].forEach((function(e){Y(Vu,e)}));var Fu=1e3/60,ju=function(e){return function(){var t=this,n=this.renderer;if(!t.dequeueingSetup){t.dequeueingSetup=!0;var r=ke((function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()}),e.deqRedrawThreshold),a=e.priority||He;n.beforeRender((function(a,i){var o=Te(),s=n.averageRedrawTime,l=n.lastRedrawTime,u=[],c=n.cy.extent(),d=n.getPixelRatio();for(a||n.flushRenderedStyleQueue();;){var h=Te(),p=h-o,f=h-i;if(l<Fu){var g=Fu-(a?s:0);if(f>=e.deqFastCost*g)break}else if(a){if(p>=e.deqCost*l||p>=e.deqAvgCost*s)break}else if(f>=e.deqNoDrawCost*Fu)break;var v=e.deq(t,d,c);if(!(v.length>0))break;for(var y=0;y<v.length;y++)u.push(v[y])}u.length>0&&(e.onDeqd(t,u),!a&&e.shouldRedraw(t,u,d,c)&&r())}),a(t))}}},qu=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xe;a(this,e),this.idsByKey=new it,this.keyForId=new it,this.cachesByLvl=new it,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return o(e,[{key:"getIdsFor",value:function(e){null==e&&Ke("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new st,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new it,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach((function(n){return t.deleteCache(e,n)}))}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),e}(),Yu={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Xu=et({getKey:null,doesEleInvalidateKey:Xe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Ye,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Wu=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=Xu(t);Y(n,r),n.lookup=new qu(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},Hu=Wu.prototype;Hu.reasons=Yu,Hu.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},Hu.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},Hu.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new ht((function(e,t){return t.reqs-e.reqs}))},Hu.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},Hu.getElement=function(e,t,n,r,a){var i=this,o=this.renderer,s=o.cy.zoom(),l=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed())return null;if(!i.allowEdgeTxrCaching&&e.isEdge()||!i.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(Mt(s*n))),r<-4)r=-4;else if(s>=7.99||r>3)return null;var u=Math.pow(2,r),c=t.h*u,d=t.w*u,h=o.eleTextBiggerThanMin(e,u);if(!this.isVisible(e,h))return null;var p,f=l.get(e,r);if(f&&f.invalidated&&(f.invalidated=!1,f.texture.invalidatedWidth-=f.width),f)return f;if(p=c<=25?25:c<=50?50:50*Math.ceil(c/50),c>1024||d>1024)return null;var g=i.getTextureQueue(p),v=g[g.length-2],y=function(){return i.recycleTexture(p,d)||i.addTexture(p,d)};v||(v=g[g.length-1]),v||(v=y()),v.width-v.usedWidth<d&&(v=y());for(var m,b=function(e){return e&&e.scaledLabelShown===h},x=a&&a===Yu.dequeue,w=a&&a===Yu.highQuality,E=a&&a===Yu.downscale,k=r+1;k<=3;k++){var C=l.get(e,k);if(C){m=C;break}}var S=m&&m.level===r+1?m:null,P=function(){v.context.drawImage(S.texture.canvas,S.x,0,S.width,S.height,v.usedWidth,0,d,c)};if(v.context.setTransform(1,0,0,1,0,0),v.context.clearRect(v.usedWidth,0,d,p),b(S))P();else if(b(m)){if(!w)return i.queueElement(e,m.level-1),m;for(var D=m.level;D>r;D--)S=i.getElement(e,t,n,D,Yu.downscale);P()}else{var T;if(!x&&!w&&!E)for(var _=r-1;_>=-4;_--){var M=l.get(e,_);if(M){T=M;break}}if(b(T))return i.queueElement(e,r),T;v.context.translate(v.usedWidth,0),v.context.scale(u,u),this.drawElement(v.context,e,t,h,!1),v.context.scale(1/u,1/u),v.context.translate(-v.usedWidth,0)}return f={x:v.usedWidth,texture:v,level:r,scale:u,width:d,height:c,scaledLabelShown:h},v.usedWidth+=Math.ceil(d+8),v.eleCaches.push(f),l.set(e,r,f),i.checkTextureFullness(v),f},Hu.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])},Hu.invalidateElement=function(e){var t=this,n=t.lookup,r=[];if(n.isInvalid(e)){for(var a=-4;a<=3;a++){var i=n.getForCachedKey(e,a);i&&r.push(i)}if(n.invalidate(e))for(var o=0;o<r.length;o++){var s=r[o],l=s.texture;l.invalidatedWidth+=s.width,s.invalidated=!0,t.checkTextureUtility(l)}t.removeFromQueue(e)}},Hu.checkTextureUtility=function(e){e.invalidatedWidth>=.2*e.width&&this.retireTexture(e)},Hu.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>.8&&e.fullnessChecks>=10?tt(t,e):e.fullnessChecks++},Hu.retireTexture=function(e){var t=e.height,n=this.getTextureQueue(t),r=this.lookup;tt(n,e),e.retired=!0;for(var a=e.eleCaches,i=0;i<a.length;i++){var o=a[i];r.deleteCache(o.key,o.level)}nt(a),this.getRetiredTextureQueue(t).push(e)},Hu.addTexture=function(e,t){var n={};return this.getTextureQueue(e).push(n),n.eleCaches=[],n.height=e,n.width=Math.max(1024,t),n.usedWidth=0,n.invalidatedWidth=0,n.fullnessChecks=0,n.canvas=this.renderer.makeOffscreenCanvas(n.width,n.height),n.context=n.canvas.getContext("2d"),n},Hu.recycleTexture=function(e,t){for(var n=this.getTextureQueue(e),r=this.getRetiredTextureQueue(e),a=0;a<r.length;a++){var i=r[a];if(i.width>=t)return i.retired=!1,i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,nt(i.eleCaches),i.context.setTransform(1,0,0,1,0,0),i.context.clearRect(0,0,i.width,i.height),tt(r,i),n.push(i),i}},Hu.queueElement=function(e,t){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),a=this.getKey(e),i=r[a];if(i)i.level=Math.max(i.level,t),i.eles.merge(e),i.reqs++,n.updateItem(i);else{var o={eles:e.spawn().merge(e),level:t,reqs:1,key:a};n.push(o),r[a]=o}},Hu.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),a=[],i=t.lookup,o=0;o<1&&n.size()>0;o++){var s=n.pop(),l=s.key,u=s.eles[0],c=i.hasCache(u,s.level);if(r[l]=null,!c){a.push(s);var d=t.getBoundingBox(u);t.getElement(u,d,e,s.level,Yu.dequeue)}}return a},Hu.removeFromQueue=function(e){var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),a=n[r];null!=a&&(1===a.eles.length?(a.reqs=qe,t.updateItem(a),t.pop(),n[r]=null):a.eles.unmerge(e))},Hu.onDequeue=function(e){this.onDequeues.push(e)},Hu.offDequeue=function(e){tt(this.onDequeues,e)},Hu.setupDequeueing=ju({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n<e.onDequeues.length;n++){(0,e.onDequeues[n])(t)}},shouldRedraw:function(e,t,n,r){for(var a=0;a<t.length;a++)for(var i=t[a].eles,o=0;o<i.length;o++){var s=i[o].boundingBox();if(Xt(s,r))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var Ku=function(e){var t=this,n=t.renderer=e,r=n.cy;t.layersByLevel={},t.firstGet=!0,t.lastInvalidationTime=Te()-500,t.skipping=!1,t.eleTxrDeqs=r.collection(),t.scheduleElementRefinement=ke((function(){t.refineElementTextures(t.eleTxrDeqs),t.eleTxrDeqs.unmerge(t.eleTxrDeqs)}),50),n.beforeRender((function(e,n){n-t.lastInvalidationTime<=250?t.skipping=!0:t.skipping=!1}),n.beforeRenderPriorities.lyrTxrSkip);t.layersQueue=new ht((function(e,t){return t.reqs-e.reqs})),t.setupDequeueing()},Gu=Ku.prototype,Uu=0,Zu=Math.pow(2,53)-1;Gu.makeLayer=function(e,t){var n=Math.pow(2,t),r=Math.ceil(e.w*n),a=Math.ceil(e.h*n),i=this.renderer.makeOffscreenCanvas(r,a),o={id:Uu=++Uu%Zu,bb:e,level:t,width:r,height:a,canvas:i,context:i.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=o.context,l=-o.bb.x1,u=-o.bb.y1;return s.scale(n,n),s.translate(l,u),o},Gu.getLayers=function(e,t,n){var r=this,a=r.renderer.cy.zoom(),i=r.firstGet;if(r.firstGet=!1,null==n)if((n=Math.ceil(Mt(a*t)))<-4)n=-4;else if(a>=3.99||n>2)return null;r.validateLayersElesOrdering(n,e);var o,s,l=r.layersByLevel,u=Math.pow(2,n),c=l[n]=l[n]||[];if(r.levelIsComplete(n,e))return c;!function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return s=l[t],!0},a=function(e){if(!s)for(var r=n+e;-4<=r&&r<=2&&!t(r);r+=e);};a(1),a(-1);for(var i=c.length-1;i>=0;i--){var o=c[i];o.invalid&&tt(c,o)}}();var d=function(t){var a=(t=t||{}).after;!function(){if(!o){o=Rt();for(var t=0;t<e.length;t++)Vt(o,e[t].boundingBox())}}();var i=Math.ceil(o.w*u),s=Math.ceil(o.h*u);if(i>32767||s>32767)return null;if(i*s>16e6)return null;var l=r.makeLayer(o,n);if(null!=a){var d=c.indexOf(a)+1;c.splice(d,0,l)}else(void 0===t.insert||t.insert)&&c.unshift(l);return l};if(r.skipping&&!i)return null;for(var h=null,p=e.length/1,f=!i,g=0;g<e.length;g++){var v=e[g],y=v._private.rscratch,m=y.imgLayerCaches=y.imgLayerCaches||{},b=m[n];if(b)h=b;else{if((!h||h.eles.length>=p||!Ht(h.bb,v.boundingBox()))&&!(h=d({insert:!0,after:h})))return null;s||f?r.queueLayer(h,v):r.drawEleInLayer(h,v,n,t),h.eles.push(v),m[n]=h}}return s||(f?null:c)},Gu.getEleLevelForLayerLevel=function(e,t){return e},Gu.drawEleInLayer=function(e,t,n,r){var a=this.renderer,i=e.context,o=t.boundingBox();0!==o.w&&0!==o.h&&t.visible()&&(n=this.getEleLevelForLayerLevel(n,r),a.setImgSmoothing(i,!1),a.drawCachedElement(i,t,null,null,n,true),a.setImgSmoothing(i,!0))},Gu.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,a=0;a<n.length;a++){var i=n[a];if(i.reqs>0)return!1;if(i.invalid)return!1;r+=i.eles.length}return r===t.length},Gu.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r<n.length;r++){for(var a=n[r],i=-1,o=0;o<t.length;o++)if(a.eles[0]===t[o]){i=o;break}if(i<0)this.invalidateLayer(a);else{var s=i;for(o=0;o<a.eles.length;o++)if(a.eles[o]!==t[s+o]){this.invalidateLayer(a);break}}}},Gu.updateElementsInLayers=function(e,t){for(var n=P(e[0]),r=0;r<e.length;r++)for(var a=n?null:e[r],i=n?e[r]:e[r].ele,o=i._private.rscratch,s=o.imgLayerCaches=o.imgLayerCaches||{},l=-4;l<=2;l++){var u=s[l];u&&(a&&this.getEleLevelForLayerLevel(u.level)!==a.level||t(u,i,a))}},Gu.haveLayers=function(){for(var e=!1,t=-4;t<=2;t++){var n=this.layersByLevel[t];if(n&&n.length>0){e=!0;break}}return e},Gu.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=Te(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,(function(e,n,r){t.invalidateLayer(e)})))},Gu.invalidateLayer=function(e){if(this.lastInvalidationTime=Te(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];tt(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var a=0;a<n.length;a++){var i=n[a]._private.rscratch.imgLayerCaches;i&&(i[t]=null)}}},Gu.refineElementTextures=function(e){var t=this;t.updateElementsInLayers(e,(function(e,n,r){var a=e.replacement;if(a||((a=e.replacement=t.makeLayer(e.bb,e.level)).replaces=e,a.eles=e.eles),!a.reqs)for(var i=0;i<a.eles.length;i++)t.queueLayer(a,a.eles[i])}))},Gu.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()},Gu.queueLayer=function(e,t){var n=this.layersQueue,r=e.elesQueue,a=r.hasId=r.hasId||{};if(!e.replacement){if(t){if(a[t.id()])return;r.push(t),a[t.id()]=!0}e.reqs?(e.reqs++,n.updateItem(e)):(e.reqs=1,n.push(e))}},Gu.dequeue=function(e){for(var t=this,n=t.layersQueue,r=[],a=0;a<1&&0!==n.size();){var i=n.peek();if(i.replacement)n.pop();else if(i.replaces&&i!==i.replaces.replacement)n.pop();else if(i.invalid)n.pop();else{var o=i.elesQueue.shift();o&&(t.drawEleInLayer(i,o,i.level,e),a++),0===r.length&&r.push(!0),0===i.elesQueue.length&&(n.pop(),i.reqs=0,i.replaces&&t.applyLayerReplacement(i),t.requestRedraw())}}return r},Gu.applyLayerReplacement=function(e){var t=this.layersByLevel[e.level],n=e.replaces,r=t.indexOf(n);if(!(r<0||n.invalid)){t[r]=e;for(var a=0;a<e.eles.length;a++){var i=e.eles[a]._private,o=i.imgLayerCaches=i.imgLayerCaches||{};o&&(o[e.level]=e)}this.requestRedraw()}},Gu.requestRedraw=ke((function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()}),100),Gu.setupDequeueing=ju({deqRedrawThreshold:50,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t){return e.dequeue(t)},onDeqd:He,shouldRedraw:Ye,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var $u,Qu={};function Ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.lineTo(r.x,r.y)}}function ec(e,t,n){for(var r,a=0;a<t.length;a++){var i=t[a];0===a&&(r=i),e.lineTo(i.x,i.y)}e.quadraticCurveTo(n.x,n.y,r.x,r.y)}function tc(e,t,n){e.beginPath&&e.beginPath();for(var r=t,a=0;a<r.length;a++){var i=r[a];e.lineTo(i.x,i.y)}var o=n,s=n[0];e.moveTo(s.x,s.y);for(a=1;a<o.length;a++){i=o[a];e.lineTo(i.x,i.y)}e.closePath&&e.closePath()}function nc(e,t,n,r,a){e.beginPath&&e.beginPath(),e.arc(n,r,a,0,2*Math.PI,!1);var i=t,o=i[0];e.moveTo(o.x,o.y);for(var s=0;s<i.length;s++){var l=i[s];e.lineTo(l.x,l.y)}e.closePath&&e.closePath()}function rc(e,t,n,r){e.arc(t,n,r,0,2*Math.PI,!1)}Qu.arrowShapeImpl=function(e){return($u||($u={polygon:Ju,"triangle-backcurve":ec,"triangle-tee":tc,"circle-triangle":nc,"triangle-cross":tc,circle:rc}))[e]};var ac={drawElement:function(e,t,n,r,a,i){t.isNode()?this.drawNode(e,t,n,r,a,i):this.drawEdge(e,t,n,r,a,i)},drawElementOverlay:function(e,t){t.isNode()?this.drawNodeOverlay(e,t):this.drawEdgeOverlay(e,t)},drawElementUnderlay:function(e,t){t.isNode()?this.drawNodeUnderlay(e,t):this.drawEdgeUnderlay(e,t)},drawCachedElementPortion:function(e,t,n,r,a,i,o,s){var l=this,u=n.getBoundingBox(t);if(0!==u.w&&0!==u.h){var c=n.getElement(t,u,r,a,i);if(null!=c){var d=s(l,t);if(0===d)return;var h,p,f,g,v,y,m=o(l,t),b=u.x1,x=u.y1,w=u.w,E=u.h;if(0!==m){var k=n.getRotationPoint(t);f=k.x,g=k.y,e.translate(f,g),e.rotate(m),(v=l.getImgSmoothing(e))||l.setImgSmoothing(e,!0);var C=n.getRotationOffset(t);h=C.x,p=C.y}else h=b,p=x;1!==d&&(y=e.globalAlpha,e.globalAlpha=y*d),e.drawImage(c.texture.canvas,c.x,0,c.width,c.height,h,p,w,E),1!==d&&(e.globalAlpha=y),0!==m&&(e.rotate(-m),e.translate(-f,-g),v||l.setImgSmoothing(e,!1))}else n.drawElement(e,t)}}},ic=function(){return 0},oc=function(e,t){return e.getTextAngle(t,null)},sc=function(e,t){return e.getTextAngle(t,"source")},lc=function(e,t){return e.getTextAngle(t,"target")},uc=function(e,t){return t.effectiveOpacity()},cc=function(e,t){return t.pstyle("text-opacity").pfValue*t.effectiveOpacity()};ac.drawCachedElement=function(e,t,n,r,a,i){var o=this,s=o.data,l=s.eleTxrCache,u=s.lblTxrCache,c=s.slbTxrCache,d=s.tlbTxrCache,h=t.boundingBox(),p=!0===i?l.reasons.highQuality:null;if(0!==h.w&&0!==h.h&&t.visible()&&(!r||Xt(h,r))){var f=t.isEdge(),g=t.element()._private.rscratch.badLine;o.drawElementUnderlay(e,t),o.drawCachedElementPortion(e,t,l,n,a,p,ic,uc),f&&g||o.drawCachedElementPortion(e,t,u,n,a,p,oc,cc),f&&!g&&(o.drawCachedElementPortion(e,t,c,n,a,p,sc,cc),o.drawCachedElementPortion(e,t,d,n,a,p,lc,cc)),o.drawElementOverlay(e,t)}},ac.drawElements=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];this.drawElement(e,r)}},ac.drawCachedElements=function(e,t,n,r){for(var a=0;a<t.length;a++){var i=t[a];this.drawCachedElement(e,i,n,r)}},ac.drawCachedNodes=function(e,t,n,r){for(var a=0;a<t.length;a++){var i=t[a];i.isNode()&&this.drawCachedElement(e,i,n,r)}},ac.drawLayeredElements=function(e,t,n,r){var a=this.data.lyrTxrCache.getLayers(t,n);if(a)for(var i=0;i<a.length;i++){var o=a[i],s=o.bb;0!==s.w&&0!==s.h&&e.drawImage(o.canvas,s.x1,s.y1,s.w,s.h)}else this.drawCachedElements(e,t,n,r)};var dc={drawEdge:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this,s=t._private.rscratch;if((!i||t.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var u=i?t.pstyle("opacity").value:1,c=i?t.pstyle("line-opacity").value:1,d=t.pstyle("curve-style").value,h=t.pstyle("line-style").value,p=t.pstyle("width").pfValue,f=t.pstyle("line-cap").value,g=t.pstyle("line-outline-width").value,v=t.pstyle("line-outline-color").value,y=u*c,m=u*c,b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;"straight-triangle"===d?(o.eleStrokeStyle(e,t,n),o.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=p,e.lineCap=f,o.eleStrokeStyle(e,t,n),o.drawEdgePath(t,e,s.allpts,h),e.lineCap="butt")},x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;o.drawArrowheads(e,t,n)};if(e.lineJoin="round","yes"===t.pstyle("ghost").value){var w=t.pstyle("ghost-offset-x").pfValue,E=t.pstyle("ghost-offset-y").pfValue,k=t.pstyle("ghost-opacity").value,C=y*k;e.translate(w,E),b(C),x(C),e.translate(-w,-E)}else!function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;e.lineWidth=p+g,e.lineCap=f,g>0?(o.colorStrokeStyle(e,v[0],v[1],v[2],n),"straight-triangle"===d?o.drawEdgeTrianglePath(t,e,s.allpts):(o.drawEdgePath(t,e,s.allpts,h),e.lineCap="butt")):e.lineCap="butt"}();a&&o.drawEdgeUnderlay(e,t),b(),x(),a&&o.drawEdgeOverlay(e,t),o.drawElementText(e,t,null,r),n&&e.translate(l.x1,l.y1)}}},hc=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var a=this,i=a.usePaths(),o=n._private.rscratch,s=2*n.pstyle("".concat(e,"-padding")).pfValue,l=n.pstyle("".concat(e,"-color")).value;t.lineWidth=s,"self"!==o.edgeType||i?t.lineCap="round":t.lineCap="butt",a.colorStrokeStyle(t,l[0],l[1],l[2],r),a.drawEdgePath(n,t,o.allpts,"solid")}}}};dc.drawEdgeOverlay=hc("overlay"),dc.drawEdgeUnderlay=hc("underlay"),dc.drawEdgePath=function(e,t,n,r){var a,i=e._private.rscratch,o=t,s=!1,l=this.usePaths(),u=e.pstyle("line-dash-pattern").pfValue,c=e.pstyle("line-dash-offset").pfValue;if(l){var h=n.join("$");i.pathCacheKey&&i.pathCacheKey===h?(a=t=i.pathCache,s=!0):(a=t=new Path2D,i.pathCacheKey=h,i.pathCache=a)}if(o.setLineDash)switch(r){case"dotted":o.setLineDash([1,1]);break;case"dashed":o.setLineDash(u),o.lineDashOffset=c;break;case"solid":o.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var p=2;p+3<n.length;p+=4)t.quadraticCurveTo(n[p],n[p+1],n[p+2],n[p+3]);break;case"straight":case"haystack":for(var f=2;f+1<n.length;f+=2)t.lineTo(n[f],n[f+1]);break;case"segments":if(i.isRound){var g,v=d(i.roundCorners);try{for(v.s();!(g=v.n()).done;){mu(t,g.value)}}catch(m){v.e(m)}finally{v.f()}t.lineTo(n[n.length-2],n[n.length-1])}else for(var y=2;y+1<n.length;y+=2)t.lineTo(n[y],n[y+1])}t=o,l?t.stroke(a):t.stroke(),t.setLineDash&&t.setLineDash([])},dc.drawEdgeTrianglePath=function(e,t,n){t.fillStyle=t.strokeStyle;for(var r=e.pstyle("width").pfValue,a=0;a+1<n.length;a+=2){var i=[n[a+2]-n[a],n[a+3]-n[a+1]],o=Math.sqrt(i[0]*i[0]+i[1]*i[1]),s=[i[1]/o,-i[0]/o],l=[s[0]*r/2,s[1]*r/2];t.beginPath(),t.moveTo(n[a]-l[0],n[a+1]-l[1]),t.lineTo(n[a]+l[0],n[a+1]+l[1]),t.lineTo(n[a+2],n[a+3]),t.closePath(),t.fill()}},dc.drawArrowheads=function(e,t,n){var r=t._private.rscratch,a="haystack"===r.edgeType;a||this.drawArrowhead(e,t,"source",r.arrowStartX,r.arrowStartY,r.srcArrowAngle,n),this.drawArrowhead(e,t,"mid-target",r.midX,r.midY,r.midtgtArrowAngle,n),this.drawArrowhead(e,t,"mid-source",r.midX,r.midY,r.midsrcArrowAngle,n),a||this.drawArrowhead(e,t,"target",r.arrowEndX,r.arrowEndY,r.tgtArrowAngle,n)},dc.drawArrowhead=function(e,t,n,r,a,i,o){if(!(isNaN(r)||null==r||isNaN(a)||null==a||isNaN(i)||null==i)){var s=this,l=t.pstyle(n+"-arrow-shape").value;if("none"!==l){var u="hollow"===t.pstyle(n+"-arrow-fill").value?"both":"filled",c=t.pstyle(n+"-arrow-fill").value,d=t.pstyle("width").pfValue,h=t.pstyle(n+"-arrow-width"),p="match-line"===h.value?d:h.pfValue;"%"===h.units&&(p*=d);var f=t.pstyle("opacity").value;void 0===o&&(o=f);var g=e.globalCompositeOperation;1===o&&"hollow"!==c||(e.globalCompositeOperation="destination-out",s.colorFillStyle(e,255,255,255,1),s.colorStrokeStyle(e,255,255,255,1),s.drawArrowShape(t,e,u,d,l,p,r,a,i),e.globalCompositeOperation=g);var v=t.pstyle(n+"-arrow-color").value;s.colorFillStyle(e,v[0],v[1],v[2],o),s.colorStrokeStyle(e,v[0],v[1],v[2],o),s.drawArrowShape(t,e,c,d,l,p,r,a,i)}}},dc.drawArrowShape=function(e,t,n,r,a,i,o,s,l){var u,c=this,d=this.usePaths()&&"triangle-cross"!==a,h=!1,p=t,f={x:o,y:s},g=e.pstyle("arrow-scale").value,v=this.getArrowWidth(r,g),y=c.arrowShapes[a];if(d){var m=c.arrowPathCache=c.arrowPathCache||[],b=Le(a),x=m[b];null!=x?(u=t=x,h=!0):(u=t=new Path2D,m[b]=u)}h||(t.beginPath&&t.beginPath(),d?y.draw(t,1,0,{x:0,y:0},1):y.draw(t,v,l,f,r),t.closePath&&t.closePath()),t=p,d&&(t.translate(o,s),t.rotate(l),t.scale(v,v)),"filled"!==n&&"both"!==n||(d?t.fill(u):t.fill()),"hollow"!==n&&"both"!==n||(t.lineWidth=i/(d?v:1),t.lineJoin="miter",d?t.stroke(u):t.stroke()),d&&(t.scale(1/v,1/v),t.rotate(-l),t.translate(-o,-s))};var pc={safeDrawImage:function(e,t,n,r,a,i,o,s,l,u){if(!(a<=0||i<=0||l<=0||u<=0))try{e.drawImage(t,n,r,a,i,o,s,l,u)}catch(c){Ue(c)}},drawInscribedImage:function(e,t,n,r,a){var i=this,o=n.position(),s=o.x,l=o.y,u=n.cy().style(),c=u.getIndexedStyle.bind(u),d=c(n,"background-fit","value",r),h=c(n,"background-repeat","value",r),p=n.width(),f=n.height(),g=2*n.padding(),v=p+("inner"===c(n,"background-width-relative-to","value",r)?0:g),y=f+("inner"===c(n,"background-height-relative-to","value",r)?0:g),m=n._private.rscratch,b="node"===c(n,"background-clip","value",r),x=c(n,"background-image-opacity","value",r)*a,w=c(n,"background-image-smoothing","value",r),E=n.pstyle("corner-radius").value;"auto"!==E&&(E=n.pstyle("corner-radius").pfValue);var k=t.width||t.cachedW,C=t.height||t.cachedH;null!=k&&null!=C||(document.body.appendChild(t),k=t.cachedW=t.width||t.offsetWidth,C=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var S=k,P=C;if("auto"!==c(n,"background-width","value",r)&&(S="%"===c(n,"background-width","units",r)?c(n,"background-width","pfValue",r)*v:c(n,"background-width","pfValue",r)),"auto"!==c(n,"background-height","value",r)&&(P="%"===c(n,"background-height","units",r)?c(n,"background-height","pfValue",r)*y:c(n,"background-height","pfValue",r)),0!==S&&0!==P){if("contain"===d)S*=D=Math.min(v/S,y/P),P*=D;else if("cover"===d){var D;S*=D=Math.max(v/S,y/P),P*=D}var T=s-v/2,_=c(n,"background-position-x","units",r),M=c(n,"background-position-x","pfValue",r);T+="%"===_?(v-S)*M:M;var B=c(n,"background-offset-x","units",r),N=c(n,"background-offset-x","pfValue",r);T+="%"===B?(v-S)*N:N;var I=l-y/2,z=c(n,"background-position-y","units",r),A=c(n,"background-position-y","pfValue",r);I+="%"===z?(y-P)*A:A;var L=c(n,"background-offset-y","units",r),O=c(n,"background-offset-y","pfValue",r);I+="%"===L?(y-P)*O:O,m.pathCache&&(T-=s,I-=l,s=0,l=0);var R=e.globalAlpha;e.globalAlpha=x;var V=i.getImgSmoothing(e),F=!1;if("no"===w&&V?(i.setImgSmoothing(e,!1),F=!0):"yes"!==w||V||(i.setImgSmoothing(e,!0),F=!0),"no-repeat"===h)b&&(e.save(),m.pathCache?e.clip(m.pathCache):(i.nodeShapes[i.getNodeShape(n)].draw(e,s,l,v,y,E,m),e.clip())),i.safeDrawImage(e,t,0,0,k,C,T,I,S,P),b&&e.restore();else{var j=e.createPattern(t,h);e.fillStyle=j,i.nodeShapes[i.getNodeShape(n)].draw(e,s,l,v,y,E,m),e.translate(T,I),e.fill(),e.translate(-T,-I)}e.globalAlpha=R,F&&i.setImgSmoothing(e,V)}}},fc={};function gc(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5,o=arguments.length>6?arguments[6]:void 0;e.beginPath(),e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.quadraticCurveTo(t+r,n,t+r,n+i),e.lineTo(t+r,n+a-i),e.quadraticCurveTo(t+r,n+a,t+r-i,n+a),e.lineTo(t+i,n+a),e.quadraticCurveTo(t,n+a,t,n+a-i),e.lineTo(t,n+i),e.quadraticCurveTo(t,n,t+i,n),e.closePath(),o?e.stroke():e.fill()}fc.eleTextBiggerThanMin=function(e,t){if(!t){var n=e.cy().zoom(),r=this.getPixelRatio(),a=Math.ceil(Mt(n*r));t=Math.pow(2,a)}return!(e.pstyle("font-size").pfValue*t<e.pstyle("min-zoomed-font-size").pfValue)},fc.drawElementText=function(e,t,n,r,a){var i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],o=this;if(null==r){if(i&&!o.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value)return;var l=o.getLabelJustification(t);e.textAlign=l,e.textBaseline="bottom"}else{var u=t.element()._private.rscratch.badLine,c=t.pstyle("label"),d=t.pstyle("source-label"),h=t.pstyle("target-label");if(u||(!c||!c.value)&&(!d||!d.value)&&(!h||!h.value))return;e.textAlign="center",e.textBaseline="bottom"}var p,f=!n;n&&(p=n,e.translate(-p.x1,-p.y1)),null==a?(o.drawText(e,t,null,f,i),t.isEdge()&&(o.drawText(e,t,"source",f,i),o.drawText(e,t,"target",f,i))):o.drawText(e,t,a,f,i),n&&e.translate(p.x1,p.y1)},fc.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((t=this.fontCaches[n]).context===e)return t;return t={context:e},this.fontCaches.push(t),t},fc.setupTextStyle=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.pstyle("font-style").strValue,a=t.pstyle("font-size").pfValue+"px",i=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,s=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,l=t.pstyle("text-outline-opacity").value*s,u=t.pstyle("color").value,c=t.pstyle("text-outline-color").value;e.font=r+" "+o+" "+a+" "+i,e.lineJoin="round",this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,c[0],c[1],c[2],l)},fc.getTextAngle=function(e,t){var n=e._private.rscratch,r=t?t+"-":"",a=e.pstyle(r+"text-rotation"),i=rt(n,"labelAngle",t);return"autorotate"===a.strValue?e.isEdge()?i:0:"none"===a.strValue?0:a.pfValue},fc.drawText=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=t._private.rscratch,o=a?t.effectiveOpacity():1;if(!a||0!==o&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var s,l,u=rt(i,"labelX",n),c=rt(i,"labelY",n),d=this.getLabelText(t,n);if(null!=d&&""!==d&&!isNaN(u)&&!isNaN(c)){this.setupTextStyle(e,t,a);var h,p=n?n+"-":"",f=rt(i,"labelWidth",n),g=rt(i,"labelHeight",n),v=t.pstyle(p+"text-margin-x").pfValue,y=t.pstyle(p+"text-margin-y").pfValue,m=t.isEdge(),b=t.pstyle("text-halign").value,x=t.pstyle("text-valign").value;switch(m&&(b="center",x="center"),u+=v,c+=y,0!==(h=r?this.getTextAngle(t,n):0)&&(s=u,l=c,e.translate(s,l),e.rotate(h),u=0,c=0),x){case"top":break;case"center":c+=g/2;break;case"bottom":c+=g}var w=t.pstyle("text-background-opacity").value,E=t.pstyle("text-border-opacity").value,k=t.pstyle("text-border-width").pfValue,C=t.pstyle("text-background-padding").pfValue,S=0===t.pstyle("text-background-shape").strValue.indexOf("round");if(w>0||k>0&&E>0){var P=u-C;switch(b){case"left":P-=f;break;case"center":P-=f/2}var D=c-g-C,T=f+2*C,_=g+2*C;if(w>0){var M=e.fillStyle,B=t.pstyle("text-background-color").value;e.fillStyle="rgba("+B[0]+","+B[1]+","+B[2]+","+w*o+")",S?gc(e,P,D,T,_,2):e.fillRect(P,D,T,_),e.fillStyle=M}if(k>0&&E>0){var N=e.strokeStyle,I=e.lineWidth,z=t.pstyle("text-border-color").value,A=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+z[0]+","+z[1]+","+z[2]+","+E*o+")",e.lineWidth=k,e.setLineDash)switch(A){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=k/4,e.setLineDash([]);break;case"solid":e.setLineDash([])}if(S?gc(e,P,D,T,_,2,"stroke"):e.strokeRect(P,D,T,_),"double"===A){var L=k/2;S?gc(e,P+L,D+L,T-2*L,_-2*L,2,"stroke"):e.strokeRect(P+L,D+L,T-2*L,_-2*L)}e.setLineDash&&e.setLineDash([]),e.lineWidth=I,e.strokeStyle=N}}var O=2*t.pstyle("text-outline-width").pfValue;if(O>0&&(e.lineWidth=O),"wrap"===t.pstyle("text-wrap").value){var R=rt(i,"labelWrapCachedLines",n),V=rt(i,"labelLineHeight",n),F=f/2,j=this.getLabelJustification(t);switch("auto"===j||("left"===b?"left"===j?u+=-f:"center"===j&&(u+=-F):"center"===b?"left"===j?u+=-F:"right"===j&&(u+=F):"right"===b&&("center"===j?u+=F:"right"===j&&(u+=f))),x){case"top":case"center":case"bottom":c-=(R.length-1)*V}for(var q=0;q<R.length;q++)O>0&&e.strokeText(R[q],u,c),e.fillText(R[q],u,c),c+=V}else O>0&&e.strokeText(d,u,c),e.fillText(d,u,c);0!==h&&(e.rotate(-h),e.translate(-s,-l))}}};var vc={drawNode:function(e,t,n){var r,a,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=this,u=t._private,c=u.rscratch,d=t.position();if(k(d.x)&&k(d.y)&&(!s||t.visible())){var h,p,f=s?t.effectiveOpacity():1,g=l.usePaths(),v=!1,y=t.padding();r=t.width()+2*y,a=t.height()+2*y,n&&(p=n,e.translate(-p.x1,-p.y1));for(var m=t.pstyle("background-image").value,b=new Array(m.length),x=new Array(m.length),w=0,E=0;E<m.length;E++){var C=m[E];if(b[E]=null!=C&&"none"!==C){var S=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",E);w++,x[E]=l.getCachedImage(C,S,(function(){u.backgroundTimestamp=Date.now(),t.emitAndNotify("background")}))}}var P=t.pstyle("background-blacken").value,D=t.pstyle("border-width").pfValue,T=t.pstyle("background-opacity").value*f,_=t.pstyle("border-color").value,M=t.pstyle("border-style").value,B=t.pstyle("border-join").value,N=t.pstyle("border-cap").value,I=t.pstyle("border-position").value,z=t.pstyle("border-dash-pattern").pfValue,A=t.pstyle("border-dash-offset").pfValue,L=t.pstyle("border-opacity").value*f,O=t.pstyle("outline-width").pfValue,R=t.pstyle("outline-color").value,V=t.pstyle("outline-style").value,F=t.pstyle("outline-opacity").value*f,j=t.pstyle("outline-offset").value,q=t.pstyle("corner-radius").value;"auto"!==q&&(q=t.pstyle("corner-radius").pfValue);var Y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;l.eleFillStyle(e,t,n)},X=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;l.colorStrokeStyle(e,_[0],_[1],_[2],t)},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;l.colorStrokeStyle(e,R[0],R[1],R[2],t)},H=function(e,t,n,r){var a,i=l.nodePathCache=l.nodePathCache||[],o=Oe("polygon"===n?n+","+r.join(","):n,""+t,""+e,""+q),s=i[o],u=!1;return null!=s?(a=s,u=!0,c.pathCache=a):(a=new Path2D,i[o]=c.pathCache=a),{path:a,cacheHit:u}},K=t.pstyle("shape").strValue,G=t.pstyle("shape-polygon-points").pfValue;if(g){e.translate(d.x,d.y);var U=H(r,a,K,G);h=U.path,v=U.cacheHit}var Z=function(){if(!v){var n=d;g&&(n={x:0,y:0}),l.nodeShapes[l.getNodeShape(t)].draw(h||e,n.x,n.y,r,a,q,c)}g?e.fill(h):e.fill()},$=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=u.backgrounding,i=0,o=0;o<x.length;o++){var s=t.cy().style().getIndexedStyle(t,"background-image-containment","value",o);r&&"over"===s||!r&&"inside"===s?i++:b[o]&&x[o].complete&&!x[o].error&&(i++,l.drawInscribedImage(e,x[o],t,o,n))}u.backgrounding=!(i===w),a!==u.backgrounding&&t.updateStyle(!1)},Q=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;l.hasPie(t)&&(l.drawPie(e,t,i),n&&(g||l.nodeShapes[l.getNodeShape(t)].draw(e,d.x,d.y,r,a,q,c)))},J=function(){var t=(P>0?P:-P)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:f),n=P>0?0:255;0!==P&&(l.colorFillStyle(e,n,n,n,t),g?e.fill(h):e.fill())},ee=function(){if(D>0){if(e.lineWidth=D,e.lineCap=N,e.lineJoin=B,e.setLineDash)switch(M){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(z),e.lineDashOffset=A;break;case"solid":case"double":e.setLineDash([])}if("center"!==I){if(e.save(),e.lineWidth*=2,"inside"===I)g?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-r/2-D,-a/2-D,r+2*D,a+2*D),t.addPath(h),e.clip(t,"evenodd")}g?e.stroke(h):e.stroke(),e.restore()}else g?e.stroke(h):e.stroke();if("double"===M){e.lineWidth=D/3;var n=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},te=function(){if(O>0){if(e.lineWidth=O,e.lineCap="butt",e.setLineDash)switch(V){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}var n=d;g&&(n={x:0,y:0});var i=l.getNodeShape(t),o=D;"inside"===I&&(o=0),"outside"===I&&(o*=2);var s,u=(r+o+(O+j))/r,c=(a+o+(O+j))/a,h=r*u,p=a*c,f=l.nodeShapes[i].points;if(g)s=H(h,p,i,f).path;if("ellipse"===i)l.drawEllipsePath(s||e,n.x,n.y,h,p);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(i)){var v=0,y=0,m=0;"round-diamond"===i?v=1.4*(o+j+O):"round-heptagon"===i?(v=1.075*(o+j+O),m=-(o/2+j+O)/35):"round-hexagon"===i?v=1.12*(o+j+O):"round-pentagon"===i?(v=1.13*(o+j+O),m=-(o/2+j+O)/15):"round-tag"===i?(v=1.12*(o+j+O),y=.07*(o/2+O+j)):"round-triangle"===i&&(v=(o+j+O)*(Math.PI/2),m=-(o+j/2+O)/Math.PI),0!==v&&(h=r*(u=(r+v)/r),["round-hexagon","round-tag"].includes(i)||(p=a*(c=(a+v)/a)));for(var b=h/2,x=p/2,w=(q="auto"===q?pn(h,p):q)+(o+O+j)/2,E=new Array(f.length/2),k=new Array(f.length/2),C=0;C<f.length/2;C++)E[C]={x:n.x+y+b*f[2*C],y:n.y+m+x*f[2*C+1]};var S,P,T,_,M=E.length;for(P=E[M-1],S=0;S<M;S++)T=E[S%M],_=E[(S+1)%M],k[S]=bu(P,T,_,w),P=T,T=_;l.drawRoundPolygonPath(s||e,n.x+y,n.y+m,r*u,a*c,f,k)}else if(["roundrectangle","round-rectangle"].includes(i))q="auto"===q?hn(h,p):q,l.drawRoundRectanglePath(s||e,n.x,n.y,h,p,q+(o+O+j)/2);else if(["cutrectangle","cut-rectangle"].includes(i))q="auto"===q?8:q,l.drawCutRectanglePath(s||e,n.x,n.y,h,p,null,q+(o+O+j)/4);else if(["bottomroundrectangle","bottom-round-rectangle"].includes(i))q="auto"===q?hn(h,p):q,l.drawBottomRoundRectanglePath(s||e,n.x,n.y,h,p,q+(o+O+j)/2);else if("barrel"===i)l.drawBarrelPath(s||e,n.x,n.y,h,p);else if(i.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(i)){f=en(tn(f,(o+O+j)/r)),l.drawPolygonPath(s||e,n.x,n.y,r,a,f)}else{f=en(tn(f,-((o+O+j)/r))),l.drawPolygonPath(s||e,n.x,n.y,r,a,f)}if(g?e.stroke(s):e.stroke(),"double"===V){e.lineWidth=o/3;var B=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(s):e.stroke(),e.globalCompositeOperation=B}e.setLineDash&&e.setLineDash([])}};if("yes"===t.pstyle("ghost").value){var ne=t.pstyle("ghost-offset-x").pfValue,re=t.pstyle("ghost-offset-y").pfValue,ae=t.pstyle("ghost-opacity").value,ie=ae*f;e.translate(ne,re),W(),te(),Y(ae*T),Z(),$(ie,!0),X(ae*L),ee(),Q(0!==P||0!==D),$(ie,!1),J(ie),e.translate(-ne,-re)}g&&e.translate(-d.x,-d.y),o&&l.drawNodeUnderlay(e,t,d,r,a),g&&e.translate(d.x,d.y),W(),te(),Y(),Z(),$(f,!0),X(),ee(),Q(0!==P||0!==D),$(f,!1),J(),g&&e.translate(-d.x,-d.y),l.drawElementText(e,t,null,i),o&&l.drawNodeOverlay(e,t,d,r,a),n&&e.translate(p.x1,p.y1)}}},yc=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n,r,a,i){if(n.visible()){var o=n.pstyle("".concat(e,"-padding")).pfValue,s=n.pstyle("".concat(e,"-opacity")).value,l=n.pstyle("".concat(e,"-color")).value,u=n.pstyle("".concat(e,"-shape")).value,c=n.pstyle("".concat(e,"-corner-radius")).value;if(s>0){if(r=r||n.position(),null==a||null==i){var d=n.padding();a=n.width()+2*d,i=n.height()+2*d}this.colorFillStyle(t,l[0],l[1],l[2],s),this.nodeShapes[u].draw(t,r.x,r.y,a+2*o,i+2*o,c),t.fill()}}}};vc.drawNodeOverlay=yc("overlay"),vc.drawNodeUnderlay=yc("underlay"),vc.hasPie=function(e){return(e=e[0])._private.hasPie},vc.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var a=t.cy().style(),i=t.pstyle("pie-size"),o=r.x,s=r.y,l=t.width(),u=t.height(),c=Math.min(l,u)/2,d=0;this.usePaths()&&(o=0,s=0),"%"===i.units?c*=i.pfValue:void 0!==i.pfValue&&(c=i.pfValue/2);for(var h=1;h<=a.pieBackgroundN;h++){var p=t.pstyle("pie-"+h+"-background-size").value,f=t.pstyle("pie-"+h+"-background-color").value,g=t.pstyle("pie-"+h+"-background-opacity").value*n,v=p/100;v+d>1&&(v=1-d);var y=1.5*Math.PI+2*Math.PI*d,m=y+2*Math.PI*v;0===p||d>=1||d+v>1||(e.beginPath(),e.moveTo(o,s),e.arc(o,s,c,y,m),e.closePath(),this.colorFillStyle(e,f[0],f[1],f[2],g),e.fill(),d+=v)}};var mc={};mc.getPixelRatio=function(){var e=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},mc.paintCache=function(e){for(var t,n=this.paintCaches=this.paintCaches||[],r=!0,a=0;a<n.length;a++)if((t=n[a]).context===e){r=!1;break}return r&&(t={context:e},n.push(t)),t},mc.createGradientStyleFor=function(e,t,n,r,a){var i,o=this.usePaths(),s=n.pstyle(t+"-gradient-stop-colors").value,l=n.pstyle(t+"-gradient-stop-positions").pfValue;if("radial-gradient"===r)if(n.isEdge()){var u=n.sourceEndpoint(),c=n.targetEndpoint(),d=n.midpoint(),h=Nt(u,d),p=Nt(c,d);i=e.createRadialGradient(d.x,d.y,0,d.x,d.y,Math.max(h,p))}else{var f=o?{x:0,y:0}:n.position(),g=n.paddedWidth(),v=n.paddedHeight();i=e.createRadialGradient(f.x,f.y,0,f.x,f.y,Math.max(g,v))}else if(n.isEdge()){var y=n.sourceEndpoint(),m=n.targetEndpoint();i=e.createLinearGradient(y.x,y.y,m.x,m.y)}else{var b=o?{x:0,y:0}:n.position(),x=n.paddedWidth()/2,w=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":i=e.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":i=e.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":i=e.createLinearGradient(b.x+x,b.y,b.x-x,b.y);break;case"to-right":i=e.createLinearGradient(b.x-x,b.y,b.x+x,b.y);break;case"to-bottom-right":case"to-right-bottom":i=e.createLinearGradient(b.x-x,b.y-w,b.x+x,b.y+w);break;case"to-top-right":case"to-right-top":i=e.createLinearGradient(b.x-x,b.y+w,b.x+x,b.y-w);break;case"to-bottom-left":case"to-left-bottom":i=e.createLinearGradient(b.x+x,b.y-w,b.x-x,b.y+w);break;case"to-top-left":case"to-left-top":i=e.createLinearGradient(b.x+x,b.y+w,b.x-x,b.y-w)}}if(!i)return null;for(var E=l.length===s.length,k=s.length,C=0;C<k;C++)i.addColorStop(E?l[C]:C/(k-1),"rgba("+s[C][0]+","+s[C][1]+","+s[C][2]+","+a+")");return i},mc.gradientFillStyle=function(e,t,n,r){var a=this.createGradientStyleFor(e,"background",t,n,r);if(!a)return null;e.fillStyle=a},mc.colorFillStyle=function(e,t,n,r,a){e.fillStyle="rgba("+t+","+n+","+r+","+a+")"},mc.eleFillStyle=function(e,t,n){var r=t.pstyle("background-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientFillStyle(e,t,r,n);else{var a=t.pstyle("background-color").value;this.colorFillStyle(e,a[0],a[1],a[2],n)}},mc.gradientStrokeStyle=function(e,t,n,r){var a=this.createGradientStyleFor(e,"line",t,n,r);if(!a)return null;e.strokeStyle=a},mc.colorStrokeStyle=function(e,t,n,r,a){e.strokeStyle="rgba("+t+","+n+","+r+","+a+")"},mc.eleStrokeStyle=function(e,t,n){var r=t.pstyle("line-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientStrokeStyle(e,t,r,n);else{var a=t.pstyle("line-color").value;this.colorStrokeStyle(e,a[0],a[1],a[2],n)}},mc.matchCanvasSize=function(e){var t=this,n=t.data,r=t.findContainerClientCoords(),a=r[2],i=r[3],o=t.getPixelRatio(),s=t.motionBlurPxRatio;e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]&&e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG]||(o=s);var l,u=a*o,c=i*o;if(u!==t.canvasWidth||c!==t.canvasHeight){t.fontCaches=null;var d=n.canvasContainer;d.style.width=a+"px",d.style.height=i+"px";for(var h=0;h<t.CANVAS_LAYERS;h++)(l=n.canvases[h]).width=u,l.height=c,l.style.width=a+"px",l.style.height=i+"px";for(h=0;h<t.BUFFER_COUNT;h++)(l=n.bufferCanvases[h]).width=u,l.height=c,l.style.width=a+"px",l.style.height=i+"px";t.textureMult=1,o<=1&&(l=n.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,l.width=u*t.textureMult,l.height=c*t.textureMult),t.canvasWidth=u,t.canvasHeight=c}},mc.renderTo=function(e,t,n,r){this.render({forcedContext:e,forcedZoom:t,forcedPan:n,drawAllLayers:!0,forcedPxRatio:r})},mc.render=function(e){var t=(e=e||Je()).forcedContext,n=e.drawAllLayers,r=e.drawOnlyNodeLayer,a=e.forcedZoom,i=e.forcedPan,o=this,s=void 0===e.forcedPxRatio?this.getPixelRatio():e.forcedPxRatio,l=o.cy,u=o.data,c=u.canvasNeedsRedraw,d=o.textureOnViewport&&!t&&(o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming),h=void 0!==e.motionBlur?e.motionBlur:o.motionBlur,p=o.motionBlurPxRatio,f=l.hasCompoundNodes(),g=o.hoverData.draggingEles,v=!(!o.hoverData.selecting&&!o.touchData.selecting),y=h=h&&!t&&o.motionBlurEnabled&&!v;t||(o.prevPxRatio!==s&&(o.invalidateContainerClientCoordsCache(),o.matchCanvasSize(o.container),o.redrawHint("eles",!0),o.redrawHint("drag",!0)),o.prevPxRatio=s),!t&&o.motionBlurTimeout&&clearTimeout(o.motionBlurTimeout),h&&(null==o.mbFrames&&(o.mbFrames=0),o.mbFrames++,o.mbFrames<3&&(y=!1),o.mbFrames>o.minMbLowQualFrames&&(o.motionBlurPxRatio=o.mbPxRBlurry)),o.clearingMotionBlur&&(o.motionBlurPxRatio=1),o.textureDrawLastFrame&&!d&&(c[o.NODE]=!0,c[o.SELECT_BOX]=!0);var m=l.style(),b=l.zoom(),x=void 0!==a?a:b,w=l.pan(),E={x:w.x,y:w.y},k={zoom:b,pan:{x:w.x,y:w.y}},C=o.prevViewport;void 0===C||k.zoom!==C.zoom||k.pan.x!==C.pan.x||k.pan.y!==C.pan.y||g&&!f||(o.motionBlurPxRatio=1),i&&(E=i),x*=s,E.x*=s,E.y*=s;var S=o.getCachedZSortedEles();function P(e,t,n,r,a){var i=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",o.colorFillStyle(e,255,255,255,o.motionBlurTransparency),e.fillRect(t,n,r,a),e.globalCompositeOperation=i}function D(e,r){var s,l,c,d;o.clearingMotionBlur||e!==u.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]&&e!==u.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]?(s=E,l=x,c=o.canvasWidth,d=o.canvasHeight):(s={x:w.x*p,y:w.y*p},l=b*p,c=o.canvasWidth*p,d=o.canvasHeight*p),e.setTransform(1,0,0,1,0,0),"motionBlur"===r?P(e,0,0,c,d):t||void 0!==r&&!r||e.clearRect(0,0,c,d),n||(e.translate(s.x,s.y),e.scale(l,l)),i&&e.translate(i.x,i.y),a&&e.scale(a,a)}if(d||(o.textureDrawLastFrame=!1),d){if(o.textureDrawLastFrame=!0,!o.textureCache){o.textureCache={},o.textureCache.bb=l.mutableElements().boundingBox(),o.textureCache.texture=o.data.bufferCanvases[o.TEXTURE_BUFFER];var T=o.data.bufferContexts[o.TEXTURE_BUFFER];T.setTransform(1,0,0,1,0,0),T.clearRect(0,0,o.canvasWidth*o.textureMult,o.canvasHeight*o.textureMult),o.render({forcedContext:T,drawOnlyNodeLayer:!0,forcedPxRatio:s*o.textureMult}),(k=o.textureCache.viewport={zoom:l.zoom(),pan:l.pan(),width:o.canvasWidth,height:o.canvasHeight}).mpan={x:(0-k.pan.x)/k.zoom,y:(0-k.pan.y)/k.zoom}}c[o.DRAG]=!1,c[o.NODE]=!1;var _=u.contexts[o.NODE],M=o.textureCache.texture;k=o.textureCache.viewport;_.setTransform(1,0,0,1,0,0),h?P(_,0,0,k.width,k.height):_.clearRect(0,0,k.width,k.height);var B=m.core("outside-texture-bg-color").value,N=m.core("outside-texture-bg-opacity").value;o.colorFillStyle(_,B[0],B[1],B[2],N),_.fillRect(0,0,k.width,k.height);b=l.zoom();D(_,!1),_.clearRect(k.mpan.x,k.mpan.y,k.width/k.zoom/s,k.height/k.zoom/s),_.drawImage(M,k.mpan.x,k.mpan.y,k.width/k.zoom/s,k.height/k.zoom/s)}else o.textureOnViewport&&!t&&(o.textureCache=null);var I=l.extent(),z=o.pinching||o.hoverData.dragging||o.swipePanning||o.data.wheelZooming||o.hoverData.draggingEles||o.cy.animated(),A=o.hideEdgesOnViewport&&z,L=[];if(L[o.NODE]=!c[o.NODE]&&h&&!o.clearedForMotionBlur[o.NODE]||o.clearingMotionBlur,L[o.NODE]&&(o.clearedForMotionBlur[o.NODE]=!0),L[o.DRAG]=!c[o.DRAG]&&h&&!o.clearedForMotionBlur[o.DRAG]||o.clearingMotionBlur,L[o.DRAG]&&(o.clearedForMotionBlur[o.DRAG]=!0),c[o.NODE]||n||r||L[o.NODE]){var O=h&&!L[o.NODE]&&1!==p;D(_=t||(O?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_NODE]:u.contexts[o.NODE]),h&&!O?"motionBlur":void 0),A?o.drawCachedNodes(_,S.nondrag,s,I):o.drawLayeredElements(_,S.nondrag,s,I),o.debug&&o.drawDebugPoints(_,S.nondrag),n||h||(c[o.NODE]=!1)}if(!r&&(c[o.DRAG]||n||L[o.DRAG])){O=h&&!L[o.DRAG]&&1!==p;D(_=t||(O?o.data.bufferContexts[o.MOTIONBLUR_BUFFER_DRAG]:u.contexts[o.DRAG]),h&&!O?"motionBlur":void 0),A?o.drawCachedNodes(_,S.drag,s,I):o.drawCachedElements(_,S.drag,s,I),o.debug&&o.drawDebugPoints(_,S.drag),n||h||(c[o.DRAG]=!1)}if(o.showFps||!r&&c[o.SELECT_BOX]&&!n){if(D(_=t||u.contexts[o.SELECT_BOX]),1==o.selection[4]&&(o.hoverData.selecting||o.touchData.selecting)){b=o.cy.zoom();var R=m.core("selection-box-border-width").value/b;_.lineWidth=R,_.fillStyle="rgba("+m.core("selection-box-color").value[0]+","+m.core("selection-box-color").value[1]+","+m.core("selection-box-color").value[2]+","+m.core("selection-box-opacity").value+")",_.fillRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]),R>0&&(_.strokeStyle="rgba("+m.core("selection-box-border-color").value[0]+","+m.core("selection-box-border-color").value[1]+","+m.core("selection-box-border-color").value[2]+","+m.core("selection-box-opacity").value+")",_.strokeRect(o.selection[0],o.selection[1],o.selection[2]-o.selection[0],o.selection[3]-o.selection[1]))}if(u.bgActivePosistion&&!o.hoverData.selecting){b=o.cy.zoom();var V=u.bgActivePosistion;_.fillStyle="rgba("+m.core("active-bg-color").value[0]+","+m.core("active-bg-color").value[1]+","+m.core("active-bg-color").value[2]+","+m.core("active-bg-opacity").value+")",_.beginPath(),_.arc(V.x,V.y,m.core("active-bg-size").pfValue/b,0,2*Math.PI),_.fill()}var F=o.lastRedrawTime;if(o.showFps&&F){F=Math.round(F);var j=Math.round(1e3/F);_.setTransform(1,0,0,1,0,0),_.fillStyle="rgba(255, 0, 0, 0.75)",_.strokeStyle="rgba(255, 0, 0, 0.75)",_.lineWidth=1,_.fillText("1 frame = "+F+" ms = "+j+" fps",0,20);_.strokeRect(0,30,250,20),_.fillRect(0,30,250*Math.min(j/60,1),20)}n||(c[o.SELECT_BOX]=!1)}if(h&&1!==p){var q=u.contexts[o.NODE],Y=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_NODE],X=u.contexts[o.DRAG],W=o.data.bufferCanvases[o.MOTIONBLUR_BUFFER_DRAG],H=function(e,t,n){e.setTransform(1,0,0,1,0,0),n||!y?e.clearRect(0,0,o.canvasWidth,o.canvasHeight):P(e,0,0,o.canvasWidth,o.canvasHeight);var r=p;e.drawImage(t,0,0,o.canvasWidth*r,o.canvasHeight*r,0,0,o.canvasWidth,o.canvasHeight)};(c[o.NODE]||L[o.NODE])&&(H(q,Y,L[o.NODE]),c[o.NODE]=!1),(c[o.DRAG]||L[o.DRAG])&&(H(X,W,L[o.DRAG]),c[o.DRAG]=!1)}o.prevViewport=k,o.clearingMotionBlur&&(o.clearingMotionBlur=!1,o.motionBlurCleared=!0,o.motionBlur=!0),h&&(o.motionBlurTimeout=setTimeout((function(){o.motionBlurTimeout=null,o.clearedForMotionBlur[o.NODE]=!1,o.clearedForMotionBlur[o.DRAG]=!1,o.motionBlur=!1,o.clearingMotionBlur=!d,o.mbFrames=0,c[o.NODE]=!0,c[o.DRAG]=!0,o.redraw()}),100)),t||l.emit("render")};for(var bc={drawPolygonPath:function(e,t,n,r,a,i){var o=r/2,s=a/2;e.beginPath&&e.beginPath(),e.moveTo(t+o*i[0],n+s*i[1]);for(var l=1;l<i.length/2;l++)e.lineTo(t+o*i[2*l],n+s*i[2*l+1]);e.closePath()},drawRoundPolygonPath:function(e,t,n,r,a,i,o){o.forEach((function(t){return mu(e,t)})),e.closePath()},drawRoundRectanglePath:function(e,t,n,r,a,i){var o=r/2,s=a/2,l="auto"===i?hn(r,a):Math.min(i,s,o);e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.arcTo(t+o,n-s,t+o,n,l),e.arcTo(t+o,n+s,t,n+s,l),e.arcTo(t-o,n+s,t-o,n,l),e.arcTo(t-o,n-s,t,n-s,l),e.lineTo(t,n-s),e.closePath()},drawBottomRoundRectanglePath:function(e,t,n,r,a,i){var o=r/2,s=a/2,l="auto"===i?hn(r,a):i;e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.lineTo(t+o,n-s),e.lineTo(t+o,n),e.arcTo(t+o,n+s,t,n+s,l),e.arcTo(t-o,n+s,t-o,n,l),e.lineTo(t-o,n-s),e.lineTo(t,n-s),e.closePath()},drawCutRectanglePath:function(e,t,n,r,a,i,o){var s=r/2,l=a/2,u="auto"===o?8:o;e.beginPath&&e.beginPath(),e.moveTo(t-s+u,n-l),e.lineTo(t+s-u,n-l),e.lineTo(t+s,n-l+u),e.lineTo(t+s,n+l-u),e.lineTo(t+s-u,n+l),e.lineTo(t-s+u,n+l),e.lineTo(t-s,n+l-u),e.lineTo(t-s,n-l+u),e.closePath()},drawBarrelPath:function(e,t,n,r,a){var i=r/2,o=a/2,s=t-i,l=t+i,u=n-o,c=n+o,d=fn(r,a),h=d.widthOffset,p=d.heightOffset,f=d.ctrlPtOffsetPct*h;e.beginPath&&e.beginPath(),e.moveTo(s,u+p),e.lineTo(s,c-p),e.quadraticCurveTo(s+f,c,s+h,c),e.lineTo(l-h,c),e.quadraticCurveTo(l-f,c,l,c-p),e.lineTo(l,u+p),e.quadraticCurveTo(l-f,u,l-h,u),e.lineTo(s+h,u),e.quadraticCurveTo(s+f,u,s,u+p),e.closePath()}},xc=Math.sin(0),wc=Math.cos(0),Ec={},kc={},Cc=Math.PI/40,Sc=0*Math.PI;Sc<2*Math.PI;Sc+=Cc)Ec[Sc]=Math.sin(Sc),kc[Sc]=Math.cos(Sc);bc.drawEllipsePath=function(e,t,n,r,a){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,n,r/2,a/2,0,0,2*Math.PI);else for(var i,o,s=r/2,l=a/2,u=0*Math.PI;u<2*Math.PI;u+=Cc)i=t-s*Ec[u]*xc+s*kc[u]*wc,o=n+l*kc[u]*xc+l*Ec[u]*wc,0===u?e.moveTo(i,o):e.lineTo(i,o);e.closePath()};var Pc={};function Dc(e){var t=e.indexOf(",");return e.substr(t+1)}function Tc(e,t,n){var r=function(){return t.toDataURL(n,e.quality)};switch(e.output){case"blob-promise":return new Tr((function(r,a){try{t.toBlob((function(e){null!=e?r(e):a(new Error("`canvas.toBlob()` sent a null value in its callback"))}),n,e.quality)}catch(i){a(i)}}));case"blob":return function(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),a=new Uint8Array(r),i=0;i<n.length;i++)a[i]=n.charCodeAt(i);return new Blob([r],{type:t})}(Dc(r()),n);case"base64":return Dc(r());default:return r()}}Pc.createBuffer=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,[n,n.getContext("2d")]},Pc.bufferCanvasImage=function(e){var t=this.cy,n=t.mutableElements().boundingBox(),r=this.findContainerClientCoords(),a=e.full?Math.ceil(n.w):r[2],i=e.full?Math.ceil(n.h):r[3],o=k(e.maxWidth)||k(e.maxHeight),s=this.getPixelRatio(),l=1;if(void 0!==e.scale)a*=e.scale,i*=e.scale,l=e.scale;else if(o){var u=1/0,c=1/0;k(e.maxWidth)&&(u=l*e.maxWidth/a),k(e.maxHeight)&&(c=l*e.maxHeight/i),a*=l=Math.min(u,c),i*=l}o||(a*=s,i*=s,l*=s);var d=document.createElement("canvas");d.width=a,d.height=i,d.style.width=a+"px",d.style.height=i+"px";var h=d.getContext("2d");if(a>0&&i>0){h.clearRect(0,0,a,i),h.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(e.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var f=t.pan(),g={x:f.x*l,y:f.y*l};l*=t.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,p),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}e.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=e.bg,h.rect(0,0,a,i),h.fill())}return d},Pc.png=function(e){return Tc(e,this.bufferCanvasImage(e),"image/png")},Pc.jpg=function(e){return Tc(e,this.bufferCanvasImage(e),"image/jpeg")};var _c={nodeShapeImpl:function(e,t,n,r,a,i,o,s){switch(e){case"ellipse":return this.drawEllipsePath(t,n,r,a,i);case"polygon":return this.drawPolygonPath(t,n,r,a,i,o);case"round-polygon":return this.drawRoundPolygonPath(t,n,r,a,i,o,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,n,r,a,i,s);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,n,r,a,i,o,s);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,n,r,a,i,s);case"barrel":return this.drawBarrelPath(t,n,r,a,i)}}},Mc=Nc,Bc=Nc.prototype;function Nc(e){var t=this,n=t.cy.window().document;t.data={canvases:new Array(Bc.CANVAS_LAYERS),contexts:new Array(Bc.CANVAS_LAYERS),canvasNeedsRedraw:new Array(Bc.CANVAS_LAYERS),bufferCanvases:new Array(Bc.BUFFER_COUNT),bufferContexts:new Array(Bc.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",a="rgba(0,0,0,0)";t.data.canvasContainer=n.createElement("div");var i=t.data.canvasContainer.style;t.data.canvasContainer.style[r]=a,i.position="relative",i.zIndex="0",i.overflow="hidden";var o=e.cy.container();o.appendChild(t.data.canvasContainer),o.style[r]=a;var s={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};p&&p.userAgent.match(/msie|trident|edge/i)&&(s["-ms-touch-action"]="none",s["touch-action"]="none");for(var l=0;l<Bc.CANVAS_LAYERS;l++){var u=t.data.canvases[l]=n.createElement("canvas");t.data.contexts[l]=u.getContext("2d"),Object.keys(s).forEach((function(e){u.style[e]=s[e]})),u.style.position="absolute",u.setAttribute("data-id","layer"+l),u.style.zIndex=String(Bc.CANVAS_LAYERS-l),t.data.canvasContainer.appendChild(u),t.data.canvasNeedsRedraw[l]=!1}t.data.topCanvas=t.data.canvases[0],t.data.canvases[Bc.NODE].setAttribute("data-id","layer"+Bc.NODE+"-node"),t.data.canvases[Bc.SELECT_BOX].setAttribute("data-id","layer"+Bc.SELECT_BOX+"-selectbox"),t.data.canvases[Bc.DRAG].setAttribute("data-id","layer"+Bc.DRAG+"-drag");for(l=0;l<Bc.BUFFER_COUNT;l++)t.data.bufferCanvases[l]=n.createElement("canvas"),t.data.bufferContexts[l]=t.data.bufferCanvases[l].getContext("2d"),t.data.bufferCanvases[l].style.position="absolute",t.data.bufferCanvases[l].setAttribute("data-id","buffer"+l),t.data.bufferCanvases[l].style.zIndex=String(-l-1),t.data.bufferCanvases[l].style.visibility="hidden";t.pathsEnabled=!0;var c=Rt(),d=function(e){return{x:-e.w/2,y:-e.h/2}},h=function(e){return e.boundingBox(),e[0]._private.bodyBounds},f=function(e){return e.boundingBox(),e[0]._private.labelBounds.main||c},g=function(e){return e.boundingBox(),e[0]._private.labelBounds.source||c},v=function(e){return e.boundingBox(),e[0]._private.labelBounds.target||c},y=function(e,t){return t},m=function(e,t,n){var r=e?e+"-":"";return{x:t.x+n.pstyle(r+"text-margin-x").pfValue,y:t.y+n.pstyle(r+"text-margin-y").pfValue}},b=function(e,t,n){var r=e[0]._private.rscratch;return{x:r[t],y:r[n]}},x=t.data.eleTxrCache=new Wu(t,{getKey:function(e){return e[0]._private.nodeKey},doesEleInvalidateKey:function(e){var t=e[0]._private;return!(t.oldBackgroundTimestamp===t.backgroundTimestamp)},drawElement:function(e,n,r,a,i){return t.drawElement(e,n,r,!1,!1,i)},getBoundingBox:h,getRotationPoint:function(e){return{x:((t=h(e)).x1+t.x2)/2,y:(t.y1+t.y2)/2};var t},getRotationOffset:function(e){return d(h(e))},allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),w=t.data.lblTxrCache=new Wu(t,{getKey:function(e){return e[0]._private.labelStyleKey},drawElement:function(e,n,r,a,i){return t.drawElementText(e,n,r,a,"main",i)},getBoundingBox:f,getRotationPoint:function(e){return m("",b(e,"labelX","labelY"),e)},getRotationOffset:function(e){var t=f(e),n=d(f(e));if(e.isNode()){switch(e.pstyle("text-halign").value){case"left":n.x=-t.w-(t.leftPad||0);break;case"right":n.x=-(t.rightPad||0)}switch(e.pstyle("text-valign").value){case"top":n.y=-t.h-(t.topPad||0);break;case"bottom":n.y=-(t.botPad||0)}}return n},isVisible:y}),E=t.data.slbTxrCache=new Wu(t,{getKey:function(e){return e[0]._private.sourceLabelStyleKey},drawElement:function(e,n,r,a,i){return t.drawElementText(e,n,r,a,"source",i)},getBoundingBox:g,getRotationPoint:function(e){return m("source",b(e,"sourceLabelX","sourceLabelY"),e)},getRotationOffset:function(e){return d(g(e))},isVisible:y}),k=t.data.tlbTxrCache=new Wu(t,{getKey:function(e){return e[0]._private.targetLabelStyleKey},drawElement:function(e,n,r,a,i){return t.drawElementText(e,n,r,a,"target",i)},getBoundingBox:v,getRotationPoint:function(e){return m("target",b(e,"targetLabelX","targetLabelY"),e)},getRotationOffset:function(e){return d(v(e))},isVisible:y}),C=t.data.lyrTxrCache=new Ku(t);t.onUpdateEleCalcs((function(e,t){x.invalidateElements(t),w.invalidateElements(t),E.invalidateElements(t),k.invalidateElements(t),C.invalidateElements(t);for(var n=0;n<t.length;n++){var r=t[n]._private;r.oldBackgroundTimestamp=r.backgroundTimestamp}}));var S=function(e){for(var t=0;t<e.length;t++)C.enqueueElementRefinement(e[t].ele)};x.onDequeue(S),w.onDequeue(S),E.onDequeue(S),k.onDequeue(S)}Bc.CANVAS_LAYERS=3,Bc.SELECT_BOX=0,Bc.DRAG=1,Bc.NODE=2,Bc.BUFFER_COUNT=3,Bc.TEXTURE_BUFFER=0,Bc.MOTIONBLUR_BUFFER_NODE=1,Bc.MOTIONBLUR_BUFFER_DRAG=2,Bc.redrawHint=function(e,t){var n=this;switch(e){case"eles":n.data.canvasNeedsRedraw[Bc.NODE]=t;break;case"drag":n.data.canvasNeedsRedraw[Bc.DRAG]=t;break;case"select":n.data.canvasNeedsRedraw[Bc.SELECT_BOX]=t}};var Ic="undefined"!=typeof Path2D;Bc.path2dEnabled=function(e){if(void 0===e)return this.pathsEnabled;this.pathsEnabled=!!e},Bc.usePaths=function(){return Ic&&this.pathsEnabled},Bc.setImgSmoothing=function(e,t){null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)},Bc.getImgSmoothing=function(e){return null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled},Bc.makeOffscreenCanvas=function(e,t){var n;"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":r(OffscreenCanvas))?n=new OffscreenCanvas(e,t):((n=this.cy.window().document.createElement("canvas")).width=e,n.height=t);return n},[Qu,ac,dc,pc,fc,vc,mc,bc,Pc,_c].forEach((function(e){Y(Bc,e)}));var zc=[{type:"layout",extensions:Xl},{type:"renderer",extensions:[{name:"null",impl:Wl},{name:"base",impl:Ru},{name:"canvas",impl:Mc}]}],Ac={},Lc={};function Oc(e,t,n){var r=n,a=function(n){Ue("Can not register `"+t+"` for `"+e+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===e){if(rl.prototype[t])return a(t);rl.prototype[t]=n}else if("collection"===e){if(bs.prototype[t])return a(t);bs.prototype[t]=n}else if("layout"===e){for(var i=function(e){this.options=e,n.call(this,e),E(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},o=i.prototype=Object.create(n.prototype),s=[],l=0;l<s.length;l++){var u=s[l];o[u]=o[u]||function(){return this}}o.start&&!o.run?o.run=function(){return this.start(),this}:!o.start&&o.run&&(o.start=function(){return this.run(),this});var c=n.prototype.stop;o.stop=function(){var e=this.options;if(e&&e.animate){var t=this.animations;if(t)for(var n=0;n<t.length;n++)t[n].stop()}return c?c.call(this):this.emit("layoutstop"),this},o.destroy||(o.destroy=function(){return this}),o.cy=function(){return this._private.cy};var d=function(e){return e._private.cy},h={addEventFields:function(e,t){t.layout=e,t.cy=d(e),t.target=e},bubble:function(){return!0},parent:function(e){return d(e)}};Y(o,{createEmitter:function(){return this._private.emitter=new Oo(h,this),this},emitter:function(){return this._private.emitter},on:function(e,t){return this.emitter().on(e,t),this},one:function(e,t){return this.emitter().one(e,t),this},once:function(e,t){return this.emitter().one(e,t),this},removeListener:function(e,t){return this.emitter().removeListener(e,t),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(e,t){return this.emitter().emit(e,t),this}}),ni.eventAliasesOn(o),r=i}else if("renderer"===e&&"null"!==t&&"base"!==t){var p=Rc("renderer","base"),f=p.prototype,g=n,v=n.prototype,y=function(){p.apply(this,arguments),g.apply(this,arguments)},m=y.prototype;for(var b in f){var x=f[b];if(null!=v[b])return a(b);m[b]=x}for(var w in v)m[w]=v[w];f.clientFunctions.forEach((function(e){m[e]=m[e]||function(){Ke("Renderer does not implement `renderer."+e+"()` on its prototype")}})),r=y}else if("__proto__"===e||"constructor"===e||"prototype"===e)return Ke(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return H({map:Ac,keys:[e,t],value:r})}function Rc(e,t){return K({map:Ac,keys:[e,t]})}function Vc(e,t,n,r,a){return H({map:Lc,keys:[e,t,n,r],value:a})}function Fc(e,t,n,r){return K({map:Lc,keys:[e,t,n,r]})}var jc=function(){return 2===arguments.length?Rc.apply(null,arguments):3===arguments.length?Oc.apply(null,arguments):4===arguments.length?Fc.apply(null,arguments):5===arguments.length?Vc.apply(null,arguments):void Ke("Invalid extension access syntax")};rl.prototype.extension=jc,zc.forEach((function(e){e.extensions.forEach((function(t){Oc(e.type,t.name,t.impl)}))}));var qc=function e(){if(!(this instanceof e))return new e;this.length=0},Yc=qc.prototype;Yc.instanceString=function(){return"stylesheet"},Yc.selector=function(e){return this[this.length++]={selector:e,properties:[]},this},Yc.css=function(e,t){var n=this.length-1;if(b(e))this[n].properties.push({name:e,value:t});else if(E(e))for(var r=e,a=Object.keys(r),i=0;i<a.length;i++){var o=a[i],s=r[o];if(null!=s){var l=Qs.properties[o]||Qs.properties[z(o)];if(null!=l){var u=l.name,c=s;this[n].properties.push({name:u,value:c})}}}return this},Yc.style=Yc.css,Yc.generateStyle=function(e){var t=new Qs(e);return this.appendToStyle(t)},Yc.appendToStyle=function(e){for(var t=0;t<this.length;t++){var n=this[t],r=n.selector,a=n.properties;e.selector(r);for(var i=0;i<a.length;i++){var o=a[i];e.css(o.name,o.value)}}return e};var Xc=function(e){return void 0===e&&(e={}),E(e)?new rl(e):b(e)?jc.apply(jc,arguments):void 0};Xc.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(Xc),e.apply(null,t),this},Xc.warnings=function(e){return Ge(e)},Xc.version="3.30.4",Xc.stylesheet=Xc.Stylesheet=qc}}]); \ No newline at end of file diff --git a/website/assets/js/165.60104c8f.js.LICENSE.txt b/website/assets/js/165.60104c8f.js.LICENSE.txt new file mode 100644 index 000000000..a9f6f1244 --- /dev/null +++ b/website/assets/js/165.60104c8f.js.LICENSE.txt @@ -0,0 +1,9 @@ +/*! +Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable +Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) +Licensed under The MIT License (http://opensource.org/licenses/MIT) +*/ + +/*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ + +/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ diff --git a/website/assets/js/17896441.1245606d.js b/website/assets/js/17896441.1245606d.js new file mode 100644 index 000000000..c5dd65025 --- /dev/null +++ b/website/assets/js/17896441.1245606d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8401],{4333:(e,t,s)=>{s.d(t,{A:()=>v});s(6540);var n=s(8215),a=s(4717),i=s(5246),o=s(6707),l=s(7880),r=s(2032),c=s(4763),d=s(4848);function m(e){return(0,d.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,d.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const u={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function h(){const e=(0,c.Ay)("/");return(0,d.jsx)("li",{className:"breadcrumbs__item",children:(0,d.jsx)(l.A,{"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,d.jsx)(m,{className:u.breadcrumbHomeIcon})})})}const b={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function x(e){let{children:t,href:s,isLast:n}=e;const a="breadcrumbs__link";return n?(0,d.jsx)("span",{className:a,itemProp:"name",children:t}):s?(0,d.jsx)(l.A,{className:a,href:s,itemProp:"item",children:(0,d.jsx)("span",{itemProp:"name",children:t})}):(0,d.jsx)("span",{className:a,children:t})}function p(e){let{children:t,active:s,index:a,addMicrodata:i}=e;return(0,d.jsxs)("li",{...i&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,n.A)("breadcrumbs__item",{"breadcrumbs__item--active":s}),children:[t,(0,d.jsx)("meta",{itemProp:"position",content:String(a+1)})]})}function v(){const e=(0,i.OF)(),t=(0,o.Dt)();return e?(0,d.jsx)("nav",{className:(0,n.A)(a.G.docs.docBreadcrumbs,b.breadcrumbsContainer),"aria-label":(0,r.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,d.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,d.jsx)(h,{}),e.map(((t,s)=>{const n=s===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,d.jsx)(p,{active:n,index:s,addMicrodata:!!a,children:(0,d.jsx)(x,{href:a,isLast:n,children:t.label})},s)}))]})}):null}},1742:(e,t,s)=>{s.r(t),s.d(t,{default:()=>O});var n=s(6540),a=s(3523),i=s(5302),o=s(4848);const l=n.createContext(null);function r(e){let{children:t,content:s}=e;const a=function(e){return(0,n.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(s);return(0,o.jsx)(l.Provider,{value:a,children:t})}function c(){const e=(0,n.useContext)(l);if(null===e)throw new i.dV("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:s}=c();return(0,o.jsx)(a.be,{title:e.title,description:e.description,keywords:t.keywords,image:s.image??t.image})}var m=s(8215),u=s(9607),h=s(6359);function b(){const{metadata:e}=c();return(0,o.jsx)(h.A,{previous:e.previous,next:e.next})}var x=s(707),p=s(6073),v=s(4717),g=s(2032),j=s(7880);const f={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function A(e){let{permalink:t,label:s,count:n,description:a}=e;return(0,o.jsxs)(j.A,{href:t,title:a,className:(0,m.A)(f.tag,n?f.tagWithCount:f.tagRegular),children:[s,n&&(0,o.jsx)("span",{children:n})]})}const _={tags:"tags_jXut",tag:"tag_QGVx"};function N(e){let{tags:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(g.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,m.A)(_.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,o.jsx)("li",{className:_.tag,children:(0,o.jsx)(A,{...e})},e.permalink)))})]})}var C=s(3592);function L(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:s,lastUpdatedBy:n,tags:a}=e,i=a.length>0,l=!!(t||s||n);return i||l?(0,o.jsxs)("footer",{className:(0,m.A)(v.G.docs.docFooter,"docusaurus-mt-lg"),children:[i&&(0,o.jsx)("div",{className:(0,m.A)("row margin-top--sm",v.G.docs.docFooterTagsRow),children:(0,o.jsx)("div",{className:"col",children:(0,o.jsx)(N,{tags:a})})}),l&&(0,o.jsx)(C.A,{className:(0,m.A)("margin-top--sm",v.G.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:s,lastUpdatedBy:n})]}):null}var T=s(936),k=s(2237);const M={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function w(e){let{collapsed:t,...s}=e;return(0,o.jsx)("button",{type:"button",...s,className:(0,m.A)("clean-btn",M.tocCollapsibleButton,!t&&M.tocCollapsibleButtonExpanded,s.className),children:(0,o.jsx)(g.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const B={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function I(e){let{toc:t,className:s,minHeadingLevel:n,maxHeadingLevel:a}=e;const{collapsed:i,toggleCollapsed:l}=(0,T.u)({initialState:!0});return(0,o.jsxs)("div",{className:(0,m.A)(B.tocCollapsible,!i&&B.tocCollapsibleExpanded,s),children:[(0,o.jsx)(w,{collapsed:i,onClick:l}),(0,o.jsx)(T.N,{lazy:!0,className:B.tocCollapsibleContent,collapsed:i,children:(0,o.jsx)(k.A,{toc:t,minHeadingLevel:n,maxHeadingLevel:a})})]})}const V={tocMobile:"tocMobile_ITEo"};function H(){const{toc:e,frontMatter:t}=c();return(0,o.jsx)(I,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,m.A)(v.G.docs.docTocMobile,V.tocMobile)})}var y=s(7741);function E(){const{toc:e,frontMatter:t}=c();return(0,o.jsx)(y.A,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:v.G.docs.docTocDesktop})}var G=s(8445),P=s(5872);function F(e){let{children:t}=e;const s=function(){const{metadata:e,frontMatter:t,contentTitle:s}=c();return t.hide_title||void 0!==s?null:e.title}();return(0,o.jsxs)("div",{className:(0,m.A)(v.G.docs.docMarkdown,"markdown"),children:[s&&(0,o.jsx)("header",{children:(0,o.jsx)(G.A,{as:"h1",children:s})}),(0,o.jsx)(P.A,{children:t})]})}var R=s(4333),D=s(9144);const S={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function U(e){let{children:t}=e;const s=function(){const{frontMatter:e,toc:t}=c(),s=(0,u.l)(),n=e.hide_table_of_contents,a=!n&&t.length>0;return{hidden:n,mobile:a?(0,o.jsx)(H,{}):void 0,desktop:!a||"desktop"!==s&&"ssr"!==s?void 0:(0,o.jsx)(E,{})}}(),{metadata:n}=c();return(0,o.jsxs)("div",{className:"row",children:[(0,o.jsxs)("div",{className:(0,m.A)("col",!s.hidden&&S.docItemCol),children:[(0,o.jsx)(D.A,{metadata:n}),(0,o.jsx)(x.A,{}),(0,o.jsxs)("div",{className:S.docItemContainer,children:[(0,o.jsxs)("article",{children:[(0,o.jsx)(R.A,{}),(0,o.jsx)(p.A,{}),s.mobile,(0,o.jsx)(F,{children:t}),(0,o.jsx)(L,{})]}),(0,o.jsx)(b,{})]})]}),s.desktop&&(0,o.jsx)("div",{className:"col col--3",children:s.desktop})]})}function O(e){const t=`docs-doc-id-${e.content.metadata.id}`,s=e.content;return(0,o.jsx)(r,{content:e.content,children:(0,o.jsxs)(a.e3,{className:t,children:[(0,o.jsx)(d,{}),(0,o.jsx)(U,{children:(0,o.jsx)(s,{})})]})})}},6359:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var n=s(2032),a=s(8215),i=s(7880),o=s(4848);function l(e){const{permalink:t,title:s,subLabel:n,isNext:l}=e;return(0,o.jsxs)(i.A,{className:(0,a.A)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[n&&(0,o.jsx)("div",{className:"pagination-nav__sublabel",children:n}),(0,o.jsx)("div",{className:"pagination-nav__label",children:s})]})}function r(e){const{previous:t,next:s}=e;return(0,o.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,n.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,o.jsx)(l,{...t,subLabel:(0,o.jsx)(n.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),s&&(0,o.jsx)(l,{...s,subLabel:(0,o.jsx)(n.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},6073:(e,t,s)=>{s.d(t,{A:()=>r});s(6540);var n=s(8215),a=s(2032),i=s(4717),o=s(8875),l=s(4848);function r(e){let{className:t}=e;const s=(0,o.r)();return s.badge?(0,l.jsx)("span",{className:(0,n.A)(t,i.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(a.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:s.label},children:"Version: {versionLabel}"})}):null}},707:(e,t,s)=>{s.d(t,{A:()=>p});s(6540);var n=s(8215),a=s(5792),i=s(7880),o=s(2032),l=s(869),r=s(4717),c=s(6220),d=s(8875),m=s(4848);const u={unreleased:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(o.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,m.jsx)("b",{children:s.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:s}=e;return(0,m.jsx)(o.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,m.jsx)("b",{children:s.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){const t=u[e.versionMetadata.banner];return(0,m.jsx)(t,{...e})}function b(e){let{versionLabel:t,to:s,onClick:n}=e;return(0,m.jsx)(o.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,m.jsx)("b",{children:(0,m.jsx)(i.A,{to:s,onClick:n,children:(0,m.jsx)(o.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function x(e){let{className:t,versionMetadata:s}=e;const{siteConfig:{title:i}}=(0,a.A)(),{pluginId:o}=(0,l.vT)({failfast:!0}),{savePreferredVersionName:d}=(0,c.g1)(o),{latestDocSuggestion:u,latestVersionSuggestion:x}=(0,l.HW)(o),p=u??(v=x).docs.find((e=>e.id===v.mainDocId));var v;return(0,m.jsxs)("div",{className:(0,n.A)(t,r.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,m.jsx)("div",{children:(0,m.jsx)(h,{siteTitle:i,versionMetadata:s})}),(0,m.jsx)("div",{className:"margin-top--md",children:(0,m.jsx)(b,{versionLabel:x.label,to:p.path,onClick:()=>d(x.name)})})]})}function p(e){let{className:t}=e;const s=(0,d.r)();return s.banner?(0,m.jsx)(x,{className:t,versionMetadata:s}):null}}}]); \ No newline at end of file diff --git a/website/assets/js/1825.4bd78481.js b/website/assets/js/1825.4bd78481.js new file mode 100644 index 000000000..0f864fe31 --- /dev/null +++ b/website/assets/js/1825.4bd78481.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1825],{3933:(e,t,a)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{S:()=>i}),(0,a(9).K2)(i,"populateCommonDb")},1825:(e,t,a)=>{a.d(t,{diagram:()=>b});var i=a(3933),n=a(540),l=a(7286),r=a(9),s=a(8731),o=a(7),c=r.UI.pie,p={sections:new Map,showData:!1,config:c},d=p.sections,g=p.showData,u=structuredClone(c),h=(0,r.K2)((()=>structuredClone(u)),"getConfig"),m=(0,r.K2)((()=>{d=new Map,g=p.showData,(0,r.IU)()}),"clear"),f=(0,r.K2)((({label:e,value:t})=>{d.has(e)||(d.set(e,t),r.Rm.debug(`added new section: ${e}, with value: ${t}`))}),"addSection"),S=(0,r.K2)((()=>d),"getSections"),x=(0,r.K2)((e=>{g=e}),"setShowData"),w=(0,r.K2)((()=>g),"getShowData"),D={getConfig:h,clear:m,setDiagramTitle:r.ke,getDiagramTitle:r.ab,setAccTitle:r.SV,getAccTitle:r.iN,setAccDescription:r.EI,getAccDescription:r.m7,addSection:f,getSections:S,setShowData:x,getShowData:w},T=(0,r.K2)(((e,t)=>{(0,i.S)(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)}),"populateDb"),$={parse:(0,r.K2)((async e=>{const t=await(0,s.qg)("pie",e);r.Rm.debug(t),T(t,D)}),"parse")},y=(0,r.K2)((e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`),"getStyles"),C=(0,r.K2)((e=>{const t=[...e.entries()].map((e=>({label:e[0],value:e[1]}))).sort(((e,t)=>t.value-e.value));return(0,o.rLf)().value((e=>e.value))(t)}),"createPieArcs"),b={parser:$,db:D,renderer:{draw:(0,r.K2)(((e,t,a,i)=>{r.Rm.debug("rendering pie chart\n"+e);const s=i.db,c=(0,r.D7)(),p=(0,n.$t)(s.getConfig(),c.pie),d=18,g=450,u=g,h=(0,l.D)(t),m=h.append("g");m.attr("transform","translate(225,225)");const{themeVariables:f}=c;let[S]=(0,n.I5)(f.pieOuterStrokeWidth);S??=2;const x=p.textPosition,w=Math.min(u,g)/2-40,D=(0,o.JLW)().innerRadius(0).outerRadius(w),T=(0,o.JLW)().innerRadius(w*x).outerRadius(w*x);m.append("circle").attr("cx",0).attr("cy",0).attr("r",w+S/2).attr("class","pieOuterCircle");const $=s.getSections(),y=C($),b=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],k=(0,o.UMr)(b);m.selectAll("mySlices").data(y).enter().append("path").attr("d",D).attr("fill",(e=>k(e.data.label))).attr("class","pieCircle");let K=0;$.forEach((e=>{K+=e})),m.selectAll("mySlices").data(y).enter().append("text").text((e=>(e.data.value/K*100).toFixed(0)+"%")).attr("transform",(e=>"translate("+T.centroid(e)+")")).style("text-anchor","middle").attr("class","slice"),m.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const v=m.selectAll(".legend").data(k.domain()).enter().append("g").attr("class","legend").attr("transform",((e,t)=>"translate(216,"+(22*t-22*k.domain().length/2)+")"));v.append("rect").attr("width",d).attr("height",d).style("fill",k).style("stroke",k),v.data(y).append("text").attr("x",22).attr("y",14).text((e=>{const{label:t,value:a}=e.data;return s.getShowData()?`${t} [${a}]`:t}));const A=512+Math.max(...v.selectAll("text").nodes().map((e=>e?.getBoundingClientRect().width??0)));h.attr("viewBox",`0 0 ${A} 450`),(0,r.a$)(h,g,A,p.useMaxWidth)}),"draw")},styles:y}}}]); \ No newline at end of file diff --git a/website/assets/js/198.1d680d44.js b/website/assets/js/198.1d680d44.js new file mode 100644 index 000000000..fca26a01f --- /dev/null +++ b/website/assets/js/198.1d680d44.js @@ -0,0 +1,2 @@ +/*! For license information please see 198.1d680d44.js.LICENSE.txt */ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[198],{7020:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});n(6540);var r=n(4753),i=n(4848);function o(t){let{children:e,fallback:n}=t;return(0,r.A)()?(0,i.jsx)(i.Fragment,{children:e?.()}):n??null}},6487:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});n(6540);var r=n(8215);const i={tabItem:"tabItem_Ymn6"};var o=n(4848);function s(t){let{children:e,hidden:n,className:s}=t;return(0,o.jsx)("div",{role:"tabpanel",className:(0,r.A)(i.tabItem,s),hidden:n,children:e})}},7119:(t,e,n)=>{"use strict";n.d(e,{A:()=>E});var r=n(6540),i=n(8215),o=n(3622),s=n(6347),a=n(8963),c=n(9579),l=n(2808),u=n(5054);function p(t){return r.Children.toArray(t).filter((t=>"\n"!==t)).map((t=>{if(!t||(0,r.isValidElement)(t)&&function(t){const{props:e}=t;return!!e&&"object"==typeof e&&"value"in e}(t))return t;throw new Error(`Docusaurus error: Bad <Tabs> child <${"string"==typeof t.type?t.type:t.type.name}>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(t){const{values:e,children:n}=t;return(0,r.useMemo)((()=>{const t=e??function(t){return p(t).map((t=>{let{props:{value:e,label:n,attributes:r,default:i}}=t;return{value:e,label:n,attributes:r,default:i}}))}(n);return function(t){const e=(0,l.XI)(t,((t,e)=>t.value===e.value));if(e.length>0)throw new Error(`Docusaurus error: Duplicate values "${e.map((t=>t.value)).join(", ")}" found in <Tabs>. Every value needs to be unique.`)}(t),t}),[e,n])}function f(t){let{value:e,tabValues:n}=t;return n.some((t=>t.value===e))}function d(t){let{queryString:e=!1,groupId:n}=t;const i=(0,s.W6)(),o=function(t){let{queryString:e=!1,groupId:n}=t;if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!n)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:e,groupId:n});return[(0,c.aZ)(o),(0,r.useCallback)((t=>{if(!o)return;const e=new URLSearchParams(i.location.search);e.set(o,t),i.replace({...i.location,search:e.toString()})}),[o,i])]}function y(t){const{defaultValue:e,queryString:n=!1,groupId:i}=t,o=h(t),[s,c]=(0,r.useState)((()=>function(t){let{defaultValue:e,tabValues:n}=t;if(0===n.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(e){if(!f({value:e,tabValues:n}))throw new Error(`Docusaurus error: The <Tabs> has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${n.map((t=>t.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}const r=n.find((t=>t.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:e,tabValues:o}))),[l,p]=d({queryString:n,groupId:i}),[y,g]=function(t){let{groupId:e}=t;const n=function(t){return t?`docusaurus.tab.${t}`:null}(e),[i,o]=(0,u.Dv)(n);return[i,(0,r.useCallback)((t=>{n&&o.set(t)}),[n,o])]}({groupId:i}),m=(()=>{const t=l??y;return f({value:t,tabValues:o})?t:null})();(0,a.A)((()=>{m&&c(m)}),[m]);return{selectedValue:s,selectValue:(0,r.useCallback)((t=>{if(!f({value:t,tabValues:o}))throw new Error(`Can't select invalid tab value=${t}`);c(t),p(t),g(t)}),[p,g,o]),tabValues:o}}var g=n(4753);const m={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var _=n(4848);function k(t){let{className:e,block:n,selectedValue:r,selectValue:s,tabValues:a}=t;const c=[],{blockElementScrollPositionUntilNextRender:l}=(0,o.a_)(),u=t=>{const e=t.currentTarget,n=c.indexOf(e),i=a[n].value;i!==r&&(l(e),s(i))},p=t=>{let e=null;switch(t.key){case"Enter":u(t);break;case"ArrowRight":{const n=c.indexOf(t.currentTarget)+1;e=c[n]??c[0];break}case"ArrowLeft":{const n=c.indexOf(t.currentTarget)-1;e=c[n]??c[c.length-1];break}}e?.focus()};return(0,_.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},e),children:a.map((t=>{let{value:e,label:n,attributes:o}=t;return(0,_.jsx)("li",{role:"tab",tabIndex:r===e?0:-1,"aria-selected":r===e,ref:t=>c.push(t),onKeyDown:p,onClick:u,...o,className:(0,i.A)("tabs__item",m.tabItem,o?.className,{"tabs__item--active":r===e}),children:n??e},e)}))})}function v(t){let{lazy:e,children:n,selectedValue:o}=t;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){const t=s.find((t=>t.props.value===o));return t?(0,r.cloneElement)(t,{className:(0,i.A)("margin-top--md",t.props.className)}):null}return(0,_.jsx)("div",{className:"margin-top--md",children:s.map(((t,e)=>(0,r.cloneElement)(t,{key:e,hidden:t.props.value!==o})))})}function x(t){const e=y(t);return(0,_.jsxs)("div",{className:(0,i.A)("tabs-container",m.tabList),children:[(0,_.jsx)(k,{...e,...t}),(0,_.jsx)(v,{...e,...t})]})}function E(t){const e=(0,g.A)();return(0,_.jsx)(x,{...t,children:p(t.children)},String(e))}},3403:(t,e,n)=>{var r=n(6096),i=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x02\xf1\u08ee\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04","\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t","\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04","\f\t\f\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10","\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13","\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17","\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a","\x04\x1b\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e",'\t\x1e\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#',"\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04","*\t*\x04+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x04","1\t1\x042\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x04","8\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04","?\t?\x04@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x04E\tE\x04","F\tF\x04G\tG\x04H\tH\x04I\tI\x04J\tJ\x04K\tK\x04L\tL\x04","M\tM\x04N\tN\x04O\tO\x04P\tP\x04Q\tQ\x04R\tR\x04S\tS\x04","T\tT\x04U\tU\x04V\tV\x04W\tW\x04X\tX\x04Y\tY\x04Z\tZ\x04","[\t[\x04\\\t\\\x04]\t]\x04^\t^\x04_\t_\x04`\t`\x04a\ta\x04","b\tb\x04c\tc\x04d\td\x04e\te\x04f\tf\x04g\tg\x04h\th\x04","i\ti\x04j\tj\x04k\tk\x04l\tl\x04m\tm\x04n\tn\x04o\to\x04","p\tp\x04q\tq\x04r\tr\x04s\ts\x04t\tt\x04u\tu\x04v\tv\x04","w\tw\x04x\tx\x04y\ty\x04z\tz\x04{\t{\x04|\t|\x04}\t}\x04","~\t~\x04\x7f\t\x7f\x04\x80\t\x80\x04\x81\t\x81\x04","\x82\t\x82\x04\x83\t\x83\x04\x84\t\x84\x04\x85\t","\x85\x04\x86\t\x86\x04\x87\t\x87\x04\x88\t\x88\x04","\x89\t\x89\x04\x8a\t\x8a\x04\x8b\t\x8b\x04\x8c\t","\x8c\x04\x8d\t\x8d\x04\x8e\t\x8e\x04\x8f\t\x8f\x04","\x90\t\x90\x04\x91\t\x91\x04\x92\t\x92\x04\x93\t","\x93\x04\x94\t\x94\x04\x95\t\x95\x04\x96\t\x96\x04","\x97\t\x97\x04\x98\t\x98\x04\x99\t\x99\x04\x9a\t","\x9a\x04\x9b\t\x9b\x04\x9c\t\x9c\x04\x9d\t\x9d\x04","\x9e\t\x9e\x04\x9f\t\x9f\x04\xa0\t\xa0\x04\xa1\t","\xa1\x04\xa2\t\xa2\x04\xa3\t\xa3\x04\xa4\t\xa4\x04","\xa5\t\xa5\x04\xa6\t\xa6\x04\xa7\t\xa7\x04\xa8\t","\xa8\x04\xa9\t\xa9\x04\xaa\t\xaa\x04\xab\t\xab\x04","\xac\t\xac\x04\xad\t\xad\x04\xae\t\xae\x04\xaf\t","\xaf\x04\xb0\t\xb0\x04\xb1\t\xb1\x04\xb2\t\xb2\x04","\xb3\t\xb3\x04\xb4\t\xb4\x04\xb5\t\xb5\x04\xb6\t","\xb6\x04\xb7\t\xb7\x04\xb8\t\xb8\x04\xb9\t\xb9\x04","\xba\t\xba\x04\xbb\t\xbb\x04\xbc\t\xbc\x04\xbd\t","\xbd\x04\xbe\t\xbe\x04\xbf\t\xbf\x04\xc0\t\xc0\x04","\xc1\t\xc1\x04\xc2\t\xc2\x04\xc3\t\xc3\x04\xc4\t","\xc4\x04\xc5\t\xc5\x04\xc6\t\xc6\x04\xc7\t\xc7\x04","\xc8\t\xc8\x04\xc9\t\xc9\x04\xca\t\xca\x04\xcb\t","\xcb\x04\xcc\t\xcc\x04\xcd\t\xcd\x04\xce\t\xce\x04","\xcf\t\xcf\x04\xd0\t\xd0\x04\xd1\t\xd1\x04\xd2\t","\xd2\x04\xd3\t\xd3\x04\xd4\t\xd4\x04\xd5\t\xd5\x04","\xd6\t\xd6\x04\xd7\t\xd7\x04\xd8\t\xd8\x04\xd9\t","\xd9\x04\xda\t\xda\x04\xdb\t\xdb\x04\xdc\t\xdc\x04","\xdd\t\xdd\x04\xde\t\xde\x04\xdf\t\xdf\x04\xe0\t","\xe0\x04\xe1\t\xe1\x04\xe2\t\xe2\x04\xe3\t\xe3\x04","\xe4\t\xe4\x04\xe5\t\xe5\x04\xe6\t\xe6\x04\xe7\t","\xe7\x04\xe8\t\xe8\x04\xe9\t\xe9\x04\xea\t\xea\x04","\xeb\t\xeb\x04\xec\t\xec\x04\xed\t\xed\x04\xee\t","\xee\x04\xef\t\xef\x04\xf0\t\xf0\x04\xf1\t\xf1\x04","\xf2\t\xf2\x03\x02\x03\x02\x03\x03\x03\x03\x03","\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03\x06\x03","\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\n\x03\n\x03","\v\x03\v\x03\v\x03\f\x03\f\x03\f\x03\r\x03","\r\x03\r\x03\x0e\x03\x0e\x03\x0f\x03\x0f\x03\x10","\x03\x10\x03\x11\x03\x11\x03\x12\x03\x12\x03\x13","\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15\x03\x15","\x03\x15\x03\x16\x03\x16\x03\x17\x03\x17\x03\x17","\x03\x17\x03\x17\x03\x18\x03\x18\x03\x18\x03\x19","\x03\x19\x03\x19\x03\x19\x03\x19\x03\x1a\x03\x1a","\x03\x1a\x03\x1a\x03\x1a\x03\x1b\x03\x1b\x03\x1b","\x03\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03\x1c","\x03\x1c\x03\x1c\x03\x1d\x03\x1d\x03\x1d\x03\x1d","\x03\x1d\x03\x1d\x03\x1d\x03\x1d\x03\x1d\x03\x1d","\x03\x1d\x03\x1d\x03\x1d\x03\x1e\x03\x1e\x03\x1e","\x03\x1f\x03\x1f\x03\x1f\x03\x1f\x03\x1f\x03 ","\x03 \x03 \x03 \x03 \x03!\x03!\x03!\x03!\x03!\x03",'"\x03"\x03"\x03"\x03"\x03"\x03"\x03"\x03"\x03',"#\x03#\x03#\x03#\x03#\x03#\x03#\x03$\x03$\x03$\x03","%\x03%\x03%\x03%\x03&\x03&\x03&\x03'\x03'\x03'","\x03'\x03(\x03(\x03(\x03(\x03)\x03)\x03)\x03)\x03",")\x03)\x03)\x03)\x03*\x03*\x03*\x03+\x03+\x03+\x03","+\x03+\x03+\x03+\x03,\x03,\x03,\x03,\x03,\x03-\x03","-\x03-\x03-\x03-\x03-\x03-\x03.\x03.\x03.\x03/\x03","/\x03/\x03/\x03/\x03/\x030\x030\x030\x030\x030\x03","1\x031\x031\x031\x031\x031\x031\x031\x032\x032\x03","2\x032\x032\x032\x032\x032\x032\x032\x033\x033\x03","3\x033\x033\x034\x034\x034\x034\x034\x034\x034\x03","4\x035\x035\x035\x035\x035\x035\x035\x035\x035\x03","6\x036\x036\x036\x036\x036\x036\x037\x037\x037\x03","7\x037\x037\x038\x038\x038\x038\x038\x038\x038\x03","8\x038\x038\x039\x039\x039\x03:\x03:\x03:\x03:\x03",":\x03:\x03:\x03;\x03;\x03;\x03;\x03;\x03;\x03;\x03",";\x03;\x03;\x03<\x03<\x03<\x03<\x03<\x03<\x03<\x03","<\x03<\x03<\x03=\x03=\x03=\x03=\x03>\x03>\x03>\x03",">\x03>\x03?\x03?\x03?\x03?\x03?\x03?\x03?\x03?\x03","?\x03?\x03?\x03@\x03@\x03@\x03@\x03@\x03@\x03A\x03","A\x03A\x03B\x03B\x03B\x03B\x03B\x03C\x03C\x03C\x03","C\x03D\x03D\x03D\x03D\x03D\x03E\x03E\x03E\x03E\x03","F\x03F\x03F\x03F\x03G\x03G\x03G\x03G\x03G\x03G\x03","H\x03H\x03H\x03H\x03H\x03I\x03I\x03I\x03I\x03I\x03","I\x03I\x03I\x03J\x03J\x03J\x03J\x03K\x03K\x03K\x03","K\x03L\x03L\x03L\x03M\x03M\x03M\x03M\x03N\x03N\x03","N\x03N\x03N\x03N\x03O\x03O\x03O\x03O\x03O\x03O\x03","P\x03P\x03P\x03P\x03P\x03P\x03Q\x03Q\x03Q\x03Q\x03","R\x03R\x03R\x03R\x03R\x03R\x03R\x03S\x03S\x03S\x03","T\x03T\x03T\x03T\x03T\x03U\x03U\x03U\x03U\x03U\x03","U\x03V\x03V\x03V\x03V\x03V\x03V\x03W\x03W\x03W\x03","W\x03W\x03W\x03W\x03X\x03X\x03X\x03X\x03Y\x03Y\x03","Y\x03Y\x03Z\x03Z\x03Z\x03Z\x03Z\x03Z\x03Z\x03[\x03","[\x03[\x03[\x03[\x03[\x03\\\x03\\\x03\\\x03\\\x03","\\\x03\\\x03\\\x03\\\x03\\\x03\\\x03\\\x03]\x03]\x03","]\x03]\x03]\x03]\x03]\x03]\x03^\x03^\x03^\x03^\x03","^\x03^\x03^\x03^\x03^\x03^\x03_\x03_\x03_\x03_\x03","_\x03_\x03_\x03`\x03`\x03`\x03`\x03`\x03`\x03a\x03","a\x03a\x03a\x03b\x03b\x03b\x03b\x03b\x03b\x03b\x03","b\x03b\x03b\x03b\x03b\x03b\x03b\x03c\x03c\x03c\x03","c\x03c\x03c\x03d\x03d\x03d\x03d\x03d\x03d\x03d\x03","d\x03d\x03d\x03d\x03d\x03d\x03d\x03d\x03d\x03d\x03","e\x03e\x03e\x03e\x03e\x03f\x03f\x03f\x03f\x03g\x03","g\x03g\x03g\x03g\x03g\x03g\x03g\x03g\x03g\x03h\x03","h\x03i\x03i\x03i\x03i\x03i\x03i\x03i\x03i\x03j\x03","j\x03j\x03j\x03j\x03j\x03j\x03j\x03j\x03j\x03j\x03","j\x03k\x03k\x03k\x03k\x03k\x03k\x03k\x03k\x03k\x03","k\x03k\x03k\x03l\x03l\x03l\x03l\x03l\x03l\x03l\x03","l\x03l\x03m\x03m\x03m\x03m\x03m\x03n\x03n\x03n\x03","n\x03n\x03n\x03n\x03n\x03n\x03n\x03o\x03o\x03o\x03","o\x03o\x03o\x03o\x03o\x03p\x03p\x03p\x03p\x03p\x03","p\x03p\x03p\x03p\x03q\x03q\x03q\x03q\x03q\x03q\x03","q\x03r\x03r\x03r\x03s\x03s\x03s\x03s\x03s\x03s\x03","s\x03s\x03s\x03s\x03t\x03t\x03t\x03t\x03t\x03t\x03","t\x03t\x03t\x03t\x03t\x03t\x03t\x03u\x03u\x03u\x03","u\x03u\x03u\x03u\x03u\x03v\x03v\x03v\x03v\x03v\x03","w\x03w\x03w\x03w\x03x\x03x\x03x\x03x\x03x\x03x\x03","x\x03x\x03x\x03x\x03x\x03x\x03x\x03y\x03y\x03y\x03","y\x03y\x03y\x03z\x03z\x03z\x03z\x03z\x03z\x03{\x03","{\x03{\x03{\x03{\x03{\x03|\x03|\x03|\x03|\x03|\x03","|\x03|\x03|\x03}\x03}\x03}\x03}\x03}\x03~\x03~\x03","~\x03~\x03~\x03~\x03\x7f\x03\x7f\x03\x7f\x03\x7f","\x03\x7f\x03\x80\x03\x80\x03\x80\x03\x80\x03\x80","\x03\x80\x03\x80\x03\x81\x03\x81\x03\x81\x03\x81","\x03\x82\x03\x82\x03\x82\x03\x82\x03\x82\x03\x82","\x03\x82\x03\x82\x03\x83\x03\x83\x03\x83\x03\x83","\x03\x83\x03\x83\x03\x83\x03\x83\x03\x83\x03\x83","\x03\x83\x03\x84\x03\x84\x03\x84\x03\x84\x03\x84","\x03\x84\x03\x84\x03\x84\x03\x84\x03\x84\x03\x84","\x03\x84\x03\x85\x03\x85\x03\x85\x03\x85\x03\x85","\x03\x85\x03\x85\x03\x85\x03\x86\x03\x86\x03\x86","\x03\x86\x03\x86\x03\x86\x03\x86\x03\x86\x03\x86","\x03\x87\x03\x87\x03\x87\x03\x87\x03\x87\x03\x87","\x03\x88\x03\x88\x03\x88\x03\x88\x03\x88\x03\x88","\x03\x88\x03\x89\x03\x89\x03\x89\x03\x89\x03\x89","\x03\x89\x03\x89\x03\x8a\x03\x8a\x03\x8a\x03\x8a","\x03\x8a\x03\x8a\x03\x8a\x03\x8a\x03\x8a\x03\x8a","\x03\x8a\x03\x8a\x03\x8b\x03\x8b\x03\x8b\x03\x8b","\x03\x8b\x03\x8b\x03\x8b\x03\x8b\x03\x8b\x03\x8b","\x03\x8b\x03\x8c\x03\x8c\x03\x8c\x03\x8c\x03\x8d","\x03\x8d\x03\x8d\x03\x8d\x03\x8d\x03\x8e\x03\x8e","\x03\x8e\x03\x8e\x03\x8e\x03\x8e\x03\x8e\x03\x8e","\x03\x8e\x03\x8e\x03\x8e\x03\x8e\x03\x8e\x03\x8e","\x03\x8e\x03\x8e\x03\x8f\x03\x8f\x03\x8f\x03\x8f","\x03\x8f\x03\x90\x03\x90\x03\x90\x03\x90\x03\x90","\x03\x90\x03\x90\x03\x90\x03\x90\x03\x90\x03\x91","\x03\x91\x03\x91\x03\x91\x03\x91\x03\x91\x03\x91","\x03\x91\x03\x91\x03\x91\x03\x92\x03\x92\x03\x92","\x03\x92\x03\x92\x03\x92\x03\x92\x03\x92\x03\x92","\x03\x92\x03\x93\x03\x93\x03\x93\x03\x93\x03\x93","\x03\x93\x03\x93\x03\x93\x03\x93\x03\x93\x03\x94","\x03\x94\x03\x94\x03\x94\x03\x94\x03\x95\x03\x95","\x03\x95\x03\x95\x03\x95\x03\x95\x03\x96\x03\x96","\x03\x96\x03\x96\x03\x96\x03\x96\x03\x96\x03\x96","\x03\x97\x03\x97\x03\x97\x03\x97\x03\x97\x03\x97","\x03\x98\x03\x98\x03\x98\x03\x98\x03\x98\x03\x98","\x03\x98\x03\x98\x03\x98\x03\x98\x03\x98\x03\x98","\x03\x98\x03\x98\x03\x98\x03\x98\x03\x98\x03\x99","\x03\x99\x03\x99\x03\x99\x03\x99\x03\x99\x03\x99","\x03\x99\x03\x99\x03\x99\x03\x99\x03\x99\x03\x99","\x03\x99\x03\x9a\x03\x9a\x03\x9a\x03\x9a\x03\x9a","\x03\x9a\x03\x9a\x03\x9a\x03\x9a\x03\x9a\x03\x9a","\x03\x9a\x03\x9a\x03\x9a\x03\x9b\x03\x9b\x03\x9b","\x03\x9b\x03\x9b\x03\x9b\x03\x9b\x03\x9b\x03\x9b","\x03\x9b\x03\x9c\x03\x9c\x03\x9c\x03\x9c\x03\x9c","\x03\x9c\x03\x9c\x03\x9c\x03\x9c\x03\x9d\x03\x9d","\x03\x9d\x03\x9d\x03\x9d\x03\x9d\x03\x9d\x03\x9d","\x03\x9d\x03\x9d\x03\x9d\x03\x9d\x03\x9e\x03\x9e","\x03\x9e\x03\x9e\x03\x9e\x03\x9e\x03\x9e\x03\x9e","\x03\x9e\x03\x9e\x03\x9f\x03\x9f\x03\x9f\x03\x9f","\x03\x9f\x03\x9f\x03\x9f\x03\x9f\x03\xa0\x03\xa0","\x03\xa0\x03\xa0\x03\xa0\x03\xa1\x03\xa1\x03\xa1","\x03\xa1\x03\xa1\x03\xa1\x03\xa1\x03\xa1\x03\xa1","\x03\xa1\x03\xa1\x03\xa1\x03\xa2\x03\xa2\x03\xa2","\x03\xa2\x03\xa2\x03\xa2\x03\xa2\x03\xa3\x03\xa3","\x03\xa3\x03\xa3\x03\xa3\x03\xa3\x03\xa3\x03\xa4","\x03\xa4\x03\xa4\x03\xa4\x03\xa4\x03\xa5\x03\xa5","\x03\xa5\x03\xa5\x03\xa5\x03\xa5\x03\xa5\x03\xa5","\x03\xa6\x03\xa6\x03\xa6\x03\xa6\x03\xa6\x03\xa6","\x03\xa7\x03\xa7\x03\xa7\x03\xa7\x03\xa7\x03\xa8","\x03\xa8\x03\xa8\x03\xa8\x03\xa8\x03\xa8\x03\xa8","\x03\xa9\x03\xa9\x03\xa9\x03\xa9\x03\xa9\x03\xa9","\x03\xa9\x03\xa9\x03\xa9\x03\xaa\x03\xaa\x03\xaa","\x03\xaa\x03\xaa\x03\xab\x03\xab\x03\xab\x03\xac","\x03\xac\x03\xac\x03\xad\x03\xad\x03\xad\x03\xad","\x03\xad\x03\xad\x03\xad\x03\xad\x03\xad\x03\xad","\x03\xae\x03\xae\x03\xae\x03\xae\x03\xae\x03\xae","\x03\xae\x03\xaf\x03\xaf\x03\xaf\x03\xb0\x03\xb0","\x03\xb0\x03\xb0\x03\xb0\x03\xb1\x03\xb1\x03\xb1","\x03\xb1\x03\xb1\x03\xb2\x03\xb2\x03\xb2\x03\xb2","\x03\xb2\x03\xb2\x03\xb2\x03\xb2\x03\xb2\x03\xb2","\x03\xb2\x03\xb3\x03\xb3\x03\xb3\x03\xb3\x03\xb3","\x03\xb3\x03\xb3\x03\xb4\x03\xb4\x03\xb4\x03\xb4","\x03\xb4\x03\xb4\x03\xb5\x03\xb5\x03\xb5\x03\xb5","\x03\xb5\x03\xb5\x03\xb6\x03\xb6\x03\xb6\x03\xb6","\x03\xb6\x03\xb6\x03\xb6\x03\xb6\x03\xb7\x03\xb7","\x03\xb7\x03\xb7\x03\xb7\x03\xb7\x03\xb7\x03\xb8","\x03\xb8\x03\xb8\x03\xb8\x03\xb8\x03\xb8\x03\xb8","\x03\xb8\x03\xb8\x03\xb8\x03\xb8\x03\xb9\x03\xb9","\x03\xb9\x03\xb9\x03\xb9\x03\xb9\x03\xb9\x03\xb9","\x03\xb9\x03\xb9\x03\xba\x03\xba\x03\xba\x03\xba","\x03\xba\x03\xba\x03\xba\x03\xba\x03\xba\x03\xba","\x03\xba\x03\xbb\x03\xbb\x03\xbb\x03\xbb\x03\xbb","\x03\xbb\x03\xbb\x03\xbb\x03\xbb\x03\xbb\x03\xbc","\x03\xbc\x03\xbc\x03\xbc\x03\xbc\x03\xbc\x03\xbc","\x03\xbc\x03\xbc\x03\xbc\x03\xbd\x03\xbd\x03\xbd","\x03\xbd\x03\xbd\x03\xbd\x03\xbd\x03\xbd\x03\xbe","\x03\xbe\x03\xbe\x03\xbe\x03\xbe\x03\xbe\x03\xbe","\x03\xbf\x03\xbf\x03\xbf\x03\xbf\x03\xbf\x03\xbf","\x03\xbf\x03\xbf\x03\xbf\x03\xc0\x03\xc0\x03\xc0","\x03\xc0\x03\xc0\x03\xc0\x03\xc0\x03\xc0\x03\xc1","\x03\xc1\x03\xc1\x03\xc1\x03\xc1\x03\xc1\x03\xc2","\x03\xc2\x03\xc2\x03\xc2\x03\xc2\x03\xc2\x03\xc2","\x03\xc2\x03\xc2\x03\xc2\x03\xc2\x03\xc2\x03\xc3","\x03\xc3\x03\xc3\x03\xc3\x03\xc3\x03\xc3\x03\xc3","\x03\xc3\x03\xc4\x03\xc4\x03\xc4\x03\xc4\x03\xc5","\x03\xc5\x03\xc5\x03\xc5\x03\xc5\x03\xc5\x03\xc6","\x03\xc6\x03\xc6\x03\xc6\x03\xc6\x03\xc6\x03\xc6","\x03\xc6\x03\xc6\x03\xc6\x03\xc6\x03\xc6\x03\xc7","\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x03\xc7","\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x03\xc7","\x03\xc7\x03\xc7\x03\xc7\x03\xc7\x03\xc8\x03\xc8","\x03\xc8\x03\xc8\x03\xc8\x03\xc8\x03\xc8\x03\xc9","\x03\xc9\x03\xc9\x03\xc9\x03\xc9\x03\xc9\x03\xc9","\x03\xc9\x03\xc9\x03\xca\x03\xca\x03\xca\x03\xca","\x03\xca\x03\xca\x03\xca\x03\xca\x03\xca\x03\xcb","\x03\xcb\x03\xcb\x03\xcb\x03\xcb\x03\xcc\x03\xcc","\x03\xcc\x03\xcc\x03\xcc\x03\xcc\x03\xcd\x03\xcd","\x03\xcd\x03\xcd\x03\xcd\x03\xcd\x03\xcd\x03\xcd","\x03\xcd\x03\xcd\x03\xcd\x03\xcd\x03\xcd\x03\xce","\x03\xce\x03\xce\x03\xce\x03\xce\x03\xce\x03\xce","\x03\xce\x03\xce\x03\xce\x03\xcf\x03\xcf\x03\xcf","\x03\xcf\x03\xcf\x03\xcf\x03\xd0\x03\xd0\x03\xd0","\x03\xd0\x03\xd0\x03\xd0\x03\xd0\x03\xd1\x03\xd1","\x03\xd1\x03\xd1\x03\xd1\x03\xd2\x03\xd2\x03\xd2","\x03\xd2\x03\xd2\x03\xd2\x03\xd2\x03\xd2\x03\xd2","\x03\xd2\x03\xd2\x03\xd2\x03\xd2\x03\xd2\x03\xd3","\x03\xd3\x03\xd3\x03\xd3\x03\xd3\x03\xd3\x03\xd3","\x03\xd3\x03\xd3\x03\xd3\x03\xd3\x03\xd3\x03\xd3","\x03\xd3\x03\xd3\x03\xd3\x03\xd3\x03\xd4\x03\xd4","\x03\xd4\x03\xd4\x03\xd4\x03\xd4\x03\xd4\x03\xd4","\x03\xd5\x03\xd5\x03\xd5\x03\xd5\x03\xd5\x03\xd5","\x03\xd5\x03\xd5\x03\xd5\x03\xd5\x03\xd5\x03\xd5","\x03\xd5\x03\xd5\x03\xd5\x03\xd5\x03\xd6\x03\xd6","\x03\xd6\x03\xd6\x03\xd6\x03\xd6\x03\xd6\x03\xd6","\x03\xd6\x03\xd6\x03\xd6\x03\xd6\x03\xd6\x03\xd6","\x03\xd6\x03\xd6\x03\xd7\x03\xd7\x03\xd7\x03\xd7","\x03\xd7\x03\xd7\x03\xd7\x03\xd7\x03\xd7\x03\xd8","\x03\xd8\x03\xd8\x03\xd8\x03\xd8\x03\xd8\x03\xd8","\x03\xd8\x03\xd8\x03\xd9\x03\xd9\x03\xd9\x03\xd9","\x03\xd9\x03\xd9\x03\xd9\x03\xd9\x03\xd9\x03\xda","\x03\xda\x03\xda\x03\xda\x03\xda\x03\xda\x03\xda","\x03\xda\x03\xda\x03\xda\x03\xda\x03\xda\x03\xda","\x03\xdb\x03\xdb\x03\xdb\x03\xdb\x03\xdb\x03\xdb","\x03\xdb\x03\xdb\x03\xdb\x03\xdb\x03\xdb\x03\xdb","\x03\xdb\x03\xdc\x03\xdc\x03\xdc\x03\xdc\x03\xdc","\x03\xdc\x03\xdc\x03\xdc\x03\xdc\x03\xdc\x03\xdc","\x03\xdc\x03\xdd\x03\xdd\x03\xdd\x03\xdd\x03\xdd","\x03\xdd\x03\xdd\x03\xdd\x03\xdd\x03\xdd\x03\xdd","\x03\xdd\x03\xde\x03\xde\x03\xde\x03\xde\x03\xde","\x03\xde\x03\xde\x03\xde\x03\xde\x03\xde\x03\xde","\x03\xdf\x03\xdf\x03\xdf\x03\xdf\x03\xdf\x03\xdf","\x03\xdf\x03\xdf\x03\xdf\x03\xdf\x03\xdf\x03\xdf","\x03\xdf\x03\xe0\x03\xe0\x03\xe0\x03\xe0\x03\xe0","\x03\xe0\x03\xe0\x03\xe1\x03\xe1\x03\xe1\x03\xe1","\x03\xe1\x03\xe1\x03\xe1\x03\xe1\x03\xe1\x03\xe1","\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2","\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2","\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2","\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2\x03\xe2","\x03\xe2\x03\xe2\x03\xe3\x03\xe3\x03\xe3\x03\xe3","\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3","\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3","\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3\x03\xe3","\x03\xe3\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4","\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4","\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4","\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4","\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4\x03\xe4","\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5","\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5","\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5","\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5\x03\xe5","\x03\xe5\x03\xe5\x03\xe6\x03\xe6\x03\xe6\x03\xe6","\x03\xe7\x03\xe7\x03\xe7\x03\xe7\x03\xe7\x03\xe7","\x03\xe7\x03\xe7\x03\xe7\x03\xe8\x03\xe8\x03\xe9","\x03\xe9\x03\xea\x05\xea\u0891\n\xea\x03\xea\x06","\xea\u0894\n\xea\r\xea\x0e\xea\u0895\x03\xeb\x03\xeb","\x03\xeb\x07\xeb\u089b\n\xeb\f\xeb\x0e\xeb\u089e\v","\xeb\x03\xec\x03\xec\x03\xec\x03\xec\x03\xec\x03","\xec\x03\xec\x03\xec\x03\xec\x05\xec\u08a9\n\xec","\x03\xed\x03\xed\x07\xed\u08ad\n\xed\f\xed\x0e\xed","\u08b0\v\xed\x03\xed\x03\xed\x03\xee\x03\xee\x07","\xee\u08b6\n\xee\f\xee\x0e\xee\u08b9\v\xee\x03\xee","\x03\xee\x06\xee\u08bd\n\xee\r\xee\x0e\xee\u08be\x03","\xee\x03\xee\x07\xee\u08c3\n\xee\f\xee\x0e\xee\u08c6","\v\xee\x03\xee\x05\xee\u08c9\n\xee\x03\xef\x06","\xef\u08cc\n\xef\r\xef\x0e\xef\u08cd\x03\xef\x03\xef","\x03\xf0\x03\xf0\x03\xf1\x03\xf1\x03\xf1\x03\xf1","\x07\xf1\u08d8\n\xf1\f\xf1\x0e\xf1\u08db\v\xf1\x03","\xf1\x03\xf1\x03\xf1\x03\xf1\x03\xf1\x03\xf2\x03","\xf2\x03\xf2\x03\xf2\x07\xf2\u08e6\n\xf2\f\xf2\x0e","\xf2\u08e9\v\xf2\x03\xf2\x03\xf2\x03\xf2\x03\xf2","\x05\u08c4\u08d9\u08e7\x02\xf3\x03\x03\x05\x04\x07\x05","\t\x06\v\x07\r\b\x0f\t\x11\n\x13\v\x15\f\x17\r","\x19\x0e\x1b\x0f\x1d\x10\x1f\x11!\x12#\x13%\x14","'\x15)\x16+\x17-\x18/\x191\x1a3\x1b5\x1c7\x1d9\x1e",";\x1f= ?!A\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u<","w=y>{?}@\x7fA\x81B\x83C\x85D\x87E\x89F\x8bG\x8dH\x8f","I\x91J\x93K\x95L\x97M\x99N\x9bO\x9dP\x9fQ\xa1R\xa3","S\xa5T\xa7U\xa9V\xabW\xadX\xafY\xb1Z\xb3[\xb5\\\xb7","]\xb9^\xbb_\xbd`\xbfa\xc1b\xc3c\xc5d\xc7e\xc9f\xcb","g\xcdh\xcfi\xd1j\xd3k\xd5l\xd7m\xd9n\xdbo\xddp\xdf","q\xe1r\xe3s\xe5t\xe7u\xe9v\xebw\xedx\xefy\xf1z\xf3","{\xf5|\xf7}\xf9~\xfb\x7f\xfd\x80\xff\x81\u0101\x82","\u0103\x83\u0105\x84\u0107\x85\u0109\x86\u010b\x87\u010d\x88","\u010f\x89\u0111\x8a\u0113\x8b\u0115\x8c\u0117\x8d\u0119\x8e","\u011b\x8f\u011d\x90\u011f\x91\u0121\x92\u0123\x93\u0125\x94","\u0127\x95\u0129\x96\u012b\x97\u012d\x98\u012f\x99\u0131\x9a","\u0133\x9b\u0135\x9c\u0137\x9d\u0139\x9e\u013b\x9f\u013d\xa0","\u013f\xa1\u0141\xa2\u0143\xa3\u0145\xa4\u0147\xa5\u0149\xa6","\u014b\xa7\u014d\xa8\u014f\xa9\u0151\xaa\u0153\xab\u0155\xac","\u0157\xad\u0159\xae\u015b\xaf\u015d\xb0\u015f\xb1\u0161\xb2","\u0163\xb3\u0165\xb4\u0167\xb5\u0169\xb6\u016b\xb7\u016d\xb8","\u016f\xb9\u0171\xba\u0173\xbb\u0175\xbc\u0177\xbd\u0179\xbe","\u017b\xbf\u017d\xc0\u017f\xc1\u0181\xc2\u0183\xc3\u0185\xc4","\u0187\xc5\u0189\xc6\u018b\xc7\u018d\xc8\u018f\xc9\u0191\xca","\u0193\xcb\u0195\xcc\u0197\xcd\u0199\xce\u019b\xcf\u019d\xd0","\u019f\xd1\u01a1\xd2\u01a3\xd3\u01a5\xd4\u01a7\xd5\u01a9\xd6","\u01ab\xd7\u01ad\xd8\u01af\xd9\u01b1\xda\u01b3\xdb\u01b5\xdc","\u01b7\xdd\u01b9\xde\u01bb\xdf\u01bd\xe0\u01bf\xe1\u01c1\xe2","\u01c3\xe3\u01c5\xe4\u01c7\xe5\u01c9\xe6\u01cb\xe7\u01cd\xe8","\u01cf\x02\u01d1\x02\u01d3\xe9\u01d5\xea\u01d7\xeb\u01d9\xec","\u01db\xed\u01dd\xee\u01df\xef\u01e1\xf0\u01e3\xf1\x03\x02","\x06\x04\x02C\\c|\x03\x02$$\x07\x02002;C\\aac|\x05\x02",'\v\f\x0e\x0f""\x02\u08f8\x02\x03\x03\x02\x02\x02',"\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02","\x02\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02","\x02\r\x03\x02\x02\x02\x02\x0f\x03\x02\x02\x02","\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02","\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02","\x02\x19\x03\x02\x02\x02\x02\x1b\x03\x02\x02\x02","\x02\x1d\x03\x02\x02\x02\x02\x1f\x03\x02\x02\x02","\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02","%\x03\x02\x02\x02\x02'\x03\x02\x02\x02\x02)\x03","\x02\x02\x02\x02+\x03\x02\x02\x02\x02-\x03\x02","\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02","\x02\x023\x03\x02\x02\x02\x025\x03\x02\x02\x02","\x027\x03\x02\x02\x02\x029\x03\x02\x02\x02\x02",";\x03\x02\x02\x02\x02=\x03\x02\x02\x02\x02?\x03","\x02\x02\x02\x02A\x03\x02\x02\x02\x02C\x03\x02","\x02\x02\x02E\x03\x02\x02\x02\x02G\x03\x02\x02","\x02\x02I\x03\x02\x02\x02\x02K\x03\x02\x02\x02","\x02M\x03\x02\x02\x02\x02O\x03\x02\x02\x02\x02","Q\x03\x02\x02\x02\x02S\x03\x02\x02\x02\x02U\x03","\x02\x02\x02\x02W\x03\x02\x02\x02\x02Y\x03\x02","\x02\x02\x02[\x03\x02\x02\x02\x02]\x03\x02\x02","\x02\x02_\x03\x02\x02\x02\x02a\x03\x02\x02\x02","\x02c\x03\x02\x02\x02\x02e\x03\x02\x02\x02\x02","g\x03\x02\x02\x02\x02i\x03\x02\x02\x02\x02k\x03","\x02\x02\x02\x02m\x03\x02\x02\x02\x02o\x03\x02","\x02\x02\x02q\x03\x02\x02\x02\x02s\x03\x02\x02","\x02\x02u\x03\x02\x02\x02\x02w\x03\x02\x02\x02","\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02\x02","}\x03\x02\x02\x02\x02\x7f\x03\x02\x02\x02\x02","\x81\x03\x02\x02\x02\x02\x83\x03\x02\x02\x02\x02","\x85\x03\x02\x02\x02\x02\x87\x03\x02\x02\x02\x02","\x89\x03\x02\x02\x02\x02\x8b\x03\x02\x02\x02\x02","\x8d\x03\x02\x02\x02\x02\x8f\x03\x02\x02\x02\x02","\x91\x03\x02\x02\x02\x02\x93\x03\x02\x02\x02\x02","\x95\x03\x02\x02\x02\x02\x97\x03\x02\x02\x02\x02","\x99\x03\x02\x02\x02\x02\x9b\x03\x02\x02\x02\x02","\x9d\x03\x02\x02\x02\x02\x9f\x03\x02\x02\x02\x02","\xa1\x03\x02\x02\x02\x02\xa3\x03\x02\x02\x02\x02","\xa5\x03\x02\x02\x02\x02\xa7\x03\x02\x02\x02\x02","\xa9\x03\x02\x02\x02\x02\xab\x03\x02\x02\x02\x02","\xad\x03\x02\x02\x02\x02\xaf\x03\x02\x02\x02\x02","\xb1\x03\x02\x02\x02\x02\xb3\x03\x02\x02\x02\x02","\xb5\x03\x02\x02\x02\x02\xb7\x03\x02\x02\x02\x02","\xb9\x03\x02\x02\x02\x02\xbb\x03\x02\x02\x02\x02","\xbd\x03\x02\x02\x02\x02\xbf\x03\x02\x02\x02\x02","\xc1\x03\x02\x02\x02\x02\xc3\x03\x02\x02\x02\x02","\xc5\x03\x02\x02\x02\x02\xc7\x03\x02\x02\x02\x02","\xc9\x03\x02\x02\x02\x02\xcb\x03\x02\x02\x02\x02","\xcd\x03\x02\x02\x02\x02\xcf\x03\x02\x02\x02\x02","\xd1\x03\x02\x02\x02\x02\xd3\x03\x02\x02\x02\x02","\xd5\x03\x02\x02\x02\x02\xd7\x03\x02\x02\x02\x02","\xd9\x03\x02\x02\x02\x02\xdb\x03\x02\x02\x02\x02","\xdd\x03\x02\x02\x02\x02\xdf\x03\x02\x02\x02\x02","\xe1\x03\x02\x02\x02\x02\xe3\x03\x02\x02\x02\x02","\xe5\x03\x02\x02\x02\x02\xe7\x03\x02\x02\x02\x02","\xe9\x03\x02\x02\x02\x02\xeb\x03\x02\x02\x02\x02","\xed\x03\x02\x02\x02\x02\xef\x03\x02\x02\x02\x02","\xf1\x03\x02\x02\x02\x02\xf3\x03\x02\x02\x02\x02","\xf5\x03\x02\x02\x02\x02\xf7\x03\x02\x02\x02\x02","\xf9\x03\x02\x02\x02\x02\xfb\x03\x02\x02\x02\x02","\xfd\x03\x02\x02\x02\x02\xff\x03\x02\x02\x02\x02","\u0101\x03\x02\x02\x02\x02\u0103\x03\x02\x02\x02\x02","\u0105\x03\x02\x02\x02\x02\u0107\x03\x02\x02\x02\x02","\u0109\x03\x02\x02\x02\x02\u010b\x03\x02\x02\x02\x02","\u010d\x03\x02\x02\x02\x02\u010f\x03\x02\x02\x02\x02","\u0111\x03\x02\x02\x02\x02\u0113\x03\x02\x02\x02\x02","\u0115\x03\x02\x02\x02\x02\u0117\x03\x02\x02\x02\x02","\u0119\x03\x02\x02\x02\x02\u011b\x03\x02\x02\x02\x02","\u011d\x03\x02\x02\x02\x02\u011f\x03\x02\x02\x02\x02","\u0121\x03\x02\x02\x02\x02\u0123\x03\x02\x02\x02\x02","\u0125\x03\x02\x02\x02\x02\u0127\x03\x02\x02\x02\x02","\u0129\x03\x02\x02\x02\x02\u012b\x03\x02\x02\x02\x02","\u012d\x03\x02\x02\x02\x02\u012f\x03\x02\x02\x02\x02","\u0131\x03\x02\x02\x02\x02\u0133\x03\x02\x02\x02\x02","\u0135\x03\x02\x02\x02\x02\u0137\x03\x02\x02\x02\x02","\u0139\x03\x02\x02\x02\x02\u013b\x03\x02\x02\x02\x02","\u013d\x03\x02\x02\x02\x02\u013f\x03\x02\x02\x02\x02","\u0141\x03\x02\x02\x02\x02\u0143\x03\x02\x02\x02\x02","\u0145\x03\x02\x02\x02\x02\u0147\x03\x02\x02\x02\x02","\u0149\x03\x02\x02\x02\x02\u014b\x03\x02\x02\x02\x02","\u014d\x03\x02\x02\x02\x02\u014f\x03\x02\x02\x02\x02","\u0151\x03\x02\x02\x02\x02\u0153\x03\x02\x02\x02\x02","\u0155\x03\x02\x02\x02\x02\u0157\x03\x02\x02\x02\x02","\u0159\x03\x02\x02\x02\x02\u015b\x03\x02\x02\x02\x02","\u015d\x03\x02\x02\x02\x02\u015f\x03\x02\x02\x02\x02","\u0161\x03\x02\x02\x02\x02\u0163\x03\x02\x02\x02\x02","\u0165\x03\x02\x02\x02\x02\u0167\x03\x02\x02\x02\x02","\u0169\x03\x02\x02\x02\x02\u016b\x03\x02\x02\x02\x02","\u016d\x03\x02\x02\x02\x02\u016f\x03\x02\x02\x02\x02","\u0171\x03\x02\x02\x02\x02\u0173\x03\x02\x02\x02\x02","\u0175\x03\x02\x02\x02\x02\u0177\x03\x02\x02\x02\x02","\u0179\x03\x02\x02\x02\x02\u017b\x03\x02\x02\x02\x02","\u017d\x03\x02\x02\x02\x02\u017f\x03\x02\x02\x02\x02","\u0181\x03\x02\x02\x02\x02\u0183\x03\x02\x02\x02\x02","\u0185\x03\x02\x02\x02\x02\u0187\x03\x02\x02\x02\x02","\u0189\x03\x02\x02\x02\x02\u018b\x03\x02\x02\x02\x02","\u018d\x03\x02\x02\x02\x02\u018f\x03\x02\x02\x02\x02","\u0191\x03\x02\x02\x02\x02\u0193\x03\x02\x02\x02\x02","\u0195\x03\x02\x02\x02\x02\u0197\x03\x02\x02\x02\x02","\u0199\x03\x02\x02\x02\x02\u019b\x03\x02\x02\x02\x02","\u019d\x03\x02\x02\x02\x02\u019f\x03\x02\x02\x02\x02","\u01a1\x03\x02\x02\x02\x02\u01a3\x03\x02\x02\x02\x02","\u01a5\x03\x02\x02\x02\x02\u01a7\x03\x02\x02\x02\x02","\u01a9\x03\x02\x02\x02\x02\u01ab\x03\x02\x02\x02\x02","\u01ad\x03\x02\x02\x02\x02\u01af\x03\x02\x02\x02\x02","\u01b1\x03\x02\x02\x02\x02\u01b3\x03\x02\x02\x02\x02","\u01b5\x03\x02\x02\x02\x02\u01b7\x03\x02\x02\x02\x02","\u01b9\x03\x02\x02\x02\x02\u01bb\x03\x02\x02\x02\x02","\u01bd\x03\x02\x02\x02\x02\u01bf\x03\x02\x02\x02\x02","\u01c1\x03\x02\x02\x02\x02\u01c3\x03\x02\x02\x02\x02","\u01c5\x03\x02\x02\x02\x02\u01c7\x03\x02\x02\x02\x02","\u01c9\x03\x02\x02\x02\x02\u01cb\x03\x02\x02\x02\x02","\u01cd\x03\x02\x02\x02\x02\u01d3\x03\x02\x02\x02\x02","\u01d5\x03\x02\x02\x02\x02\u01d7\x03\x02\x02\x02\x02","\u01d9\x03\x02\x02\x02\x02\u01db\x03\x02\x02\x02\x02","\u01dd\x03\x02\x02\x02\x02\u01df\x03\x02\x02\x02\x02","\u01e1\x03\x02\x02\x02\x02\u01e3\x03\x02\x02\x02\x03","\u01e5\x03\x02\x02\x02\x05\u01e7\x03\x02\x02\x02\x07","\u01e9\x03\x02\x02\x02\t\u01eb\x03\x02\x02\x02\v","\u01ed\x03\x02\x02\x02\r\u01ef\x03\x02\x02\x02\x0f","\u01f1\x03\x02\x02\x02\x11\u01f3\x03\x02\x02\x02\x13","\u01f5\x03\x02\x02\x02\x15\u01f7\x03\x02\x02\x02\x17","\u01fa\x03\x02\x02\x02\x19\u01fd\x03\x02\x02\x02\x1b","\u0200\x03\x02\x02\x02\x1d\u0202\x03\x02\x02\x02\x1f","\u0204\x03\x02\x02\x02!\u0206\x03\x02\x02\x02#\u0208","\x03\x02\x02\x02%\u020a\x03\x02\x02\x02'\u020d\x03","\x02\x02\x02)\u020f\x03\x02\x02\x02+\u0212\x03\x02","\x02\x02-\u0214\x03\x02\x02\x02/\u0219\x03\x02\x02","\x021\u021c\x03\x02\x02\x023\u0221\x03\x02\x02\x02","5\u0226\x03\x02\x02\x027\u022c\x03\x02\x02\x029\u0231","\x03\x02\x02\x02;\u023e\x03\x02\x02\x02=\u0241\x03","\x02\x02\x02?\u0246\x03\x02\x02\x02A\u024b\x03\x02","\x02\x02C\u0250\x03\x02\x02\x02E\u0259\x03\x02\x02","\x02G\u0260\x03\x02\x02\x02I\u0263\x03\x02\x02\x02","K\u0267\x03\x02\x02\x02M\u026a\x03\x02\x02\x02O\u026e","\x03\x02\x02\x02Q\u0272\x03\x02\x02\x02S\u027a\x03","\x02\x02\x02U\u027d\x03\x02\x02\x02W\u0284\x03\x02","\x02\x02Y\u0289\x03\x02\x02\x02[\u0290\x03\x02\x02","\x02]\u0293\x03\x02\x02\x02_\u0299\x03\x02\x02\x02","a\u029e\x03\x02\x02\x02c\u02a6\x03\x02\x02\x02e\u02b0","\x03\x02\x02\x02g\u02b5\x03\x02\x02\x02i\u02bd\x03","\x02\x02\x02k\u02c6\x03\x02\x02\x02m\u02cd\x03\x02","\x02\x02o\u02d3\x03\x02\x02\x02q\u02dd\x03\x02\x02","\x02s\u02e0\x03\x02\x02\x02u\u02e7\x03\x02\x02\x02","w\u02f1\x03\x02\x02\x02y\u02fb\x03\x02\x02\x02{\u02ff","\x03\x02\x02\x02}\u0304\x03\x02\x02\x02\x7f\u030f","\x03\x02\x02\x02\x81\u0315\x03\x02\x02\x02\x83\u0318","\x03\x02\x02\x02\x85\u031d\x03\x02\x02\x02\x87\u0321","\x03\x02\x02\x02\x89\u0326\x03\x02\x02\x02\x8b\u032a","\x03\x02\x02\x02\x8d\u032e\x03\x02\x02\x02\x8f\u0334","\x03\x02\x02\x02\x91\u0339\x03\x02\x02\x02\x93\u0341","\x03\x02\x02\x02\x95\u0345\x03\x02\x02\x02\x97\u0349","\x03\x02\x02\x02\x99\u034c\x03\x02\x02\x02\x9b\u0350","\x03\x02\x02\x02\x9d\u0356\x03\x02\x02\x02\x9f\u035c","\x03\x02\x02\x02\xa1\u0362\x03\x02\x02\x02\xa3\u0366","\x03\x02\x02\x02\xa5\u036d\x03\x02\x02\x02\xa7\u0370","\x03\x02\x02\x02\xa9\u0375\x03\x02\x02\x02\xab\u037b","\x03\x02\x02\x02\xad\u0381\x03\x02\x02\x02\xaf\u0388","\x03\x02\x02\x02\xb1\u038c\x03\x02\x02\x02\xb3\u0390","\x03\x02\x02\x02\xb5\u0397\x03\x02\x02\x02\xb7\u039d","\x03\x02\x02\x02\xb9\u03a8\x03\x02\x02\x02\xbb\u03b0","\x03\x02\x02\x02\xbd\u03ba\x03\x02\x02\x02\xbf\u03c1","\x03\x02\x02\x02\xc1\u03c7\x03\x02\x02\x02\xc3\u03cb","\x03\x02\x02\x02\xc5\u03d9\x03\x02\x02\x02\xc7\u03df","\x03\x02\x02\x02\xc9\u03f0\x03\x02\x02\x02\xcb\u03f5","\x03\x02\x02\x02\xcd\u03f9\x03\x02\x02\x02\xcf\u0403","\x03\x02\x02\x02\xd1\u0405\x03\x02\x02\x02\xd3\u040d","\x03\x02\x02\x02\xd5\u0419\x03\x02\x02\x02\xd7\u0425","\x03\x02\x02\x02\xd9\u042e\x03\x02\x02\x02\xdb\u0433","\x03\x02\x02\x02\xdd\u043d\x03\x02\x02\x02\xdf\u0445","\x03\x02\x02\x02\xe1\u044e\x03\x02\x02\x02\xe3\u0455","\x03\x02\x02\x02\xe5\u0458\x03\x02\x02\x02\xe7\u0462","\x03\x02\x02\x02\xe9\u046f\x03\x02\x02\x02\xeb\u0477","\x03\x02\x02\x02\xed\u047c\x03\x02\x02\x02\xef\u0480","\x03\x02\x02\x02\xf1\u048d\x03\x02\x02\x02\xf3\u0493","\x03\x02\x02\x02\xf5\u0499\x03\x02\x02\x02\xf7\u049f","\x03\x02\x02\x02\xf9\u04a7\x03\x02\x02\x02\xfb\u04ac","\x03\x02\x02\x02\xfd\u04b2\x03\x02\x02\x02\xff\u04b7","\x03\x02\x02\x02\u0101\u04be\x03\x02\x02\x02\u0103\u04c2","\x03\x02\x02\x02\u0105\u04ca\x03\x02\x02\x02\u0107\u04d5","\x03\x02\x02\x02\u0109\u04e1\x03\x02\x02\x02\u010b\u04e9","\x03\x02\x02\x02\u010d\u04f2\x03\x02\x02\x02\u010f\u04f8","\x03\x02\x02\x02\u0111\u04ff\x03\x02\x02\x02\u0113\u0506","\x03\x02\x02\x02\u0115\u0512\x03\x02\x02\x02\u0117\u051d","\x03\x02\x02\x02\u0119\u0521\x03\x02\x02\x02\u011b\u0526","\x03\x02\x02\x02\u011d\u0536\x03\x02\x02\x02\u011f\u053b","\x03\x02\x02\x02\u0121\u0545\x03\x02\x02\x02\u0123\u054f","\x03\x02\x02\x02\u0125\u0559\x03\x02\x02\x02\u0127\u0563","\x03\x02\x02\x02\u0129\u0568\x03\x02\x02\x02\u012b\u056e","\x03\x02\x02\x02\u012d\u0576\x03\x02\x02\x02\u012f\u057c","\x03\x02\x02\x02\u0131\u058d\x03\x02\x02\x02\u0133\u059b","\x03\x02\x02\x02\u0135\u05a9\x03\x02\x02\x02\u0137\u05b3","\x03\x02\x02\x02\u0139\u05bc\x03\x02\x02\x02\u013b\u05c8","\x03\x02\x02\x02\u013d\u05d2\x03\x02\x02\x02\u013f\u05da","\x03\x02\x02\x02\u0141\u05df\x03\x02\x02\x02\u0143\u05eb","\x03\x02\x02\x02\u0145\u05f2\x03\x02\x02\x02\u0147\u05f9","\x03\x02\x02\x02\u0149\u05fe\x03\x02\x02\x02\u014b\u0606","\x03\x02\x02\x02\u014d\u060c\x03\x02\x02\x02\u014f\u0611","\x03\x02\x02\x02\u0151\u0618\x03\x02\x02\x02\u0153\u0621","\x03\x02\x02\x02\u0155\u0626\x03\x02\x02\x02\u0157\u0629","\x03\x02\x02\x02\u0159\u062c\x03\x02\x02\x02\u015b\u0636","\x03\x02\x02\x02\u015d\u063d\x03\x02\x02\x02\u015f\u0640","\x03\x02\x02\x02\u0161\u0645\x03\x02\x02\x02\u0163\u064a","\x03\x02\x02\x02\u0165\u0655\x03\x02\x02\x02\u0167\u065c","\x03\x02\x02\x02\u0169\u0662\x03\x02\x02\x02\u016b\u0668","\x03\x02\x02\x02\u016d\u0670\x03\x02\x02\x02\u016f\u0677","\x03\x02\x02\x02\u0171\u0682\x03\x02\x02\x02\u0173\u068c","\x03\x02\x02\x02\u0175\u0697\x03\x02\x02\x02\u0177\u06a1","\x03\x02\x02\x02\u0179\u06ab\x03\x02\x02\x02\u017b\u06b3","\x03\x02\x02\x02\u017d\u06ba\x03\x02\x02\x02\u017f\u06c3","\x03\x02\x02\x02\u0181\u06cb\x03\x02\x02\x02\u0183\u06d1","\x03\x02\x02\x02\u0185\u06dd\x03\x02\x02\x02\u0187\u06e5","\x03\x02\x02\x02\u0189\u06e9\x03\x02\x02\x02\u018b\u06ef","\x03\x02\x02\x02\u018d\u06fb\x03\x02\x02\x02\u018f\u070c","\x03\x02\x02\x02\u0191\u0713\x03\x02\x02\x02\u0193\u071c","\x03\x02\x02\x02\u0195\u0725\x03\x02\x02\x02\u0197\u072a","\x03\x02\x02\x02\u0199\u0730\x03\x02\x02\x02\u019b\u073d","\x03\x02\x02\x02\u019d\u0747\x03\x02\x02\x02\u019f\u074d","\x03\x02\x02\x02\u01a1\u0754\x03\x02\x02\x02\u01a3\u0759","\x03\x02\x02\x02\u01a5\u0767\x03\x02\x02\x02\u01a7\u0778","\x03\x02\x02\x02\u01a9\u0780\x03\x02\x02\x02\u01ab\u0790","\x03\x02\x02\x02\u01ad\u07a0\x03\x02\x02\x02\u01af\u07a9","\x03\x02\x02\x02\u01b1\u07b2\x03\x02\x02\x02\u01b3\u07bb","\x03\x02\x02\x02\u01b5\u07c8\x03\x02\x02\x02\u01b7\u07d5","\x03\x02\x02\x02\u01b9\u07e1\x03\x02\x02\x02\u01bb\u07ed","\x03\x02\x02\x02\u01bd\u07f8\x03\x02\x02\x02\u01bf\u0805","\x03\x02\x02\x02\u01c1\u080c\x03\x02\x02\x02\u01c3\u0816","\x03\x02\x02\x02\u01c5\u0830\x03\x02\x02\x02\u01c7\u0847","\x03\x02\x02\x02\u01c9\u0864\x03\x02\x02\x02\u01cb\u087e","\x03\x02\x02\x02\u01cd\u0882\x03\x02\x02\x02\u01cf\u088b","\x03\x02\x02\x02\u01d1\u088d\x03\x02\x02\x02\u01d3\u0890","\x03\x02\x02\x02\u01d5\u0897\x03\x02\x02\x02\u01d7\u08a8","\x03\x02\x02\x02\u01d9\u08aa\x03\x02\x02\x02\u01db\u08c8","\x03\x02\x02\x02\u01dd\u08cb\x03\x02\x02\x02\u01df\u08d1","\x03\x02\x02\x02\u01e1\u08d3\x03\x02\x02\x02\u01e3\u08e1","\x03\x02\x02\x02\u01e5\u01e6\x07*\x02\x02\u01e6\x04","\x03\x02\x02\x02\u01e7\u01e8\x07+\x02\x02\u01e8\x06","\x03\x02\x02\x02\u01e9\u01ea\x07]\x02\x02\u01ea\b\x03","\x02\x02\x02\u01eb\u01ec\x07_\x02\x02\u01ec\n\x03\x02","\x02\x02\u01ed\u01ee\x07}\x02\x02\u01ee\f\x03\x02\x02","\x02\u01ef\u01f0\x07\x7f\x02\x02\u01f0\x0e\x03\x02\x02","\x02\u01f1\u01f2\x07?\x02\x02\u01f2\x10\x03\x02\x02","\x02\u01f3\u01f4\x07>\x02\x02\u01f4\x12\x03\x02\x02","\x02\u01f5\u01f6\x07@\x02\x02\u01f6\x14\x03\x02\x02","\x02\u01f7\u01f8\x07@\x02\x02\u01f8\u01f9\x07?\x02\x02","\u01f9\x16\x03\x02\x02\x02\u01fa\u01fb\x07>\x02\x02","\u01fb\u01fc\x07@\x02\x02\u01fc\x18\x03\x02\x02\x02","\u01fd\u01fe\x07>\x02\x02\u01fe\u01ff\x07?\x02\x02\u01ff","\x1a\x03\x02\x02\x02\u0200\u0201\x07-\x02\x02\u0201","\x1c\x03\x02\x02\x02\u0202\u0203\x07/\x02\x02\u0203","\x1e\x03\x02\x02\x02\u0204\u0205\x07,\x02\x02\u0205",' \x03\x02\x02\x02\u0206\u0207\x071\x02\x02\u0207"\x03',"\x02\x02\x02\u0208\u0209\x07.\x02\x02\u0209$\x03\x02","\x02\x02\u020a\u020b\x07/\x02\x02\u020b\u020c\x07@\x02","\x02\u020c&\x03\x02\x02\x02\u020d\u020e\x07<\x02\x02","\u020e(\x03\x02\x02\x02\u020f\u0210\x07<\x02\x02\u0210","\u0211\x07?\x02\x02\u0211*\x03\x02\x02\x02\u0212\u0213","\x07%\x02\x02\u0213,\x03\x02\x02\x02\u0214\u0215\x07","g\x02\x02\u0215\u0216\x07x\x02\x02\u0216\u0217\x07c\x02","\x02\u0217\u0218\x07n\x02\x02\u0218.\x03\x02\x02\x02","\u0219\u021a\x07k\x02\x02\u021a\u021b\x07h\x02\x02\u021b","0\x03\x02\x02\x02\u021c\u021d\x07v\x02\x02\u021d\u021e","\x07j\x02\x02\u021e\u021f\x07g\x02\x02\u021f\u0220\x07","p\x02\x02\u02202\x03\x02\x02\x02\u0221\u0222\x07g\x02","\x02\u0222\u0223\x07n\x02\x02\u0223\u0224\x07u\x02\x02","\u0224\u0225\x07g\x02\x02\u02254\x03\x02\x02\x02\u0226","\u0227\x07w\x02\x02\u0227\u0228\x07u\x02\x02\u0228\u0229","\x07k\x02\x02\u0229\u022a\x07p\x02\x02\u022a\u022b\x07","i\x02\x02\u022b6\x03\x02\x02\x02\u022c\u022d\x07y\x02","\x02\u022d\u022e\x07k\x02\x02\u022e\u022f\x07v\x02\x02","\u022f\u0230\x07j\x02\x02\u02308\x03\x02\x02\x02\u0231","\u0232\x07e\x02\x02\u0232\u0233\x07w\x02\x02\u0233\u0234","\x07t\x02\x02\u0234\u0235\x07t\x02\x02\u0235\u0236\x07","g\x02\x02\u0236\u0237\x07p\x02\x02\u0237\u0238\x07v\x02","\x02\u0238\u0239\x07a\x02\x02\u0239\u023a\x07f\x02\x02","\u023a\u023b\x07c\x02\x02\u023b\u023c\x07v\x02\x02\u023c","\u023d\x07g\x02\x02\u023d:\x03\x02\x02\x02\u023e\u023f","\x07q\x02\x02\u023f\u0240\x07p\x02\x02\u0240<\x03\x02","\x02\x02\u0241\u0242\x07f\x02\x02\u0242\u0243\x07t\x02","\x02\u0243\u0244\x07q\x02\x02\u0244\u0245\x07r\x02\x02","\u0245>\x03\x02\x02\x02\u0246\u0247\x07m\x02\x02\u0247","\u0248\x07g\x02\x02\u0248\u0249\x07g\x02\x02\u0249\u024a","\x07r\x02\x02\u024a@\x03\x02\x02\x02\u024b\u024c\x07","e\x02\x02\u024c\u024d\x07c\x02\x02\u024d\u024e\x07n\x02","\x02\u024e\u024f\x07e\x02\x02\u024fB\x03\x02\x02\x02","\u0250\u0251\x07c\x02\x02\u0251\u0252\x07v\x02\x02\u0252","\u0253\x07v\x02\x02\u0253\u0254\x07t\x02\x02\u0254\u0255","\x07e\x02\x02\u0255\u0256\x07c\x02\x02\u0256\u0257\x07","n\x02\x02\u0257\u0258\x07e\x02\x02\u0258D\x03\x02\x02","\x02\u0259\u025a\x07t\x02\x02\u025a\u025b\x07g\x02\x02","\u025b\u025c\x07p\x02\x02\u025c\u025d\x07c\x02\x02\u025d","\u025e\x07o\x02\x02\u025e\u025f\x07g\x02\x02\u025fF\x03","\x02\x02\x02\u0260\u0261\x07c\x02\x02\u0261\u0262\x07","u\x02\x02\u0262H\x03\x02\x02\x02\u0263\u0264\x07c\x02","\x02\u0264\u0265\x07p\x02\x02\u0265\u0266\x07f\x02\x02","\u0266J\x03\x02\x02\x02\u0267\u0268\x07q\x02\x02\u0268","\u0269\x07t\x02\x02\u0269L\x03\x02\x02\x02\u026a\u026b","\x07z\x02\x02\u026b\u026c\x07q\x02\x02\u026c\u026d\x07","t\x02\x02\u026dN\x03\x02\x02\x02\u026e\u026f\x07p\x02","\x02\u026f\u0270\x07q\x02\x02\u0270\u0271\x07v\x02\x02","\u0271P\x03\x02\x02\x02\u0272\u0273\x07d\x02\x02\u0273","\u0274\x07g\x02\x02\u0274\u0275\x07v\x02\x02\u0275\u0276","\x07y\x02\x02\u0276\u0277\x07g\x02\x02\u0277\u0278\x07","g\x02\x02\u0278\u0279\x07p\x02\x02\u0279R\x03\x02\x02","\x02\u027a\u027b\x07k\x02\x02\u027b\u027c\x07p\x02\x02","\u027cT\x03\x02\x02\x02\u027d\u027e\x07p\x02\x02\u027e","\u027f\x07q\x02\x02\u027f\u0280\x07v\x02\x02\u0280\u0281","\x07a\x02\x02\u0281\u0282\x07k\x02\x02\u0282\u0283\x07","p\x02\x02\u0283V\x03\x02\x02\x02\u0284\u0285\x07p\x02","\x02\u0285\u0286\x07w\x02\x02\u0286\u0287\x07n\x02\x02","\u0287\u0288\x07n\x02\x02\u0288X\x03\x02\x02\x02\u0289","\u028a\x07k\x02\x02\u028a\u028b\x07u\x02\x02\u028b\u028c","\x07p\x02\x02\u028c\u028d\x07w\x02\x02\u028d\u028e\x07","n\x02\x02\u028e\u028f\x07n\x02\x02\u028fZ\x03\x02\x02","\x02\u0290\u0291\x07g\x02\x02\u0291\u0292\x07z\x02\x02","\u0292\\\x03\x02\x02\x02\u0293\u0294\x07w\x02\x02\u0294","\u0295\x07p\x02\x02\u0295\u0296\x07k\x02\x02\u0296\u0297","\x07q\x02\x02\u0297\u0298\x07p\x02\x02\u0298^\x03\x02","\x02\x02\u0299\u029a\x07f\x02\x02\u029a\u029b\x07k\x02","\x02\u029b\u029c\x07h\x02\x02\u029c\u029d\x07h\x02\x02","\u029d`\x03\x02\x02\x02\u029e\u029f\x07u\x02\x02\u029f","\u02a0\x07{\x02\x02\u02a0\u02a1\x07o\x02\x02\u02a1\u02a2","\x07f\x02\x02\u02a2\u02a3\x07k\x02\x02\u02a3\u02a4\x07","h\x02\x02\u02a4\u02a5\x07h\x02\x02\u02a5b\x03\x02\x02","\x02\u02a6\u02a7\x07k\x02\x02\u02a7\u02a8\x07p\x02\x02","\u02a8\u02a9\x07v\x02\x02\u02a9\u02aa\x07g\x02\x02\u02aa","\u02ab\x07t\x02\x02\u02ab\u02ac\x07u\x02\x02\u02ac\u02ad","\x07g\x02\x02\u02ad\u02ae\x07e\x02\x02\u02ae\u02af\x07","v\x02\x02\u02afd\x03\x02\x02\x02\u02b0\u02b1\x07m\x02","\x02\u02b1\u02b2\x07g\x02\x02\u02b2\u02b3\x07{\x02\x02","\u02b3\u02b4\x07u\x02\x02\u02b4f\x03\x02\x02\x02\u02b5","\u02b6\x07k\x02\x02\u02b6\u02b7\x07p\x02\x02\u02b7\u02b8","\x07v\x02\x02\u02b8\u02b9\x07{\x02\x02\u02b9\u02ba\x07","g\x02\x02\u02ba\u02bb\x07c\x02\x02\u02bb\u02bc\x07t\x02","\x02\u02bch\x03\x02\x02\x02\u02bd\u02be\x07k\x02\x02","\u02be\u02bf\x07p\x02\x02\u02bf\u02c0\x07v\x02\x02\u02c0","\u02c1\x07o\x02\x02\u02c1\u02c2\x07q\x02\x02\u02c2\u02c3","\x07p\x02\x02\u02c3\u02c4\x07v\x02\x02\u02c4\u02c5\x07","j\x02\x02\u02c5j\x03\x02\x02\x02\u02c6\u02c7\x07k\x02","\x02\u02c7\u02c8\x07p\x02\x02\u02c8\u02c9\x07v\x02\x02","\u02c9\u02ca\x07f\x02\x02\u02ca\u02cb\x07c\x02\x02\u02cb","\u02cc\x07{\x02\x02\u02ccl\x03\x02\x02\x02\u02cd\u02ce","\x07e\x02\x02\u02ce\u02cf\x07j\x02\x02\u02cf\u02d0\x07","g\x02\x02\u02d0\u02d1\x07e\x02\x02\u02d1\u02d2\x07m\x02","\x02\u02d2n\x03\x02\x02\x02\u02d3\u02d4\x07g\x02\x02","\u02d4\u02d5\x07z\x02\x02\u02d5\u02d6\x07k\x02\x02\u02d6","\u02d7\x07u\x02\x02\u02d7\u02d8\x07v\x02\x02\u02d8\u02d9","\x07u\x02\x02\u02d9\u02da\x07a\x02\x02\u02da\u02db\x07","k\x02\x02\u02db\u02dc\x07p\x02\x02\u02dcp\x03\x02\x02","\x02\u02dd\u02de\x07v\x02\x02\u02de\u02df\x07q\x02\x02","\u02dfr\x03\x02\x02\x02\u02e0\u02e1\x07t\x02\x02\u02e1","\u02e2\x07g\x02\x02\u02e2\u02e3\x07v\x02\x02\u02e3\u02e4","\x07w\x02\x02\u02e4\u02e5\x07t\x02\x02\u02e5\u02e6\x07","p\x02\x02\u02e6t\x03\x02\x02\x02\u02e7\u02e8\x07k\x02","\x02\u02e8\u02e9\x07o\x02\x02\u02e9\u02ea\x07d\x02\x02","\u02ea\u02eb\x07c\x02\x02\u02eb\u02ec\x07n\x02\x02\u02ec","\u02ed\x07c\x02\x02\u02ed\u02ee\x07p\x02\x02\u02ee\u02ef","\x07e\x02\x02\u02ef\u02f0\x07g\x02\x02\u02f0v\x03\x02","\x02\x02\u02f1\u02f2\x07g\x02\x02\u02f2\u02f3\x07t\x02","\x02\u02f3\u02f4\x07t\x02\x02\u02f4\u02f5\x07q\x02\x02","\u02f5\u02f6\x07t\x02\x02\u02f6\u02f7\x07e\x02\x02\u02f7","\u02f8\x07q\x02\x02\u02f8\u02f9\x07f\x02\x02\u02f9\u02fa","\x07g\x02\x02\u02fax\x03\x02\x02\x02\u02fb\u02fc\x07","c\x02\x02\u02fc\u02fd\x07n\x02\x02\u02fd\u02fe\x07n\x02","\x02\u02fez\x03\x02\x02\x02\u02ff\u0300\x07c\x02\x02","\u0300\u0301\x07i\x02\x02\u0301\u0302\x07i\x02\x02\u0302","\u0303\x07t\x02\x02\u0303|\x03\x02\x02\x02\u0304\u0305","\x07g\x02\x02\u0305\u0306\x07t\x02\x02\u0306\u0307\x07","t\x02\x02\u0307\u0308\x07q\x02\x02\u0308\u0309\x07t\x02","\x02\u0309\u030a\x07n\x02\x02\u030a\u030b\x07g\x02\x02","\u030b\u030c\x07x\x02\x02\u030c\u030d\x07g\x02\x02\u030d","\u030e\x07n\x02\x02\u030e~\x03\x02\x02\x02\u030f\u0310","\x07q\x02\x02\u0310\u0311\x07t\x02\x02\u0311\u0312\x07","f\x02\x02\u0312\u0313\x07g\x02\x02\u0313\u0314\x07t\x02","\x02\u0314\x80\x03\x02\x02\x02\u0315\u0316\x07d\x02","\x02\u0316\u0317\x07{\x02\x02\u0317\x82\x03\x02\x02","\x02\u0318\u0319\x07t\x02\x02\u0319\u031a\x07c\x02\x02","\u031a\u031b\x07p\x02\x02\u031b\u031c\x07m\x02\x02\u031c","\x84\x03\x02\x02\x02\u031d\u031e\x07c\x02\x02\u031e","\u031f\x07u\x02\x02\u031f\u0320\x07e\x02\x02\u0320\x86","\x03\x02\x02\x02\u0321\u0322\x07f\x02\x02\u0322\u0323","\x07g\x02\x02\u0323\u0324\x07u\x02\x02\u0324\u0325\x07","e\x02\x02\u0325\x88\x03\x02\x02\x02\u0326\u0327\x07","o\x02\x02\u0327\u0328\x07k\x02\x02\u0328\u0329\x07p\x02","\x02\u0329\x8a\x03\x02\x02\x02\u032a\u032b\x07o\x02","\x02\u032b\u032c\x07c\x02\x02\u032c\u032d\x07z\x02\x02","\u032d\x8c\x03\x02\x02\x02\u032e\u032f\x07h\x02\x02","\u032f\u0330\x07k\x02\x02\u0330\u0331\x07t\x02\x02\u0331","\u0332\x07u\x02\x02\u0332\u0333\x07v\x02\x02\u0333\x8e","\x03\x02\x02\x02\u0334\u0335\x07n\x02\x02\u0335\u0336","\x07c\x02\x02\u0336\u0337\x07u\x02\x02\u0337\u0338\x07","v\x02\x02\u0338\x90\x03\x02\x02\x02\u0339\u033a\x07","k\x02\x02\u033a\u033b\x07p\x02\x02\u033b\u033c\x07f\x02","\x02\u033c\u033d\x07g\x02\x02\u033d\u033e\x07z\x02\x02","\u033e\u033f\x07q\x02\x02\u033f\u0340\x07h\x02\x02\u0340","\x92\x03\x02\x02\x02\u0341\u0342\x07c\x02\x02\u0342","\u0343\x07d\x02\x02\u0343\u0344\x07u\x02\x02\u0344\x94","\x03\x02\x02\x02\u0345\u0346\x07m\x02\x02\u0346\u0347","\x07g\x02\x02\u0347\u0348\x07{\x02\x02\u0348\x96\x03","\x02\x02\x02\u0349\u034a\x07n\x02\x02\u034a\u034b\x07","p\x02\x02\u034b\x98\x03\x02\x02\x02\u034c\u034d\x07","n\x02\x02\u034d\u034e\x07q\x02\x02\u034e\u034f\x07i\x02","\x02\u034f\x9a\x03\x02\x02\x02\u0350\u0351\x07v\x02","\x02\u0351\u0352\x07t\x02\x02\u0352\u0353\x07w\x02\x02","\u0353\u0354\x07p\x02\x02\u0354\u0355\x07e\x02\x02\u0355","\x9c\x03\x02\x02\x02\u0356\u0357\x07t\x02\x02\u0357","\u0358\x07q\x02\x02\u0358\u0359\x07w\x02\x02\u0359\u035a","\x07p\x02\x02\u035a\u035b\x07f\x02\x02\u035b\x9e\x03","\x02\x02\x02\u035c\u035d\x07r\x02\x02\u035d\u035e\x07","q\x02\x02\u035e\u035f\x07y\x02\x02\u035f\u0360\x07g\x02","\x02\u0360\u0361\x07t\x02\x02\u0361\xa0\x03\x02\x02","\x02\u0362\u0363\x07o\x02\x02\u0363\u0364\x07q\x02\x02","\u0364\u0365\x07f\x02\x02\u0365\xa2\x03\x02\x02\x02","\u0366\u0367\x07n\x02\x02\u0367\u0368\x07g\x02\x02\u0368","\u0369\x07p\x02\x02\u0369\u036a\x07i\x02\x02\u036a\u036b","\x07v\x02\x02\u036b\u036c\x07j\x02\x02\u036c\xa4\x03","\x02\x02\x02\u036d\u036e\x07~\x02\x02\u036e\u036f\x07","~\x02\x02\u036f\xa6\x03\x02\x02\x02\u0370\u0371\x07","v\x02\x02\u0371\u0372\x07t\x02\x02\u0372\u0373\x07k\x02","\x02\u0373\u0374\x07o\x02\x02\u0374\xa8\x03\x02\x02","\x02\u0375\u0376\x07w\x02\x02\u0376\u0377\x07r\x02\x02","\u0377\u0378\x07r\x02\x02\u0378\u0379\x07g\x02\x02\u0379","\u037a\x07t\x02\x02\u037a\xaa\x03\x02\x02\x02\u037b","\u037c\x07n\x02\x02\u037c\u037d\x07q\x02\x02\u037d\u037e","\x07y\x02\x02\u037e\u037f\x07g\x02\x02\u037f\u0380\x07","t\x02\x02\u0380\xac\x03\x02\x02\x02\u0381\u0382\x07","u\x02\x02\u0382\u0383\x07w\x02\x02\u0383\u0384\x07d\x02","\x02\u0384\u0385\x07u\x02\x02\u0385\u0386\x07v\x02\x02","\u0386\u0387\x07t\x02\x02\u0387\xae\x03\x02\x02\x02","\u0388\u0389\x07u\x02\x02\u0389\u038a\x07w\x02\x02\u038a","\u038b\x07o\x02\x02\u038b\xb0\x03\x02\x02\x02\u038c","\u038d\x07c\x02\x02\u038d\u038e\x07x\x02\x02\u038e\u038f","\x07i\x02\x02\u038f\xb2\x03\x02\x02\x02\u0390\u0391","\x07o\x02\x02\u0391\u0392\x07g\x02\x02\u0392\u0393\x07","f\x02\x02\u0393\u0394\x07k\x02\x02\u0394\u0395\x07c\x02","\x02\u0395\u0396\x07p\x02\x02\u0396\xb4\x03\x02\x02","\x02\u0397\u0398\x07e\x02\x02\u0398\u0399\x07q\x02\x02","\u0399\u039a\x07w\x02\x02\u039a\u039b\x07p\x02\x02\u039b","\u039c\x07v\x02\x02\u039c\xb6\x03\x02\x02\x02\u039d","\u039e\x07k\x02\x02\u039e\u039f\x07f\x02\x02\u039f\u03a0","\x07g\x02\x02\u03a0\u03a1\x07p\x02\x02\u03a1\u03a2\x07","v\x02\x02\u03a2\u03a3\x07k\x02\x02\u03a3\u03a4\x07h\x02","\x02\u03a4\u03a5\x07k\x02\x02\u03a5\u03a6\x07g\x02\x02","\u03a6\u03a7\x07t\x02\x02\u03a7\xb8\x03\x02\x02\x02","\u03a8\u03a9\x07o\x02\x02\u03a9\u03aa\x07g\x02\x02\u03aa","\u03ab\x07c\x02\x02\u03ab\u03ac\x07u\x02\x02\u03ac\u03ad","\x07w\x02\x02\u03ad\u03ae\x07t\x02\x02\u03ae\u03af\x07","g\x02\x02\u03af\xba\x03\x02\x02\x02\u03b0\u03b1\x07","c\x02\x02\u03b1\u03b2\x07v\x02\x02\u03b2\u03b3\x07v\x02","\x02\u03b3\u03b4\x07t\x02\x02\u03b4\u03b5\x07k\x02\x02","\u03b5\u03b6\x07d\x02\x02\u03b6\u03b7\x07w\x02\x02\u03b7","\u03b8\x07v\x02\x02\u03b8\u03b9\x07g\x02\x02\u03b9\xbc","\x03\x02\x02\x02\u03ba\u03bb\x07h\x02\x02\u03bb\u03bc","\x07k\x02\x02\u03bc\u03bd\x07n\x02\x02\u03bd\u03be\x07","v\x02\x02\u03be\u03bf\x07g\x02\x02\u03bf\u03c0\x07t\x02","\x02\u03c0\xbe\x03\x02\x02\x02\u03c1\u03c2\x07o\x02","\x02\u03c2\u03c3\x07g\x02\x02\u03c3\u03c4\x07t\x02\x02","\u03c4\u03c5\x07i\x02\x02\u03c5\u03c6\x07g\x02\x02\u03c6","\xc0\x03\x02\x02\x02\u03c7\u03c8\x07g\x02\x02\u03c8","\u03c9\x07z\x02\x02\u03c9\u03ca\x07r\x02\x02\u03ca\xc2","\x03\x02\x02\x02\u03cb\u03cc\x07e\x02\x02\u03cc\u03cd","\x07q\x02\x02\u03cd\u03ce\x07o\x02\x02\u03ce\u03cf\x07","r\x02\x02\u03cf\u03d0\x07q\x02\x02\u03d0\u03d1\x07p\x02","\x02\u03d1\u03d2\x07g\x02\x02\u03d2\u03d3\x07p\x02\x02","\u03d3\u03d4\x07v\x02\x02\u03d4\u03d5\x07T\x02\x02\u03d5","\u03d6\x07q\x02\x02\u03d6\u03d7\x07n\x02\x02\u03d7\u03d8","\x07g\x02\x02\u03d8\xc4\x03\x02\x02\x02\u03d9\u03da","\x07x\x02\x02\u03da\u03db\x07k\x02\x02\u03db\u03dc\x07","t\x02\x02\u03dc\u03dd\x07c\x02\x02\u03dd\u03de\x07n\x02","\x02\u03de\xc6\x03\x02\x02\x02\u03df\u03e0\x07o\x02","\x02\u03e0\u03e1\x07c\x02\x02\u03e1\u03e2\x07v\x02\x02","\u03e2\u03e3\x07e\x02\x02\u03e3\u03e4\x07j\x02\x02\u03e4","\u03e5\x07a\x02\x02\u03e5\u03e6\x07e\x02\x02\u03e6\u03e7","\x07j\x02\x02\u03e7\u03e8\x07c\x02\x02\u03e8\u03e9\x07","t\x02\x02\u03e9\u03ea\x07c\x02\x02\u03ea\u03eb\x07e\x02","\x02\u03eb\u03ec\x07v\x02\x02\u03ec\u03ed\x07g\x02\x02","\u03ed\u03ee\x07t\x02\x02\u03ee\u03ef\x07u\x02\x02\u03ef","\xc8\x03\x02\x02\x02\u03f0\u03f1\x07v\x02\x02\u03f1","\u03f2\x07{\x02\x02\u03f2\u03f3\x07r\x02\x02\u03f3\u03f4","\x07g\x02\x02\u03f4\xca\x03\x02\x02\x02\u03f5\u03f6","\x07p\x02\x02\u03f6\u03f7\x07x\x02\x02\u03f7\u03f8\x07","n\x02\x02\u03f8\xcc\x03\x02\x02\x02\u03f9\u03fa\x07","j\x02\x02\u03fa\u03fb\x07k\x02\x02\u03fb\u03fc\x07g\x02","\x02\u03fc\u03fd\x07t\x02\x02\u03fd\u03fe\x07c\x02\x02","\u03fe\u03ff\x07t\x02\x02\u03ff\u0400\x07e\x02\x02\u0400","\u0401\x07j\x02\x02\u0401\u0402\x07{\x02\x02\u0402\xce","\x03\x02\x02\x02\u0403\u0404\x07a\x02\x02\u0404\xd0","\x03\x02\x02\x02\u0405\u0406\x07k\x02\x02\u0406\u0407","\x07p\x02\x02\u0407\u0408\x07x\x02\x02\u0408\u0409\x07","c\x02\x02\u0409\u040a\x07n\x02\x02\u040a\u040b\x07k\x02","\x02\u040b\u040c\x07f\x02\x02\u040c\xd2\x03\x02\x02","\x02\u040d\u040e\x07n\x02\x02\u040e\u040f\x07g\x02\x02","\u040f\u0410\x07x\x02\x02\u0410\u0411\x07g\x02\x02\u0411","\u0412\x07p\x02\x02\u0412\u0413\x07u\x02\x02\u0413\u0414","\x07j\x02\x02\u0414\u0415\x07v\x02\x02\u0415\u0416\x07","g\x02\x02\u0416\u0417\x07k\x02\x02\u0417\u0418\x07p\x02","\x02\u0418\xd4\x03\x02\x02\x02\u0419\u041a\x07x\x02","\x02\u041a\u041b\x07c\x02\x02\u041b\u041c\x07n\x02\x02","\u041c\u041d\x07w\x02\x02\u041d\u041e\x07g\x02\x02\u041e","\u041f\x07f\x02\x02\u041f\u0420\x07q\x02\x02\u0420\u0421","\x07o\x02\x02\u0421\u0422\x07c\x02\x02\u0422\u0423\x07","k\x02\x02\u0423\u0424\x07p\x02\x02\u0424\xd6\x03\x02","\x02\x02\u0425\u0426\x07x\x02\x02\u0426\u0427\x07c\x02","\x02\u0427\u0428\x07t\x02\x02\u0428\u0429\x07k\x02\x02","\u0429\u042a\x07c\x02\x02\u042a\u042b\x07d\x02\x02\u042b","\u042c\x07n\x02\x02\u042c\u042d\x07g\x02\x02\u042d\xd8","\x03\x02\x02\x02\u042e\u042f\x07f\x02\x02\u042f\u0430","\x07c\x02\x02\u0430\u0431\x07v\x02\x02\u0431\u0432\x07","c\x02\x02\u0432\xda\x03\x02\x02\x02\u0433\u0434\x07","u\x02\x02\u0434\u0435\x07v\x02\x02\u0435\u0436\x07t\x02","\x02\u0436\u0437\x07w\x02\x02\u0437\u0438\x07e\x02\x02","\u0438\u0439\x07v\x02\x02\u0439\u043a\x07w\x02\x02\u043a","\u043b\x07t\x02\x02\u043b\u043c\x07g\x02\x02\u043c\xdc","\x03\x02\x02\x02\u043d\u043e\x07f\x02\x02\u043e\u043f","\x07c\x02\x02\u043f\u0440\x07v\x02\x02\u0440\u0441\x07","c\x02\x02\u0441\u0442\x07u\x02\x02\u0442\u0443\x07g\x02","\x02\u0443\u0444\x07v\x02\x02\u0444\xde\x03\x02\x02","\x02\u0445\u0446\x07q\x02\x02\u0446\u0447\x07r\x02\x02","\u0447\u0448\x07g\x02\x02\u0448\u0449\x07t\x02\x02\u0449","\u044a\x07c\x02\x02\u044a\u044b\x07v\x02\x02\u044b\u044c","\x07q\x02\x02\u044c\u044d\x07t\x02\x02\u044d\xe0\x03","\x02\x02\x02\u044e\u044f\x07f\x02\x02\u044f\u0450\x07","g\x02\x02\u0450\u0451\x07h\x02\x02\u0451\u0452\x07k\x02","\x02\u0452\u0453\x07p\x02\x02\u0453\u0454\x07g\x02\x02","\u0454\xe2\x03\x02\x02\x02\u0455\u0456\x07>\x02\x02","\u0456\u0457\x07/\x02\x02\u0457\xe4\x03\x02\x02\x02","\u0458\u0459\x07f\x02\x02\u0459\u045a\x07c\x02\x02\u045a","\u045b\x07v\x02\x02\u045b\u045c\x07c\x02\x02\u045c\u045d","\x07r\x02\x02\u045d\u045e\x07q\x02\x02\u045e\u045f\x07","k\x02\x02\u045f\u0460\x07p\x02\x02\u0460\u0461\x07v\x02","\x02\u0461\xe6\x03\x02\x02\x02\u0462\u0463\x07j\x02","\x02\u0463\u0464\x07k\x02\x02\u0464\u0465\x07g\x02\x02","\u0465\u0466\x07t\x02\x02\u0466\u0467\x07c\x02\x02\u0467","\u0468\x07t\x02\x02\u0468\u0469\x07e\x02\x02\u0469\u046a","\x07j\x02\x02\u046a\u046b\x07k\x02\x02\u046b\u046c\x07","e\x02\x02\u046c\u046d\x07c\x02\x02\u046d\u046e\x07n\x02","\x02\u046e\xe8\x03\x02\x02\x02\u046f\u0470\x07t\x02","\x02\u0470\u0471\x07w\x02\x02\u0471\u0472\x07n\x02\x02","\u0472\u0473\x07g\x02\x02\u0473\u0474\x07u\x02\x02\u0474","\u0475\x07g\x02\x02\u0475\u0476\x07v\x02\x02\u0476\xea","\x03\x02\x02\x02\u0477\u0478\x07t\x02\x02\u0478\u0479","\x07w\x02\x02\u0479\u047a\x07n\x02\x02\u047a\u047b\x07","g\x02\x02\u047b\xec\x03\x02\x02\x02\u047c\u047d\x07","g\x02\x02\u047d\u047e\x07p\x02\x02\u047e\u047f\x07f\x02","\x02\u047f\xee\x03\x02\x02\x02\u0480\u0481\x07c\x02","\x02\u0481\u0482\x07n\x02\x02\u0482\u0483\x07v\x02\x02","\u0483\u0484\x07g\x02\x02\u0484\u0485\x07t\x02\x02\u0485","\u0486\x07F\x02\x02\u0486\u0487\x07c\x02\x02\u0487\u0488","\x07v\x02\x02\u0488\u0489\x07c\x02\x02\u0489\u048a\x07","u\x02\x02\u048a\u048b\x07g\x02\x02\u048b\u048c\x07v\x02","\x02\u048c\xf0\x03\x02\x02\x02\u048d\u048e\x07n\x02","\x02\u048e\u048f\x07v\x02\x02\u048f\u0490\x07t\x02\x02","\u0490\u0491\x07k\x02\x02\u0491\u0492\x07o\x02\x02\u0492","\xf2\x03\x02\x02\x02\u0493\u0494\x07t\x02\x02\u0494","\u0495\x07v\x02\x02\u0495\u0496\x07t\x02\x02\u0496\u0497","\x07k\x02\x02\u0497\u0498\x07o\x02\x02\u0498\xf4\x03","\x02\x02\x02\u0499\u049a\x07k\x02\x02\u049a\u049b\x07","p\x02\x02\u049b\u049c\x07u\x02\x02\u049c\u049d\x07v\x02","\x02\u049d\u049e\x07t\x02\x02\u049e\xf6\x03\x02\x02","\x02\u049f\u04a0\x07t\x02\x02\u04a0\u04a1\x07g\x02\x02","\u04a1\u04a2\x07r\x02\x02\u04a2\u04a3\x07n\x02\x02\u04a3","\u04a4\x07c\x02\x02\u04a4\u04a5\x07e\x02\x02\u04a5\u04a6","\x07g\x02\x02\u04a6\xf8\x03\x02\x02\x02\u04a7\u04a8","\x07e\x02\x02\u04a8\u04a9\x07g\x02\x02\u04a9\u04aa\x07","k\x02\x02\u04aa\u04ab\x07n\x02\x02\u04ab\xfa\x03\x02","\x02\x02\u04ac\u04ad\x07h\x02\x02\u04ad\u04ae\x07n\x02","\x02\u04ae\u04af\x07q\x02\x02\u04af\u04b0\x07q\x02\x02","\u04b0\u04b1\x07t\x02\x02\u04b1\xfc\x03\x02\x02\x02","\u04b2\u04b3\x07u\x02\x02\u04b3\u04b4\x07s\x02\x02\u04b4","\u04b5\x07t\x02\x02\u04b5\u04b6\x07v\x02\x02\u04b6\xfe","\x03\x02\x02\x02\u04b7\u04b8\x07t\x02\x02\u04b8\u04b9","\x07c\x02\x02\u04b9\u04ba\x07p\x02\x02\u04ba\u04bb\x07","f\x02\x02\u04bb\u04bc\x07q\x02\x02\u04bc\u04bd\x07o\x02","\x02\u04bd\u0100\x03\x02\x02\x02\u04be\u04bf\x07c\x02","\x02\u04bf\u04c0\x07p\x02\x02\u04c0\u04c1\x07{\x02\x02","\u04c1\u0102\x03\x02\x02\x02\u04c2\u04c3\x07u\x02\x02","\u04c3\u04c4\x07g\x02\x02\u04c4\u04c5\x07v\x02\x02\u04c5","\u04c6\x07f\x02\x02\u04c6\u04c7\x07k\x02\x02\u04c7\u04c8","\x07h\x02\x02\u04c8\u04c9\x07h\x02\x02\u04c9\u0104\x03","\x02\x02\x02\u04ca\u04cb\x07u\x02\x02\u04cb\u04cc\x07","v\x02\x02\u04cc\u04cd\x07f\x02\x02\u04cd\u04ce\x07f\x02","\x02\u04ce\u04cf\x07g\x02\x02\u04cf\u04d0\x07x\x02\x02","\u04d0\u04d1\x07a\x02\x02\u04d1\u04d2\x07r\x02\x02\u04d2","\u04d3\x07q\x02\x02\u04d3\u04d4\x07r\x02\x02\u04d4\u0106","\x03\x02\x02\x02\u04d5\u04d6\x07u\x02\x02\u04d6\u04d7","\x07v\x02\x02\u04d7\u04d8\x07f\x02\x02\u04d8\u04d9\x07","f\x02\x02\u04d9\u04da\x07g\x02\x02\u04da\u04db\x07x\x02","\x02\u04db\u04dc\x07a\x02\x02\u04dc\u04dd\x07u\x02\x02","\u04dd\u04de\x07c\x02\x02\u04de\u04df\x07o\x02\x02\u04df","\u04e0\x07r\x02\x02\u04e0\u0108\x03\x02\x02\x02\u04e1","\u04e2\x07x\x02\x02\u04e2\u04e3\x07c\x02\x02\u04e3\u04e4","\x07t\x02\x02\u04e4\u04e5\x07a\x02\x02\u04e5\u04e6\x07","r\x02\x02\u04e6\u04e7\x07q\x02\x02\u04e7\u04e8\x07r\x02","\x02\u04e8\u010a\x03\x02\x02\x02\u04e9\u04ea\x07x\x02","\x02\u04ea\u04eb\x07c\x02\x02\u04eb\u04ec\x07t\x02\x02","\u04ec\u04ed\x07a\x02\x02\u04ed\u04ee\x07u\x02\x02\u04ee","\u04ef\x07c\x02\x02\u04ef\u04f0\x07o\x02\x02\u04f0\u04f1","\x07r\x02\x02\u04f1\u010c\x03\x02\x02\x02\u04f2\u04f3","\x07i\x02\x02\u04f3\u04f4\x07t\x02\x02\u04f4\u04f5\x07","q\x02\x02\u04f5\u04f6\x07w\x02\x02\u04f6\u04f7\x07r\x02","\x02\u04f7\u010e\x03\x02\x02\x02\u04f8\u04f9\x07g\x02","\x02\u04f9\u04fa\x07z\x02\x02\u04fa\u04fb\x07e\x02\x02","\u04fb\u04fc\x07g\x02\x02\u04fc\u04fd\x07r\x02\x02\u04fd","\u04fe\x07v\x02\x02\u04fe\u0110\x03\x02\x02\x02\u04ff","\u0500\x07j\x02\x02\u0500\u0501\x07c\x02\x02\u0501\u0502","\x07x\x02\x02\u0502\u0503\x07k\x02\x02\u0503\u0504\x07","p\x02\x02\u0504\u0505\x07i\x02\x02\u0505\u0112\x03\x02","\x02\x02\u0506\u0507\x07h\x02\x02\u0507\u0508\x07k\x02","\x02\u0508\u0509\x07t\x02\x02\u0509\u050a\x07u\x02\x02","\u050a\u050b\x07v\x02\x02\u050b\u050c\x07a\x02\x02\u050c","\u050d\x07x\x02\x02\u050d\u050e\x07c\x02\x02\u050e\u050f","\x07n\x02\x02\u050f\u0510\x07w\x02\x02\u0510\u0511\x07","g\x02\x02\u0511\u0114\x03\x02\x02\x02\u0512\u0513\x07","n\x02\x02\u0513\u0514\x07c\x02\x02\u0514\u0515\x07u\x02","\x02\u0515\u0516\x07v\x02\x02\u0516\u0517\x07a\x02\x02","\u0517\u0518\x07x\x02\x02\u0518\u0519\x07c\x02\x02\u0519","\u051a\x07n\x02\x02\u051a\u051b\x07w\x02\x02\u051b\u051c","\x07g\x02\x02\u051c\u0116\x03\x02\x02\x02\u051d\u051e","\x07n\x02\x02\u051e\u051f\x07c\x02\x02\u051f\u0520\x07","i\x02\x02\u0520\u0118\x03\x02\x02\x02\u0521\u0522\x07","n\x02\x02\u0522\u0523\x07g\x02\x02\u0523\u0524\x07c\x02","\x02\u0524\u0525\x07f\x02\x02\u0525\u011a\x03\x02\x02","\x02\u0526\u0527\x07t\x02\x02\u0527\u0528\x07c\x02\x02","\u0528\u0529\x07v\x02\x02\u0529\u052a\x07k\x02\x02\u052a","\u052b\x07q\x02\x02\u052b\u052c\x07a\x02\x02\u052c\u052d","\x07v\x02\x02\u052d\u052e\x07q\x02\x02\u052e\u052f\x07","a\x02\x02\u052f\u0530\x07t\x02\x02\u0530\u0531\x07g\x02","\x02\u0531\u0532\x07r\x02\x02\u0532\u0533\x07q\x02\x02","\u0533\u0534\x07t\x02\x02\u0534\u0535\x07v\x02\x02\u0535","\u011c\x03\x02\x02\x02\u0536\u0537\x07q\x02\x02\u0537","\u0538\x07x\x02\x02\u0538\u0539\x07g\x02\x02\u0539\u053a","\x07t\x02\x02\u053a\u011e\x03\x02\x02\x02\u053b\u053c","\x07r\x02\x02\u053c\u053d\x07t\x02\x02\u053d\u053e\x07","g\x02\x02\u053e\u053f\x07e\x02\x02\u053f\u0540\x07g\x02","\x02\u0540\u0541\x07f\x02\x02\u0541\u0542\x07k\x02\x02","\u0542\u0543\x07p\x02\x02\u0543\u0544\x07i\x02\x02\u0544","\u0120\x03\x02\x02\x02\u0545\u0546\x07h\x02\x02\u0546","\u0547\x07q\x02\x02\u0547\u0548\x07n\x02\x02\u0548\u0549","\x07n\x02\x02\u0549\u054a\x07q\x02\x02\u054a\u054b\x07","y\x02\x02\u054b\u054c\x07k\x02\x02\u054c\u054d\x07p\x02","\x02\u054d\u054e\x07i\x02\x02\u054e\u0122\x03\x02\x02","\x02\u054f\u0550\x07w\x02\x02\u0550\u0551\x07p\x02\x02","\u0551\u0552\x07d\x02\x02\u0552\u0553\x07q\x02\x02\u0553","\u0554\x07w\x02\x02\u0554\u0555\x07p\x02\x02\u0555\u0556","\x07f\x02\x02\u0556\u0557\x07g\x02\x02\u0557\u0558\x07","f\x02\x02\u0558\u0124\x03\x02\x02\x02\u0559\u055a\x07","r\x02\x02\u055a\u055b\x07c\x02\x02\u055b\u055c\x07t\x02","\x02\u055c\u055d\x07v\x02\x02\u055d\u055e\x07k\x02\x02","\u055e\u055f\x07v\x02\x02\u055f\u0560\x07k\x02\x02\u0560","\u0561\x07q\x02\x02\u0561\u0562\x07p\x02\x02\u0562\u0126","\x03\x02\x02\x02\u0563\u0564\x07t\x02\x02\u0564\u0565","\x07q\x02\x02\u0565\u0566\x07y\x02\x02\u0566\u0567\x07","u\x02\x02\u0567\u0128\x03\x02\x02\x02\u0568\u0569\x07","t\x02\x02\u0569\u056a\x07c\x02\x02\u056a\u056b\x07p\x02","\x02\u056b\u056c\x07i\x02\x02\u056c\u056d\x07g\x02\x02","\u056d\u012a\x03\x02\x02\x02\u056e\u056f\x07e\x02\x02","\u056f\u0570\x07w\x02\x02\u0570\u0571\x07t\x02\x02\u0571","\u0572\x07t\x02\x02\u0572\u0573\x07g\x02\x02\u0573\u0574","\x07p\x02\x02\u0574\u0575\x07v\x02\x02\u0575\u012c\x03","\x02\x02\x02\u0576\u0577\x07x\x02\x02\u0577\u0578\x07","c\x02\x02\u0578\u0579\x07n\x02\x02\u0579\u057a\x07k\x02","\x02\u057a\u057b\x07f\x02\x02\u057b\u012e\x03\x02\x02","\x02\u057c\u057d\x07h\x02\x02\u057d\u057e\x07k\x02\x02","\u057e\u057f\x07n\x02\x02\u057f\u0580\x07n\x02\x02\u0580","\u0581\x07a\x02\x02\u0581\u0582\x07v\x02\x02\u0582\u0583","\x07k\x02\x02\u0583\u0584\x07o\x02\x02\u0584\u0585\x07","g\x02\x02\u0585\u0586\x07a\x02\x02\u0586\u0587\x07u\x02","\x02\u0587\u0588\x07g\x02\x02\u0588\u0589\x07t\x02\x02","\u0589\u058a\x07k\x02\x02\u058a\u058b\x07g\x02\x02\u058b","\u058c\x07u\x02\x02\u058c\u0130\x03\x02\x02\x02\u058d","\u058e\x07h\x02\x02\u058e\u058f\x07n\x02\x02\u058f\u0590","\x07q\x02\x02\u0590\u0591\x07y\x02\x02\u0591\u0592\x07","a\x02\x02\u0592\u0593\x07v\x02\x02\u0593\u0594\x07q\x02","\x02\u0594\u0595\x07a\x02\x02\u0595\u0596\x07u\x02\x02","\u0596\u0597\x07v\x02\x02\u0597\u0598\x07q\x02\x02\u0598","\u0599\x07e\x02\x02\u0599\u059a\x07m\x02\x02\u059a\u0132","\x03\x02\x02\x02\u059b\u059c\x07u\x02\x02\u059c\u059d","\x07v\x02\x02\u059d\u059e\x07q\x02\x02\u059e\u059f\x07","e\x02\x02\u059f\u05a0\x07m\x02\x02\u05a0\u05a1\x07a\x02","\x02\u05a1\u05a2\x07v\x02\x02\u05a2\u05a3\x07q\x02\x02","\u05a3\u05a4\x07a\x02\x02\u05a4\u05a5\x07h\x02\x02\u05a5","\u05a6\x07n\x02\x02\u05a6\u05a7\x07q\x02\x02\u05a7\u05a8","\x07y\x02\x02\u05a8\u0134\x03\x02\x02\x02\u05a9\u05aa","\x07v\x02\x02\u05aa\u05ab\x07k\x02\x02\u05ab\u05ac\x07","o\x02\x02\u05ac\u05ad\x07g\x02\x02\u05ad\u05ae\x07u\x02","\x02\u05ae\u05af\x07j\x02\x02\u05af\u05b0\x07k\x02\x02","\u05b0\u05b1\x07h\x02\x02\u05b1\u05b2\x07v\x02\x02\u05b2","\u0136\x03\x02\x02\x02\u05b3\u05b4\x07o\x02\x02\u05b4","\u05b5\x07g\x02\x02\u05b5\u05b6\x07c\x02\x02\u05b6\u05b7","\x07u\x02\x02\u05b7\u05b8\x07w\x02\x02\u05b8\u05b9\x07","t\x02\x02\u05b9\u05ba\x07g\x02\x02\u05ba\u05bb\x07u\x02","\x02\u05bb\u0138\x03\x02\x02\x02\u05bc\u05bd\x07p\x02","\x02\u05bd\u05be\x07q\x02\x02\u05be\u05bf\x07a\x02\x02","\u05bf\u05c0\x07o\x02\x02\u05c0\u05c1\x07g\x02\x02\u05c1","\u05c2\x07c\x02\x02\u05c2\u05c3\x07u\x02\x02\u05c3\u05c4","\x07w\x02\x02\u05c4\u05c5\x07t\x02\x02\u05c5\u05c6\x07","g\x02\x02\u05c6\u05c7\x07u\x02\x02\u05c7\u013a\x03\x02","\x02\x02\u05c8\u05c9\x07e\x02\x02\u05c9\u05ca\x07q\x02","\x02\u05ca\u05cb\x07p\x02\x02\u05cb\u05cc\x07f\x02\x02","\u05cc\u05cd\x07k\x02\x02\u05cd\u05ce\x07v\x02\x02\u05ce","\u05cf\x07k\x02\x02\u05cf\u05d0\x07q\x02\x02\u05d0\u05d1","\x07p\x02\x02\u05d1\u013c\x03\x02\x02\x02\u05d2\u05d3","\x07d\x02\x02\u05d3\u05d4\x07q\x02\x02\u05d4\u05d5\x07","q\x02\x02\u05d5\u05d6\x07n\x02\x02\u05d6\u05d7\x07g\x02","\x02\u05d7\u05d8\x07c\x02\x02\u05d8\u05d9\x07p\x02\x02","\u05d9\u013e\x03\x02\x02\x02\u05da\u05db\x07f\x02\x02","\u05db\u05dc\x07c\x02\x02\u05dc\u05dd\x07v\x02\x02\u05dd","\u05de\x07g\x02\x02\u05de\u0140\x03\x02\x02\x02\u05df","\u05e0\x07v\x02\x02\u05e0\u05e1\x07k\x02\x02\u05e1\u05e2","\x07o\x02\x02\u05e2\u05e3\x07g\x02\x02\u05e3\u05e4\x07","a\x02\x02\u05e4\u05e5\x07r\x02\x02\u05e5\u05e6\x07g\x02","\x02\u05e6\u05e7\x07t\x02\x02\u05e7\u05e8\x07k\x02\x02","\u05e8\u05e9\x07q\x02\x02\u05e9\u05ea\x07f\x02\x02\u05ea","\u0142\x03\x02\x02\x02\u05eb\u05ec\x07p\x02\x02\u05ec","\u05ed\x07w\x02\x02\u05ed\u05ee\x07o\x02\x02\u05ee\u05ef","\x07d\x02\x02\u05ef\u05f0\x07g\x02\x02\u05f0\u05f1\x07","t\x02\x02\u05f1\u0144\x03\x02\x02\x02\u05f2\u05f3\x07","u\x02\x02\u05f3\u05f4\x07v\x02\x02\u05f4\u05f5\x07t\x02","\x02\u05f5\u05f6\x07k\x02\x02\u05f6\u05f7\x07p\x02\x02","\u05f7\u05f8\x07i\x02\x02\u05f8\u0146\x03\x02\x02\x02","\u05f9\u05fa\x07v\x02\x02\u05fa\u05fb\x07k\x02\x02\u05fb","\u05fc\x07o\x02\x02\u05fc\u05fd\x07g\x02\x02\u05fd\u0148","\x03\x02\x02\x02\u05fe\u05ff\x07k\x02\x02\u05ff\u0600","\x07p\x02\x02\u0600\u0601\x07v\x02\x02\u0601\u0602\x07","g\x02\x02\u0602\u0603\x07i\x02\x02\u0603\u0604\x07g\x02","\x02\u0604\u0605\x07t\x02\x02\u0605\u014a\x03\x02\x02","\x02\u0606\u0607\x07h\x02\x02\u0607\u0608\x07n\x02\x02","\u0608\u0609\x07q\x02\x02\u0609\u060a\x07c\x02\x02\u060a","\u060b\x07v\x02\x02\u060b\u014c\x03\x02\x02\x02\u060c","\u060d\x07n\x02\x02\u060d\u060e\x07k\x02\x02\u060e\u060f","\x07u\x02\x02\u060f\u0610\x07v\x02\x02\u0610\u014e\x03","\x02\x02\x02\u0611\u0612\x07t\x02\x02\u0612\u0613\x07","g\x02\x02\u0613\u0614\x07e\x02\x02\u0614\u0615\x07q\x02","\x02\u0615\u0616\x07t\x02\x02\u0616\u0617\x07f\x02\x02","\u0617\u0150\x03\x02\x02\x02\u0618\u0619\x07t\x02\x02","\u0619\u061a\x07g\x02\x02\u061a\u061b\x07u\x02\x02\u061b","\u061c\x07v\x02\x02\u061c\u061d\x07t\x02\x02\u061d\u061e","\x07k\x02\x02\u061e\u061f\x07e\x02\x02\u061f\u0620\x07","v\x02\x02\u0620\u0152\x03\x02\x02\x02\u0621\u0622\x07","{\x02\x02\u0622\u0623\x07{\x02\x02\u0623\u0624\x07{\x02","\x02\u0624\u0625\x07{\x02\x02\u0625\u0154\x03\x02\x02","\x02\u0626\u0627\x07o\x02\x02\u0627\u0628\x07o\x02\x02","\u0628\u0156\x03\x02\x02\x02\u0629\u062a\x07f\x02\x02","\u062a\u062b\x07f\x02\x02\u062b\u0158\x03\x02\x02\x02","\u062c\u062d\x07o\x02\x02\u062d\u062e\x07c\x02\x02\u062e","\u062f\x07z\x02\x02\u062f\u0630\x07N\x02\x02\u0630\u0631","\x07g\x02\x02\u0631\u0632\x07p\x02\x02\u0632\u0633\x07","i\x02\x02\u0633\u0634\x07v\x02\x02\u0634\u0635\x07j\x02","\x02\u0635\u015a\x03\x02\x02\x02\u0636\u0637\x07t\x02","\x02\u0637\u0638\x07g\x02\x02\u0638\u0639\x07i\x02\x02","\u0639\u063a\x07g\x02\x02\u063a\u063b\x07z\x02\x02\u063b","\u063c\x07r\x02\x02\u063c\u015c\x03\x02\x02\x02\u063d","\u063e\x07k\x02\x02\u063e\u063f\x07u\x02\x02\u063f\u015e","\x03\x02\x02\x02\u0640\u0641\x07y\x02\x02\u0641\u0642","\x07j\x02\x02\u0642\u0643\x07g\x02\x02\u0643\u0644\x07","p\x02\x02\u0644\u0160\x03\x02\x02\x02\u0645\u0646\x07","h\x02\x02\u0646\u0647\x07t\x02\x02\u0647\u0648\x07q\x02","\x02\u0648\u0649\x07o\x02\x02\u0649\u0162\x03\x02\x02","\x02\u064a\u064b\x07c\x02\x02\u064b\u064c\x07i\x02\x02","\u064c\u064d\x07i\x02\x02\u064d\u064e\x07t\x02\x02\u064e","\u064f\x07g\x02\x02\u064f\u0650\x07i\x02\x02\u0650\u0651","\x07c\x02\x02\u0651\u0652\x07v\x02\x02\u0652\u0653\x07","g\x02\x02\u0653\u0654\x07u\x02\x02\u0654\u0164\x03\x02","\x02\x02\u0655\u0656\x07r\x02\x02\u0656\u0657\x07q\x02","\x02\u0657\u0658\x07k\x02\x02\u0658\u0659\x07p\x02\x02","\u0659\u065a\x07v\x02\x02\u065a\u065b\x07u\x02\x02\u065b","\u0166\x03\x02\x02\x02\u065c\u065d\x07r\x02\x02\u065d","\u065e\x07q\x02\x02\u065e\u065f\x07k\x02\x02\u065f\u0660","\x07p\x02\x02\u0660\u0661\x07v\x02\x02\u0661\u0168\x03","\x02\x02\x02\u0662\u0663\x07v\x02\x02\u0663\u0664\x07","q\x02\x02\u0664\u0665\x07v\x02\x02\u0665\u0666\x07c\x02","\x02\u0666\u0667\x07n\x02\x02\u0667\u016a\x03\x02\x02","\x02\u0668\u0669\x07r\x02\x02\u0669\u066a\x07c\x02\x02","\u066a\u066b\x07t\x02\x02\u066b\u066c\x07v\x02\x02\u066c","\u066d\x07k\x02\x02\u066d\u066e\x07c\x02\x02\u066e\u066f","\x07n\x02\x02\u066f\u016c\x03\x02\x02\x02\u0670\u0671","\x07c\x02\x02\u0671\u0672\x07n\x02\x02\u0672\u0673\x07","y\x02\x02\u0673\u0674\x07c\x02\x02\u0674\u0675\x07{\x02","\x02\u0675\u0676\x07u\x02\x02\u0676\u016e\x03\x02\x02","\x02\u0677\u0678\x07k\x02\x02\u0678\u0679\x07p\x02\x02","\u0679\u067a\x07p\x02\x02\u067a\u067b\x07g\x02\x02\u067b","\u067c\x07t\x02\x02\u067c\u067d\x07a\x02\x02\u067d\u067e","\x07l\x02\x02\u067e\u067f\x07q\x02\x02\u067f\u0680\x07","k\x02\x02\u0680\u0681\x07p\x02\x02\u0681\u0170\x03\x02","\x02\x02\u0682\u0683\x07n\x02\x02\u0683\u0684\x07g\x02","\x02\u0684\u0685\x07h\x02\x02\u0685\u0686\x07v\x02\x02","\u0686\u0687\x07a\x02\x02\u0687\u0688\x07l\x02\x02\u0688","\u0689\x07q\x02\x02\u0689\u068a\x07k\x02\x02\u068a\u068b","\x07p\x02\x02\u068b\u0172\x03\x02\x02\x02\u068c\u068d","\x07e\x02\x02\u068d\u068e\x07t\x02\x02\u068e\u068f\x07","q\x02\x02\u068f\u0690\x07u\x02\x02\u0690\u0691\x07u\x02","\x02\u0691\u0692\x07a\x02\x02\u0692\u0693\x07l\x02\x02","\u0693\u0694\x07q\x02\x02\u0694\u0695\x07k\x02\x02\u0695","\u0696\x07p\x02\x02\u0696\u0174\x03\x02\x02\x02\u0697","\u0698\x07h\x02\x02\u0698\u0699\x07w\x02\x02\u0699\u069a","\x07n\x02\x02\u069a\u069b\x07n\x02\x02\u069b\u069c\x07","a\x02\x02\u069c\u069d\x07l\x02\x02\u069d\u069e\x07q\x02","\x02\u069e\u069f\x07k\x02\x02\u069f\u06a0\x07p\x02\x02","\u06a0\u0176\x03\x02\x02\x02\u06a1\u06a2\x07o\x02\x02","\u06a2\u06a3\x07c\x02\x02\u06a3\u06a4\x07r\x02\x02\u06a4","\u06a5\x07u\x02\x02\u06a5\u06a6\x07a\x02\x02\u06a6\u06a7","\x07h\x02\x02\u06a7\u06a8\x07t\x02\x02\u06a8\u06a9\x07","q\x02\x02\u06a9\u06aa\x07o\x02\x02\u06aa\u0178\x03\x02","\x02\x02\u06ab\u06ac\x07o\x02\x02\u06ac\u06ad\x07c\x02","\x02\u06ad\u06ae\x07r\x02\x02\u06ae\u06af\x07u\x02\x02","\u06af\u06b0\x07a\x02\x02\u06b0\u06b1\x07v\x02\x02\u06b1","\u06b2\x07q\x02\x02\u06b2\u017a\x03\x02\x02\x02\u06b3","\u06b4\x07o\x02\x02\u06b4\u06b5\x07c\x02\x02\u06b5\u06b6","\x07r\x02\x02\u06b6\u06b7\x07a\x02\x02\u06b7\u06b8\x07","v\x02\x02\u06b8\u06b9\x07q\x02\x02\u06b9\u017c\x03\x02","\x02\x02\u06ba\u06bb\x07o\x02\x02\u06bb\u06bc\x07c\x02","\x02\u06bc\u06bd\x07r\x02\x02\u06bd\u06be\x07a\x02\x02","\u06be\u06bf\x07h\x02\x02\u06bf\u06c0\x07t\x02\x02\u06c0","\u06c1\x07q\x02\x02\u06c1\u06c2\x07o\x02\x02\u06c2\u017e","\x03\x02\x02\x02\u06c3\u06c4\x07t\x02\x02\u06c4\u06c5","\x07g\x02\x02\u06c5\u06c6\x07v\x02\x02\u06c6\u06c7\x07","w\x02\x02\u06c7\u06c8\x07t\x02\x02\u06c8\u06c9\x07p\x02","\x02\u06c9\u06ca\x07u\x02\x02\u06ca\u0180\x03\x02\x02","\x02\u06cb\u06cc\x07r\x02\x02\u06cc\u06cd\x07k\x02\x02","\u06cd\u06ce\x07x\x02\x02\u06ce\u06cf\x07q\x02\x02\u06cf","\u06d0\x07v\x02\x02\u06d0\u0182\x03\x02\x02\x02\u06d1","\u06d2\x07e\x02\x02\u06d2\u06d3\x07w\x02\x02\u06d3\u06d4","\x07u\x02\x02\u06d4\u06d5\x07v\x02\x02\u06d5\u06d6\x07","q\x02\x02\u06d6\u06d7\x07o\x02\x02\u06d7\u06d8\x07R\x02","\x02\u06d8\u06d9\x07k\x02\x02\u06d9\u06da\x07x\x02\x02","\u06da\u06db\x07q\x02\x02\u06db\u06dc\x07v\x02\x02\u06dc","\u0184\x03\x02\x02\x02\u06dd\u06de\x07w\x02\x02\u06de","\u06df\x07p\x02\x02\u06df\u06e0\x07r\x02\x02\u06e0\u06e1","\x07k\x02\x02\u06e1\u06e2\x07x\x02\x02\u06e2\u06e3\x07","q\x02\x02\u06e3\u06e4\x07v\x02\x02\u06e4\u0186\x03\x02","\x02\x02\u06e5\u06e6\x07u\x02\x02\u06e6\u06e7\x07w\x02","\x02\u06e7\u06e8\x07d\x02\x02\u06e8\u0188\x03\x02\x02","\x02\u06e9\u06ea\x07c\x02\x02\u06ea\u06eb\x07r\x02\x02","\u06eb\u06ec\x07r\x02\x02\u06ec\u06ed\x07n\x02\x02\u06ed","\u06ee\x07{\x02\x02\u06ee\u018a\x03\x02\x02\x02\u06ef","\u06f0\x07e\x02\x02\u06f0\u06f1\x07q\x02\x02\u06f1\u06f2","\x07p\x02\x02\u06f2\u06f3\x07f\x02\x02\u06f3\u06f4\x07","k\x02\x02\u06f4\u06f5\x07v\x02\x02\u06f5\u06f6\x07k\x02","\x02\u06f6\u06f7\x07q\x02\x02\u06f7\u06f8\x07p\x02\x02","\u06f8\u06f9\x07g\x02\x02\u06f9\u06fa\x07f\x02\x02\u06fa","\u018c\x03\x02\x02\x02\u06fb\u06fc\x07r\x02\x02\u06fc","\u06fd\x07g\x02\x02\u06fd\u06fe\x07t\x02\x02\u06fe\u06ff","\x07k\x02\x02\u06ff\u0700\x07q\x02\x02\u0700\u0701\x07","f\x02\x02\u0701\u0702\x07a\x02\x02\u0702\u0703\x07k\x02","\x02\u0703\u0704\x07p\x02\x02\u0704\u0705\x07f\x02\x02","\u0705\u0706\x07k\x02\x02\u0706\u0707\x07e\x02\x02\u0707","\u0708\x07c\x02\x02\u0708\u0709\x07v\x02\x02\u0709\u070a","\x07q\x02\x02\u070a\u070b\x07t\x02\x02\u070b\u018e\x03","\x02\x02\x02\u070c\u070d\x07u\x02\x02\u070d\u070e\x07","k\x02\x02\u070e\u070f\x07p\x02\x02\u070f\u0710\x07i\x02","\x02\u0710\u0711\x07n\x02\x02\u0711\u0712\x07g\x02\x02","\u0712\u0190\x03\x02\x02\x02\u0713\u0714\x07f\x02\x02","\u0714\u0715\x07w\x02\x02\u0715\u0716\x07t\x02\x02\u0716","\u0717\x07c\x02\x02\u0717\u0718\x07v\x02\x02\u0718\u0719","\x07k\x02\x02\u0719\u071a\x07q\x02\x02\u071a\u071b\x07","p\x02\x02\u071b\u0192\x03\x02\x02\x02\u071c\u071d\x07","v\x02\x02\u071d\u071e\x07k\x02\x02\u071e\u071f\x07o\x02","\x02\u071f\u0720\x07g\x02\x02\u0720\u0721\x07a\x02\x02","\u0721\u0722\x07c\x02\x02\u0722\u0723\x07i\x02\x02\u0723","\u0724\x07i\x02\x02\u0724\u0194\x03\x02\x02\x02\u0725","\u0726\x07w\x02\x02\u0726\u0727\x07p\x02\x02\u0727\u0728","\x07k\x02\x02\u0728\u0729\x07v\x02\x02\u0729\u0196\x03","\x02\x02\x02\u072a\u072b\x07X\x02\x02\u072b\u072c\x07","c\x02\x02\u072c\u072d\x07n\x02\x02\u072d\u072e\x07w\x02","\x02\u072e\u072f\x07g\x02\x02\u072f\u0198\x03\x02\x02","\x02\u0730\u0731\x07x\x02\x02\u0731\u0732\x07c\x02\x02","\u0732\u0733\x07n\x02\x02\u0733\u0734\x07w\x02\x02\u0734","\u0735\x07g\x02\x02\u0735\u0736\x07f\x02\x02\u0736\u0737","\x07q\x02\x02\u0737\u0738\x07o\x02\x02\u0738\u0739\x07","c\x02\x02\u0739\u073a\x07k\x02\x02\u073a\u073b\x07p\x02","\x02\u073b\u073c\x07u\x02\x02\u073c\u019a\x03\x02\x02","\x02\u073d\u073e\x07x\x02\x02\u073e\u073f\x07c\x02\x02","\u073f\u0740\x07t\x02\x02\u0740\u0741\x07k\x02\x02\u0741","\u0742\x07c\x02\x02\u0742\u0743\x07d\x02\x02\u0743\u0744","\x07n\x02\x02\u0744\u0745\x07g\x02\x02\u0745\u0746\x07","u\x02\x02\u0746\u019c\x03\x02\x02\x02\u0747\u0748\x07","k\x02\x02\u0748\u0749\x07p\x02\x02\u0749\u074a\x07r\x02","\x02\u074a\u074b\x07w\x02\x02\u074b\u074c\x07v\x02\x02","\u074c\u019e\x03\x02\x02\x02\u074d\u074e\x07q\x02\x02","\u074e\u074f\x07w\x02\x02\u074f\u0750\x07v\x02\x02\u0750","\u0751\x07r\x02\x02\u0751\u0752\x07w\x02\x02\u0752\u0753","\x07v\x02\x02\u0753\u01a0\x03\x02\x02\x02\u0754\u0755","\x07e\x02\x02\u0755\u0756\x07c\x02\x02\u0756\u0757\x07","u\x02\x02\u0757\u0758\x07v\x02\x02\u0758\u01a2\x03\x02","\x02\x02\u0759\u075a\x07t\x02\x02\u075a\u075b\x07w\x02","\x02\u075b\u075c\x07n\x02\x02\u075c\u075d\x07g\x02\x02","\u075d\u075e\x07a\x02\x02\u075e\u075f\x07r\x02\x02\u075f","\u0760\x07t\x02\x02\u0760\u0761\x07k\x02\x02\u0761\u0762","\x07q\x02\x02\u0762\u0763\x07t\x02\x02\u0763\u0764\x07","k\x02\x02\u0764\u0765\x07v\x02\x02\u0765\u0766\x07{\x02","\x02\u0766\u01a4\x03\x02\x02\x02\u0767\u0768\x07f\x02","\x02\u0768\u0769\x07c\x02\x02\u0769\u076a\x07v\x02\x02","\u076a\u076b\x07c\x02\x02\u076b\u076c\x07u\x02\x02\u076c","\u076d\x07g\x02\x02\u076d\u076e\x07v\x02\x02\u076e\u076f","\x07a\x02\x02\u076f\u0770\x07r\x02\x02\u0770\u0771\x07","t\x02\x02\u0771\u0772\x07k\x02\x02\u0772\u0773\x07q\x02","\x02\u0773\u0774\x07t\x02\x02\u0774\u0775\x07k\x02\x02","\u0775\u0776\x07v\x02\x02\u0776\u0777\x07{\x02\x02\u0777","\u01a6\x03\x02\x02\x02\u0778\u0779\x07f\x02\x02\u0779","\u077a\x07g\x02\x02\u077a\u077b\x07h\x02\x02\u077b\u077c","\x07c\x02\x02\u077c\u077d\x07w\x02\x02\u077d\u077e\x07","n\x02\x02\u077e\u077f\x07v\x02\x02\u077f\u01a8\x03\x02","\x02\x02\u0780\u0781\x07e\x02\x02\u0781\u0782\x07j\x02","\x02\u0782\u0783\x07g\x02\x02\u0783\u0784\x07e\x02\x02","\u0784\u0785\x07m\x02\x02\u0785\u0786\x07a\x02\x02\u0786","\u0787\x07f\x02\x02\u0787\u0788\x07c\x02\x02\u0788\u0789","\x07v\x02\x02\u0789\u078a\x07c\x02\x02\u078a\u078b\x07","r\x02\x02\u078b\u078c\x07q\x02\x02\u078c\u078d\x07k\x02","\x02\u078d\u078e\x07p\x02\x02\u078e\u078f\x07v\x02\x02","\u078f\u01aa\x03\x02\x02\x02\u0790\u0791\x07e\x02\x02","\u0791\u0792\x07j\x02\x02\u0792\u0793\x07g\x02\x02\u0793","\u0794\x07e\x02\x02\u0794\u0795\x07m\x02\x02\u0795\u0796","\x07a\x02\x02\u0796\u0797\x07j\x02\x02\u0797\u0798\x07","k\x02\x02\u0798\u0799\x07g\x02\x02\u0799\u079a\x07t\x02","\x02\u079a\u079b\x07c\x02\x02\u079b\u079c\x07t\x02\x02","\u079c\u079d\x07e\x02\x02\u079d\u079e\x07j\x02\x02\u079e","\u079f\x07{\x02\x02\u079f\u01ac\x03\x02\x02\x02\u07a0","\u07a1\x07e\x02\x02\u07a1\u07a2\x07q\x02\x02\u07a2\u07a3","\x07o\x02\x02\u07a3\u07a4\x07r\x02\x02\u07a4\u07a5\x07","w\x02\x02\u07a5\u07a6\x07v\x02\x02\u07a6\u07a7\x07g\x02","\x02\u07a7\u07a8\x07f\x02\x02\u07a8\u01ae\x03\x02\x02","\x02\u07a9\u07aa\x07p\x02\x02\u07aa\u07ab\x07q\x02\x02","\u07ab\u07ac\x07p\x02\x02\u07ac\u07ad\x07a\x02\x02\u07ad","\u07ae\x07p\x02\x02\u07ae\u07af\x07w\x02\x02\u07af\u07b0","\x07n\x02\x02\u07b0\u07b1\x07n\x02\x02\u07b1\u01b0\x03","\x02\x02\x02\u07b2\u07b3\x07p\x02\x02\u07b3\u07b4\x07","q\x02\x02\u07b4\u07b5\x07p\x02\x02\u07b5\u07b6\x07a\x02","\x02\u07b6\u07b7\x07|\x02\x02\u07b7\u07b8\x07g\x02\x02","\u07b8\u07b9\x07t\x02\x02\u07b9\u07ba\x07q\x02\x02\u07ba","\u01b2\x03\x02\x02\x02\u07bb\u07bc\x07r\x02\x02\u07bc","\u07bd\x07c\x02\x02\u07bd\u07be\x07t\x02\x02\u07be\u07bf","\x07v\x02\x02\u07bf\u07c0\x07k\x02\x02\u07c0\u07c1\x07","c\x02\x02\u07c1\u07c2\x07n\x02\x02\u07c2\u07c3\x07a\x02","\x02\u07c3\u07c4\x07p\x02\x02\u07c4\u07c5\x07w\x02\x02","\u07c5\u07c6\x07n\x02\x02\u07c6\u07c7\x07n\x02\x02\u07c7","\u01b4\x03\x02\x02\x02\u07c8\u07c9\x07r\x02\x02\u07c9","\u07ca\x07c\x02\x02\u07ca\u07cb\x07t\x02\x02\u07cb\u07cc","\x07v\x02\x02\u07cc\u07cd\x07k\x02\x02\u07cd\u07ce\x07","c\x02\x02\u07ce\u07cf\x07n\x02\x02\u07cf\u07d0\x07a\x02","\x02\u07d0\u07d1\x07|\x02\x02\u07d1\u07d2\x07g\x02\x02","\u07d2\u07d3\x07t\x02\x02\u07d3\u07d4\x07q\x02\x02\u07d4","\u01b6\x03\x02\x02\x02\u07d5\u07d6\x07c\x02\x02\u07d6","\u07d7\x07n\x02\x02\u07d7\u07d8\x07y\x02\x02\u07d8\u07d9","\x07c\x02\x02\u07d9\u07da\x07{\x02\x02\u07da\u07db\x07","u\x02\x02\u07db\u07dc\x07a\x02\x02\u07dc\u07dd\x07p\x02","\x02\u07dd\u07de\x07w\x02\x02\u07de\u07df\x07n\x02\x02","\u07df\u07e0\x07n\x02\x02\u07e0\u01b8\x03\x02\x02\x02","\u07e1\u07e2\x07c\x02\x02\u07e2\u07e3\x07n\x02\x02\u07e3","\u07e4\x07y\x02\x02\u07e4\u07e5\x07c\x02\x02\u07e5\u07e6","\x07{\x02\x02\u07e6\u07e7\x07u\x02\x02\u07e7\u07e8\x07","a\x02\x02\u07e8\u07e9\x07|\x02\x02\u07e9\u07ea\x07g\x02","\x02\u07ea\u07eb\x07t\x02\x02\u07eb\u07ec\x07q\x02\x02","\u07ec\u01ba\x03\x02\x02\x02\u07ed\u07ee\x07e\x02\x02","\u07ee\u07ef\x07q\x02\x02\u07ef\u07f0\x07o\x02\x02\u07f0","\u07f1\x07r\x02\x02\u07f1\u07f2\x07q\x02\x02\u07f2\u07f3","\x07p\x02\x02\u07f3\u07f4\x07g\x02\x02\u07f4\u07f5\x07","p\x02\x02\u07f5\u07f6\x07v\x02\x02\u07f6\u07f7\x07u\x02","\x02\u07f7\u01bc\x03\x02\x02\x02\u07f8\u07f9\x07c\x02","\x02\u07f9\u07fa\x07n\x02\x02\u07fa\u07fb\x07n\x02\x02","\u07fb\u07fc\x07a\x02\x02\u07fc\u07fd\x07o\x02\x02\u07fd","\u07fe\x07g\x02\x02\u07fe\u07ff\x07c\x02\x02\u07ff\u0800","\x07u\x02\x02\u0800\u0801\x07w\x02\x02\u0801\u0802\x07","t\x02\x02\u0802\u0803\x07g\x02\x02\u0803\u0804\x07u\x02","\x02\u0804\u01be\x03\x02\x02\x02\u0805\u0806\x07u\x02","\x02\u0806\u0807\x07e\x02\x02\u0807\u0808\x07c\x02\x02","\u0808\u0809\x07n\x02\x02\u0809\u080a\x07c\x02\x02\u080a","\u080b\x07t\x02\x02\u080b\u01c0\x03\x02\x02\x02\u080c","\u080d\x07e\x02\x02\u080d\u080e\x07q\x02\x02\u080e\u080f","\x07o\x02\x02\u080f\u0810\x07r\x02\x02\u0810\u0811\x07","q\x02\x02\u0811\u0812\x07p\x02\x02\u0812\u0813\x07g\x02","\x02\u0813\u0814\x07p\x02\x02\u0814\u0815\x07v\x02\x02","\u0815\u01c2\x03\x02\x02\x02\u0816\u0817\x07f\x02\x02","\u0817\u0818\x07c\x02\x02\u0818\u0819\x07v\x02\x02\u0819","\u081a\x07c\x02\x02\u081a\u081b\x07r\x02\x02\u081b\u081c","\x07q\x02\x02\u081c\u081d\x07k\x02\x02\u081d\u081e\x07","p\x02\x02\u081e\u081f\x07v\x02\x02\u081f\u0820\x07a\x02","\x02\u0820\u0821\x07q\x02\x02\u0821\u0822\x07p\x02\x02","\u0822\u0823\x07a\x02\x02\u0823\u0824\x07x\x02\x02\u0824","\u0825\x07c\x02\x02\u0825\u0826\x07n\x02\x02\u0826\u0827","\x07w\x02\x02\u0827\u0828\x07g\x02\x02\u0828\u0829\x07","f\x02\x02\u0829\u082a\x07q\x02\x02\u082a\u082b\x07o\x02","\x02\u082b\u082c\x07c\x02\x02\u082c\u082d\x07k\x02\x02","\u082d\u082e\x07p\x02\x02\u082e\u082f\x07u\x02\x02\u082f","\u01c4\x03\x02\x02\x02\u0830\u0831\x07f\x02\x02\u0831","\u0832\x07c\x02\x02\u0832\u0833\x07v\x02\x02\u0833\u0834","\x07c\x02\x02\u0834\u0835\x07r\x02\x02\u0835\u0836\x07","q\x02\x02\u0836\u0837\x07k\x02\x02\u0837\u0838\x07p\x02","\x02\u0838\u0839\x07v\x02\x02\u0839\u083a\x07a\x02\x02","\u083a\u083b\x07q\x02\x02\u083b\u083c\x07p\x02\x02\u083c","\u083d\x07a\x02\x02\u083d\u083e\x07x\x02\x02\u083e\u083f","\x07c\x02\x02\u083f\u0840\x07t\x02\x02\u0840\u0841\x07","k\x02\x02\u0841\u0842\x07c\x02\x02\u0842\u0843\x07d\x02","\x02\u0843\u0844\x07n\x02\x02\u0844\u0845\x07g\x02\x02","\u0845\u0846\x07u\x02\x02\u0846\u01c6\x03\x02\x02\x02","\u0847\u0848\x07j\x02\x02\u0848\u0849\x07k\x02\x02\u0849","\u084a\x07g\x02\x02\u084a\u084b\x07t\x02\x02\u084b\u084c","\x07c\x02\x02\u084c\u084d\x07t\x02\x02\u084d\u084e\x07","e\x02\x02\u084e\u084f\x07j\x02\x02\u084f\u0850\x07k\x02","\x02\u0850\u0851\x07e\x02\x02\u0851\u0852\x07c\x02\x02","\u0852\u0853\x07n\x02\x02\u0853\u0854\x07a\x02\x02\u0854","\u0855\x07q\x02\x02\u0855\u0856\x07p\x02\x02\u0856\u0857","\x07a\x02\x02\u0857\u0858\x07x\x02\x02\u0858\u0859\x07","c\x02\x02\u0859\u085a\x07n\x02\x02\u085a\u085b\x07w\x02","\x02\u085b\u085c\x07g\x02\x02\u085c\u085d\x07f\x02\x02","\u085d\u085e\x07q\x02\x02\u085e\u085f\x07o\x02\x02\u085f","\u0860\x07c\x02\x02\u0860\u0861\x07k\x02\x02\u0861\u0862","\x07p\x02\x02\u0862\u0863\x07u\x02\x02\u0863\u01c8\x03","\x02\x02\x02\u0864\u0865\x07j\x02\x02\u0865\u0866\x07","k\x02\x02\u0866\u0867\x07g\x02\x02\u0867\u0868\x07t\x02","\x02\u0868\u0869\x07c\x02\x02\u0869\u086a\x07t\x02\x02","\u086a\u086b\x07e\x02\x02\u086b\u086c\x07j\x02\x02\u086c","\u086d\x07k\x02\x02\u086d\u086e\x07e\x02\x02\u086e\u086f","\x07c\x02\x02\u086f\u0870\x07n\x02\x02\u0870\u0871\x07","a\x02\x02\u0871\u0872\x07q\x02\x02\u0872\u0873\x07p\x02","\x02\u0873\u0874\x07a\x02\x02\u0874\u0875\x07x\x02\x02","\u0875\u0876\x07c\x02\x02\u0876\u0877\x07t\x02\x02\u0877","\u0878\x07k\x02\x02\u0878\u0879\x07c\x02\x02\u0879\u087a","\x07d\x02\x02\u087a\u087b\x07n\x02\x02\u087b\u087c\x07","g\x02\x02\u087c\u087d\x07u\x02\x02\u087d\u01ca\x03\x02","\x02\x02\u087e\u087f\x07u\x02\x02\u087f\u0880\x07g\x02","\x02\u0880\u0881\x07v\x02\x02\u0881\u01cc\x03\x02\x02","\x02\u0882\u0883\x07n\x02\x02\u0883\u0884\x07c\x02\x02","\u0884\u0885\x07p\x02\x02\u0885\u0886\x07i\x02\x02\u0886","\u0887\x07w\x02\x02\u0887\u0888\x07c\x02\x02\u0888\u0889","\x07i\x02\x02\u0889\u088a\x07g\x02\x02\u088a\u01ce\x03","\x02\x02\x02\u088b\u088c\t\x02\x02\x02\u088c\u01d0\x03","\x02\x02\x02\u088d\u088e\x042;\x02\u088e\u01d2\x03\x02","\x02\x02\u088f\u0891\x05\x1d\x0f\x02\u0890\u088f\x03\x02","\x02\x02\u0890\u0891\x03\x02\x02\x02\u0891\u0893\x03\x02","\x02\x02\u0892\u0894\x05\u01d1\xe9\x02\u0893\u0892\x03\x02","\x02\x02\u0894\u0895\x03\x02\x02\x02\u0895\u0893\x03\x02","\x02\x02\u0895\u0896\x03\x02\x02\x02\u0896\u01d4\x03\x02","\x02\x02\u0897\u0898\x05\u01d3\xea\x02\u0898\u089c\x070","\x02\x02\u0899\u089b\x05\u01d3\xea\x02\u089a\u0899\x03\x02","\x02\x02\u089b\u089e\x03\x02\x02\x02\u089c\u089a\x03\x02","\x02\x02\u089c\u089d\x03\x02\x02\x02\u089d\u01d6\x03\x02","\x02\x02\u089e\u089c\x03\x02\x02\x02\u089f\u08a0\x07v","\x02\x02\u08a0\u08a1\x07t\x02\x02\u08a1\u08a2\x07w\x02","\x02\u08a2\u08a9\x07g\x02\x02\u08a3\u08a4\x07h\x02\x02","\u08a4\u08a5\x07c\x02\x02\u08a5\u08a6\x07n\x02\x02\u08a6","\u08a7\x07u\x02\x02\u08a7\u08a9\x07g\x02\x02\u08a8\u089f","\x03\x02\x02\x02\u08a8\u08a3\x03\x02\x02\x02\u08a9\u01d8","\x03\x02\x02\x02\u08aa\u08ae\x07$\x02\x02\u08ab\u08ad","\n\x03\x02\x02\u08ac\u08ab\x03\x02\x02\x02\u08ad\u08b0","\x03\x02\x02\x02\u08ae\u08ac\x03\x02\x02\x02\u08ae\u08af","\x03\x02\x02\x02\u08af\u08b1\x03\x02\x02\x02\u08b0\u08ae","\x03\x02\x02\x02\u08b1\u08b2\x07$\x02\x02\u08b2\u01da","\x03\x02\x02\x02\u08b3\u08b7\x05\u01cf\xe8\x02\u08b4\u08b6","\t\x04\x02\x02\u08b5\u08b4\x03\x02\x02\x02\u08b6\u08b9","\x03\x02\x02\x02\u08b7\u08b5\x03\x02\x02\x02\u08b7\u08b8","\x03\x02\x02\x02\u08b8\u08c9\x03\x02\x02\x02\u08b9\u08b7","\x03\x02\x02\x02\u08ba\u08bc\x05\u01d1\xe9\x02\u08bb\u08bd","\t\x04\x02\x02\u08bc\u08bb\x03\x02\x02\x02\u08bd\u08be","\x03\x02\x02\x02\u08be\u08bc\x03\x02\x02\x02\u08be\u08bf","\x03\x02\x02\x02\u08bf\u08c9\x03\x02\x02\x02\u08c0\u08c4","\x07)\x02\x02\u08c1\u08c3\v\x02\x02\x02\u08c2\u08c1","\x03\x02\x02\x02\u08c3\u08c6\x03\x02\x02\x02\u08c4\u08c5","\x03\x02\x02\x02\u08c4\u08c2\x03\x02\x02\x02\u08c5\u08c7","\x03\x02\x02\x02\u08c6\u08c4\x03\x02\x02\x02\u08c7\u08c9","\x07)\x02\x02\u08c8\u08b3\x03\x02\x02\x02\u08c8\u08ba","\x03\x02\x02\x02\u08c8\u08c0\x03\x02\x02\x02\u08c9\u01dc","\x03\x02\x02\x02\u08ca\u08cc\t\x05\x02\x02\u08cb\u08ca","\x03\x02\x02\x02\u08cc\u08cd\x03\x02\x02\x02\u08cd\u08cb","\x03\x02\x02\x02\u08cd\u08ce\x03\x02\x02\x02\u08ce\u08cf","\x03\x02\x02\x02\u08cf\u08d0\b\xef\x02\x02\u08d0\u01de","\x03\x02\x02\x02\u08d1\u08d2\x07=\x02\x02\u08d2\u01e0","\x03\x02\x02\x02\u08d3\u08d4\x071\x02\x02\u08d4\u08d5","\x07,\x02\x02\u08d5\u08d9\x03\x02\x02\x02\u08d6\u08d8","\v\x02\x02\x02\u08d7\u08d6\x03\x02\x02\x02\u08d8\u08db","\x03\x02\x02\x02\u08d9\u08da\x03\x02\x02\x02\u08d9\u08d7","\x03\x02\x02\x02\u08da\u08dc\x03\x02\x02\x02\u08db\u08d9","\x03\x02\x02\x02\u08dc\u08dd\x07,\x02\x02\u08dd\u08de","\x071\x02\x02\u08de\u08df\x03\x02\x02\x02\u08df\u08e0","\b\xf1\x03\x02\u08e0\u01e2\x03\x02\x02\x02\u08e1\u08e2","\x071\x02\x02\u08e2\u08e3\x071\x02\x02\u08e3\u08e7\x03","\x02\x02\x02\u08e4\u08e6\v\x02\x02\x02\u08e5\u08e4\x03","\x02\x02\x02\u08e6\u08e9\x03\x02\x02\x02\u08e7\u08e8\x03","\x02\x02\x02\u08e7\u08e5\x03\x02\x02\x02\u08e8\u08ea\x03","\x02\x02\x02\u08e9\u08e7\x03\x02\x02\x02\u08ea\u08eb\x07","\f\x02\x02\u08eb\u08ec\x03\x02\x02\x02\u08ec\u08ed\b\xf2","\x03\x02\u08ed\u01e4\x03\x02\x02\x02\x0f\x02\u0890\u0895","\u089c\u08a8\u08ae\u08b7\u08be\u08c4\u08c8\u08cd\u08d9\u08e7\x04\x02","\x03\x02\x02\x04\x02"].join(""),o=(new r.atn.ATNDeserializer).deserialize(i),s=o.decisionToState.map((function(t,e){return new r.dfa.DFA(t,e)}));function a(t){return r.Lexer.call(this,t),this._interp=new r.atn.LexerATNSimulator(this,o,s,new r.PredictionContextCache),this}a.prototype=Object.create(r.Lexer.prototype),a.prototype.constructor=a,Object.defineProperty(a.prototype,"atn",{get:function(){return o}}),a.EOF=r.Token.EOF,a.LPAREN=1,a.RPAREN=2,a.QLPAREN=3,a.QRPAREN=4,a.GLPAREN=5,a.GRPAREN=6,a.EQ=7,a.LT=8,a.MT=9,a.ME=10,a.NEQ=11,a.LE=12,a.PLUS=13,a.MINUS=14,a.MUL=15,a.DIV=16,a.COMMA=17,a.POINTER=18,a.COLON=19,a.ASSIGN=20,a.MEMBERSHIP=21,a.EVAL=22,a.IF=23,a.THEN=24,a.ELSE=25,a.USING=26,a.WITH=27,a.CURRENT_DATE=28,a.ON=29,a.DROP=30,a.KEEP=31,a.CALC=32,a.ATTRCALC=33,a.RENAME=34,a.AS=35,a.AND=36,a.OR=37,a.XOR=38,a.NOT=39,a.BETWEEN=40,a.IN=41,a.NOT_IN=42,a.NULL_CONSTANT=43,a.ISNULL=44,a.EX=45,a.UNION=46,a.DIFF=47,a.SYMDIFF=48,a.INTERSECT=49,a.KEYS=50,a.INTYEAR=51,a.INTMONTH=52,a.INTDAY=53,a.CHECK=54,a.EXISTS_IN=55,a.TO=56,a.RETURN=57,a.IMBALANCE=58,a.ERRORCODE=59,a.ALL=60,a.AGGREGATE=61,a.ERRORLEVEL=62,a.ORDER=63,a.BY=64,a.RANK=65,a.ASC=66,a.DESC=67,a.MIN=68,a.MAX=69,a.FIRST=70,a.LAST=71,a.INDEXOF=72,a.ABS=73,a.KEY=74,a.LN=75,a.LOG=76,a.TRUNC=77,a.ROUND=78,a.POWER=79,a.MOD=80,a.LEN=81,a.CONCAT=82,a.TRIM=83,a.UCASE=84,a.LCASE=85,a.SUBSTR=86,a.SUM=87,a.AVG=88,a.MEDIAN=89,a.COUNT=90,a.DIMENSION=91,a.MEASURE=92,a.ATTRIBUTE=93,a.FILTER=94,a.MERGE=95,a.EXP=96,a.ROLE=97,a.VIRAL=98,a.CHARSET_MATCH=99,a.TYPE=100,a.NVL=101,a.HIERARCHY=102,a.OPTIONAL=103,a.INVALID=104,a.LEVENSHTEIN=105,a.VALUE_DOMAIN=106,a.VARIABLE=107,a.DATA=108,a.STRUCTURE=109,a.DATASET=110,a.OPERATOR=111,a.DEFINE=112,a.PUT_SYMBOL=113,a.DATAPOINT=114,a.HIERARCHICAL=115,a.RULESET=116,a.RULE=117,a.END=118,a.ALTER_DATASET=119,a.LTRIM=120,a.RTRIM=121,a.INSTR=122,a.REPLACE=123,a.CEIL=124,a.FLOOR=125,a.SQRT=126,a.RANDOM=127,a.ANY=128,a.SETDIFF=129,a.STDDEV_POP=130,a.STDDEV_SAMP=131,a.VAR_POP=132,a.VAR_SAMP=133,a.GROUP=134,a.EXCEPT=135,a.HAVING=136,a.FIRST_VALUE=137,a.LAST_VALUE=138,a.LAG=139,a.LEAD=140,a.RATIO_TO_REPORT=141,a.OVER=142,a.PRECEDING=143,a.FOLLOWING=144,a.UNBOUNDED=145,a.PARTITION=146,a.ROWS=147,a.RANGE=148,a.CURRENT=149,a.VALID=150,a.FILL_TIME_SERIES=151,a.FLOW_TO_STOCK=152,a.STOCK_TO_FLOW=153,a.TIMESHIFT=154,a.MEASURES=155,a.NO_MEASURES=156,a.CONDITION=157,a.BOOLEAN=158,a.DATE=159,a.TIME_PERIOD=160,a.NUMBER=161,a.STRING=162,a.TIME=163,a.INTEGER=164,a.FLOAT=165,a.LIST=166,a.RECORD=167,a.RESTRICT=168,a.YYYY=169,a.MM=170,a.DD=171,a.MAX_LENGTH=172,a.REGEXP=173,a.IS=174,a.WHEN=175,a.FROM=176,a.AGGREGATES=177,a.POINTS=178,a.POINT=179,a.TOTAL=180,a.PARTIAL=181,a.ALWAYS=182,a.INNER_JOIN=183,a.LEFT_JOIN=184,a.CROSS_JOIN=185,a.FULL_JOIN=186,a.MAPS_FROM=187,a.MAPS_TO=188,a.MAP_TO=189,a.MAP_FROM=190,a.RETURNS=191,a.PIVOT=192,a.CUSTOMPIVOT=193,a.UNPIVOT=194,a.SUBSPACE=195,a.APPLY=196,a.CONDITIONED=197,a.PERIOD_INDICATOR=198,a.SINGLE=199,a.DURATION=200,a.TIME_AGG=201,a.UNIT=202,a.VALUE=203,a.VALUEDOMAINS=204,a.VARIABLES=205,a.INPUT=206,a.OUTPUT=207,a.CAST=208,a.RULE_PRIORITY=209,a.DATASET_PRIORITY=210,a.DEFAULT=211,a.CHECK_DATAPOINT=212,a.CHECK_HIERARCHY=213,a.COMPUTED=214,a.NON_NULL=215,a.NON_ZERO=216,a.PARTIAL_NULL=217,a.PARTIAL_ZERO=218,a.ALWAYS_NULL=219,a.ALWAYS_ZERO=220,a.COMPONENTS=221,a.ALL_MEASURES=222,a.SCALAR=223,a.COMPONENT=224,a.DATAPOINT_ON_VD=225,a.DATAPOINT_ON_VAR=226,a.HIERARCHICAL_ON_VD=227,a.HIERARCHICAL_ON_VAR=228,a.SET=229,a.LANGUAGE=230,a.INTEGER_CONSTANT=231,a.NUMBER_CONSTANT=232,a.BOOLEAN_CONSTANT=233,a.STRING_CONSTANT=234,a.IDENTIFIER=235,a.WS=236,a.EOL=237,a.ML_COMMENT=238,a.SL_COMMENT=239,a.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],a.prototype.modeNames=["DEFAULT_MODE"],a.prototype.literalNames=[null,"'('","')'","'['","']'","'{'","'}'","'='","'<'","'>'","'>='","'<>'","'<='","'+'","'-'","'*'","'/'","','","'->'","':'","':='","'#'","'eval'","'if'","'then'","'else'","'using'","'with'","'current_date'","'on'","'drop'","'keep'","'calc'","'attrcalc'","'rename'","'as'","'and'","'or'","'xor'","'not'","'between'","'in'","'not_in'","'null'","'isnull'","'ex'","'union'","'diff'","'symdiff'","'intersect'","'keys'","'intyear'","'intmonth'","'intday'","'check'","'exists_in'","'to'","'return'","'imbalance'","'errorcode'","'all'","'aggr'","'errorlevel'","'order'","'by'","'rank'","'asc'","'desc'","'min'","'max'","'first'","'last'","'indexof'","'abs'","'key'","'ln'","'log'","'trunc'","'round'","'power'","'mod'","'length'","'||'","'trim'","'upper'","'lower'","'substr'","'sum'","'avg'","'median'","'count'","'identifier'","'measure'","'attribute'","'filter'","'merge'","'exp'","'componentRole'","'viral'","'match_characters'","'type'","'nvl'","'hierarchy'","'_'","'invalid'","'levenshtein'","'valuedomain'","'variable'","'data'","'structure'","'dataset'","'operator'","'define'","'<-'","'datapoint'","'hierarchical'","'ruleset'","'rule'","'end'","'alterDataset'","'ltrim'","'rtrim'","'instr'","'replace'","'ceil'","'floor'","'sqrt'","'random'","'any'","'setdiff'","'stddev_pop'","'stddev_samp'","'var_pop'","'var_samp'","'group'","'except'","'having'","'first_value'","'last_value'","'lag'","'lead'","'ratio_to_report'","'over'","'preceding'","'following'","'unbounded'","'partition'","'rows'","'range'","'current'","'valid'","'fill_time_series'","'flow_to_stock'","'stock_to_flow'","'timeshift'","'measures'","'no_measures'","'condition'","'boolean'","'date'","'time_period'","'number'","'string'","'time'","'integer'","'float'","'list'","'record'","'restrict'","'yyyy'","'mm'","'dd'","'maxLength'","'regexp'","'is'","'when'","'from'","'aggregates'","'points'","'point'","'total'","'partial'","'always'","'inner_join'","'left_join'","'cross_join'","'full_join'","'maps_from'","'maps_to'","'map_to'","'map_from'","'returns'","'pivot'","'customPivot'","'unpivot'","'sub'","'apply'","'conditioned'","'period_indicator'","'single'","'duration'","'time_agg'","'unit'","'Value'","'valuedomains'","'variables'","'input'","'output'","'cast'","'rule_priority'","'dataset_priority'","'default'","'check_datapoint'","'check_hierarchy'","'computed'","'non_null'","'non_zero'","'partial_null'","'partial_zero'","'always_null'","'always_zero'","'components'","'all_measures'","'scalar'","'component'","'datapoint_on_valuedomains'","'datapoint_on_variables'","'hierarchical_on_valuedomains'","'hierarchical_on_variables'","'set'","'language'",null,null,null,null,null,null,"';'"],a.prototype.symbolicNames=[null,"LPAREN","RPAREN","QLPAREN","QRPAREN","GLPAREN","GRPAREN","EQ","LT","MT","ME","NEQ","LE","PLUS","MINUS","MUL","DIV","COMMA","POINTER","COLON","ASSIGN","MEMBERSHIP","EVAL","IF","THEN","ELSE","USING","WITH","CURRENT_DATE","ON","DROP","KEEP","CALC","ATTRCALC","RENAME","AS","AND","OR","XOR","NOT","BETWEEN","IN","NOT_IN","NULL_CONSTANT","ISNULL","EX","UNION","DIFF","SYMDIFF","INTERSECT","KEYS","INTYEAR","INTMONTH","INTDAY","CHECK","EXISTS_IN","TO","RETURN","IMBALANCE","ERRORCODE","ALL","AGGREGATE","ERRORLEVEL","ORDER","BY","RANK","ASC","DESC","MIN","MAX","FIRST","LAST","INDEXOF","ABS","KEY","LN","LOG","TRUNC","ROUND","POWER","MOD","LEN","CONCAT","TRIM","UCASE","LCASE","SUBSTR","SUM","AVG","MEDIAN","COUNT","DIMENSION","MEASURE","ATTRIBUTE","FILTER","MERGE","EXP","ROLE","VIRAL","CHARSET_MATCH","TYPE","NVL","HIERARCHY","OPTIONAL","INVALID","LEVENSHTEIN","VALUE_DOMAIN","VARIABLE","DATA","STRUCTURE","DATASET","OPERATOR","DEFINE","PUT_SYMBOL","DATAPOINT","HIERARCHICAL","RULESET","RULE","END","ALTER_DATASET","LTRIM","RTRIM","INSTR","REPLACE","CEIL","FLOOR","SQRT","RANDOM","ANY","SETDIFF","STDDEV_POP","STDDEV_SAMP","VAR_POP","VAR_SAMP","GROUP","EXCEPT","HAVING","FIRST_VALUE","LAST_VALUE","LAG","LEAD","RATIO_TO_REPORT","OVER","PRECEDING","FOLLOWING","UNBOUNDED","PARTITION","ROWS","RANGE","CURRENT","VALID","FILL_TIME_SERIES","FLOW_TO_STOCK","STOCK_TO_FLOW","TIMESHIFT","MEASURES","NO_MEASURES","CONDITION","BOOLEAN","DATE","TIME_PERIOD","NUMBER","STRING","TIME","INTEGER","FLOAT","LIST","RECORD","RESTRICT","YYYY","MM","DD","MAX_LENGTH","REGEXP","IS","WHEN","FROM","AGGREGATES","POINTS","POINT","TOTAL","PARTIAL","ALWAYS","INNER_JOIN","LEFT_JOIN","CROSS_JOIN","FULL_JOIN","MAPS_FROM","MAPS_TO","MAP_TO","MAP_FROM","RETURNS","PIVOT","CUSTOMPIVOT","UNPIVOT","SUBSPACE","APPLY","CONDITIONED","PERIOD_INDICATOR","SINGLE","DURATION","TIME_AGG","UNIT","VALUE","VALUEDOMAINS","VARIABLES","INPUT","OUTPUT","CAST","RULE_PRIORITY","DATASET_PRIORITY","DEFAULT","CHECK_DATAPOINT","CHECK_HIERARCHY","COMPUTED","NON_NULL","NON_ZERO","PARTIAL_NULL","PARTIAL_ZERO","ALWAYS_NULL","ALWAYS_ZERO","COMPONENTS","ALL_MEASURES","SCALAR","COMPONENT","DATAPOINT_ON_VD","DATAPOINT_ON_VAR","HIERARCHICAL_ON_VD","HIERARCHICAL_ON_VAR","SET","LANGUAGE","INTEGER_CONSTANT","NUMBER_CONSTANT","BOOLEAN_CONSTANT","STRING_CONSTANT","IDENTIFIER","WS","EOL","ML_COMMENT","SL_COMMENT"],a.prototype.ruleNames=["LPAREN","RPAREN","QLPAREN","QRPAREN","GLPAREN","GRPAREN","EQ","LT","MT","ME","NEQ","LE","PLUS","MINUS","MUL","DIV","COMMA","POINTER","COLON","ASSIGN","MEMBERSHIP","EVAL","IF","THEN","ELSE","USING","WITH","CURRENT_DATE","ON","DROP","KEEP","CALC","ATTRCALC","RENAME","AS","AND","OR","XOR","NOT","BETWEEN","IN","NOT_IN","NULL_CONSTANT","ISNULL","EX","UNION","DIFF","SYMDIFF","INTERSECT","KEYS","INTYEAR","INTMONTH","INTDAY","CHECK","EXISTS_IN","TO","RETURN","IMBALANCE","ERRORCODE","ALL","AGGREGATE","ERRORLEVEL","ORDER","BY","RANK","ASC","DESC","MIN","MAX","FIRST","LAST","INDEXOF","ABS","KEY","LN","LOG","TRUNC","ROUND","POWER","MOD","LEN","CONCAT","TRIM","UCASE","LCASE","SUBSTR","SUM","AVG","MEDIAN","COUNT","DIMENSION","MEASURE","ATTRIBUTE","FILTER","MERGE","EXP","ROLE","VIRAL","CHARSET_MATCH","TYPE","NVL","HIERARCHY","OPTIONAL","INVALID","LEVENSHTEIN","VALUE_DOMAIN","VARIABLE","DATA","STRUCTURE","DATASET","OPERATOR","DEFINE","PUT_SYMBOL","DATAPOINT","HIERARCHICAL","RULESET","RULE","END","ALTER_DATASET","LTRIM","RTRIM","INSTR","REPLACE","CEIL","FLOOR","SQRT","RANDOM","ANY","SETDIFF","STDDEV_POP","STDDEV_SAMP","VAR_POP","VAR_SAMP","GROUP","EXCEPT","HAVING","FIRST_VALUE","LAST_VALUE","LAG","LEAD","RATIO_TO_REPORT","OVER","PRECEDING","FOLLOWING","UNBOUNDED","PARTITION","ROWS","RANGE","CURRENT","VALID","FILL_TIME_SERIES","FLOW_TO_STOCK","STOCK_TO_FLOW","TIMESHIFT","MEASURES","NO_MEASURES","CONDITION","BOOLEAN","DATE","TIME_PERIOD","NUMBER","STRING","TIME","INTEGER","FLOAT","LIST","RECORD","RESTRICT","YYYY","MM","DD","MAX_LENGTH","REGEXP","IS","WHEN","FROM","AGGREGATES","POINTS","POINT","TOTAL","PARTIAL","ALWAYS","INNER_JOIN","LEFT_JOIN","CROSS_JOIN","FULL_JOIN","MAPS_FROM","MAPS_TO","MAP_TO","MAP_FROM","RETURNS","PIVOT","CUSTOMPIVOT","UNPIVOT","SUBSPACE","APPLY","CONDITIONED","PERIOD_INDICATOR","SINGLE","DURATION","TIME_AGG","UNIT","VALUE","VALUEDOMAINS","VARIABLES","INPUT","OUTPUT","CAST","RULE_PRIORITY","DATASET_PRIORITY","DEFAULT","CHECK_DATAPOINT","CHECK_HIERARCHY","COMPUTED","NON_NULL","NON_ZERO","PARTIAL_NULL","PARTIAL_ZERO","ALWAYS_NULL","ALWAYS_ZERO","COMPONENTS","ALL_MEASURES","SCALAR","COMPONENT","DATAPOINT_ON_VD","DATAPOINT_ON_VAR","HIERARCHICAL_ON_VD","HIERARCHICAL_ON_VAR","SET","LANGUAGE","LETTER","DIGITS0_9","INTEGER_CONSTANT","NUMBER_CONSTANT","BOOLEAN_CONSTANT","STRING_CONSTANT","IDENTIFIER","WS","EOL","ML_COMMENT","SL_COMMENT"],a.prototype.grammarFileName="Vtl.g4";var c=a,l=n(6096);function u(){return l.tree.ParseTreeListener.call(this),this}u.prototype=Object.create(l.tree.ParseTreeListener.prototype),u.prototype.constructor=u,u.prototype.enterStart=function(t){},u.prototype.exitStart=function(t){},u.prototype.enterTemporaryAssignment=function(t){},u.prototype.exitTemporaryAssignment=function(t){},u.prototype.enterPersistAssignment=function(t){},u.prototype.exitPersistAssignment=function(t){},u.prototype.enterDefineExpression=function(t){},u.prototype.exitDefineExpression=function(t){},u.prototype.enterVarIdExpr=function(t){},u.prototype.exitVarIdExpr=function(t){},u.prototype.enterMembershipExpr=function(t){},u.prototype.exitMembershipExpr=function(t){},u.prototype.enterInNotInExpr=function(t){},u.prototype.exitInNotInExpr=function(t){},u.prototype.enterBooleanExpr=function(t){},u.prototype.exitBooleanExpr=function(t){},u.prototype.enterComparisonExpr=function(t){},u.prototype.exitComparisonExpr=function(t){},u.prototype.enterUnaryExpr=function(t){},u.prototype.exitUnaryExpr=function(t){},u.prototype.enterFunctionsExpression=function(t){},u.prototype.exitFunctionsExpression=function(t){},u.prototype.enterIfExpr=function(t){},u.prototype.exitIfExpr=function(t){},u.prototype.enterClauseExpr=function(t){},u.prototype.exitClauseExpr=function(t){},u.prototype.enterArithmeticExpr=function(t){},u.prototype.exitArithmeticExpr=function(t){},u.prototype.enterParenthesisExpr=function(t){},u.prototype.exitParenthesisExpr=function(t){},u.prototype.enterConstantExpr=function(t){},u.prototype.exitConstantExpr=function(t){},u.prototype.enterArithmeticExprOrConcat=function(t){},u.prototype.exitArithmeticExprOrConcat=function(t){},u.prototype.enterJoinFunctions=function(t){},u.prototype.exitJoinFunctions=function(t){},u.prototype.enterGenericFunctions=function(t){},u.prototype.exitGenericFunctions=function(t){},u.prototype.enterStringFunctions=function(t){},u.prototype.exitStringFunctions=function(t){},u.prototype.enterNumericFunctions=function(t){},u.prototype.exitNumericFunctions=function(t){},u.prototype.enterComparisonFunctions=function(t){},u.prototype.exitComparisonFunctions=function(t){},u.prototype.enterTimeFunctions=function(t){},u.prototype.exitTimeFunctions=function(t){},u.prototype.enterSetFunctions=function(t){},u.prototype.exitSetFunctions=function(t){},u.prototype.enterHierarchyFunctions=function(t){},u.prototype.exitHierarchyFunctions=function(t){},u.prototype.enterValidationFunctions=function(t){},u.prototype.exitValidationFunctions=function(t){},u.prototype.enterConditionalFunctions=function(t){},u.prototype.exitConditionalFunctions=function(t){},u.prototype.enterAggregateFunctions=function(t){},u.prototype.exitAggregateFunctions=function(t){},u.prototype.enterAnalyticFunctions=function(t){},u.prototype.exitAnalyticFunctions=function(t){},u.prototype.enterDistanceFunctions=function(t){},u.prototype.exitDistanceFunctions=function(t){},u.prototype.enterDatasetClause=function(t){},u.prototype.exitDatasetClause=function(t){},u.prototype.enterRenameClause=function(t){},u.prototype.exitRenameClause=function(t){},u.prototype.enterAggrClause=function(t){},u.prototype.exitAggrClause=function(t){},u.prototype.enterFilterClause=function(t){},u.prototype.exitFilterClause=function(t){},u.prototype.enterCalcClause=function(t){},u.prototype.exitCalcClause=function(t){},u.prototype.enterKeepOrDropClause=function(t){},u.prototype.exitKeepOrDropClause=function(t){},u.prototype.enterPivotOrUnpivotClause=function(t){},u.prototype.exitPivotOrUnpivotClause=function(t){},u.prototype.enterCustomPivotClause=function(t){},u.prototype.exitCustomPivotClause=function(t){},u.prototype.enterSubspaceClause=function(t){},u.prototype.exitSubspaceClause=function(t){},u.prototype.enterJoinExpr=function(t){},u.prototype.exitJoinExpr=function(t){},u.prototype.enterDefOperator=function(t){},u.prototype.exitDefOperator=function(t){},u.prototype.enterDefDatapointRuleset=function(t){},u.prototype.exitDefDatapointRuleset=function(t){},u.prototype.enterDefHierarchical=function(t){},u.prototype.exitDefHierarchical=function(t){},u.prototype.enterCallDataset=function(t){},u.prototype.exitCallDataset=function(t){},u.prototype.enterEvalAtom=function(t){},u.prototype.exitEvalAtom=function(t){},u.prototype.enterCastExprDataset=function(t){},u.prototype.exitCastExprDataset=function(t){},u.prototype.enterParameter=function(t){},u.prototype.exitParameter=function(t){},u.prototype.enterUnaryStringFunction=function(t){},u.prototype.exitUnaryStringFunction=function(t){},u.prototype.enterSubstrAtom=function(t){},u.prototype.exitSubstrAtom=function(t){},u.prototype.enterReplaceAtom=function(t){},u.prototype.exitReplaceAtom=function(t){},u.prototype.enterInstrAtom=function(t){},u.prototype.exitInstrAtom=function(t){},u.prototype.enterOptionalNumeric=function(t){},u.prototype.exitOptionalNumeric=function(t){},u.prototype.enterUnaryNumeric=function(t){},u.prototype.exitUnaryNumeric=function(t){},u.prototype.enterUnaryWithOptionalNumeric=function(t){},u.prototype.exitUnaryWithOptionalNumeric=function(t){},u.prototype.enterBinaryNumeric=function(t){},u.prototype.exitBinaryNumeric=function(t){},u.prototype.enterBetweenAtom=function(t){},u.prototype.exitBetweenAtom=function(t){},u.prototype.enterCharsetMatchAtom=function(t){},u.prototype.exitCharsetMatchAtom=function(t){},u.prototype.enterIsNullAtom=function(t){},u.prototype.exitIsNullAtom=function(t){},u.prototype.enterExistInAtom=function(t){},u.prototype.exitExistInAtom=function(t){},u.prototype.enterPeriodAtom=function(t){},u.prototype.exitPeriodAtom=function(t){},u.prototype.enterFillTimeAtom=function(t){},u.prototype.exitFillTimeAtom=function(t){},u.prototype.enterFlowAtom=function(t){},u.prototype.exitFlowAtom=function(t){},u.prototype.enterTimeShiftAtom=function(t){},u.prototype.exitTimeShiftAtom=function(t){},u.prototype.enterTimeAggAtom=function(t){},u.prototype.exitTimeAggAtom=function(t){},u.prototype.enterCurrentDateAtom=function(t){},u.prototype.exitCurrentDateAtom=function(t){},u.prototype.enterUnionAtom=function(t){},u.prototype.exitUnionAtom=function(t){},u.prototype.enterIntersectAtom=function(t){},u.prototype.exitIntersectAtom=function(t){},u.prototype.enterSetOrSYmDiffAtom=function(t){},u.prototype.exitSetOrSYmDiffAtom=function(t){},u.prototype.enterHierarchyOperators=function(t){},u.prototype.exitHierarchyOperators=function(t){},u.prototype.enterValidateDPruleset=function(t){},u.prototype.exitValidateDPruleset=function(t){},u.prototype.enterValidateHRruleset=function(t){},u.prototype.exitValidateHRruleset=function(t){},u.prototype.enterValidationSimple=function(t){},u.prototype.exitValidationSimple=function(t){},u.prototype.enterNvlAtom=function(t){},u.prototype.exitNvlAtom=function(t){},u.prototype.enterAggrDataset=function(t){},u.prototype.exitAggrDataset=function(t){},u.prototype.enterAnSimpleFunction=function(t){},u.prototype.exitAnSimpleFunction=function(t){},u.prototype.enterLagOrLeadAn=function(t){},u.prototype.exitLagOrLeadAn=function(t){},u.prototype.enterRatioToReportAn=function(t){},u.prototype.exitRatioToReportAn=function(t){},u.prototype.enterLevenshteinAtom=function(t){},u.prototype.exitLevenshteinAtom=function(t){},u.prototype.enterRenameClauseItem=function(t){},u.prototype.exitRenameClauseItem=function(t){},u.prototype.enterAggregateClause=function(t){},u.prototype.exitAggregateClause=function(t){},u.prototype.enterAggrFunctionClause=function(t){},u.prototype.exitAggrFunctionClause=function(t){},u.prototype.enterCalcClauseItem=function(t){},u.prototype.exitCalcClauseItem=function(t){},u.prototype.enterSubspaceClauseItem=function(t){},u.prototype.exitSubspaceClauseItem=function(t){},u.prototype.enterJoinClauseWithoutUsing=function(t){},u.prototype.exitJoinClauseWithoutUsing=function(t){},u.prototype.enterJoinClause=function(t){},u.prototype.exitJoinClause=function(t){},u.prototype.enterJoinClauseItem=function(t){},u.prototype.exitJoinClauseItem=function(t){},u.prototype.enterJoinBody=function(t){},u.prototype.exitJoinBody=function(t){},u.prototype.enterJoinApplyClause=function(t){},u.prototype.exitJoinApplyClause=function(t){},u.prototype.enterPartitionByClause=function(t){},u.prototype.exitPartitionByClause=function(t){},u.prototype.enterOrderByClause=function(t){},u.prototype.exitOrderByClause=function(t){},u.prototype.enterOrderByItem=function(t){},u.prototype.exitOrderByItem=function(t){},u.prototype.enterWindowingClause=function(t){},u.prototype.exitWindowingClause=function(t){},u.prototype.enterSignedInteger=function(t){},u.prototype.exitSignedInteger=function(t){},u.prototype.enterLimitClauseItem=function(t){},u.prototype.exitLimitClauseItem=function(t){},u.prototype.enterGroupByOrExcept=function(t){},u.prototype.exitGroupByOrExcept=function(t){},u.prototype.enterGroupAll=function(t){},u.prototype.exitGroupAll=function(t){},u.prototype.enterHavingClause=function(t){},u.prototype.exitHavingClause=function(t){},u.prototype.enterParameterItem=function(t){},u.prototype.exitParameterItem=function(t){},u.prototype.enterOutputParameterType=function(t){},u.prototype.exitOutputParameterType=function(t){},u.prototype.enterOutputParameterTypeComponent=function(t){},u.prototype.exitOutputParameterTypeComponent=function(t){},u.prototype.enterInputParameterType=function(t){},u.prototype.exitInputParameterType=function(t){},u.prototype.enterRulesetType=function(t){},u.prototype.exitRulesetType=function(t){},u.prototype.enterScalarType=function(t){},u.prototype.exitScalarType=function(t){},u.prototype.enterComponentType=function(t){},u.prototype.exitComponentType=function(t){},u.prototype.enterDatasetType=function(t){},u.prototype.exitDatasetType=function(t){},u.prototype.enterScalarSetType=function(t){},u.prototype.exitScalarSetType=function(t){},u.prototype.enterDataPoint=function(t){},u.prototype.exitDataPoint=function(t){},u.prototype.enterDataPointVd=function(t){},u.prototype.exitDataPointVd=function(t){},u.prototype.enterDataPointVar=function(t){},u.prototype.exitDataPointVar=function(t){},u.prototype.enterHrRulesetType=function(t){},u.prototype.exitHrRulesetType=function(t){},u.prototype.enterHrRulesetVdType=function(t){},u.prototype.exitHrRulesetVdType=function(t){},u.prototype.enterHrRulesetVarType=function(t){},u.prototype.exitHrRulesetVarType=function(t){},u.prototype.enterValueDomainName=function(t){},u.prototype.exitValueDomainName=function(t){},u.prototype.enterRulesetID=function(t){},u.prototype.exitRulesetID=function(t){},u.prototype.enterRulesetSignature=function(t){},u.prototype.exitRulesetSignature=function(t){},u.prototype.enterSignature=function(t){},u.prototype.exitSignature=function(t){},u.prototype.enterRuleClauseDatapoint=function(t){},u.prototype.exitRuleClauseDatapoint=function(t){},u.prototype.enterRuleItemDatapoint=function(t){},u.prototype.exitRuleItemDatapoint=function(t){},u.prototype.enterRuleClauseHierarchical=function(t){},u.prototype.exitRuleClauseHierarchical=function(t){},u.prototype.enterRuleItemHierarchical=function(t){},u.prototype.exitRuleItemHierarchical=function(t){},u.prototype.enterHierRuleSignature=function(t){},u.prototype.exitHierRuleSignature=function(t){},u.prototype.enterValueDomainSignature=function(t){},u.prototype.exitValueDomainSignature=function(t){},u.prototype.enterCodeItemRelation=function(t){},u.prototype.exitCodeItemRelation=function(t){},u.prototype.enterCodeItemRelationClause=function(t){},u.prototype.exitCodeItemRelationClause=function(t){},u.prototype.enterValueDomainValue=function(t){},u.prototype.exitValueDomainValue=function(t){},u.prototype.enterConditionConstraint=function(t){},u.prototype.exitConditionConstraint=function(t){},u.prototype.enterRangeConstraint=function(t){},u.prototype.exitRangeConstraint=function(t){},u.prototype.enterCompConstraint=function(t){},u.prototype.exitCompConstraint=function(t){},u.prototype.enterMultModifier=function(t){},u.prototype.exitMultModifier=function(t){},u.prototype.enterValidationOutput=function(t){},u.prototype.exitValidationOutput=function(t){},u.prototype.enterValidationMode=function(t){},u.prototype.exitValidationMode=function(t){},u.prototype.enterConditionClause=function(t){},u.prototype.exitConditionClause=function(t){},u.prototype.enterInputMode=function(t){},u.prototype.exitInputMode=function(t){},u.prototype.enterImbalanceExpr=function(t){},u.prototype.exitImbalanceExpr=function(t){},u.prototype.enterInputModeHierarchy=function(t){},u.prototype.exitInputModeHierarchy=function(t){},u.prototype.enterOutputModeHierarchy=function(t){},u.prototype.exitOutputModeHierarchy=function(t){},u.prototype.enterAlias=function(t){},u.prototype.exitAlias=function(t){},u.prototype.enterVarID=function(t){},u.prototype.exitVarID=function(t){},u.prototype.enterSimpleComponentId=function(t){},u.prototype.exitSimpleComponentId=function(t){},u.prototype.enterComponentID=function(t){},u.prototype.exitComponentID=function(t){},u.prototype.enterLists=function(t){},u.prototype.exitLists=function(t){},u.prototype.enterErCode=function(t){},u.prototype.exitErCode=function(t){},u.prototype.enterErLevel=function(t){},u.prototype.exitErLevel=function(t){},u.prototype.enterComparisonOperand=function(t){},u.prototype.exitComparisonOperand=function(t){},u.prototype.enterOptionalExpr=function(t){},u.prototype.exitOptionalExpr=function(t){},u.prototype.enterComponentRole=function(t){},u.prototype.exitComponentRole=function(t){},u.prototype.enterViralAttribute=function(t){},u.prototype.exitViralAttribute=function(t){},u.prototype.enterValueDomainID=function(t){},u.prototype.exitValueDomainID=function(t){},u.prototype.enterOperatorID=function(t){},u.prototype.exitOperatorID=function(t){},u.prototype.enterRoutineName=function(t){},u.prototype.exitRoutineName=function(t){},u.prototype.enterConstant=function(t){},u.prototype.exitConstant=function(t){},u.prototype.enterBasicScalarType=function(t){},u.prototype.exitBasicScalarType=function(t){},u.prototype.enterRetainType=function(t){},u.prototype.exitRetainType=function(t){};var p=u,h={VtlListener:p},f=n(6096);function d(){return f.tree.ParseTreeVisitor.call(this),this}d.prototype=Object.create(f.tree.ParseTreeVisitor.prototype),d.prototype.constructor=d,d.prototype.visitStart=function(t){return this.visitChildren(t)},d.prototype.visitTemporaryAssignment=function(t){return this.visitChildren(t)},d.prototype.visitPersistAssignment=function(t){return this.visitChildren(t)},d.prototype.visitDefineExpression=function(t){return this.visitChildren(t)},d.prototype.visitVarIdExpr=function(t){return this.visitChildren(t)},d.prototype.visitMembershipExpr=function(t){return this.visitChildren(t)},d.prototype.visitInNotInExpr=function(t){return this.visitChildren(t)},d.prototype.visitBooleanExpr=function(t){return this.visitChildren(t)},d.prototype.visitComparisonExpr=function(t){return this.visitChildren(t)},d.prototype.visitUnaryExpr=function(t){return this.visitChildren(t)},d.prototype.visitFunctionsExpression=function(t){return this.visitChildren(t)},d.prototype.visitIfExpr=function(t){return this.visitChildren(t)},d.prototype.visitClauseExpr=function(t){return this.visitChildren(t)},d.prototype.visitArithmeticExpr=function(t){return this.visitChildren(t)},d.prototype.visitParenthesisExpr=function(t){return this.visitChildren(t)},d.prototype.visitConstantExpr=function(t){return this.visitChildren(t)},d.prototype.visitArithmeticExprOrConcat=function(t){return this.visitChildren(t)},d.prototype.visitJoinFunctions=function(t){return this.visitChildren(t)},d.prototype.visitGenericFunctions=function(t){return this.visitChildren(t)},d.prototype.visitStringFunctions=function(t){return this.visitChildren(t)},d.prototype.visitNumericFunctions=function(t){return this.visitChildren(t)},d.prototype.visitComparisonFunctions=function(t){return this.visitChildren(t)},d.prototype.visitTimeFunctions=function(t){return this.visitChildren(t)},d.prototype.visitSetFunctions=function(t){return this.visitChildren(t)},d.prototype.visitHierarchyFunctions=function(t){return this.visitChildren(t)},d.prototype.visitValidationFunctions=function(t){return this.visitChildren(t)},d.prototype.visitConditionalFunctions=function(t){return this.visitChildren(t)},d.prototype.visitAggregateFunctions=function(t){return this.visitChildren(t)},d.prototype.visitAnalyticFunctions=function(t){return this.visitChildren(t)},d.prototype.visitDistanceFunctions=function(t){return this.visitChildren(t)},d.prototype.visitDatasetClause=function(t){return this.visitChildren(t)},d.prototype.visitRenameClause=function(t){return this.visitChildren(t)},d.prototype.visitAggrClause=function(t){return this.visitChildren(t)},d.prototype.visitFilterClause=function(t){return this.visitChildren(t)},d.prototype.visitCalcClause=function(t){return this.visitChildren(t)},d.prototype.visitKeepOrDropClause=function(t){return this.visitChildren(t)},d.prototype.visitPivotOrUnpivotClause=function(t){return this.visitChildren(t)},d.prototype.visitCustomPivotClause=function(t){return this.visitChildren(t)},d.prototype.visitSubspaceClause=function(t){return this.visitChildren(t)},d.prototype.visitJoinExpr=function(t){return this.visitChildren(t)},d.prototype.visitDefOperator=function(t){return this.visitChildren(t)},d.prototype.visitDefDatapointRuleset=function(t){return this.visitChildren(t)},d.prototype.visitDefHierarchical=function(t){return this.visitChildren(t)},d.prototype.visitCallDataset=function(t){return this.visitChildren(t)},d.prototype.visitEvalAtom=function(t){return this.visitChildren(t)},d.prototype.visitCastExprDataset=function(t){return this.visitChildren(t)},d.prototype.visitParameter=function(t){return this.visitChildren(t)},d.prototype.visitUnaryStringFunction=function(t){return this.visitChildren(t)},d.prototype.visitSubstrAtom=function(t){return this.visitChildren(t)},d.prototype.visitReplaceAtom=function(t){return this.visitChildren(t)},d.prototype.visitInstrAtom=function(t){return this.visitChildren(t)},d.prototype.visitOptionalNumeric=function(t){return this.visitChildren(t)},d.prototype.visitUnaryNumeric=function(t){return this.visitChildren(t)},d.prototype.visitUnaryWithOptionalNumeric=function(t){return this.visitChildren(t)},d.prototype.visitBinaryNumeric=function(t){return this.visitChildren(t)},d.prototype.visitBetweenAtom=function(t){return this.visitChildren(t)},d.prototype.visitCharsetMatchAtom=function(t){return this.visitChildren(t)},d.prototype.visitIsNullAtom=function(t){return this.visitChildren(t)},d.prototype.visitExistInAtom=function(t){return this.visitChildren(t)},d.prototype.visitPeriodAtom=function(t){return this.visitChildren(t)},d.prototype.visitFillTimeAtom=function(t){return this.visitChildren(t)},d.prototype.visitFlowAtom=function(t){return this.visitChildren(t)},d.prototype.visitTimeShiftAtom=function(t){return this.visitChildren(t)},d.prototype.visitTimeAggAtom=function(t){return this.visitChildren(t)},d.prototype.visitCurrentDateAtom=function(t){return this.visitChildren(t)},d.prototype.visitUnionAtom=function(t){return this.visitChildren(t)},d.prototype.visitIntersectAtom=function(t){return this.visitChildren(t)},d.prototype.visitSetOrSYmDiffAtom=function(t){return this.visitChildren(t)},d.prototype.visitHierarchyOperators=function(t){return this.visitChildren(t)},d.prototype.visitValidateDPruleset=function(t){return this.visitChildren(t)},d.prototype.visitValidateHRruleset=function(t){return this.visitChildren(t)},d.prototype.visitValidationSimple=function(t){return this.visitChildren(t)},d.prototype.visitNvlAtom=function(t){return this.visitChildren(t)},d.prototype.visitAggrDataset=function(t){return this.visitChildren(t)},d.prototype.visitAnSimpleFunction=function(t){return this.visitChildren(t)},d.prototype.visitLagOrLeadAn=function(t){return this.visitChildren(t)},d.prototype.visitRatioToReportAn=function(t){return this.visitChildren(t)},d.prototype.visitLevenshteinAtom=function(t){return this.visitChildren(t)},d.prototype.visitRenameClauseItem=function(t){return this.visitChildren(t)},d.prototype.visitAggregateClause=function(t){return this.visitChildren(t)},d.prototype.visitAggrFunctionClause=function(t){return this.visitChildren(t)},d.prototype.visitCalcClauseItem=function(t){return this.visitChildren(t)},d.prototype.visitSubspaceClauseItem=function(t){return this.visitChildren(t)},d.prototype.visitJoinClauseWithoutUsing=function(t){return this.visitChildren(t)},d.prototype.visitJoinClause=function(t){return this.visitChildren(t)},d.prototype.visitJoinClauseItem=function(t){return this.visitChildren(t)},d.prototype.visitJoinBody=function(t){return this.visitChildren(t)},d.prototype.visitJoinApplyClause=function(t){return this.visitChildren(t)},d.prototype.visitPartitionByClause=function(t){return this.visitChildren(t)},d.prototype.visitOrderByClause=function(t){return this.visitChildren(t)},d.prototype.visitOrderByItem=function(t){return this.visitChildren(t)},d.prototype.visitWindowingClause=function(t){return this.visitChildren(t)},d.prototype.visitSignedInteger=function(t){return this.visitChildren(t)},d.prototype.visitLimitClauseItem=function(t){return this.visitChildren(t)},d.prototype.visitGroupByOrExcept=function(t){return this.visitChildren(t)},d.prototype.visitGroupAll=function(t){return this.visitChildren(t)},d.prototype.visitHavingClause=function(t){return this.visitChildren(t)},d.prototype.visitParameterItem=function(t){return this.visitChildren(t)},d.prototype.visitOutputParameterType=function(t){return this.visitChildren(t)},d.prototype.visitOutputParameterTypeComponent=function(t){return this.visitChildren(t)},d.prototype.visitInputParameterType=function(t){return this.visitChildren(t)},d.prototype.visitRulesetType=function(t){return this.visitChildren(t)},d.prototype.visitScalarType=function(t){return this.visitChildren(t)},d.prototype.visitComponentType=function(t){return this.visitChildren(t)},d.prototype.visitDatasetType=function(t){return this.visitChildren(t)},d.prototype.visitScalarSetType=function(t){return this.visitChildren(t)},d.prototype.visitDataPoint=function(t){return this.visitChildren(t)},d.prototype.visitDataPointVd=function(t){return this.visitChildren(t)},d.prototype.visitDataPointVar=function(t){return this.visitChildren(t)},d.prototype.visitHrRulesetType=function(t){return this.visitChildren(t)},d.prototype.visitHrRulesetVdType=function(t){return this.visitChildren(t)},d.prototype.visitHrRulesetVarType=function(t){return this.visitChildren(t)},d.prototype.visitValueDomainName=function(t){return this.visitChildren(t)},d.prototype.visitRulesetID=function(t){return this.visitChildren(t)},d.prototype.visitRulesetSignature=function(t){return this.visitChildren(t)},d.prototype.visitSignature=function(t){return this.visitChildren(t)},d.prototype.visitRuleClauseDatapoint=function(t){return this.visitChildren(t)},d.prototype.visitRuleItemDatapoint=function(t){return this.visitChildren(t)},d.prototype.visitRuleClauseHierarchical=function(t){return this.visitChildren(t)},d.prototype.visitRuleItemHierarchical=function(t){return this.visitChildren(t)},d.prototype.visitHierRuleSignature=function(t){return this.visitChildren(t)},d.prototype.visitValueDomainSignature=function(t){return this.visitChildren(t)},d.prototype.visitCodeItemRelation=function(t){return this.visitChildren(t)},d.prototype.visitCodeItemRelationClause=function(t){return this.visitChildren(t)},d.prototype.visitValueDomainValue=function(t){return this.visitChildren(t)},d.prototype.visitConditionConstraint=function(t){return this.visitChildren(t)},d.prototype.visitRangeConstraint=function(t){return this.visitChildren(t)},d.prototype.visitCompConstraint=function(t){return this.visitChildren(t)},d.prototype.visitMultModifier=function(t){return this.visitChildren(t)},d.prototype.visitValidationOutput=function(t){return this.visitChildren(t)},d.prototype.visitValidationMode=function(t){return this.visitChildren(t)},d.prototype.visitConditionClause=function(t){return this.visitChildren(t)},d.prototype.visitInputMode=function(t){return this.visitChildren(t)},d.prototype.visitImbalanceExpr=function(t){return this.visitChildren(t)},d.prototype.visitInputModeHierarchy=function(t){return this.visitChildren(t)},d.prototype.visitOutputModeHierarchy=function(t){return this.visitChildren(t)},d.prototype.visitAlias=function(t){return this.visitChildren(t)},d.prototype.visitVarID=function(t){return this.visitChildren(t)},d.prototype.visitSimpleComponentId=function(t){return this.visitChildren(t)},d.prototype.visitComponentID=function(t){return this.visitChildren(t)},d.prototype.visitLists=function(t){return this.visitChildren(t)},d.prototype.visitErCode=function(t){return this.visitChildren(t)},d.prototype.visitErLevel=function(t){return this.visitChildren(t)},d.prototype.visitComparisonOperand=function(t){return this.visitChildren(t)},d.prototype.visitOptionalExpr=function(t){return this.visitChildren(t)},d.prototype.visitComponentRole=function(t){return this.visitChildren(t)},d.prototype.visitViralAttribute=function(t){return this.visitChildren(t)},d.prototype.visitValueDomainID=function(t){return this.visitChildren(t)},d.prototype.visitOperatorID=function(t){return this.visitChildren(t)},d.prototype.visitRoutineName=function(t){return this.visitChildren(t)},d.prototype.visitConstant=function(t){return this.visitChildren(t)},d.prototype.visitBasicScalarType=function(t){return this.visitChildren(t)},d.prototype.visitRetainType=function(t){return this.visitChildren(t)};var y=d,g={VtlVisitor:y},m=n(6096),_=h.VtlListener,k=g.VtlVisitor,v=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x03\xf1\u053d\x04\x02\t\x02\x04\x03\t\x03\x04\x04","\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07","\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f","\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10\t\x10","\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13\x04\x14","\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t\x17","\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a\x04\x1b","\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e\t\x1e",'\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#\t#\x04',"$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04*\t*\x04","+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x041\t1\x04","2\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x048\t8\x04","9\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04?\t?\x04","@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x04E\tE\x04F\tF\x04","G\tG\x04H\tH\x04I\tI\x04J\tJ\x04K\tK\x04L\tL\x04M\tM\x04","N\tN\x04O\tO\x04P\tP\x04Q\tQ\x04R\tR\x04S\tS\x04T\tT\x04","U\tU\x04V\tV\x04W\tW\x04X\tX\x04Y\tY\x04Z\tZ\x04[\t[\x04","\\\t\\\x04]\t]\x04^\t^\x04_\t_\x04`\t`\x04a\ta\x04b\tb\x03","\x02\x03\x02\x03\x02\x07\x02\xc8\n\x02\f\x02\x0e","\x02\xcb\v\x02\x03\x02\x03\x02\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x05\x03\xd8\n\x03\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x05\x04\xeb\n\x04\x03\x04","\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04","\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04","\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04","\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04","\x03\x04\x03\x04\x03\x04\x05\x04\u0109\n\x04\x07","\x04\u010b\n\x04\f\x04\x0e\x04\u010e\v\x04\x03\x05","\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05","\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05","\x05\x05\u011d\n\x05\x03\x06\x03\x06\x03\x06\x03","\x06\x03\x06\x03\x06\x03\x06\x03\x06\x05\x06\u0127","\n\x06\x03\x07\x03\x07\x03\x07\x03\x07\x07\x07","\u012d\n\x07\f\x07\x0e\x07\u0130\v\x07\x03\b\x03\b","\x03\b\x03\b\x05\b\u0136\n\b\x05\b\u0138\n\b\x03\t\x03\t","\x03\t\x03\n\x03\n\x03\n\x03\n\x07\n\u0141\n\n\f\n\x0e","\n\u0144\v\n\x03\v\x03\v\x03\v\x03\v\x07","\v\u014a\n\v\f\v\x0e\v\u014d\v\v\x03\f\x03","\f\x03\f\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03","\r\x03\r\x03\r\x07\r\u015c\n\r\f\r\x0e\r\u015f\v\r\x03","\x0e\x03\x0e\x03\x0e\x03\x0e\x07\x0e\u0165\n\x0e","\f\x0e\x0e\x0e\u0168\v\x0e\x03\x0f\x03\x0f\x03","\x0f\x03\x0f\x03\x0f\x03\x0f\x03\x0f\x03\x0f\x03","\x0f\x03\x0f\x03\x0f\x03\x0f\x05\x0f\u0176\n\x0f","\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10","\x03\x10\x07\x10\u017f\n\x10\f\x10\x0e\x10\u0182\v","\x10\x05\x10\u0184\n\x10\x03\x10\x03\x10\x03\x10","\x05\x10\u0189\n\x10\x03\x10\x03\x10\x03\x10\x03","\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03","\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03","\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03","\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03","\x10\x03\x10\x03\x10\x03\x10\x05\x10\u01aa\n\x10","\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x07\x11","\u01b1\n\x11\f\x11\x0e\x11\u01b4\v\x11\x05\x11\u01b6","\n\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11","\x03\x11\x03\x11\x03\x11\x05\x11\u01c0\n\x11\x03","\x11\x03\x11\x03\x11\x05\x11\u01c5\n\x11\x07\x11","\u01c7\n\x11\f\x11\x0e\x11\u01ca\v\x11\x03\x11\x03","\x11\x03\x11\x05\x11\u01cf\n\x11\x03\x11\x03\x11","\x05\x11\u01d3\n\x11\x03\x11\x03\x11\x03\x11\x03","\x11\x03\x11\x03\x11\x03\x11\x03\x11\x05\x11\u01dd","\n\x11\x03\x11\x03\x11\x05\x11\u01e1\n\x11\x03\x11","\x03\x11\x05\x11\u01e5\n\x11\x03\x12\x03\x12\x03","\x12\x05\x12\u01ea\n\x12\x03\x13\x03\x13\x03\x13","\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13","\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x05\x13","\u01fa\n\x13\x03\x13\x03\x13\x05\x13\u01fe\n\x13\x03","\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03","\x13\x03\x13\x03\x13\x05\x13\u0209\n\x13\x03\x13","\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13","\x03\x13\x03\x13\x05\x13\u0214\n\x13\x03\x13\x03","\x13\x05\x13\u0218\n\x13\x03\x13\x03\x13\x05\x13","\u021c\n\x13\x03\x14\x03\x14\x03\x14\x05\x14\u0221","\n\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14","\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14","\x05\x14\u022e\n\x14\x03\x14\x03\x14\x03\x14\x03","\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x05","\x14\u0239\n\x14\x03\x15\x03\x15\x03\x15\x03\x15","\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15","\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15","\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15","\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15","\x05\x15\u0257\n\x15\x03\x15\x03\x15\x05\x15\u025b","\n\x15\x03\x16\x03\x16\x03\x16\x05\x16\u0260\n\x16","\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16","\x05\x16\u0268\n\x16\x03\x16\x03\x16\x03\x16\x03","\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03","\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03","\x16\x03\x16\x03\x16\x03\x16\x05\x16\u027d\n\x16","\x03\x16\x03\x16\x05\x16\u0281\n\x16\x03\x16\x03","\x16\x05\x16\u0285\n\x16\x03\x16\x03\x16\x03\x16","\x03\x16\x05\x16\u028b\n\x16\x03\x17\x03\x17\x03","\x17\x03\x17\x03\x17\x06\x17\u0292\n\x17\r\x17\x0e","\x17\u0293\x03\x17\x03\x17\x03\x17\x03\x17\x03\x17","\x03\x17\x03\x17\x06\x17\u029d\n\x17\r\x17\x0e\x17","\u029e\x03\x17\x03\x17\x03\x17\x03\x17\x03\x17\x03","\x17\x03\x17\x03\x17\x03\x17\x05\x17\u02aa\n\x17","\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18","\x05\x18\u02b2\n\x18\x03\x18\x03\x18\x05\x18\u02b6","\n\x18\x03\x18\x05\x18\u02b9\n\x18\x03\x18\x05\x18","\u02bc\n\x18\x03\x18\x05\x18\u02bf\n\x18\x03\x18\x03","\x18\x03\x19\x03\x19\x03\x19\x03\x19\x03\x19\x03","\x19\x03\x19\x03\x19\x03\x19\x07\x19\u02cc\n\x19","\f\x19\x0e\x19\u02cf\v\x19\x05\x19\u02d1\n\x19\x03","\x19\x05\x19\u02d4\n\x19\x03\x19\x03\x19\x03\x19","\x03\x19\x03\x19\x03\x19\x03\x19\x03\x19\x05\x19","\u02de\n\x19\x03\x19\x03\x19\x05\x19\u02e2\n\x19\x03","\x19\x05\x19\u02e5\n\x19\x03\x19\x05\x19\u02e8\n\x19","\x03\x19\x05\x19\u02eb\n\x19\x03\x19\x03\x19\x03","\x19\x03\x19\x03\x19\x03\x19\x05\x19\u02f3\n\x19","\x03\x19\x05\x19\u02f6\n\x19\x03\x19\x05\x19\u02f9","\n\x19\x03\x19\x05\x19\u02fc\n\x19\x03\x19\x03\x19","\x05\x19\u0300\n\x19\x03\x1a\x03\x1a\x03\x1a\x03","\x1a\x03\x1a\x03\x1a\x03\x1a\x03\x1b\x03\x1b\x03","\x1b\x03\x1b\x03\x1b\x05\x1b\u030e\n\x1b\x05\x1b","\u0310\n\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03","\x1c\x03\x1c\x03\x1c\x03\x1c\x05\x1c\u031a\n\x1c","\x03\x1c\x05\x1c\u031d\n\x1c\x03\x1c\x05\x1c\u0320","\n\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c","\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x05\x1c\u032b\n","\x1c\x05\x1c\u032d\n\x1c\x03\x1c\x03\x1c\x03\x1c","\x05\x1c\u0332\n\x1c\x03\x1c\x03\x1c\x03\x1c\x03","\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03","\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x05\x1c\u0342","\n\x1c\x03\x1d\x03\x1d\x03\x1d\x03\x1d\x03\x1d","\x03\x1d\x03\x1d\x03\x1e\x03\x1e\x03\x1e\x03\x1e","\x03\x1f\x03\x1f\x03\x1f\x07\x1f\u0352\n\x1f\f\x1f","\x0e\x1f\u0355\v\x1f\x03 \x05 \u0358\n \x03 \x03 ","\x03 \x03 \x03!\x05!\u035f\n!\x03!\x03!\x03!\x03!\x03",'"\x03"\x03"\x03"\x03#\x03#\x03#\x07#\u036c\n#\f#\x0e',"#\u036f\v#\x03$\x03$\x03$\x07$\u0374\n$\f$\x0e$\u0377","\v$\x03$\x03$\x03$\x03$\x07$\u037d\n$\f$\x0e$\u0380","\v$\x05$\u0382\n$\x03%\x03%\x03%\x05%\u0387\n%\x03&","\x05&\u038a\n&\x03&\x03&\x03&\x05&\u038f\n&\x03&\x05&","\u0392\n&\x03&\x05&\u0395\n&\x03'\x03'\x03'\x03(\x03","(\x03(\x03(\x03(\x07(\u039f\n(\f(\x0e(\u03a2\v(\x03",")\x03)\x03)\x03)\x03)\x07)\u03a9\n)\f)\x0e)\u03ac\v",")\x03*\x03*\x05*\u03b0\n*\x03+\x03+\x03+\x05+\u03b5\n","+\x03+\x03+\x03+\x03+\x03+\x03,\x03,\x03-\x03-\x03","-\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x05-\u03c9","\n-\x03.\x03.\x03.\x03.\x03.\x07.\u03d0\n.\f.\x0e.\u03d3","\v.\x03.\x03.\x03.\x05.\u03d8\n.\x03/\x03/\x03/\x03","0\x030\x030\x030\x050\u03e1\n0\x031\x031\x031\x051\u03e6","\n1\x032\x032\x052\u03ea\n2\x033\x033\x033\x033\x03","3\x053\u03f1\n3\x034\x034\x034\x054\u03f6\n4\x035\x03","5\x055\u03fa\n5\x035\x055\u03fd\n5\x035\x055\u0400\n5\x03","5\x055\u0403\n5\x036\x036\x036\x036\x036\x056\u040a\n","6\x037\x037\x037\x037\x037\x077\u0411\n7\f7\x0e7\u0414","\v7\x037\x037\x057\u0418\n7\x038\x038\x038\x038\x03","8\x058\u041f\n8\x039\x039\x039\x039\x039\x039\x079\u0427","\n9\f9\x0e9\u042a\v9\x039\x039\x059\u042e\n9\x039\x03","9\x039\x039\x039\x079\u0435\n9\f9\x0e9\u0438\v9\x03","9\x039\x059\u043c\n9\x059\u043e\n9\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x03:\x07:\u0448\n:\f:\x0e:\u044b\v",":\x03:\x03:\x05:\u044f\n:\x03:\x05:\u0452\n:\x03:\x03",":\x03:\x03:\x03:\x03:\x03:\x07:\u045b\n:\f:\x0e:\u045e","\v:\x03:\x03:\x05:\u0462\n:\x03:\x03:\x05:\u0466\n:","\x05:\u0468\n:\x03;\x03;\x03<\x03<\x03=\x03=\x03=\x03","=\x07=\u0472\n=\f=\x0e=\u0475\v=\x03>\x03>\x03>\x05",">\u047a\n>\x03?\x03?\x03?\x07?\u047f\n?\f?\x0e?\u0482\v","?\x03@\x03@\x05@\u0486\n@\x03@\x03@\x03@\x03@\x05@\u048c","\n@\x03@\x03@\x05@\u0490\n@\x03@\x05@\u0493\n@\x03A\x03","A\x03A\x07A\u0498\nA\fA\x0eA\u049b\vA\x03B\x03B\x05","B\u049f\nB\x03B\x03B\x05B\u04a3\nB\x03B\x05B\u04a6\nB\x03","C\x03C\x03C\x05C\u04ab\nC\x03C\x03C\x03C\x03D\x03D\x03","D\x07D\u04b3\nD\fD\x0eD\u04b6\vD\x03E\x03E\x03E\x03","E\x05E\u04bc\nE\x03E\x03E\x05E\u04c0\nE\x03E\x03E\x07","E\u04c4\nE\fE\x0eE\u04c7\vE\x03F\x05F\u04ca\nF\x03F\x03","F\x03F\x03F\x03F\x05F\u04d1\nF\x03G\x03G\x03H\x03H\x03","H\x03H\x03H\x03H\x03H\x03H\x07H\u04dd\nH\fH\x0eH\u04e0","\vH\x03H\x03H\x05H\u04e4\nH\x03I\x03I\x03I\x05I\u04e9","\nI\x03J\x03J\x05J\u04ed\nJ\x03K\x03K\x03L\x03L\x03","M\x03M\x03M\x03M\x07M\u04f7\nM\fM\x0eM\u04fa\vM\x03","N\x03N\x03O\x03O\x03O\x03P\x03P\x03Q\x03Q\x03R\x03","R\x03S\x03S\x03T\x03T\x03U\x03U\x03U\x05U\u050e\nU\x03","V\x03V\x03V\x03V\x07V\u0514\nV\fV\x0eV\u0517\vV\x03","V\x03V\x03W\x03W\x03W\x03X\x03X\x03X\x03Y\x03Y\x03","Z\x03Z\x05Z\u0525\nZ\x03[\x03[\x03[\x03[\x03[\x05[\u052c","\n[\x03\\\x03\\\x03\\\x03]\x03]\x03^\x03^\x03_\x03","_\x03`\x03`\x03a\x03a\x03b\x03b\x03b\x02\x03\x06","c\x02\x04\x06\b\n\f\x0e\x10\x12\x14\x16\x18\x1a",'\x1c\x1e "$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\x80',"\x82\x84\x86\x88\x8a\x8c\x8e\x90\x92\x94\x96\x98","\x9a\x9c\x9e\xa0\xa2\xa4\xa6\xa8\xaa\xac\xae\xb0","\xb2\xb4\xb6\xb8\xba\xbc\xbe\xc0\xc2\x02'\x04","\x02\x0f\x10))\x03\x02\x11\x12\x04\x02\x0f\x10","TT\x03\x02'(\x03\x02+,\x03\x02 !\x04\x02\xc2\xc2","\xc4\xc4\x03\x02\xb9\xba\x03\x02\xbb\xbc\x05\x02","SSUWz{\x06\x02KKMMbb~\x80\x03\x02OP\x04\x02NNQR\x04","\x02>>\xc9\xc9\x03\x02\x9a\x9b\x04\x02ii\xec\xec","\x03\x02HI\x04\x0222\x83\x83\x04\x02>>jj\x05\x02","FGY\\\x84\x87\x06\x02FGY\\\x84\x87\x8b\x8c\x03\x02","\x8d\x8e\x03\x02DE\x04\x02BB\x89\x89\x03\x02lm\x03","\x02\x0f\x10\x04\x02\xe9\xea\xed\xed\x04\x02\x0f","\x0f\x11\x11\x05\x02>>jj\xe0\xe0\x03\x02\xd9\xde","\x04\x02pp\xd4\xd4\x05\x02ppww\xd3\xd3\x04\x02>",">\xd8\xd8\x03\x02\t\x0e\x04\x02--\xe9\xec\x05\x02","\xa0\xa6\xca\xca\xe1\xe1\x04\x02>>\xeb\xeb\x02","\u05ac\x02\xc9\x03\x02\x02\x02\x04\xd7\x03\x02\x02","\x02\x06\xea\x03\x02\x02\x02\b\u011c\x03\x02\x02","\x02\n\u0126\x03\x02\x02\x02\f\u0128\x03\x02\x02\x02","\x0e\u0131\x03\x02\x02\x02\x10\u0139\x03\x02\x02\x02","\x12\u013c\x03\x02\x02\x02\x14\u0145\x03\x02\x02\x02","\x16\u014e\x03\x02\x02\x02\x18\u0153\x03\x02\x02\x02","\x1a\u0160\x03\x02\x02\x02\x1c\u0175\x03\x02\x02\x02","\x1e\u01a9\x03\x02\x02\x02 \u01e4\x03\x02\x02\x02",'"\u01e9\x03\x02\x02\x02$\u021b\x03\x02\x02\x02&\u0238',"\x03\x02\x02\x02(\u025a\x03\x02\x02\x02*\u028a\x03","\x02\x02\x02,\u02a9\x03\x02\x02\x02.\u02ab\x03\x02","\x02\x020\u02ff\x03\x02\x02\x022\u0301\x03\x02\x02","\x024\u0308\x03\x02\x02\x026\u0341\x03\x02\x02\x02","8\u0343\x03\x02\x02\x02:\u034a\x03\x02\x02\x02<\u034e","\x03\x02\x02\x02>\u0357\x03\x02\x02\x02@\u035e\x03","\x02\x02\x02B\u0364\x03\x02\x02\x02D\u0368\x03\x02","\x02\x02F\u0370\x03\x02\x02\x02H\u0383\x03\x02\x02","\x02J\u0389\x03\x02\x02\x02L\u0396\x03\x02\x02\x02","N\u0399\x03\x02\x02\x02P\u03a3\x03\x02\x02\x02R\u03ad","\x03\x02\x02\x02T\u03b4\x03\x02\x02\x02V\u03bb\x03","\x02\x02\x02X\u03c8\x03\x02\x02\x02Z\u03d7\x03\x02","\x02\x02\\\u03d9\x03\x02\x02\x02^\u03dc\x03\x02\x02","\x02`\u03e5\x03\x02\x02\x02b\u03e9\x03\x02\x02\x02","d\u03f0\x03\x02\x02\x02f\u03f5\x03\x02\x02\x02h\u03f9","\x03\x02\x02\x02j\u0404\x03\x02\x02\x02l\u040b\x03","\x02\x02\x02n\u0419\x03\x02\x02\x02p\u043d\x03\x02","\x02\x02r\u0467\x03\x02\x02\x02t\u0469\x03\x02\x02","\x02v\u046b\x03\x02\x02\x02x\u046d\x03\x02\x02\x02","z\u0476\x03\x02\x02\x02|\u047b\x03\x02\x02\x02~\u0485","\x03\x02\x02\x02\x80\u0494\x03\x02\x02\x02\x82\u049e","\x03\x02\x02\x02\x84\u04a7\x03\x02\x02\x02\x86\u04af","\x03\x02\x02\x02\x88\u04bb\x03\x02\x02\x02\x8a\u04c9","\x03\x02\x02\x02\x8c\u04d2\x03\x02\x02\x02\x8e\u04e3","\x03\x02\x02\x02\x90\u04e5\x03\x02\x02\x02\x92\u04ea","\x03\x02\x02\x02\x94\u04ee\x03\x02\x02\x02\x96\u04f0","\x03\x02\x02\x02\x98\u04f2\x03\x02\x02\x02\x9a\u04fb","\x03\x02\x02\x02\x9c\u04fd\x03\x02\x02\x02\x9e\u0500","\x03\x02\x02\x02\xa0\u0502\x03\x02\x02\x02\xa2\u0504","\x03\x02\x02\x02\xa4\u0506\x03\x02\x02\x02\xa6\u0508","\x03\x02\x02\x02\xa8\u050a\x03\x02\x02\x02\xaa\u050f","\x03\x02\x02\x02\xac\u051a\x03\x02\x02\x02\xae\u051d","\x03\x02\x02\x02\xb0\u0520\x03\x02\x02\x02\xb2\u0524","\x03\x02\x02\x02\xb4\u052b\x03\x02\x02\x02\xb6\u052d","\x03\x02\x02\x02\xb8\u0530\x03\x02\x02\x02\xba\u0532","\x03\x02\x02\x02\xbc\u0534\x03\x02\x02\x02\xbe\u0536","\x03\x02\x02\x02\xc0\u0538\x03\x02\x02\x02\xc2\u053a","\x03\x02\x02\x02\xc4\xc5\x05\x04\x03\x02\xc5\xc6","\x07\xef\x02\x02\xc6\xc8\x03\x02\x02\x02\xc7\xc4","\x03\x02\x02\x02\xc8\xcb\x03\x02\x02\x02\xc9\xc7","\x03\x02\x02\x02\xc9\xca\x03\x02\x02\x02\xca\xcc","\x03\x02\x02\x02\xcb\xc9\x03\x02\x02\x02\xcc\xcd","\x07\x02\x02\x03\xcd\x03\x03\x02\x02\x02\xce\xcf","\x05\xa4S\x02\xcf\xd0\x07\x16\x02\x02\xd0\xd1","\x05\x06\x04\x02\xd1\xd8\x03\x02\x02\x02\xd2\xd3","\x05\xa4S\x02\xd3\xd4\x07s\x02\x02\xd4\xd5\x05","\x06\x04\x02\xd5\xd8\x03\x02\x02\x02\xd6\xd8\x05","\x1e\x10\x02\xd7\xce\x03\x02\x02\x02\xd7\xd2\x03","\x02\x02\x02\xd7\xd6\x03\x02\x02\x02\xd8\x05\x03","\x02\x02\x02\xd9\xda\b\x04\x01\x02\xda\xdb\x07","\x03\x02\x02\xdb\xdc\x05\x06\x04\x02\xdc\xdd\x07","\x04\x02\x02\xdd\xeb\x03\x02\x02\x02\xde\xeb\x05","\b\x05\x02\xdf\xe0\t\x02\x02\x02\xe0\xeb\x05\x06","\x04\f\xe1\xe2\x07\x19\x02\x02\xe2\xe3\x05\x06","\x04\x02\xe3\xe4\x07\x1a\x02\x02\xe4\xe5\x05\x06","\x04\x02\xe5\xe6\x07\x1b\x02\x02\xe6\xe7\x05\x06","\x04\x05\xe7\xeb\x03\x02\x02\x02\xe8\xeb\x05\xbe","`\x02\xe9\xeb\x05\xa4S\x02\xea\xd9\x03\x02\x02","\x02\xea\xde\x03\x02\x02\x02\xea\xdf\x03\x02\x02","\x02\xea\xe1\x03\x02\x02\x02\xea\xe8\x03\x02\x02","\x02\xea\xe9\x03\x02\x02\x02\xeb\u010c\x03\x02\x02","\x02\xec\xed\f\v\x02\x02\xed\xee\t\x03\x02\x02","\xee\u010b\x05\x06\x04\f\xef\xf0\f\n\x02\x02\xf0\xf1","\t\x04\x02\x02\xf1\u010b\x05\x06\x04\v\xf2\xf3","\f\t\x02\x02\xf3\xf4\x05\xb0Y\x02\xf4\xf5\x05\x06","\x04\n\xf5\u010b\x03\x02\x02\x02\xf6\xf7\f\x07\x02","\x02\xf7\xf8\x07&\x02\x02\xf8\u010b\x05\x06\x04","\b\xf9\xfa\f\x06\x02\x02\xfa\xfb\t\x05\x02\x02\xfb","\u010b\x05\x06\x04\x07\xfc\xfd\f\x0e\x02\x02\xfd","\xfe\x07\x05\x02\x02\xfe\xff\x05\n\x06\x02\xff","\u0100\x07\x06\x02\x02\u0100\u010b\x03\x02\x02\x02\u0101","\u0102\f\r\x02\x02\u0102\u0103\x07\x17\x02\x02\u0103\u010b","\x05\xa6T\x02\u0104\u0105\f\b\x02\x02\u0105\u0108\t\x06","\x02\x02\u0106\u0109\x05\xaaV\x02\u0107\u0109\x05\xb8","]\x02\u0108\u0106\x03\x02\x02\x02\u0108\u0107\x03\x02","\x02\x02\u0109\u010b\x03\x02\x02\x02\u010a\xec\x03\x02","\x02\x02\u010a\xef\x03\x02\x02\x02\u010a\xf2\x03\x02","\x02\x02\u010a\xf6\x03\x02\x02\x02\u010a\xf9\x03\x02","\x02\x02\u010a\xfc\x03\x02\x02\x02\u010a\u0101\x03\x02","\x02\x02\u010a\u0104\x03\x02\x02\x02\u010b\u010e\x03\x02","\x02\x02\u010c\u010a\x03\x02\x02\x02\u010c\u010d\x03\x02","\x02\x02\u010d\x07\x03\x02\x02\x02\u010e\u010c\x03\x02","\x02\x02\u010f\u011d\x05\x1c\x0f\x02\u0110\u011d\x05 ","\x11\x02\u0111\u011d\x05$\x13\x02\u0112\u011d\x05&\x14","\x02\u0113\u011d\x05(\x15\x02\u0114\u011d\x05*\x16\x02","\u0115\u011d\x05,\x17\x02\u0116\u011d\x05.\x18\x02\u0117","\u011d\x050\x19\x02\u0118\u011d\x052\x1a\x02\u0119\u011d","\x054\x1b\x02\u011a\u011d\x056\x1c\x02\u011b\u011d\x05","8\x1d\x02\u011c\u010f\x03\x02\x02\x02\u011c\u0110\x03","\x02\x02\x02\u011c\u0111\x03\x02\x02\x02\u011c\u0112\x03","\x02\x02\x02\u011c\u0113\x03\x02\x02\x02\u011c\u0114\x03","\x02\x02\x02\u011c\u0115\x03\x02\x02\x02\u011c\u0116\x03","\x02\x02\x02\u011c\u0117\x03\x02\x02\x02\u011c\u0118\x03","\x02\x02\x02\u011c\u0119\x03\x02\x02\x02\u011c\u011a\x03","\x02\x02\x02\u011c\u011b\x03\x02\x02\x02\u011d\t\x03","\x02\x02\x02\u011e\u0127\x05\f\x07\x02\u011f\u0127\x05","\x0e\b\x02\u0120\u0127\x05\x10\t\x02\u0121\u0127\x05\x12","\n\x02\u0122\u0127\x05\x14\v\x02\u0123\u0127\x05\x16","\f\x02\u0124\u0127\x05\x18\r\x02\u0125\u0127\x05\x1a\x0e","\x02\u0126\u011e\x03\x02\x02\x02\u0126\u011f\x03\x02\x02","\x02\u0126\u0120\x03\x02\x02\x02\u0126\u0121\x03\x02\x02","\x02\u0126\u0122\x03\x02\x02\x02\u0126\u0123\x03\x02\x02","\x02\u0126\u0124\x03\x02\x02\x02\u0126\u0125\x03\x02\x02","\x02\u0127\v\x03\x02\x02\x02\u0128\u0129\x07$\x02","\x02\u0129\u012e\x05:\x1e\x02\u012a\u012b\x07\x13\x02","\x02\u012b\u012d\x05:\x1e\x02\u012c\u012a\x03\x02\x02","\x02\u012d\u0130\x03\x02\x02\x02\u012e\u012c\x03\x02\x02","\x02\u012e\u012f\x03\x02\x02\x02\u012f\r\x03\x02\x02","\x02\u0130\u012e\x03\x02\x02\x02\u0131\u0132\x07?\x02","\x02\u0132\u0137\x05<\x1f\x02\u0133\u0135\x05Z.\x02\u0134","\u0136\x05\\/\x02\u0135\u0134\x03\x02\x02\x02\u0135\u0136","\x03\x02\x02\x02\u0136\u0138\x03\x02\x02\x02\u0137\u0133","\x03\x02\x02\x02\u0137\u0138\x03\x02\x02\x02\u0138\x0f","\x03\x02\x02\x02\u0139\u013a\x07`\x02\x02\u013a\u013b","\x05\x06\x04\x02\u013b\x11\x03\x02\x02\x02\u013c\u013d",'\x07"\x02\x02\u013d\u0142\x05@!\x02\u013e\u013f\x07\x13',"\x02\x02\u013f\u0141\x05@!\x02\u0140\u013e\x03\x02\x02","\x02\u0141\u0144\x03\x02\x02\x02\u0142\u0140\x03\x02\x02","\x02\u0142\u0143\x03\x02\x02\x02\u0143\x13\x03\x02\x02","\x02\u0144\u0142\x03\x02\x02\x02\u0145\u0146\t\x07\x02","\x02\u0146\u014b\x05\xa8U\x02\u0147\u0148\x07\x13\x02","\x02\u0148\u014a\x05\xa8U\x02\u0149\u0147\x03\x02\x02","\x02\u014a\u014d\x03\x02\x02\x02\u014b\u0149\x03\x02\x02","\x02\u014b\u014c\x03\x02\x02\x02\u014c\x15\x03\x02\x02","\x02\u014d\u014b\x03\x02\x02\x02\u014e\u014f\t\b\x02\x02","\u014f\u0150\x05\xa8U\x02\u0150\u0151\x07\x13\x02\x02","\u0151\u0152\x05\xa8U\x02\u0152\x17\x03\x02\x02\x02","\u0153\u0154\x07\xc3\x02\x02\u0154\u0155\x05\xa8U\x02","\u0155\u0156\x07\x13\x02\x02\u0156\u0157\x05\xa8U\x02","\u0157\u0158\x07+\x02\x02\u0158\u015d\x05\xbe`\x02\u0159","\u015a\x07\x13\x02\x02\u015a\u015c\x05\xbe`\x02\u015b","\u0159\x03\x02\x02\x02\u015c\u015f\x03\x02\x02\x02\u015d","\u015b\x03\x02\x02\x02\u015d\u015e\x03\x02\x02\x02\u015e","\x19\x03\x02\x02\x02\u015f\u015d\x03\x02\x02\x02\u0160",'\u0161\x07\xc5\x02\x02\u0161\u0166\x05B"\x02\u0162\u0163','\x07\x13\x02\x02\u0163\u0165\x05B"\x02\u0164\u0162\x03',"\x02\x02\x02\u0165\u0168\x03\x02\x02\x02\u0166\u0164\x03","\x02\x02\x02\u0166\u0167\x03\x02\x02\x02\u0167\x1b\x03","\x02\x02\x02\u0168\u0166\x03\x02\x02\x02\u0169\u016a\t","\t\x02\x02\u016a\u016b\x07\x03\x02\x02\u016b\u016c\x05","F$\x02\u016c\u016d\x05J&\x02\u016d\u016e\x07\x04\x02\x02","\u016e\u0176\x03\x02\x02\x02\u016f\u0170\t\n\x02\x02\u0170","\u0171\x07\x03\x02\x02\u0171\u0172\x05D#\x02\u0172\u0173","\x05J&\x02\u0173\u0174\x07\x04\x02\x02\u0174\u0176\x03","\x02\x02\x02\u0175\u0169\x03\x02\x02\x02\u0175\u016f\x03","\x02\x02\x02\u0176\x1d\x03\x02\x02\x02\u0177\u0178\x07","r\x02\x02\u0178\u0179\x07q\x02\x02\u0179\u017a\x05\xba","^\x02\u017a\u0183\x07\x03\x02\x02\u017b\u0180\x05^0\x02","\u017c\u017d\x07\x13\x02\x02\u017d\u017f\x05^0\x02\u017e","\u017c\x03\x02\x02\x02\u017f\u0182\x03\x02\x02\x02\u0180","\u017e\x03\x02\x02\x02\u0180\u0181\x03\x02\x02\x02\u0181","\u0184\x03\x02\x02\x02\u0182\u0180\x03\x02\x02\x02\u0183","\u017b\x03\x02\x02\x02\u0183\u0184\x03\x02\x02\x02\u0184","\u0185\x03\x02\x02\x02\u0185\u0188\x07\x04\x02\x02\u0186","\u0187\x07\xc1\x02\x02\u0187\u0189\x05`1\x02\u0188\u0186","\x03\x02\x02\x02\u0188\u0189\x03\x02\x02\x02\u0189\u018a","\x03\x02\x02\x02\u018a\u018b\x07\xb0\x02\x02\u018b\u018c","\x05\x06\x04\x02\u018c\u018d\x07x\x02\x02\u018d\u018e","\x07q\x02\x02\u018e\u01aa\x03\x02\x02\x02\u018f\u0190","\x07r\x02\x02\u0190\u0191\x07t\x02\x02\u0191\u0192\x07","v\x02\x02\u0192\u0193\x05v<\x02\u0193\u0194\x07\x03\x02","\x02\u0194\u0195\x05x=\x02\u0195\u0196\x07\x04\x02\x02","\u0196\u0197\x07\xb0\x02\x02\u0197\u0198\x05|?\x02\u0198","\u0199\x07x\x02\x02\u0199\u019a\x07t\x02\x02\u019a\u019b","\x07v\x02\x02\u019b\u01aa\x03\x02\x02\x02\u019c\u019d","\x07r\x02\x02\u019d\u019e\x07u\x02\x02\u019e\u019f\x07","v\x02\x02\u019f\u01a0\x05v<\x02\u01a0\u01a1\x07\x03\x02","\x02\u01a1\u01a2\x05\x84C\x02\u01a2\u01a3\x07\x04\x02","\x02\u01a3\u01a4\x07\xb0\x02\x02\u01a4\u01a5\x05\x80A","\x02\u01a5\u01a6\x07x\x02\x02\u01a6\u01a7\x07u\x02\x02","\u01a7\u01a8\x07v\x02\x02\u01a8\u01aa\x03\x02\x02\x02","\u01a9\u0177\x03\x02\x02\x02\u01a9\u018f\x03\x02\x02\x02","\u01a9\u019c\x03\x02\x02\x02\u01aa\x1f\x03\x02\x02\x02","\u01ab\u01ac\x05\xba^\x02\u01ac\u01b5\x07\x03\x02\x02",'\u01ad\u01b2\x05"\x12\x02\u01ae\u01af\x07\x13\x02\x02','\u01af\u01b1\x05"\x12\x02\u01b0\u01ae\x03\x02\x02\x02',"\u01b1\u01b4\x03\x02\x02\x02\u01b2\u01b0\x03\x02\x02\x02","\u01b2\u01b3\x03\x02\x02\x02\u01b3\u01b6\x03\x02\x02\x02","\u01b4\u01b2\x03\x02\x02\x02\u01b5\u01ad\x03\x02\x02\x02","\u01b5\u01b6\x03\x02\x02\x02\u01b6\u01b7\x03\x02\x02\x02","\u01b7\u01b8\x07\x04\x02\x02\u01b8\u01e5\x03\x02\x02\x02","\u01b9\u01ba\x07\x18\x02\x02\u01ba\u01bb\x07\x03\x02\x02","\u01bb\u01bc\x05\xbc_\x02\u01bc\u01bf\x07\x03\x02\x02","\u01bd\u01c0\x05\xa4S\x02\u01be\u01c0\x05\xbe`\x02\u01bf","\u01bd\x03\x02\x02\x02\u01bf\u01be\x03\x02\x02\x02\u01bf","\u01c0\x03\x02\x02\x02\u01c0\u01c8\x03\x02\x02\x02\u01c1","\u01c4\x07\x13\x02\x02\u01c2\u01c5\x05\xa4S\x02\u01c3","\u01c5\x05\xbe`\x02\u01c4\u01c2\x03\x02\x02\x02\u01c4","\u01c3\x03\x02\x02\x02\u01c5\u01c7\x03\x02\x02\x02\u01c6","\u01c1\x03\x02\x02\x02\u01c7\u01ca\x03\x02\x02\x02\u01c8","\u01c6\x03\x02\x02\x02\u01c8\u01c9\x03\x02\x02\x02\u01c9","\u01cb\x03\x02\x02\x02\u01ca\u01c8\x03\x02\x02\x02\u01cb","\u01ce\x07\x04\x02\x02\u01cc\u01cd\x07\xe8\x02\x02\u01cd","\u01cf\x07\xec\x02\x02\u01ce\u01cc\x03\x02\x02\x02\u01ce","\u01cf\x03\x02\x02\x02\u01cf\u01d2\x03\x02\x02\x02\u01d0","\u01d1\x07\xc1\x02\x02\u01d1\u01d3\x05l7\x02\u01d2\u01d0","\x03\x02\x02\x02\u01d2\u01d3\x03\x02\x02\x02\u01d3\u01d4","\x03\x02\x02\x02\u01d4\u01d5\x07\x04\x02\x02\u01d5\u01e5","\x03\x02\x02\x02\u01d6\u01d7\x07\xd2\x02\x02\u01d7\u01d8","\x07\x03\x02\x02\u01d8\u01d9\x05\x06\x04\x02\u01d9\u01dc","\x07\x13\x02\x02\u01da\u01dd\x05\xc0a\x02\u01db\u01dd","\x05t;\x02\u01dc\u01da\x03\x02\x02\x02\u01dc\u01db\x03","\x02\x02\x02\u01dd\u01e0\x03\x02\x02\x02\u01de\u01df\x07","\x13\x02\x02\u01df\u01e1\x07\xec\x02\x02\u01e0\u01de\x03","\x02\x02\x02\u01e0\u01e1\x03\x02\x02\x02\u01e1\u01e2\x03","\x02\x02\x02\u01e2\u01e3\x07\x04\x02\x02\u01e3\u01e5\x03","\x02\x02\x02\u01e4\u01ab\x03\x02\x02\x02\u01e4\u01b9\x03","\x02\x02\x02\u01e4\u01d6\x03\x02\x02\x02\u01e5!\x03","\x02\x02\x02\u01e6\u01ea\x05\xa4S\x02\u01e7\u01ea\x05","\xbe`\x02\u01e8\u01ea\x07i\x02\x02\u01e9\u01e6\x03\x02","\x02\x02\u01e9\u01e7\x03\x02\x02\x02\u01e9\u01e8\x03\x02","\x02\x02\u01ea#\x03\x02\x02\x02\u01eb\u01ec\t\v\x02","\x02\u01ec\u01ed\x07\x03\x02\x02\u01ed\u01ee\x05\x06\x04","\x02\u01ee\u01ef\x07\x04\x02\x02\u01ef\u021c\x03\x02\x02","\x02\u01f0\u01f1\x07X\x02\x02\u01f1\u01f2\x07\x03\x02","\x02\u01f2\u01fd\x05\x06\x04\x02\u01f3\u01f4\x07\x13\x02","\x02\u01f4\u01f5\x05\xb2Z\x02\u01f5\u01f6\x03\x02\x02","\x02\u01f6\u01f7\x07\x13\x02\x02\u01f7\u01f8\x05\xb2Z","\x02\u01f8\u01fa\x03\x02\x02\x02\u01f9\u01f3\x03\x02\x02","\x02\u01f9\u01fa\x03\x02\x02\x02\u01fa\u01fe\x03\x02\x02","\x02\u01fb\u01fc\x07\x13\x02\x02\u01fc\u01fe\x05\xb2Z","\x02\u01fd\u01f9\x03\x02\x02\x02\u01fd\u01fb\x03\x02\x02","\x02\u01fe\u01ff\x03\x02\x02\x02\u01ff\u0200\x07\x04\x02","\x02\u0200\u021c\x03\x02\x02\x02\u0201\u0202\x07}\x02","\x02\u0202\u0203\x07\x03\x02\x02\u0203\u0204\x05\x06\x04","\x02\u0204\u0205\x07\x13\x02\x02\u0205\u0208\x05\x06\x04","\x02\u0206\u0207\x07\x13\x02\x02\u0207\u0209\x05\xb2Z","\x02\u0208\u0206\x03\x02\x02\x02\u0208\u0209\x03\x02\x02","\x02\u0209\u020a\x03\x02\x02\x02\u020a\u020b\x07\x04\x02","\x02\u020b\u021c\x03\x02\x02\x02\u020c\u020d\x07|\x02","\x02\u020d\u020e\x07\x03\x02\x02\u020e\u020f\x05\x06\x04","\x02\u020f\u0210\x07\x13\x02\x02\u0210\u0213\x05\x06\x04","\x02\u0211\u0212\x07\x13\x02\x02\u0212\u0214\x05\xb2Z","\x02\u0213\u0211\x03\x02\x02\x02\u0213\u0214\x03\x02\x02","\x02\u0214\u0217\x03\x02\x02\x02\u0215\u0216\x07\x13\x02","\x02\u0216\u0218\x05\xb2Z\x02\u0217\u0215\x03\x02\x02","\x02\u0217\u0218\x03\x02\x02\x02\u0218\u0219\x03\x02\x02","\x02\u0219\u021a\x07\x04\x02\x02\u021a\u021c\x03\x02\x02","\x02\u021b\u01eb\x03\x02\x02\x02\u021b\u01f0\x03\x02\x02","\x02\u021b\u0201\x03\x02\x02\x02\u021b\u020c\x03\x02\x02","\x02\u021c%\x03\x02\x02\x02\u021d\u021e\x07\x81\x02","\x02\u021e\u0220\x07\x03\x02\x02\u021f\u0221\x05\xb2Z","\x02\u0220\u021f\x03\x02\x02\x02\u0220\u0221\x03\x02\x02","\x02\u0221\u0222\x03\x02\x02\x02\u0222\u0239\x07\x04\x02","\x02\u0223\u0224\t\f\x02\x02\u0224\u0225\x07\x03\x02\x02","\u0225\u0226\x05\x06\x04\x02\u0226\u0227\x07\x04\x02\x02","\u0227\u0239\x03\x02\x02\x02\u0228\u0229\t\r\x02\x02\u0229","\u022a\x07\x03\x02\x02\u022a\u022d\x05\x06\x04\x02\u022b","\u022c\x07\x13\x02\x02\u022c\u022e\x05\xb2Z\x02\u022d","\u022b\x03\x02\x02\x02\u022d\u022e\x03\x02\x02\x02\u022e","\u022f\x03\x02\x02\x02\u022f\u0230\x07\x04\x02\x02\u0230","\u0239\x03\x02\x02\x02\u0231\u0232\t\x0e\x02\x02\u0232","\u0233\x07\x03\x02\x02\u0233\u0234\x05\x06\x04\x02\u0234","\u0235\x07\x13\x02\x02\u0235\u0236\x05\x06\x04\x02\u0236","\u0237\x07\x04\x02\x02\u0237\u0239\x03\x02\x02\x02\u0238","\u021d\x03\x02\x02\x02\u0238\u0223\x03\x02\x02\x02\u0238","\u0228\x03\x02\x02\x02\u0238\u0231\x03\x02\x02\x02\u0239","'\x03\x02\x02\x02\u023a\u023b\x07*\x02\x02\u023b\u023c","\x07\x03\x02\x02\u023c\u023d\x05\x06\x04\x02\u023d\u023e","\x07\x13\x02\x02\u023e\u023f\x05\x06\x04\x02\u023f\u0240","\x07\x13\x02\x02\u0240\u0241\x05\x06\x04\x02\u0241\u0242","\x07\x04\x02\x02\u0242\u025b\x03\x02\x02\x02\u0243\u0244","\x07e\x02\x02\u0244\u0245\x07\x03\x02\x02\u0245\u0246","\x05\x06\x04\x02\u0246\u0247\x07\x13\x02\x02\u0247\u0248","\x05\x06\x04\x02\u0248\u0249\x07\x04\x02\x02\u0249\u025b","\x03\x02\x02\x02\u024a\u024b\x07.\x02\x02\u024b\u024c","\x07\x03\x02\x02\u024c\u024d\x05\x06\x04\x02\u024d\u024e","\x07\x04\x02\x02\u024e\u025b\x03\x02\x02\x02\u024f\u0250","\x079\x02\x02\u0250\u0251\x07\x03\x02\x02\u0251\u0252","\x05\x06\x04\x02\u0252\u0253\x07\x13\x02\x02\u0253\u0256","\x05\x06\x04\x02\u0254\u0255\x07\x13\x02\x02\u0255\u0257","\x05\xc2b\x02\u0256\u0254\x03\x02\x02\x02\u0256\u0257","\x03\x02\x02\x02\u0257\u0258\x03\x02\x02\x02\u0258\u0259","\x07\x04\x02\x02\u0259\u025b\x03\x02\x02\x02\u025a\u023a","\x03\x02\x02\x02\u025a\u0243\x03\x02\x02\x02\u025a\u024a","\x03\x02\x02\x02\u025a\u024f\x03\x02\x02\x02\u025b)","\x03\x02\x02\x02\u025c\u025d\x07\xc8\x02\x02\u025d\u025f","\x07\x03\x02\x02\u025e\u0260\x05\x06\x04\x02\u025f\u025e","\x03\x02\x02\x02\u025f\u0260\x03\x02\x02\x02\u0260\u0261","\x03\x02\x02\x02\u0261\u028b\x07\x04\x02\x02\u0262\u0263","\x07\x99\x02\x02\u0263\u0264\x07\x03\x02\x02\u0264\u0267","\x05\x06\x04\x02\u0265\u0266\x07\x13\x02\x02\u0266\u0268","\t\x0f\x02\x02\u0267\u0265\x03\x02\x02\x02\u0267\u0268","\x03\x02\x02\x02\u0268\u0269\x03\x02\x02\x02\u0269\u026a","\x07\x04\x02\x02\u026a\u028b\x03\x02\x02\x02\u026b\u026c","\t\x10\x02\x02\u026c\u026d\x07\x03\x02\x02\u026d\u026e","\x05\x06\x04\x02\u026e\u026f\x07\x04\x02\x02\u026f\u028b","\x03\x02\x02\x02\u0270\u0271\x07\x9c\x02\x02\u0271\u0272","\x07\x03\x02\x02\u0272\u0273\x05\x06\x04\x02\u0273\u0274","\x07\x13\x02\x02\u0274\u0275\x05V,\x02\u0275\u0276\x07","\x04\x02\x02\u0276\u028b\x03\x02\x02\x02\u0277\u0278\x07","\xcb\x02\x02\u0278\u0279\x07\x03\x02\x02\u0279\u027c\x07","\xec\x02\x02\u027a\u027b\x07\x13\x02\x02\u027b\u027d\t","\x11\x02\x02\u027c\u027a\x03\x02\x02\x02\u027c\u027d\x03","\x02\x02\x02\u027d\u0280\x03\x02\x02\x02\u027e\u027f\x07","\x13\x02\x02\u027f\u0281\x05\xb2Z\x02\u0280\u027e\x03","\x02\x02\x02\u0280\u0281\x03\x02\x02\x02\u0281\u0284\x03","\x02\x02\x02\u0282\u0283\x07\x13\x02\x02\u0283\u0285\t","\x12\x02\x02\u0284\u0282\x03\x02\x02\x02\u0284\u0285\x03","\x02\x02\x02\u0285\u0286\x03\x02\x02\x02\u0286\u028b\x07","\x04\x02\x02\u0287\u0288\x07\x1e\x02\x02\u0288\u0289\x07","\x03\x02\x02\u0289\u028b\x07\x04\x02\x02\u028a\u025c\x03","\x02\x02\x02\u028a\u0262\x03\x02\x02\x02\u028a\u026b\x03","\x02\x02\x02\u028a\u0270\x03\x02\x02\x02\u028a\u0277\x03","\x02\x02\x02\u028a\u0287\x03\x02\x02\x02\u028b+\x03","\x02\x02\x02\u028c\u028d\x070\x02\x02\u028d\u028e\x07","\x03\x02\x02\u028e\u0291\x05\x06\x04\x02\u028f\u0290\x07","\x13\x02\x02\u0290\u0292\x05\x06\x04\x02\u0291\u028f\x03","\x02\x02\x02\u0292\u0293\x03\x02\x02\x02\u0293\u0291\x03","\x02\x02\x02\u0293\u0294\x03\x02\x02\x02\u0294\u0295\x03","\x02\x02\x02\u0295\u0296\x07\x04\x02\x02\u0296\u02aa\x03","\x02\x02\x02\u0297\u0298\x073\x02\x02\u0298\u0299\x07","\x03\x02\x02\u0299\u029c\x05\x06\x04\x02\u029a\u029b\x07","\x13\x02\x02\u029b\u029d\x05\x06\x04\x02\u029c\u029a\x03","\x02\x02\x02\u029d\u029e\x03\x02\x02\x02\u029e\u029c\x03","\x02\x02\x02\u029e\u029f\x03\x02\x02\x02\u029f\u02a0\x03","\x02\x02\x02\u02a0\u02a1\x07\x04\x02\x02\u02a1\u02aa\x03","\x02\x02\x02\u02a2\u02a3\t\x13\x02\x02\u02a3\u02a4\x07","\x03\x02\x02\u02a4\u02a5\x05\x06\x04\x02\u02a5\u02a6\x07","\x13\x02\x02\u02a6\u02a7\x05\x06\x04\x02\u02a7\u02a8\x07","\x04\x02\x02\u02a8\u02aa\x03\x02\x02\x02\u02a9\u028c\x03","\x02\x02\x02\u02a9\u0297\x03\x02\x02\x02\u02a9\u02a2\x03","\x02\x02\x02\u02aa-\x03\x02\x02\x02\u02ab\u02ac\x07","h\x02\x02\u02ac\u02ad\x07\x03\x02\x02\u02ad\u02ae\x05","\x06\x04\x02\u02ae\u02af\x07\x13\x02\x02\u02af\u02b1\x07","\xed\x02\x02\u02b0\u02b2\x05\x98M\x02\u02b1\u02b0\x03","\x02\x02\x02\u02b1\u02b2\x03\x02\x02\x02\u02b2\u02b5\x03","\x02\x02\x02\u02b3\u02b4\x07w\x02\x02\u02b4\u02b6\x05","\xa8U\x02\u02b5\u02b3\x03\x02\x02\x02\u02b5\u02b6\x03","\x02\x02\x02\u02b6\u02b8\x03\x02\x02\x02\u02b7\u02b9\x05","\x96L\x02\u02b8\u02b7\x03\x02\x02\x02\u02b8\u02b9\x03","\x02\x02\x02\u02b9\u02bb\x03\x02\x02\x02\u02ba\u02bc\x05","\x9eP\x02\u02bb\u02ba\x03\x02\x02\x02\u02bb\u02bc\x03","\x02\x02\x02\u02bc\u02be\x03\x02\x02\x02\u02bd\u02bf\x05","\xa0Q\x02\u02be\u02bd\x03\x02\x02\x02\u02be\u02bf\x03","\x02\x02\x02\u02bf\u02c0\x03\x02\x02\x02\u02c0\u02c1\x07","\x04\x02\x02\u02c1/\x03\x02\x02\x02\u02c2\u02c3\x07","\xd6\x02\x02\u02c3\u02c4\x07\x03\x02\x02\u02c4\u02c5\x05","\x06\x04\x02\u02c5\u02c6\x07\x13\x02\x02\u02c6\u02d0\x07","\xed\x02\x02\u02c7\u02c8\x07\xdf\x02\x02\u02c8\u02cd\x05","\xa8U\x02\u02c9\u02ca\x07\x13\x02\x02\u02ca\u02cc\x05","\xa8U\x02\u02cb\u02c9\x03\x02\x02\x02\u02cc\u02cf\x03","\x02\x02\x02\u02cd\u02cb\x03\x02\x02\x02\u02cd\u02ce\x03","\x02\x02\x02\u02ce\u02d1\x03\x02\x02\x02\u02cf\u02cd\x03","\x02\x02\x02\u02d0\u02c7\x03\x02\x02\x02\u02d0\u02d1\x03","\x02\x02\x02\u02d1\u02d3\x03\x02\x02\x02\u02d2\u02d4\x05","\x94K\x02\u02d3\u02d2\x03\x02\x02\x02\u02d3\u02d4\x03","\x02\x02\x02\u02d4\u02d5\x03\x02\x02\x02\u02d5\u02d6\x07","\x04\x02\x02\u02d6\u0300\x03\x02\x02\x02\u02d7\u02d8\x07","\xd7\x02\x02\u02d8\u02d9\x07\x03\x02\x02\u02d9\u02da\x05","\x06\x04\x02\u02da\u02db\x07\x13\x02\x02\u02db\u02dd\x07","\xed\x02\x02\u02dc\u02de\x05\x98M\x02\u02dd\u02dc\x03","\x02\x02\x02\u02dd\u02de\x03\x02\x02\x02\u02de\u02e1\x03","\x02\x02\x02\u02df\u02e0\x07w\x02\x02\u02e0\u02e2\x05","\xa8U\x02\u02e1\u02df\x03\x02\x02\x02\u02e1\u02e2\x03","\x02\x02\x02\u02e2\u02e4\x03\x02\x02\x02\u02e3\u02e5\x05","\x96L\x02\u02e4\u02e3\x03\x02\x02\x02\u02e4\u02e5\x03","\x02\x02\x02\u02e5\u02e7\x03\x02\x02\x02\u02e6\u02e8\x05","\x9aN\x02\u02e7\u02e6\x03\x02\x02\x02\u02e7\u02e8\x03","\x02\x02\x02\u02e8\u02ea\x03\x02\x02\x02\u02e9\u02eb\x05","\x94K\x02\u02ea\u02e9\x03\x02\x02\x02\u02ea\u02eb\x03","\x02\x02\x02\u02eb\u02ec\x03\x02\x02\x02\u02ec\u02ed\x07","\x04\x02\x02\u02ed\u0300\x03\x02\x02\x02\u02ee\u02ef\x07","8\x02\x02\u02ef\u02f0\x07\x03\x02\x02\u02f0\u02f2\x05","\x06\x04\x02\u02f1\u02f3\x05\xacW\x02\u02f2\u02f1\x03","\x02\x02\x02\u02f2\u02f3\x03\x02\x02\x02\u02f3\u02f5\x03","\x02\x02\x02\u02f4\u02f6\x05\xaeX\x02\u02f5\u02f4\x03","\x02\x02\x02\u02f5\u02f6\x03\x02\x02\x02\u02f6\u02f8\x03","\x02\x02\x02\u02f7\u02f9\x05\x9cO\x02\u02f8\u02f7\x03","\x02\x02\x02\u02f8\u02f9\x03\x02\x02\x02\u02f9\u02fb\x03","\x02\x02\x02\u02fa\u02fc\t\x14\x02\x02\u02fb\u02fa\x03","\x02\x02\x02\u02fb\u02fc\x03\x02\x02\x02\u02fc\u02fd\x03","\x02\x02\x02\u02fd\u02fe\x07\x04\x02\x02\u02fe\u0300\x03","\x02\x02\x02\u02ff\u02c2\x03\x02\x02\x02\u02ff\u02d7\x03","\x02\x02\x02\u02ff\u02ee\x03\x02\x02\x02\u03001\x03","\x02\x02\x02\u0301\u0302\x07g\x02\x02\u0302\u0303\x07","\x03\x02\x02\u0303\u0304\x05\x06\x04\x02\u0304\u0305\x07","\x13\x02\x02\u0305\u0306\x05\x06\x04\x02\u0306\u0307\x07","\x04\x02\x02\u03073\x03\x02\x02\x02\u0308\u0309\t\x15","\x02\x02\u0309\u030a\x07\x03\x02\x02\u030a\u030f\x05\x06","\x04\x02\u030b\u030d\x05Z.\x02\u030c\u030e\x05\\/\x02\u030d","\u030c\x03\x02\x02\x02\u030d\u030e\x03\x02\x02\x02\u030e","\u0310\x03\x02\x02\x02\u030f\u030b\x03\x02\x02\x02\u030f","\u0310\x03\x02\x02\x02\u0310\u0311\x03\x02\x02\x02\u0311","\u0312\x07\x04\x02\x02\u03125\x03\x02\x02\x02\u0313","\u0314\t\x16\x02\x02\u0314\u0315\x07\x03\x02\x02\u0315","\u0316\x05\x06\x04\x02\u0316\u0317\x07\x90\x02\x02\u0317","\u0319\x07\x03\x02\x02\u0318\u031a\x05N(\x02\u0319\u0318","\x03\x02\x02\x02\u0319\u031a\x03\x02\x02\x02\u031a\u031c","\x03\x02\x02\x02\u031b\u031d\x05P)\x02\u031c\u031b\x03","\x02\x02\x02\u031c\u031d\x03\x02\x02\x02\u031d\u031f\x03","\x02\x02\x02\u031e\u0320\x05T+\x02\u031f\u031e\x03\x02","\x02\x02\u031f\u0320\x03\x02\x02\x02\u0320\u0321\x03\x02","\x02\x02\u0321\u0322\x07\x04\x02\x02\u0322\u0323\x07\x04","\x02\x02\u0323\u0342\x03\x02\x02\x02\u0324\u0325\t\x17","\x02\x02\u0325\u0326\x07\x03\x02\x02\u0326\u032c\x05\x06","\x04\x02\u0327\u0328\x07\x13\x02\x02\u0328\u032a\x05V",",\x02\u0329\u032b\x05\xbe`\x02\u032a\u0329\x03\x02\x02","\x02\u032a\u032b\x03\x02\x02\x02\u032b\u032d\x03\x02\x02","\x02\u032c\u0327\x03\x02\x02\x02\u032c\u032d\x03\x02\x02","\x02\u032d\u032e\x03\x02\x02\x02\u032e\u032f\x07\x90\x02","\x02\u032f\u0331\x07\x03\x02\x02\u0330\u0332\x05N(\x02","\u0331\u0330\x03\x02\x02\x02\u0331\u0332\x03\x02\x02\x02","\u0332\u0333\x03\x02\x02\x02\u0333\u0334\x05P)\x02\u0334","\u0335\x03\x02\x02\x02\u0335\u0336\x07\x04\x02\x02\u0336","\u0337\x07\x04\x02\x02\u0337\u0342\x03\x02\x02\x02\u0338","\u0339\x07\x8f\x02\x02\u0339\u033a\x07\x03\x02\x02\u033a","\u033b\x05\x06\x04\x02\u033b\u033c\x07\x90\x02\x02\u033c","\u033d\x07\x03\x02\x02\u033d\u033e\x05N(\x02\u033e\u033f","\x07\x04\x02\x02\u033f\u0340\x07\x04\x02\x02\u0340\u0342","\x03\x02\x02\x02\u0341\u0313\x03\x02\x02\x02\u0341\u0324","\x03\x02\x02\x02\u0341\u0338\x03\x02\x02\x02\u03427","\x03\x02\x02\x02\u0343\u0344\x07k\x02\x02\u0344\u0345","\x07\x03\x02\x02\u0345\u0346\x05\x06\x04\x02\u0346\u0347","\x07\x13\x02\x02\u0347\u0348\x05\x06\x04\x02\u0348\u0349","\x07\x04\x02\x02\u03499\x03\x02\x02\x02\u034a\u034b","\x05\xa8U\x02\u034b\u034c\x07:\x02\x02\u034c\u034d\x05","\xa8U\x02\u034d;\x03\x02\x02\x02\u034e\u0353\x05> \x02","\u034f\u0350\x07\x13\x02\x02\u0350\u0352\x05> \x02\u0351","\u034f\x03\x02\x02\x02\u0352\u0355\x03\x02\x02\x02\u0353","\u0351\x03\x02\x02\x02\u0353\u0354\x03\x02\x02\x02\u0354","=\x03\x02\x02\x02\u0355\u0353\x03\x02\x02\x02\u0356","\u0358\x05\xb4[\x02\u0357\u0356\x03\x02\x02\x02\u0357","\u0358\x03\x02\x02\x02\u0358\u0359\x03\x02\x02\x02\u0359","\u035a\x05\xa8U\x02\u035a\u035b\x07\x16\x02\x02\u035b","\u035c\x054\x1b\x02\u035c?\x03\x02\x02\x02\u035d\u035f","\x05\xb4[\x02\u035e\u035d\x03\x02\x02\x02\u035e\u035f","\x03\x02\x02\x02\u035f\u0360\x03\x02\x02\x02\u0360\u0361","\x05\xa8U\x02\u0361\u0362\x07\x16\x02\x02\u0362\u0363","\x05\x06\x04\x02\u0363A\x03\x02\x02\x02\u0364\u0365","\x05\xa8U\x02\u0365\u0366\x07\t\x02\x02\u0366\u0367\x05","\xbe`\x02\u0367C\x03\x02\x02\x02\u0368\u036d\x05H%\x02","\u0369\u036a\x07\x13\x02\x02\u036a\u036c\x05H%\x02\u036b","\u0369\x03\x02\x02\x02\u036c\u036f\x03\x02\x02\x02\u036d","\u036b\x03\x02\x02\x02\u036d\u036e\x03\x02\x02\x02\u036e","E\x03\x02\x02\x02\u036f\u036d\x03\x02\x02\x02\u0370","\u0375\x05H%\x02\u0371\u0372\x07\x13\x02\x02\u0372\u0374","\x05H%\x02\u0373\u0371\x03\x02\x02\x02\u0374\u0377\x03","\x02\x02\x02\u0375\u0373\x03\x02\x02\x02\u0375\u0376\x03","\x02\x02\x02\u0376\u0381\x03\x02\x02\x02\u0377\u0375\x03","\x02\x02\x02\u0378\u0379\x07\x1c\x02\x02\u0379\u037e\x05","\xa8U\x02\u037a\u037b\x07\x13\x02\x02\u037b\u037d\x05","\xa8U\x02\u037c\u037a\x03\x02\x02\x02\u037d\u0380\x03","\x02\x02\x02\u037e\u037c\x03\x02\x02\x02\u037e\u037f\x03","\x02\x02\x02\u037f\u0382\x03\x02\x02\x02\u0380\u037e\x03","\x02\x02\x02\u0381\u0378\x03\x02\x02\x02\u0381\u0382\x03","\x02\x02\x02\u0382G\x03\x02\x02\x02\u0383\u0386\x05","\x06\x04\x02\u0384\u0385\x07%\x02\x02\u0385\u0387\x05","\xa2R\x02\u0386\u0384\x03\x02\x02\x02\u0386\u0387\x03","\x02\x02\x02\u0387I\x03\x02\x02\x02\u0388\u038a\x05","\x10\t\x02\u0389\u0388\x03\x02\x02\x02\u0389\u038a\x03","\x02\x02\x02\u038a\u038e\x03\x02\x02\x02\u038b\u038f\x05","\x12\n\x02\u038c\u038f\x05L'\x02\u038d\u038f\x05\x0e\b","\x02\u038e\u038b\x03\x02\x02\x02\u038e\u038c\x03\x02\x02","\x02\u038e\u038d\x03\x02\x02\x02\u038e\u038f\x03\x02\x02","\x02\u038f\u0391\x03\x02\x02\x02\u0390\u0392\x05\x14\v","\x02\u0391\u0390\x03\x02\x02\x02\u0391\u0392\x03\x02\x02","\x02\u0392\u0394\x03\x02\x02\x02\u0393\u0395\x05\f\x07","\x02\u0394\u0393\x03\x02\x02\x02\u0394\u0395\x03\x02\x02","\x02\u0395K\x03\x02\x02\x02\u0396\u0397\x07\xc6\x02","\x02\u0397\u0398\x05\x06\x04\x02\u0398M\x03\x02\x02","\x02\u0399\u039a\x07\x94\x02\x02\u039a\u039b\x07B\x02","\x02\u039b\u03a0\x05\xa8U\x02\u039c\u039d\x07\x13\x02","\x02\u039d\u039f\x05\xa8U\x02\u039e\u039c\x03\x02\x02","\x02\u039f\u03a2\x03\x02\x02\x02\u03a0\u039e\x03\x02\x02","\x02\u03a0\u03a1\x03\x02\x02\x02\u03a1O\x03\x02\x02","\x02\u03a2\u03a0\x03\x02\x02\x02\u03a3\u03a4\x07A\x02","\x02\u03a4\u03a5\x07B\x02\x02\u03a5\u03aa\x05R*\x02\u03a6","\u03a7\x07\x13\x02\x02\u03a7\u03a9\x05R*\x02\u03a8\u03a6","\x03\x02\x02\x02\u03a9\u03ac\x03\x02\x02\x02\u03aa\u03a8","\x03\x02\x02\x02\u03aa\u03ab\x03\x02\x02\x02\u03abQ","\x03\x02\x02\x02\u03ac\u03aa\x03\x02\x02\x02\u03ad\u03af","\x05\xa8U\x02\u03ae\u03b0\t\x18\x02\x02\u03af\u03ae\x03","\x02\x02\x02\u03af\u03b0\x03\x02\x02\x02\u03b0S\x03","\x02\x02\x02\u03b1\u03b2\x07n\x02\x02\u03b2\u03b5\x07","\xb4\x02\x02\u03b3\u03b5\x07\x96\x02\x02\u03b4\u03b1\x03","\x02\x02\x02\u03b4\u03b3\x03\x02\x02\x02\u03b5\u03b6\x03","\x02\x02\x02\u03b6\u03b7\x07*\x02\x02\u03b7\u03b8\x05","X-\x02\u03b8\u03b9\x07&\x02\x02\u03b9\u03ba\x05X-\x02\u03ba","U\x03\x02\x02\x02\u03bb\u03bc\x07\xe9\x02\x02\u03bc","W\x03\x02\x02\x02\u03bd\u03be\x07\xe9\x02\x02\u03be","\u03c9\x07\x91\x02\x02\u03bf\u03c0\x07\xe9\x02\x02\u03c0","\u03c9\x07\x92\x02\x02\u03c1\u03c2\x07\x97\x02\x02\u03c2","\u03c3\x07n\x02\x02\u03c3\u03c9\x07\xb5\x02\x02\u03c4","\u03c5\x07\x93\x02\x02\u03c5\u03c9\x07\x91\x02\x02\u03c6","\u03c7\x07\x93\x02\x02\u03c7\u03c9\x07\x92\x02\x02\u03c8","\u03bd\x03\x02\x02\x02\u03c8\u03bf\x03\x02\x02\x02\u03c8","\u03c1\x03\x02\x02\x02\u03c8\u03c4\x03\x02\x02\x02\u03c8","\u03c6\x03\x02\x02\x02\u03c9Y\x03\x02\x02\x02\u03ca","\u03cb\x07\x88\x02\x02\u03cb\u03cc\t\x19\x02\x02\u03cc","\u03d1\x05\xa8U\x02\u03cd\u03ce\x07\x13\x02\x02\u03ce","\u03d0\x05\xa8U\x02\u03cf\u03cd\x03\x02\x02\x02\u03d0","\u03d3\x03\x02\x02\x02\u03d1\u03cf\x03\x02\x02\x02\u03d1","\u03d2\x03\x02\x02\x02\u03d2\u03d8\x03\x02\x02\x02\u03d3","\u03d1\x03\x02\x02\x02\u03d4\u03d5\x07\x88\x02\x02\u03d5","\u03d6\x07>\x02\x02\u03d6\u03d8\x05\x06\x04\x02\u03d7","\u03ca\x03\x02\x02\x02\u03d7\u03d4\x03\x02\x02\x02\u03d8","[\x03\x02\x02\x02\u03d9\u03da\x07\x8a\x02\x02\u03da","\u03db\x05\x06\x04\x02\u03db]\x03\x02\x02\x02\u03dc","\u03dd\x05\xa4S\x02\u03dd\u03e0\x05d3\x02\u03de\u03df\x07","\xd5\x02\x02\u03df\u03e1\x05\xbe`\x02\u03e0\u03de\x03","\x02\x02\x02\u03e0\u03e1\x03\x02\x02\x02\u03e1_\x03","\x02\x02\x02\u03e2\u03e6\x05h5\x02\u03e3\u03e6\x05l7\x02","\u03e4\u03e6\x05j6\x02\u03e5\u03e2\x03\x02\x02\x02\u03e5","\u03e3\x03\x02\x02\x02\u03e5\u03e4\x03\x02\x02\x02\u03e6","a\x03\x02\x02\x02\u03e7\u03ea\x05j6\x02\u03e8\u03ea\x05","h5\x02\u03e9\u03e7\x03\x02\x02\x02\u03e9\u03e8\x03\x02","\x02\x02\u03eac\x03\x02\x02\x02\u03eb\u03f1\x05h5\x02","\u03ec\u03f1\x05l7\x02\u03ed\u03f1\x05n8\x02\u03ee\u03f1\x05","f4\x02\u03ef\u03f1\x05j6\x02\u03f0\u03eb\x03\x02\x02\x02","\u03f0\u03ec\x03\x02\x02\x02\u03f0\u03ed\x03\x02\x02\x02","\u03f0\u03ee\x03\x02\x02\x02\u03f0\u03ef\x03\x02\x02\x02","\u03f1e\x03\x02\x02\x02\u03f2\u03f6\x07v\x02\x02\u03f3","\u03f6\x05p9\x02\u03f4\u03f6\x05r:\x02\u03f5\u03f2\x03\x02","\x02\x02\u03f5\u03f3\x03\x02\x02\x02\u03f5\u03f4\x03\x02","\x02\x02\u03f6g\x03\x02\x02\x02\u03f7\u03fa\x05\xc0","a\x02\u03f8\u03fa\x05t;\x02\u03f9\u03f7\x03\x02\x02\x02","\u03f9\u03f8\x03\x02\x02\x02\u03fa\u03fc\x03\x02\x02\x02","\u03fb\u03fd\x05\x8eH\x02\u03fc\u03fb\x03\x02\x02\x02","\u03fc\u03fd\x03\x02\x02\x02\u03fd\u0402\x03\x02\x02\x02","\u03fe\u0400\x07)\x02\x02\u03ff\u03fe\x03\x02\x02\x02","\u03ff\u0400\x03\x02\x02\x02\u0400\u0401\x03\x02\x02\x02","\u0401\u0403\x07-\x02\x02\u0402\u03ff\x03\x02\x02\x02","\u0402\u0403\x03\x02\x02\x02\u0403i\x03\x02\x02\x02","\u0404\u0409\x05\xb4[\x02\u0405\u0406\x07\n\x02\x02\u0406","\u0407\x05h5\x02\u0407\u0408\x07\v\x02\x02\u0408\u040a","\x03\x02\x02\x02\u0409\u0405\x03\x02\x02\x02\u0409\u040a","\x03\x02\x02\x02\u040ak\x03\x02\x02\x02\u040b\u0417","\x07p\x02\x02\u040c\u040d\x07\x07\x02\x02\u040d\u0412","\x05\x90I\x02\u040e\u040f\x07\x13\x02\x02\u040f\u0411","\x05\x90I\x02\u0410\u040e\x03\x02\x02\x02\u0411\u0414","\x03\x02\x02\x02\u0412\u0410\x03\x02\x02\x02\u0412\u0413","\x03\x02\x02\x02\u0413\u0415\x03\x02\x02\x02\u0414\u0412","\x03\x02\x02\x02\u0415\u0416\x07\b\x02\x02\u0416\u0418","\x03\x02\x02\x02\u0417\u040c\x03\x02\x02\x02\u0417\u0418","\x03\x02\x02\x02\u0418m\x03\x02\x02\x02\u0419\u041e","\x07\xe7\x02\x02\u041a\u041b\x07\n\x02\x02\u041b\u041c","\x05h5\x02\u041c\u041d\x07\v\x02\x02\u041d\u041f\x03","\x02\x02\x02\u041e\u041a\x03\x02\x02\x02\u041e\u041f\x03","\x02\x02\x02\u041fo\x03\x02\x02\x02\u0420\u043e\x07","t\x02\x02\u0421\u042d\x07\xe3\x02\x02\u0422\u0423\x07","\x07\x02\x02\u0423\u0428\x05t;\x02\u0424\u0425\x07\x11","\x02\x02\u0425\u0427\x05t;\x02\u0426\u0424\x03\x02\x02","\x02\u0427\u042a\x03\x02\x02\x02\u0428\u0426\x03\x02\x02","\x02\u0428\u0429\x03\x02\x02\x02\u0429\u042b\x03\x02\x02","\x02\u042a\u0428\x03\x02\x02\x02\u042b\u042c\x07\b\x02","\x02\u042c\u042e\x03\x02\x02\x02\u042d\u0422\x03\x02\x02","\x02\u042d\u042e\x03\x02\x02\x02\u042e\u043e\x03\x02\x02","\x02\u042f\u043b\x07\xe4\x02\x02\u0430\u0431\x07\x07\x02","\x02\u0431\u0436\x05\xa4S\x02\u0432\u0433\x07\x11\x02","\x02\u0433\u0435\x05\xa4S\x02\u0434\u0432\x03\x02\x02","\x02\u0435\u0438\x03\x02\x02\x02\u0436\u0434\x03\x02\x02","\x02\u0436\u0437\x03\x02\x02\x02\u0437\u0439\x03\x02\x02","\x02\u0438\u0436\x03\x02\x02\x02\u0439\u043a\x07\b\x02","\x02\u043a\u043c\x03\x02\x02\x02\u043b\u0430\x03\x02\x02","\x02\u043b\u043c\x03\x02\x02\x02\u043c\u043e\x03\x02\x02","\x02\u043d\u0420\x03\x02\x02\x02\u043d\u0421\x03\x02\x02","\x02\u043d\u042f\x03\x02\x02\x02\u043eq\x03\x02\x02","\x02\u043f\u0468\x07u\x02\x02\u0440\u0451\x07\xe5\x02","\x02\u0441\u0442\x07\x07\x02\x02\u0442\u044e\x07\xed\x02","\x02\u0443\u0444\x07\x03\x02\x02\u0444\u0449\x05t;\x02","\u0445\u0446\x07\x11\x02\x02\u0446\u0448\x05t;\x02\u0447","\u0445\x03\x02\x02\x02\u0448\u044b\x03\x02\x02\x02\u0449","\u0447\x03\x02\x02\x02\u0449\u044a\x03\x02\x02\x02\u044a","\u044c\x03\x02\x02\x02\u044b\u0449\x03\x02\x02\x02\u044c","\u044d\x07\x04\x02\x02\u044d\u044f\x03\x02\x02\x02\u044e","\u0443\x03\x02\x02\x02\u044e\u044f\x03\x02\x02\x02\u044f","\u0450\x03\x02\x02\x02\u0450\u0452\x07\b\x02\x02\u0451","\u0441\x03\x02\x02\x02\u0451\u0452\x03\x02\x02\x02\u0452","\u0468\x03\x02\x02\x02\u0453\u0465\x07\xe6\x02\x02\u0454","\u0455\x07\x07\x02\x02\u0455\u0461\x05\xa4S\x02\u0456","\u0457\x07\x03\x02\x02\u0457\u045c\x05\xa4S\x02\u0458","\u0459\x07\x11\x02\x02\u0459\u045b\x05\xa4S\x02\u045a","\u0458\x03\x02\x02\x02\u045b\u045e\x03\x02\x02\x02\u045c","\u045a\x03\x02\x02\x02\u045c\u045d\x03\x02\x02\x02\u045d","\u045f\x03\x02\x02\x02\u045e\u045c\x03\x02\x02\x02\u045f","\u0460\x07\x04\x02\x02\u0460\u0462\x03\x02\x02\x02\u0461","\u0456\x03\x02\x02\x02\u0461\u0462\x03\x02\x02\x02\u0462","\u0463\x03\x02\x02\x02\u0463\u0464\x07\b\x02\x02\u0464","\u0466\x03\x02\x02\x02\u0465\u0454\x03\x02\x02\x02\u0465","\u0466\x03\x02\x02\x02\u0466\u0468\x03\x02\x02\x02\u0467","\u043f\x03\x02\x02\x02\u0467\u0440\x03\x02\x02\x02\u0467","\u0453\x03\x02\x02\x02\u0468s\x03\x02\x02\x02\u0469","\u046a\x07\xed\x02\x02\u046au\x03\x02\x02\x02\u046b","\u046c\x07\xed\x02\x02\u046cw\x03\x02\x02\x02\u046d","\u046e\t\x1a\x02\x02\u046e\u0473\x05z>\x02\u046f\u0470\x07","\x13\x02\x02\u0470\u0472\x05z>\x02\u0471\u046f\x03\x02","\x02\x02\u0472\u0475\x03\x02\x02\x02\u0473\u0471\x03\x02","\x02\x02\u0473\u0474\x03\x02\x02\x02\u0474y\x03\x02","\x02\x02\u0475\u0473\x03\x02\x02\x02\u0476\u0479\x05\xa4","S\x02\u0477\u0478\x07%\x02\x02\u0478\u047a\x05\xa2R\x02","\u0479\u0477\x03\x02\x02\x02\u0479\u047a\x03\x02\x02\x02","\u047a{\x03\x02\x02\x02\u047b\u0480\x05~@\x02\u047c\u047d","\x07\xef\x02\x02\u047d\u047f\x05~@\x02\u047e\u047c\x03","\x02\x02\x02\u047f\u0482\x03\x02\x02\x02\u0480\u047e\x03","\x02\x02\x02\u0480\u0481\x03\x02\x02\x02\u0481}\x03","\x02\x02\x02\u0482\u0480\x03\x02\x02\x02\u0483\u0484\x07","\xed\x02\x02\u0484\u0486\x07\x15\x02\x02\u0485\u0483\x03","\x02\x02\x02\u0485\u0486\x03\x02\x02\x02\u0486\u048b\x03","\x02\x02\x02\u0487\u0488\x07\xb1\x02\x02\u0488\u0489\x05","\x06\x04\x02\u0489\u048a\x07\x1a\x02\x02\u048a\u048c\x03","\x02\x02\x02\u048b\u0487\x03\x02\x02\x02\u048b\u048c\x03","\x02\x02\x02\u048c\u048d\x03\x02\x02\x02\u048d\u048f\x05","\x06\x04\x02\u048e\u0490\x05\xacW\x02\u048f\u048e\x03","\x02\x02\x02\u048f\u0490\x03\x02\x02\x02\u0490\u0492\x03","\x02\x02\x02\u0491\u0493\x05\xaeX\x02\u0492\u0491\x03","\x02\x02\x02\u0492\u0493\x03\x02\x02\x02\u0493\x7f\x03","\x02\x02\x02\u0494\u0499\x05\x82B\x02\u0495\u0496\x07","\xef\x02\x02\u0496\u0498\x05\x82B\x02\u0497\u0495\x03","\x02\x02\x02\u0498\u049b\x03\x02\x02\x02\u0499\u0497\x03","\x02\x02\x02\u0499\u049a\x03\x02\x02\x02\u049a\x81\x03","\x02\x02\x02\u049b\u0499\x03\x02\x02\x02\u049c\u049d\x07","\xed\x02\x02\u049d\u049f\x07\x15\x02\x02\u049e\u049c\x03","\x02\x02\x02\u049e\u049f\x03\x02\x02\x02\u049f\u04a0\x03","\x02\x02\x02\u04a0\u04a2\x05\x88E\x02\u04a1\u04a3\x05","\xacW\x02\u04a2\u04a1\x03\x02\x02\x02\u04a2\u04a3\x03","\x02\x02\x02\u04a3\u04a5\x03\x02\x02\x02\u04a4\u04a6\x05","\xaeX\x02\u04a5\u04a4\x03\x02\x02\x02\u04a5\u04a6\x03","\x02\x02\x02\u04a6\x83\x03\x02\x02\x02\u04a7\u04aa\t","\x1a\x02\x02\u04a8\u04a9\x07\x9f\x02\x02\u04a9\u04ab\x05","\x86D\x02\u04aa\u04a8\x03\x02\x02\x02\u04aa\u04ab\x03","\x02\x02\x02\u04ab\u04ac\x03\x02\x02\x02\u04ac\u04ad\x07","w\x02\x02\u04ad\u04ae\x07\xed\x02\x02\u04ae\x85\x03","\x02\x02\x02\u04af\u04b4\x05z>\x02\u04b0\u04b1\x07\x13","\x02\x02\u04b1\u04b3\x05z>\x02\u04b2\u04b0\x03\x02\x02","\x02\u04b3\u04b6\x03\x02\x02\x02\u04b4\u04b2\x03\x02\x02","\x02\u04b4\u04b5\x03\x02\x02\x02\u04b5\x87\x03\x02\x02","\x02\u04b6\u04b4\x03\x02\x02\x02\u04b7\u04b8\x07\xb1\x02","\x02\u04b8\u04b9\x05\x06\x04\x02\u04b9\u04ba\x07\x1a\x02","\x02\u04ba\u04bc\x03\x02\x02\x02\u04bb\u04b7\x03\x02\x02","\x02\u04bb\u04bc\x03\x02\x02\x02\u04bc\u04bd\x03\x02\x02","\x02\u04bd\u04bf\x05\x8cG\x02\u04be\u04c0\x05\xb0Y\x02","\u04bf\u04be\x03\x02\x02\x02\u04bf\u04c0\x03\x02\x02\x02","\u04c0\u04c1\x03\x02\x02\x02\u04c1\u04c5\x05\x8aF\x02","\u04c2\u04c4\x05\x8aF\x02\u04c3\u04c2\x03\x02\x02\x02","\u04c4\u04c7\x03\x02\x02\x02\u04c5\u04c3\x03\x02\x02\x02","\u04c5\u04c6\x03\x02\x02\x02\u04c6\x89\x03\x02\x02\x02","\u04c7\u04c5\x03\x02\x02\x02\u04c8\u04ca\t\x1b\x02\x02","\u04c9\u04c8\x03\x02\x02\x02\u04c9\u04ca\x03\x02\x02\x02","\u04ca\u04cb\x03\x02\x02\x02\u04cb\u04d0\x05\x8cG\x02","\u04cc\u04cd\x07\x05\x02\x02\u04cd\u04ce\x05\x06\x04\x02","\u04ce\u04cf\x07\x06\x02\x02\u04cf\u04d1\x03\x02\x02\x02","\u04d0\u04cc\x03\x02\x02\x02\u04d0\u04d1\x03\x02\x02\x02","\u04d1\x8b\x03\x02\x02\x02\u04d2\u04d3\t\x1c\x02\x02","\u04d3\x8d\x03\x02\x02\x02\u04d4\u04d5\x07\x05\x02\x02","\u04d5\u04d6\x05\x06\x04\x02\u04d6\u04d7\x07\x06\x02\x02","\u04d7\u04e4\x03\x02\x02\x02\u04d8\u04d9\x07\x07\x02\x02","\u04d9\u04de\x05\xbe`\x02\u04da\u04db\x07\x13\x02\x02","\u04db\u04dd\x05\xbe`\x02\u04dc\u04da\x03\x02\x02\x02","\u04dd\u04e0\x03\x02\x02\x02\u04de\u04dc\x03\x02\x02\x02","\u04de\u04df\x03\x02\x02\x02\u04df\u04e1\x03\x02\x02\x02","\u04e0\u04de\x03\x02\x02\x02\u04e1\u04e2\x07\b\x02\x02","\u04e2\u04e4\x03\x02\x02\x02\u04e3\u04d4\x03\x02\x02\x02","\u04e3\u04d8\x03\x02\x02\x02\u04e4\x8f\x03\x02\x02\x02","\u04e5\u04e8\x05j6\x02\u04e6\u04e9\x05\xa8U\x02\u04e7\u04e9","\x05\x92J\x02\u04e8\u04e6\x03\x02\x02\x02\u04e8\u04e7","\x03\x02\x02\x02\u04e9\x91\x03\x02\x02\x02\u04ea\u04ec","\x07i\x02\x02\u04eb\u04ed\t\x1d\x02\x02\u04ec\u04eb\x03","\x02\x02\x02\u04ec\u04ed\x03\x02\x02\x02\u04ed\x93\x03","\x02\x02\x02\u04ee\u04ef\t\x1e\x02\x02\u04ef\x95\x03","\x02\x02\x02\u04f0\u04f1\t\x1f\x02\x02\u04f1\x97\x03","\x02\x02\x02\u04f2\u04f3\x07\x9f\x02\x02\u04f3\u04f8\x05","\xa8U\x02\u04f4\u04f5\x07\x13\x02\x02\u04f5\u04f7\x05","\xa8U\x02\u04f6\u04f4\x03\x02\x02\x02\u04f7\u04fa\x03","\x02\x02\x02\u04f8\u04f6\x03\x02\x02\x02\u04f8\u04f9\x03","\x02\x02\x02\u04f9\x99\x03\x02\x02\x02\u04fa\u04f8\x03","\x02\x02\x02\u04fb\u04fc\t \x02\x02\u04fc\x9b\x03\x02","\x02\x02\u04fd\u04fe\x07<\x02\x02\u04fe\u04ff\x05\x06","\x04\x02\u04ff\x9d\x03\x02\x02\x02\u0500\u0501\t!\x02",'\x02\u0501\x9f\x03\x02\x02\x02\u0502\u0503\t"\x02\x02',"\u0503\xa1\x03\x02\x02\x02\u0504\u0505\x07\xed\x02\x02","\u0505\xa3\x03\x02\x02\x02\u0506\u0507\x07\xed\x02\x02","\u0507\xa5\x03\x02\x02\x02\u0508\u0509\x07\xed\x02\x02","\u0509\xa7\x03\x02\x02\x02\u050a\u050d\x07\xed\x02\x02","\u050b\u050c\x07\x17\x02\x02\u050c\u050e\x07\xed\x02\x02","\u050d\u050b\x03\x02\x02\x02\u050d\u050e\x03\x02\x02\x02","\u050e\xa9\x03\x02\x02\x02\u050f\u0510\x07\x07\x02\x02","\u0510\u0515\x05\xbe`\x02\u0511\u0512\x07\x13\x02\x02","\u0512\u0514\x05\xbe`\x02\u0513\u0511\x03\x02\x02\x02","\u0514\u0517\x03\x02\x02\x02\u0515\u0513\x03\x02\x02\x02","\u0515\u0516\x03\x02\x02\x02\u0516\u0518\x03\x02\x02\x02","\u0517\u0515\x03\x02\x02\x02\u0518\u0519\x07\b\x02\x02","\u0519\xab\x03\x02\x02\x02\u051a\u051b\x07=\x02\x02","\u051b\u051c\x05\xbe`\x02\u051c\xad\x03\x02\x02\x02","\u051d\u051e\x07@\x02\x02\u051e\u051f\x05\xbe`\x02\u051f","\xaf\x03\x02\x02\x02\u0520\u0521\t#\x02\x02\u0521\xb1","\x03\x02\x02\x02\u0522\u0525\x05\x06\x04\x02\u0523\u0525","\x07i\x02\x02\u0524\u0522\x03\x02\x02\x02\u0524\u0523","\x03\x02\x02\x02\u0525\xb3\x03\x02\x02\x02\u0526\u052c","\x07^\x02\x02\u0527\u052c\x07\xe2\x02\x02\u0528\u052c","\x07]\x02\x02\u0529\u052c\x07_\x02\x02\u052a\u052c\x05","\xb6\\\x02\u052b\u0526\x03\x02\x02\x02\u052b\u0527\x03","\x02\x02\x02\u052b\u0528\x03\x02\x02\x02\u052b\u0529\x03","\x02\x02\x02\u052b\u052a\x03\x02\x02\x02\u052c\xb5\x03","\x02\x02\x02\u052d\u052e\x07d\x02\x02\u052e\u052f\x07","_\x02\x02\u052f\xb7\x03\x02\x02\x02\u0530\u0531\x07","\xed\x02\x02\u0531\xb9\x03\x02\x02\x02\u0532\u0533\x07","\xed\x02\x02\u0533\xbb\x03\x02\x02\x02\u0534\u0535\x07","\xed\x02\x02\u0535\xbd\x03\x02\x02\x02\u0536\u0537\t","$\x02\x02\u0537\xbf\x03\x02\x02\x02\u0538\u0539\t%\x02","\x02\u0539\xc1\x03\x02\x02\x02\u053a\u053b\t&\x02\x02","\u053b\xc3\x03\x02\x02\x02\x97\xc9\xd7\xea\u0108\u010a","\u010c\u011c\u0126\u012e\u0135\u0137\u0142\u014b\u015d\u0166\u0175\u0180","\u0183\u0188\u01a9\u01b2\u01b5\u01bf\u01c4\u01c8\u01ce\u01d2\u01dc\u01e0","\u01e4\u01e9\u01f9\u01fd\u0208\u0213\u0217\u021b\u0220\u022d\u0238\u0256","\u025a\u025f\u0267\u027c\u0280\u0284\u028a\u0293\u029e\u02a9\u02b1\u02b5","\u02b8\u02bb\u02be\u02cd\u02d0\u02d3\u02dd\u02e1\u02e4\u02e7\u02ea\u02f2","\u02f5\u02f8\u02fb\u02ff\u030d\u030f\u0319\u031c\u031f\u032a\u032c\u0331","\u0341\u0353\u0357\u035e\u036d\u0375\u037e\u0381\u0386\u0389\u038e\u0391","\u0394\u03a0\u03aa\u03af\u03b4\u03c8\u03d1\u03d7\u03e0\u03e5\u03e9\u03f0","\u03f5\u03f9\u03fc\u03ff\u0402\u0409\u0412\u0417\u041e\u0428\u042d\u0436","\u043b\u043d\u0449\u044e\u0451\u045c\u0461\u0465\u0467\u0473\u0479\u0480","\u0485\u048b\u048f\u0492\u0499\u049e\u04a2\u04a5\u04aa\u04b4\u04bb\u04bf","\u04c5\u04c9\u04d0\u04de\u04e3\u04e8\u04ec\u04f8\u050d\u0515\u0524\u052b"].join(""),x=(new m.atn.ATNDeserializer).deserialize(v),E=x.decisionToState.map((function(t,e){return new m.dfa.DFA(t,e)})),T=new m.PredictionContextCache,w=[null,"'('","')'","'['","']'","'{'","'}'","'='","'<'","'>'","'>='","'<>'","'<='","'+'","'-'","'*'","'/'","','","'->'","':'","':='","'#'","'eval'","'if'","'then'","'else'","'using'","'with'","'current_date'","'on'","'drop'","'keep'","'calc'","'attrcalc'","'rename'","'as'","'and'","'or'","'xor'","'not'","'between'","'in'","'not_in'","'null'","'isnull'","'ex'","'union'","'diff'","'symdiff'","'intersect'","'keys'","'intyear'","'intmonth'","'intday'","'check'","'exists_in'","'to'","'return'","'imbalance'","'errorcode'","'all'","'aggr'","'errorlevel'","'order'","'by'","'rank'","'asc'","'desc'","'min'","'max'","'first'","'last'","'indexof'","'abs'","'key'","'ln'","'log'","'trunc'","'round'","'power'","'mod'","'length'","'||'","'trim'","'upper'","'lower'","'substr'","'sum'","'avg'","'median'","'count'","'identifier'","'measure'","'attribute'","'filter'","'merge'","'exp'","'componentRole'","'viral'","'match_characters'","'type'","'nvl'","'hierarchy'","'_'","'invalid'","'levenshtein'","'valuedomain'","'variable'","'data'","'structure'","'dataset'","'operator'","'define'","'<-'","'datapoint'","'hierarchical'","'ruleset'","'rule'","'end'","'alterDataset'","'ltrim'","'rtrim'","'instr'","'replace'","'ceil'","'floor'","'sqrt'","'random'","'any'","'setdiff'","'stddev_pop'","'stddev_samp'","'var_pop'","'var_samp'","'group'","'except'","'having'","'first_value'","'last_value'","'lag'","'lead'","'ratio_to_report'","'over'","'preceding'","'following'","'unbounded'","'partition'","'rows'","'range'","'current'","'valid'","'fill_time_series'","'flow_to_stock'","'stock_to_flow'","'timeshift'","'measures'","'no_measures'","'condition'","'boolean'","'date'","'time_period'","'number'","'string'","'time'","'integer'","'float'","'list'","'record'","'restrict'","'yyyy'","'mm'","'dd'","'maxLength'","'regexp'","'is'","'when'","'from'","'aggregates'","'points'","'point'","'total'","'partial'","'always'","'inner_join'","'left_join'","'cross_join'","'full_join'","'maps_from'","'maps_to'","'map_to'","'map_from'","'returns'","'pivot'","'customPivot'","'unpivot'","'sub'","'apply'","'conditioned'","'period_indicator'","'single'","'duration'","'time_agg'","'unit'","'Value'","'valuedomains'","'variables'","'input'","'output'","'cast'","'rule_priority'","'dataset_priority'","'default'","'check_datapoint'","'check_hierarchy'","'computed'","'non_null'","'non_zero'","'partial_null'","'partial_zero'","'always_null'","'always_zero'","'components'","'all_measures'","'scalar'","'component'","'datapoint_on_valuedomains'","'datapoint_on_variables'","'hierarchical_on_valuedomains'","'hierarchical_on_variables'","'set'","'language'",null,null,null,null,null,null,"';'"],b=[null,"LPAREN","RPAREN","QLPAREN","QRPAREN","GLPAREN","GRPAREN","EQ","LT","MT","ME","NEQ","LE","PLUS","MINUS","MUL","DIV","COMMA","POINTER","COLON","ASSIGN","MEMBERSHIP","EVAL","IF","THEN","ELSE","USING","WITH","CURRENT_DATE","ON","DROP","KEEP","CALC","ATTRCALC","RENAME","AS","AND","OR","XOR","NOT","BETWEEN","IN","NOT_IN","NULL_CONSTANT","ISNULL","EX","UNION","DIFF","SYMDIFF","INTERSECT","KEYS","INTYEAR","INTMONTH","INTDAY","CHECK","EXISTS_IN","TO","RETURN","IMBALANCE","ERRORCODE","ALL","AGGREGATE","ERRORLEVEL","ORDER","BY","RANK","ASC","DESC","MIN","MAX","FIRST","LAST","INDEXOF","ABS","KEY","LN","LOG","TRUNC","ROUND","POWER","MOD","LEN","CONCAT","TRIM","UCASE","LCASE","SUBSTR","SUM","AVG","MEDIAN","COUNT","DIMENSION","MEASURE","ATTRIBUTE","FILTER","MERGE","EXP","ROLE","VIRAL","CHARSET_MATCH","TYPE","NVL","HIERARCHY","OPTIONAL","INVALID","LEVENSHTEIN","VALUE_DOMAIN","VARIABLE","DATA","STRUCTURE","DATASET","OPERATOR","DEFINE","PUT_SYMBOL","DATAPOINT","HIERARCHICAL","RULESET","RULE","END","ALTER_DATASET","LTRIM","RTRIM","INSTR","REPLACE","CEIL","FLOOR","SQRT","RANDOM","ANY","SETDIFF","STDDEV_POP","STDDEV_SAMP","VAR_POP","VAR_SAMP","GROUP","EXCEPT","HAVING","FIRST_VALUE","LAST_VALUE","LAG","LEAD","RATIO_TO_REPORT","OVER","PRECEDING","FOLLOWING","UNBOUNDED","PARTITION","ROWS","RANGE","CURRENT","VALID","FILL_TIME_SERIES","FLOW_TO_STOCK","STOCK_TO_FLOW","TIMESHIFT","MEASURES","NO_MEASURES","CONDITION","BOOLEAN","DATE","TIME_PERIOD","NUMBER","STRING","TIME","INTEGER","FLOAT","LIST","RECORD","RESTRICT","YYYY","MM","DD","MAX_LENGTH","REGEXP","IS","WHEN","FROM","AGGREGATES","POINTS","POINT","TOTAL","PARTIAL","ALWAYS","INNER_JOIN","LEFT_JOIN","CROSS_JOIN","FULL_JOIN","MAPS_FROM","MAPS_TO","MAP_TO","MAP_FROM","RETURNS","PIVOT","CUSTOMPIVOT","UNPIVOT","SUBSPACE","APPLY","CONDITIONED","PERIOD_INDICATOR","SINGLE","DURATION","TIME_AGG","UNIT","VALUE","VALUEDOMAINS","VARIABLES","INPUT","OUTPUT","CAST","RULE_PRIORITY","DATASET_PRIORITY","DEFAULT","CHECK_DATAPOINT","CHECK_HIERARCHY","COMPUTED","NON_NULL","NON_ZERO","PARTIAL_NULL","PARTIAL_ZERO","ALWAYS_NULL","ALWAYS_ZERO","COMPONENTS","ALL_MEASURES","SCALAR","COMPONENT","DATAPOINT_ON_VD","DATAPOINT_ON_VAR","HIERARCHICAL_ON_VD","HIERARCHICAL_ON_VAR","SET","LANGUAGE","INTEGER_CONSTANT","NUMBER_CONSTANT","BOOLEAN_CONSTANT","STRING_CONSTANT","IDENTIFIER","WS","EOL","ML_COMMENT","SL_COMMENT"],A=["start","statement","expr","functions","datasetClause","renameClause","aggrClause","filterClause","calcClause","keepOrDropClause","pivotOrUnpivotClause","customPivotClause","subspaceClause","joinOperators","defOperators","genericOperators","parameter","stringOperators","numericOperators","comparisonOperators","timeOperators","setOperators","hierarchyOperators","validationOperators","conditionalOperators","aggrOperatorsGrouping","anFunction","distanceOperators","renameClauseItem","aggregateClause","aggrFunctionClause","calcClauseItem","subspaceClauseItem","joinClauseWithoutUsing","joinClause","joinClauseItem","joinBody","joinApplyClause","partitionByClause","orderByClause","orderByItem","windowingClause","signedInteger","limitClauseItem","groupingClause","havingClause","parameterItem","outputParameterType","outputParameterTypeComponent","inputParameterType","rulesetType","scalarType","componentType","datasetType","scalarSetType","dpRuleset","hrRuleset","valueDomainName","rulesetID","rulesetSignature","signature","ruleClauseDatapoint","ruleItemDatapoint","ruleClauseHierarchical","ruleItemHierarchical","hierRuleSignature","valueDomainSignature","codeItemRelation","codeItemRelationClause","valueDomainValue","scalarTypeConstraint","compConstraint","multModifier","validationOutput","validationMode","conditionClause","inputMode","imbalanceExpr","inputModeHierarchy","outputModeHierarchy","alias","varID","simpleComponentId","componentID","lists","erCode","erLevel","comparisonOperand","optionalExpr","componentRole","viralAttribute","valueDomainID","operatorID","routineName","constant","basicScalarType","retainType"];function R(t){return m.Parser.call(this,t),this._interp=new m.atn.ParserATNSimulator(this,x,E,T),this.ruleNames=A,this.literalNames=w,this.symbolicNames=b,this}function C(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_start,this}function S(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_statement,this}function N(t,e){return S.call(this,t),S.prototype.copyFrom.call(this,e),this}function O(t,e){return S.call(this,t),S.prototype.copyFrom.call(this,e),this}function I(t,e){return S.call(this,t),S.prototype.copyFrom.call(this,e),this}function L(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_expr,this}function P(t,e){return L.call(this,t),L.prototype.copyFrom.call(this,e),this}function D(t,e){return L.call(this,t),L.prototype.copyFrom.call(this,e),this}function z(t,e){return L.call(this,t),this.left=null,this.op=null,L.prototype.copyFrom.call(this,e),this}function M(t,e){return L.call(this,t),this.left=null,this.op=null,this.right=null,L.prototype.copyFrom.call(this,e),this}function F(t,e){return L.call(this,t),this.left=null,this.op=null,this.right=null,L.prototype.copyFrom.call(this,e),this}function U(t,e){return L.call(this,t),this.op=null,this.right=null,L.prototype.copyFrom.call(this,e),this}function j(t,e){return L.call(this,t),L.prototype.copyFrom.call(this,e),this}function H(t,e){return L.call(this,t),this.conditionalExpr=null,this.thenExpr=null,this.elseExpr=null,L.prototype.copyFrom.call(this,e),this}function V(t,e){return L.call(this,t),this.dataset=null,this.clause=null,L.prototype.copyFrom.call(this,e),this}function B(t,e){return L.call(this,t),this.left=null,this.op=null,this.right=null,L.prototype.copyFrom.call(this,e),this}function W(t,e){return L.call(this,t),L.prototype.copyFrom.call(this,e),this}function G(t,e){return L.call(this,t),L.prototype.copyFrom.call(this,e),this}function q(t,e){return L.call(this,t),this.left=null,this.op=null,this.right=null,L.prototype.copyFrom.call(this,e),this}function Y(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_functions,this}function K(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function $(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function X(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function J(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function Q(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function Z(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function tt(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function et(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function nt(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function rt(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function it(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function ot(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function st(t,e){return Y.call(this,t),Y.prototype.copyFrom.call(this,e),this}function at(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_datasetClause,this}function ct(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_renameClause,this}function lt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_aggrClause,this}function ut(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_filterClause,this}function pt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_calcClause,this}function ht(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_keepOrDropClause,this.op=null,this}function ft(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_pivotOrUnpivotClause,this.op=null,this.id_=null,this.mea=null,this}function dt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_customPivotClause,this.id_=null,this.mea=null,this}function yt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_subspaceClause,this}function gt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinOperators,this}function mt(t,e){return gt.call(this,t),this.joinKeyword=null,gt.prototype.copyFrom.call(this,e),this}function _t(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_defOperators,this}function kt(t,e){return _t.call(this,t),_t.prototype.copyFrom.call(this,e),this}function vt(t,e){return _t.call(this,t),_t.prototype.copyFrom.call(this,e),this}function xt(t,e){return _t.call(this,t),_t.prototype.copyFrom.call(this,e),this}function Et(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_genericOperators,this}function Tt(t,e){return Et.call(this,t),Et.prototype.copyFrom.call(this,e),this}function wt(t,e){return Et.call(this,t),Et.prototype.copyFrom.call(this,e),this}function bt(t,e){return Et.call(this,t),Et.prototype.copyFrom.call(this,e),this}function At(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_parameter,this}function Rt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_stringOperators,this}function Ct(t,e){return Rt.call(this,t),this.pattern=null,this.startParameter=null,this.occurrenceParameter=null,Rt.prototype.copyFrom.call(this,e),this}function St(t,e){return Rt.call(this,t),this.op=null,Rt.prototype.copyFrom.call(this,e),this}function Nt(t,e){return Rt.call(this,t),this.startParameter=null,this.endParameter=null,Rt.prototype.copyFrom.call(this,e),this}function Ot(t,e){return Rt.call(this,t),this.param=null,Rt.prototype.copyFrom.call(this,e),this}function It(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_numericOperators,this}function Lt(t,e){return It.call(this,t),this.op=null,It.prototype.copyFrom.call(this,e),this}function Pt(t,e){return It.call(this,t),this.op=null,It.prototype.copyFrom.call(this,e),this}function Dt(t,e){return It.call(this,t),this.op=null,It.prototype.copyFrom.call(this,e),this}function zt(t,e){return It.call(this,t),this.op=null,this.left=null,this.right=null,It.prototype.copyFrom.call(this,e),this}function Mt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_comparisonOperators,this}function Ft(t,e){return Mt.call(this,t),this.op=null,this.from_=null,this.to_=null,Mt.prototype.copyFrom.call(this,e),this}function Ut(t,e){return Mt.call(this,t),this.op=null,this.pattern=null,Mt.prototype.copyFrom.call(this,e),this}function jt(t,e){return Mt.call(this,t),Mt.prototype.copyFrom.call(this,e),this}function Ht(t,e){return Mt.call(this,t),this.left=null,this.right=null,Mt.prototype.copyFrom.call(this,e),this}function Vt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_timeOperators,this}function Bt(t,e){return Vt.call(this,t),this.op=null,Vt.prototype.copyFrom.call(this,e),this}function Wt(t,e){return Vt.call(this,t),Vt.prototype.copyFrom.call(this,e),this}function Gt(t,e){return Vt.call(this,t),this.periodIndTo=null,this.periodIndFrom=null,this.op=null,Vt.prototype.copyFrom.call(this,e),this}function qt(t,e){return Vt.call(this,t),Vt.prototype.copyFrom.call(this,e),this}function Yt(t,e){return Vt.call(this,t),Vt.prototype.copyFrom.call(this,e),this}function Kt(t,e){return Vt.call(this,t),Vt.prototype.copyFrom.call(this,e),this}function $t(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_setOperators,this}function Xt(t,e){return $t.call(this,t),this.op=null,this.left=null,this.right=null,$t.prototype.copyFrom.call(this,e),this}function Jt(t,e){return $t.call(this,t),this.left=null,$t.prototype.copyFrom.call(this,e),this}function Qt(t,e){return $t.call(this,t),this.left=null,$t.prototype.copyFrom.call(this,e),this}function Zt(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_hierarchyOperators,this.op=null,this.hrName=null,this.ruleComponent=null,this}function te(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_validationOperators,this}function ee(t,e){return te.call(this,t),this.op=null,this.hrName=null,te.prototype.copyFrom.call(this,e),this}function ne(t,e){return te.call(this,t),this.op=null,this.dpName=null,te.prototype.copyFrom.call(this,e),this}function re(t,e){return te.call(this,t),this.op=null,this.codeErr=null,this.levelCode=null,this.output=null,te.prototype.copyFrom.call(this,e),this}function ie(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_conditionalOperators,this}function oe(t,e){return ie.call(this,t),this.left=null,this.right=null,ie.prototype.copyFrom.call(this,e),this}function se(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_aggrOperatorsGrouping,this}function ae(t,e){return se.call(this,t),this.op=null,se.prototype.copyFrom.call(this,e),this}function ce(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_anFunction,this}function le(t,e){return ce.call(this,t),this.op=null,this.offet=null,this.defaultValue=null,this.partition=null,this.orderBy=null,ce.prototype.copyFrom.call(this,e),this}function ue(t,e){return ce.call(this,t),this.op=null,this.partition=null,ce.prototype.copyFrom.call(this,e),this}function pe(t,e){return ce.call(this,t),this.op=null,this.partition=null,this.orderBy=null,this.windowing=null,ce.prototype.copyFrom.call(this,e),this}function he(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_distanceOperators,this}function fe(t,e){return he.call(this,t),this.left=null,this.right=null,he.prototype.copyFrom.call(this,e),this}function de(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_renameClauseItem,this.fromName=null,this.toName=null,this}function ye(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_aggregateClause,this}function ge(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_aggrFunctionClause,this}function me(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_calcClauseItem,this}function _e(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_subspaceClauseItem,this}function ke(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinClauseWithoutUsing,this}function ve(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinClause,this}function xe(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinClauseItem,this}function Ee(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinBody,this}function Te(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_joinApplyClause,this}function we(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_partitionByClause,this}function be(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_orderByClause,this}function Ae(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_orderByItem,this}function Re(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_windowingClause,this.from_=null,this.to_=null,this}function Ce(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_signedInteger,this}function Se(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_limitClauseItem,this}function Ne(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_groupingClause,this}function Oe(t,e){return Ne.call(this,t),Ne.prototype.copyFrom.call(this,e),this}function Ie(t,e){return Ne.call(this,t),this.op=null,Ne.prototype.copyFrom.call(this,e),this}function Le(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_havingClause,this}function Pe(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_parameterItem,this}function De(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_outputParameterType,this}function ze(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_outputParameterTypeComponent,this}function Me(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_inputParameterType,this}function Fe(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_rulesetType,this}function Ue(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_scalarType,this}function je(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_componentType,this}function He(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_datasetType,this}function Ve(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_scalarSetType,this}function Be(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_dpRuleset,this}function We(t,e){return Be.call(this,t),Be.prototype.copyFrom.call(this,e),this}function Ge(t,e){return Be.call(this,t),Be.prototype.copyFrom.call(this,e),this}function qe(t,e){return Be.call(this,t),Be.prototype.copyFrom.call(this,e),this}function Ye(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_hrRuleset,this}function Ke(t,e){return Ye.call(this,t),this.vdName=null,Ye.prototype.copyFrom.call(this,e),this}function $e(t,e){return Ye.call(this,t),this.varName=null,Ye.prototype.copyFrom.call(this,e),this}function Xe(t,e){return Ye.call(this,t),Ye.prototype.copyFrom.call(this,e),this}function Je(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_valueDomainName,this}function Qe(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_rulesetID,this}function Ze(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_rulesetSignature,this}function tn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_signature,this}function en(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_ruleClauseDatapoint,this}function nn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_ruleItemDatapoint,this.ruleName=null,this.antecedentContiditon=null,this.consequentCondition=null,this}function rn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_ruleClauseHierarchical,this}function on(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_ruleItemHierarchical,this.ruleName=null,this}function sn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_hierRuleSignature,this}function an(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_valueDomainSignature,this}function cn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_codeItemRelation,this.codetemRef=null,this}function ln(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_codeItemRelationClause,this.opAdd=null,this.rightCodeItem=null,this.rightCondition=null,this}function un(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_valueDomainValue,this}function pn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_scalarTypeConstraint,this}function hn(t,e){return pn.call(this,t),pn.prototype.copyFrom.call(this,e),this}function fn(t,e){return pn.call(this,t),pn.prototype.copyFrom.call(this,e),this}function dn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_compConstraint,this}function yn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_multModifier,this}function gn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_validationOutput,this}function mn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_validationMode,this}function _n(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_conditionClause,this}function kn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_inputMode,this}function vn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_imbalanceExpr,this}function xn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_inputModeHierarchy,this}function En(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_outputModeHierarchy,this}function Tn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_alias,this}function wn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_varID,this}function bn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_simpleComponentId,this}function An(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_componentID,this}function Rn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_lists,this}function Cn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_erCode,this}function Sn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_erLevel,this}function Nn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_comparisonOperand,this}function On(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_optionalExpr,this}function In(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_componentRole,this}function Ln(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_viralAttribute,this}function Pn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_valueDomainID,this}function Dn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_operatorID,this}function zn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_routineName,this}function Mn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_constant,this}function Fn(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_basicScalarType,this}function Un(t,e,n){return void 0===e&&(e=null),null==n&&(n=-1),m.ParserRuleContext.call(this,e,n),this.parser=t,this.ruleIndex=R.RULE_retainType,this}R.prototype=Object.create(m.Parser.prototype),R.prototype.constructor=R,Object.defineProperty(R.prototype,"atn",{get:function(){return x}}),R.EOF=m.Token.EOF,R.LPAREN=1,R.RPAREN=2,R.QLPAREN=3,R.QRPAREN=4,R.GLPAREN=5,R.GRPAREN=6,R.EQ=7,R.LT=8,R.MT=9,R.ME=10,R.NEQ=11,R.LE=12,R.PLUS=13,R.MINUS=14,R.MUL=15,R.DIV=16,R.COMMA=17,R.POINTER=18,R.COLON=19,R.ASSIGN=20,R.MEMBERSHIP=21,R.EVAL=22,R.IF=23,R.THEN=24,R.ELSE=25,R.USING=26,R.WITH=27,R.CURRENT_DATE=28,R.ON=29,R.DROP=30,R.KEEP=31,R.CALC=32,R.ATTRCALC=33,R.RENAME=34,R.AS=35,R.AND=36,R.OR=37,R.XOR=38,R.NOT=39,R.BETWEEN=40,R.IN=41,R.NOT_IN=42,R.NULL_CONSTANT=43,R.ISNULL=44,R.EX=45,R.UNION=46,R.DIFF=47,R.SYMDIFF=48,R.INTERSECT=49,R.KEYS=50,R.INTYEAR=51,R.INTMONTH=52,R.INTDAY=53,R.CHECK=54,R.EXISTS_IN=55,R.TO=56,R.RETURN=57,R.IMBALANCE=58,R.ERRORCODE=59,R.ALL=60,R.AGGREGATE=61,R.ERRORLEVEL=62,R.ORDER=63,R.BY=64,R.RANK=65,R.ASC=66,R.DESC=67,R.MIN=68,R.MAX=69,R.FIRST=70,R.LAST=71,R.INDEXOF=72,R.ABS=73,R.KEY=74,R.LN=75,R.LOG=76,R.TRUNC=77,R.ROUND=78,R.POWER=79,R.MOD=80,R.LEN=81,R.CONCAT=82,R.TRIM=83,R.UCASE=84,R.LCASE=85,R.SUBSTR=86,R.SUM=87,R.AVG=88,R.MEDIAN=89,R.COUNT=90,R.DIMENSION=91,R.MEASURE=92,R.ATTRIBUTE=93,R.FILTER=94,R.MERGE=95,R.EXP=96,R.ROLE=97,R.VIRAL=98,R.CHARSET_MATCH=99,R.TYPE=100,R.NVL=101,R.HIERARCHY=102,R.OPTIONAL=103,R.INVALID=104,R.LEVENSHTEIN=105,R.VALUE_DOMAIN=106,R.VARIABLE=107,R.DATA=108,R.STRUCTURE=109,R.DATASET=110,R.OPERATOR=111,R.DEFINE=112,R.PUT_SYMBOL=113,R.DATAPOINT=114,R.HIERARCHICAL=115,R.RULESET=116,R.RULE=117,R.END=118,R.ALTER_DATASET=119,R.LTRIM=120,R.RTRIM=121,R.INSTR=122,R.REPLACE=123,R.CEIL=124,R.FLOOR=125,R.SQRT=126,R.RANDOM=127,R.ANY=128,R.SETDIFF=129,R.STDDEV_POP=130,R.STDDEV_SAMP=131,R.VAR_POP=132,R.VAR_SAMP=133,R.GROUP=134,R.EXCEPT=135,R.HAVING=136,R.FIRST_VALUE=137,R.LAST_VALUE=138,R.LAG=139,R.LEAD=140,R.RATIO_TO_REPORT=141,R.OVER=142,R.PRECEDING=143,R.FOLLOWING=144,R.UNBOUNDED=145,R.PARTITION=146,R.ROWS=147,R.RANGE=148,R.CURRENT=149,R.VALID=150,R.FILL_TIME_SERIES=151,R.FLOW_TO_STOCK=152,R.STOCK_TO_FLOW=153,R.TIMESHIFT=154,R.MEASURES=155,R.NO_MEASURES=156,R.CONDITION=157,R.BOOLEAN=158,R.DATE=159,R.TIME_PERIOD=160,R.NUMBER=161,R.STRING=162,R.TIME=163,R.INTEGER=164,R.FLOAT=165,R.LIST=166,R.RECORD=167,R.RESTRICT=168,R.YYYY=169,R.MM=170,R.DD=171,R.MAX_LENGTH=172,R.REGEXP=173,R.IS=174,R.WHEN=175,R.FROM=176,R.AGGREGATES=177,R.POINTS=178,R.POINT=179,R.TOTAL=180,R.PARTIAL=181,R.ALWAYS=182,R.INNER_JOIN=183,R.LEFT_JOIN=184,R.CROSS_JOIN=185,R.FULL_JOIN=186,R.MAPS_FROM=187,R.MAPS_TO=188,R.MAP_TO=189,R.MAP_FROM=190,R.RETURNS=191,R.PIVOT=192,R.CUSTOMPIVOT=193,R.UNPIVOT=194,R.SUBSPACE=195,R.APPLY=196,R.CONDITIONED=197,R.PERIOD_INDICATOR=198,R.SINGLE=199,R.DURATION=200,R.TIME_AGG=201,R.UNIT=202,R.VALUE=203,R.VALUEDOMAINS=204,R.VARIABLES=205,R.INPUT=206,R.OUTPUT=207,R.CAST=208,R.RULE_PRIORITY=209,R.DATASET_PRIORITY=210,R.DEFAULT=211,R.CHECK_DATAPOINT=212,R.CHECK_HIERARCHY=213,R.COMPUTED=214,R.NON_NULL=215,R.NON_ZERO=216,R.PARTIAL_NULL=217,R.PARTIAL_ZERO=218,R.ALWAYS_NULL=219,R.ALWAYS_ZERO=220,R.COMPONENTS=221,R.ALL_MEASURES=222,R.SCALAR=223,R.COMPONENT=224,R.DATAPOINT_ON_VD=225,R.DATAPOINT_ON_VAR=226,R.HIERARCHICAL_ON_VD=227,R.HIERARCHICAL_ON_VAR=228,R.SET=229,R.LANGUAGE=230,R.INTEGER_CONSTANT=231,R.NUMBER_CONSTANT=232,R.BOOLEAN_CONSTANT=233,R.STRING_CONSTANT=234,R.IDENTIFIER=235,R.WS=236,R.EOL=237,R.ML_COMMENT=238,R.SL_COMMENT=239,R.RULE_start=0,R.RULE_statement=1,R.RULE_expr=2,R.RULE_functions=3,R.RULE_datasetClause=4,R.RULE_renameClause=5,R.RULE_aggrClause=6,R.RULE_filterClause=7,R.RULE_calcClause=8,R.RULE_keepOrDropClause=9,R.RULE_pivotOrUnpivotClause=10,R.RULE_customPivotClause=11,R.RULE_subspaceClause=12,R.RULE_joinOperators=13,R.RULE_defOperators=14,R.RULE_genericOperators=15,R.RULE_parameter=16,R.RULE_stringOperators=17,R.RULE_numericOperators=18,R.RULE_comparisonOperators=19,R.RULE_timeOperators=20,R.RULE_setOperators=21,R.RULE_hierarchyOperators=22,R.RULE_validationOperators=23,R.RULE_conditionalOperators=24,R.RULE_aggrOperatorsGrouping=25,R.RULE_anFunction=26,R.RULE_distanceOperators=27,R.RULE_renameClauseItem=28,R.RULE_aggregateClause=29,R.RULE_aggrFunctionClause=30,R.RULE_calcClauseItem=31,R.RULE_subspaceClauseItem=32,R.RULE_joinClauseWithoutUsing=33,R.RULE_joinClause=34,R.RULE_joinClauseItem=35,R.RULE_joinBody=36,R.RULE_joinApplyClause=37,R.RULE_partitionByClause=38,R.RULE_orderByClause=39,R.RULE_orderByItem=40,R.RULE_windowingClause=41,R.RULE_signedInteger=42,R.RULE_limitClauseItem=43,R.RULE_groupingClause=44,R.RULE_havingClause=45,R.RULE_parameterItem=46,R.RULE_outputParameterType=47,R.RULE_outputParameterTypeComponent=48,R.RULE_inputParameterType=49,R.RULE_rulesetType=50,R.RULE_scalarType=51,R.RULE_componentType=52,R.RULE_datasetType=53,R.RULE_scalarSetType=54,R.RULE_dpRuleset=55,R.RULE_hrRuleset=56,R.RULE_valueDomainName=57,R.RULE_rulesetID=58,R.RULE_rulesetSignature=59,R.RULE_signature=60,R.RULE_ruleClauseDatapoint=61,R.RULE_ruleItemDatapoint=62,R.RULE_ruleClauseHierarchical=63,R.RULE_ruleItemHierarchical=64,R.RULE_hierRuleSignature=65,R.RULE_valueDomainSignature=66,R.RULE_codeItemRelation=67,R.RULE_codeItemRelationClause=68,R.RULE_valueDomainValue=69,R.RULE_scalarTypeConstraint=70,R.RULE_compConstraint=71,R.RULE_multModifier=72,R.RULE_validationOutput=73,R.RULE_validationMode=74,R.RULE_conditionClause=75,R.RULE_inputMode=76,R.RULE_imbalanceExpr=77,R.RULE_inputModeHierarchy=78,R.RULE_outputModeHierarchy=79,R.RULE_alias=80,R.RULE_varID=81,R.RULE_simpleComponentId=82,R.RULE_componentID=83,R.RULE_lists=84,R.RULE_erCode=85,R.RULE_erLevel=86,R.RULE_comparisonOperand=87,R.RULE_optionalExpr=88,R.RULE_componentRole=89,R.RULE_viralAttribute=90,R.RULE_valueDomainID=91,R.RULE_operatorID=92,R.RULE_routineName=93,R.RULE_constant=94,R.RULE_basicScalarType=95,R.RULE_retainType=96,C.prototype=Object.create(m.ParserRuleContext.prototype),C.prototype.constructor=C,C.prototype.EOF=function(){return this.getToken(R.EOF,0)},C.prototype.statement=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(S):this.getTypedRuleContext(S,t)},C.prototype.EOL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.EOL):this.getToken(R.EOL,t)},C.prototype.enterRule=function(t){t instanceof _&&t.enterStart(this)},C.prototype.exitRule=function(t){t instanceof _&&t.exitStart(this)},C.prototype.accept=function(t){return t instanceof k?t.visitStart(this):t.visitChildren(this)},R.StartContext=C,R.prototype.start=function(){var t=new C(this,this._ctx,this.state);this.enterRule(t,0,R.RULE_start);var e=0;try{for(this.enterOuterAlt(t,1),this.state=199,this._errHandler.sync(this),e=this._input.LA(1);e===R.DEFINE||e===R.IDENTIFIER;)this.state=194,this.statement(),this.state=195,this.match(R.EOL),this.state=201,this._errHandler.sync(this),e=this._input.LA(1);this.state=202,this.match(R.EOF)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},S.prototype=Object.create(m.ParserRuleContext.prototype),S.prototype.constructor=S,S.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},N.prototype=Object.create(S.prototype),N.prototype.constructor=N,R.DefineExpressionContext=N,N.prototype.defOperators=function(){return this.getTypedRuleContext(_t,0)},N.prototype.enterRule=function(t){t instanceof _&&t.enterDefineExpression(this)},N.prototype.exitRule=function(t){t instanceof _&&t.exitDefineExpression(this)},N.prototype.accept=function(t){return t instanceof k?t.visitDefineExpression(this):t.visitChildren(this)},O.prototype=Object.create(S.prototype),O.prototype.constructor=O,R.TemporaryAssignmentContext=O,O.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},O.prototype.ASSIGN=function(){return this.getToken(R.ASSIGN,0)},O.prototype.expr=function(){return this.getTypedRuleContext(L,0)},O.prototype.enterRule=function(t){t instanceof _&&t.enterTemporaryAssignment(this)},O.prototype.exitRule=function(t){t instanceof _&&t.exitTemporaryAssignment(this)},O.prototype.accept=function(t){return t instanceof k?t.visitTemporaryAssignment(this):t.visitChildren(this)},I.prototype=Object.create(S.prototype),I.prototype.constructor=I,R.PersistAssignmentContext=I,I.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},I.prototype.PUT_SYMBOL=function(){return this.getToken(R.PUT_SYMBOL,0)},I.prototype.expr=function(){return this.getTypedRuleContext(L,0)},I.prototype.enterRule=function(t){t instanceof _&&t.enterPersistAssignment(this)},I.prototype.exitRule=function(t){t instanceof _&&t.exitPersistAssignment(this)},I.prototype.accept=function(t){return t instanceof k?t.visitPersistAssignment(this):t.visitChildren(this)},R.StatementContext=S,R.prototype.statement=function(){var t=new S(this,this._ctx,this.state);this.enterRule(t,2,R.RULE_statement);try{switch(this.state=213,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:t=new O(this,t),this.enterOuterAlt(t,1),this.state=204,this.varID(),this.state=205,this.match(R.ASSIGN),this.state=206,this.expr(0);break;case 2:t=new I(this,t),this.enterOuterAlt(t,2),this.state=208,this.varID(),this.state=209,this.match(R.PUT_SYMBOL),this.state=210,this.expr(0);break;case 3:t=new N(this,t),this.enterOuterAlt(t,3),this.state=212,this.defOperators()}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},L.prototype=Object.create(m.ParserRuleContext.prototype),L.prototype.constructor=L,L.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},P.prototype=Object.create(L.prototype),P.prototype.constructor=P,R.VarIdExprContext=P,P.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},P.prototype.enterRule=function(t){t instanceof _&&t.enterVarIdExpr(this)},P.prototype.exitRule=function(t){t instanceof _&&t.exitVarIdExpr(this)},P.prototype.accept=function(t){return t instanceof k?t.visitVarIdExpr(this):t.visitChildren(this)},D.prototype=Object.create(L.prototype),D.prototype.constructor=D,R.MembershipExprContext=D,D.prototype.expr=function(){return this.getTypedRuleContext(L,0)},D.prototype.MEMBERSHIP=function(){return this.getToken(R.MEMBERSHIP,0)},D.prototype.simpleComponentId=function(){return this.getTypedRuleContext(bn,0)},D.prototype.enterRule=function(t){t instanceof _&&t.enterMembershipExpr(this)},D.prototype.exitRule=function(t){t instanceof _&&t.exitMembershipExpr(this)},D.prototype.accept=function(t){return t instanceof k?t.visitMembershipExpr(this):t.visitChildren(this)},z.prototype=Object.create(L.prototype),z.prototype.constructor=z,R.InNotInExprContext=z,z.prototype.expr=function(){return this.getTypedRuleContext(L,0)},z.prototype.IN=function(){return this.getToken(R.IN,0)},z.prototype.NOT_IN=function(){return this.getToken(R.NOT_IN,0)},z.prototype.lists=function(){return this.getTypedRuleContext(Rn,0)},z.prototype.valueDomainID=function(){return this.getTypedRuleContext(Pn,0)},z.prototype.enterRule=function(t){t instanceof _&&t.enterInNotInExpr(this)},z.prototype.exitRule=function(t){t instanceof _&&t.exitInNotInExpr(this)},z.prototype.accept=function(t){return t instanceof k?t.visitInNotInExpr(this):t.visitChildren(this)},M.prototype=Object.create(L.prototype),M.prototype.constructor=M,R.BooleanExprContext=M,M.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},M.prototype.AND=function(){return this.getToken(R.AND,0)},M.prototype.OR=function(){return this.getToken(R.OR,0)},M.prototype.XOR=function(){return this.getToken(R.XOR,0)},M.prototype.enterRule=function(t){t instanceof _&&t.enterBooleanExpr(this)},M.prototype.exitRule=function(t){t instanceof _&&t.exitBooleanExpr(this)},M.prototype.accept=function(t){return t instanceof k?t.visitBooleanExpr(this):t.visitChildren(this)},F.prototype=Object.create(L.prototype),F.prototype.constructor=F,R.ComparisonExprContext=F,F.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},F.prototype.comparisonOperand=function(){return this.getTypedRuleContext(Nn,0)},F.prototype.enterRule=function(t){t instanceof _&&t.enterComparisonExpr(this)},F.prototype.exitRule=function(t){t instanceof _&&t.exitComparisonExpr(this)},F.prototype.accept=function(t){return t instanceof k?t.visitComparisonExpr(this):t.visitChildren(this)},U.prototype=Object.create(L.prototype),U.prototype.constructor=U,R.UnaryExprContext=U,U.prototype.expr=function(){return this.getTypedRuleContext(L,0)},U.prototype.PLUS=function(){return this.getToken(R.PLUS,0)},U.prototype.MINUS=function(){return this.getToken(R.MINUS,0)},U.prototype.NOT=function(){return this.getToken(R.NOT,0)},U.prototype.enterRule=function(t){t instanceof _&&t.enterUnaryExpr(this)},U.prototype.exitRule=function(t){t instanceof _&&t.exitUnaryExpr(this)},U.prototype.accept=function(t){return t instanceof k?t.visitUnaryExpr(this):t.visitChildren(this)},j.prototype=Object.create(L.prototype),j.prototype.constructor=j,R.FunctionsExpressionContext=j,j.prototype.functions=function(){return this.getTypedRuleContext(Y,0)},j.prototype.enterRule=function(t){t instanceof _&&t.enterFunctionsExpression(this)},j.prototype.exitRule=function(t){t instanceof _&&t.exitFunctionsExpression(this)},j.prototype.accept=function(t){return t instanceof k?t.visitFunctionsExpression(this):t.visitChildren(this)},H.prototype=Object.create(L.prototype),H.prototype.constructor=H,R.IfExprContext=H,H.prototype.IF=function(){return this.getToken(R.IF,0)},H.prototype.THEN=function(){return this.getToken(R.THEN,0)},H.prototype.ELSE=function(){return this.getToken(R.ELSE,0)},H.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},H.prototype.enterRule=function(t){t instanceof _&&t.enterIfExpr(this)},H.prototype.exitRule=function(t){t instanceof _&&t.exitIfExpr(this)},H.prototype.accept=function(t){return t instanceof k?t.visitIfExpr(this):t.visitChildren(this)},V.prototype=Object.create(L.prototype),V.prototype.constructor=V,R.ClauseExprContext=V,V.prototype.QLPAREN=function(){return this.getToken(R.QLPAREN,0)},V.prototype.QRPAREN=function(){return this.getToken(R.QRPAREN,0)},V.prototype.expr=function(){return this.getTypedRuleContext(L,0)},V.prototype.datasetClause=function(){return this.getTypedRuleContext(at,0)},V.prototype.enterRule=function(t){t instanceof _&&t.enterClauseExpr(this)},V.prototype.exitRule=function(t){t instanceof _&&t.exitClauseExpr(this)},V.prototype.accept=function(t){return t instanceof k?t.visitClauseExpr(this):t.visitChildren(this)},B.prototype=Object.create(L.prototype),B.prototype.constructor=B,R.ArithmeticExprContext=B,B.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},B.prototype.MUL=function(){return this.getToken(R.MUL,0)},B.prototype.DIV=function(){return this.getToken(R.DIV,0)},B.prototype.enterRule=function(t){t instanceof _&&t.enterArithmeticExpr(this)},B.prototype.exitRule=function(t){t instanceof _&&t.exitArithmeticExpr(this)},B.prototype.accept=function(t){return t instanceof k?t.visitArithmeticExpr(this):t.visitChildren(this)},W.prototype=Object.create(L.prototype),W.prototype.constructor=W,R.ParenthesisExprContext=W,W.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},W.prototype.expr=function(){return this.getTypedRuleContext(L,0)},W.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},W.prototype.enterRule=function(t){t instanceof _&&t.enterParenthesisExpr(this)},W.prototype.exitRule=function(t){t instanceof _&&t.exitParenthesisExpr(this)},W.prototype.accept=function(t){return t instanceof k?t.visitParenthesisExpr(this):t.visitChildren(this)},G.prototype=Object.create(L.prototype),G.prototype.constructor=G,R.ConstantExprContext=G,G.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},G.prototype.enterRule=function(t){t instanceof _&&t.enterConstantExpr(this)},G.prototype.exitRule=function(t){t instanceof _&&t.exitConstantExpr(this)},G.prototype.accept=function(t){return t instanceof k?t.visitConstantExpr(this):t.visitChildren(this)},q.prototype=Object.create(L.prototype),q.prototype.constructor=q,R.ArithmeticExprOrConcatContext=q,q.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},q.prototype.PLUS=function(){return this.getToken(R.PLUS,0)},q.prototype.MINUS=function(){return this.getToken(R.MINUS,0)},q.prototype.CONCAT=function(){return this.getToken(R.CONCAT,0)},q.prototype.enterRule=function(t){t instanceof _&&t.enterArithmeticExprOrConcat(this)},q.prototype.exitRule=function(t){t instanceof _&&t.exitArithmeticExprOrConcat(this)},q.prototype.accept=function(t){return t instanceof k?t.visitArithmeticExprOrConcat(this):t.visitChildren(this)},R.prototype.expr=function(t){void 0===t&&(t=0);var e=this._ctx,n=this.state,r=new L(this,this._ctx,n),i=r;this.enterRecursionRule(r,4,R.RULE_expr,t);var o=0;try{switch(this.enterOuterAlt(r,1),this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:r=new W(this,r),this._ctx=r,i=r,this.state=216,this.match(R.LPAREN),this.state=217,this.expr(0),this.state=218,this.match(R.RPAREN);break;case 2:r=new j(this,r),this._ctx=r,i=r,this.state=220,this.functions();break;case 3:r=new U(this,r),this._ctx=r,i=r,this.state=221,r.op=this._input.LT(1),(o=this._input.LA(1))-13&-32||!(1<<o-13&(1<<R.PLUS-13|1<<R.MINUS-13|1<<R.NOT-13))?r.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=222,r.right=this.expr(10);break;case 4:r=new H(this,r),this._ctx=r,i=r,this.state=223,this.match(R.IF),this.state=224,r.conditionalExpr=this.expr(0),this.state=225,this.match(R.THEN),this.state=226,r.thenExpr=this.expr(0),this.state=227,this.match(R.ELSE),this.state=228,r.elseExpr=this.expr(3);break;case 5:r=new G(this,r),this._ctx=r,i=r,this.state=230,this.constant();break;case 6:r=new P(this,r),this._ctx=r,i=r,this.state=231,this.varID()}this._ctx.stop=this._input.LT(-1),this.state=266,this._errHandler.sync(this);for(var s=this._interp.adaptivePredict(this._input,5,this._ctx);2!=s&&s!=m.atn.ATN.INVALID_ALT_NUMBER;){if(1===s)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),i=r,this.state=264,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,4,this._ctx)){case 1:if((r=new B(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=234,!this.precpred(this._ctx,9))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 9)");this.state=235,r.op=this._input.LT(1),(o=this._input.LA(1))!==R.MUL&&o!==R.DIV?r.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=236,r.right=this.expr(10);break;case 2:if((r=new q(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=237,!this.precpred(this._ctx,8))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 8)");this.state=238,r.op=this._input.LT(1),(o=this._input.LA(1))!==R.PLUS&&o!==R.MINUS&&o!==R.CONCAT?r.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=239,r.right=this.expr(9);break;case 3:if((r=new F(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=240,!this.precpred(this._ctx,7))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 7)");this.state=241,r.op=this.comparisonOperand(),this.state=242,r.right=this.expr(8);break;case 4:if((r=new M(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=244,!this.precpred(this._ctx,5))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 5)");this.state=245,r.op=this.match(R.AND),this.state=246,r.right=this.expr(6);break;case 5:if((r=new M(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=247,!this.precpred(this._ctx,4))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 4)");this.state=248,r.op=this._input.LT(1),(o=this._input.LA(1))!==R.OR&&o!==R.XOR?r.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=249,r.right=this.expr(5);break;case 6:if((r=new V(this,new L(this,e,n))).dataset=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=250,!this.precpred(this._ctx,12))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 12)");this.state=251,this.match(R.QLPAREN),this.state=252,r.clause=this.datasetClause(),this.state=253,this.match(R.QRPAREN);break;case 7:if(r=new D(this,new L(this,e,n)),this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=255,!this.precpred(this._ctx,11))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 11)");this.state=256,this.match(R.MEMBERSHIP),this.state=257,this.simpleComponentId();break;case 8:if((r=new z(this,new L(this,e,n))).left=i,this.pushNewRecursionContext(r,4,R.RULE_expr),this.state=258,!this.precpred(this._ctx,6))throw new m.error.FailedPredicateException(this,"this.precpred(this._ctx, 6)");switch(this.state=259,r.op=this._input.LT(1),(o=this._input.LA(1))!==R.IN&&o!==R.NOT_IN?r.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=262,this._errHandler.sync(this),this._input.LA(1)){case R.GLPAREN:this.state=260,this.lists();break;case R.IDENTIFIER:this.state=261,this.valueDomainID();break;default:throw new m.error.NoViableAltException(this)}}this.state=268,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,5,this._ctx)}}catch(t){if(!(t instanceof m.error.RecognitionException))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return r},Y.prototype=Object.create(m.ParserRuleContext.prototype),Y.prototype.constructor=Y,Y.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},K.prototype=Object.create(Y.prototype),K.prototype.constructor=K,R.StringFunctionsContext=K,K.prototype.stringOperators=function(){return this.getTypedRuleContext(Rt,0)},K.prototype.enterRule=function(t){t instanceof _&&t.enterStringFunctions(this)},K.prototype.exitRule=function(t){t instanceof _&&t.exitStringFunctions(this)},K.prototype.accept=function(t){return t instanceof k?t.visitStringFunctions(this):t.visitChildren(this)},$.prototype=Object.create(Y.prototype),$.prototype.constructor=$,R.GenericFunctionsContext=$,$.prototype.genericOperators=function(){return this.getTypedRuleContext(Et,0)},$.prototype.enterRule=function(t){t instanceof _&&t.enterGenericFunctions(this)},$.prototype.exitRule=function(t){t instanceof _&&t.exitGenericFunctions(this)},$.prototype.accept=function(t){return t instanceof k?t.visitGenericFunctions(this):t.visitChildren(this)},X.prototype=Object.create(Y.prototype),X.prototype.constructor=X,R.ConditionalFunctionsContext=X,X.prototype.conditionalOperators=function(){return this.getTypedRuleContext(ie,0)},X.prototype.enterRule=function(t){t instanceof _&&t.enterConditionalFunctions(this)},X.prototype.exitRule=function(t){t instanceof _&&t.exitConditionalFunctions(this)},X.prototype.accept=function(t){return t instanceof k?t.visitConditionalFunctions(this):t.visitChildren(this)},J.prototype=Object.create(Y.prototype),J.prototype.constructor=J,R.AggregateFunctionsContext=J,J.prototype.aggrOperatorsGrouping=function(){return this.getTypedRuleContext(se,0)},J.prototype.enterRule=function(t){t instanceof _&&t.enterAggregateFunctions(this)},J.prototype.exitRule=function(t){t instanceof _&&t.exitAggregateFunctions(this)},J.prototype.accept=function(t){return t instanceof k?t.visitAggregateFunctions(this):t.visitChildren(this)},Q.prototype=Object.create(Y.prototype),Q.prototype.constructor=Q,R.JoinFunctionsContext=Q,Q.prototype.joinOperators=function(){return this.getTypedRuleContext(gt,0)},Q.prototype.enterRule=function(t){t instanceof _&&t.enterJoinFunctions(this)},Q.prototype.exitRule=function(t){t instanceof _&&t.exitJoinFunctions(this)},Q.prototype.accept=function(t){return t instanceof k?t.visitJoinFunctions(this):t.visitChildren(this)},Z.prototype=Object.create(Y.prototype),Z.prototype.constructor=Z,R.TimeFunctionsContext=Z,Z.prototype.timeOperators=function(){return this.getTypedRuleContext(Vt,0)},Z.prototype.enterRule=function(t){t instanceof _&&t.enterTimeFunctions(this)},Z.prototype.exitRule=function(t){t instanceof _&&t.exitTimeFunctions(this)},Z.prototype.accept=function(t){return t instanceof k?t.visitTimeFunctions(this):t.visitChildren(this)},tt.prototype=Object.create(Y.prototype),tt.prototype.constructor=tt,R.HierarchyFunctionsContext=tt,tt.prototype.hierarchyOperators=function(){return this.getTypedRuleContext(Zt,0)},tt.prototype.enterRule=function(t){t instanceof _&&t.enterHierarchyFunctions(this)},tt.prototype.exitRule=function(t){t instanceof _&&t.exitHierarchyFunctions(this)},tt.prototype.accept=function(t){return t instanceof k?t.visitHierarchyFunctions(this):t.visitChildren(this)},et.prototype=Object.create(Y.prototype),et.prototype.constructor=et,R.ValidationFunctionsContext=et,et.prototype.validationOperators=function(){return this.getTypedRuleContext(te,0)},et.prototype.enterRule=function(t){t instanceof _&&t.enterValidationFunctions(this)},et.prototype.exitRule=function(t){t instanceof _&&t.exitValidationFunctions(this)},et.prototype.accept=function(t){return t instanceof k?t.visitValidationFunctions(this):t.visitChildren(this)},nt.prototype=Object.create(Y.prototype),nt.prototype.constructor=nt,R.DistanceFunctionsContext=nt,nt.prototype.distanceOperators=function(){return this.getTypedRuleContext(he,0)},nt.prototype.enterRule=function(t){t instanceof _&&t.enterDistanceFunctions(this)},nt.prototype.exitRule=function(t){t instanceof _&&t.exitDistanceFunctions(this)},nt.prototype.accept=function(t){return t instanceof k?t.visitDistanceFunctions(this):t.visitChildren(this)},rt.prototype=Object.create(Y.prototype),rt.prototype.constructor=rt,R.ComparisonFunctionsContext=rt,rt.prototype.comparisonOperators=function(){return this.getTypedRuleContext(Mt,0)},rt.prototype.enterRule=function(t){t instanceof _&&t.enterComparisonFunctions(this)},rt.prototype.exitRule=function(t){t instanceof _&&t.exitComparisonFunctions(this)},rt.prototype.accept=function(t){return t instanceof k?t.visitComparisonFunctions(this):t.visitChildren(this)},it.prototype=Object.create(Y.prototype),it.prototype.constructor=it,R.NumericFunctionsContext=it,it.prototype.numericOperators=function(){return this.getTypedRuleContext(It,0)},it.prototype.enterRule=function(t){t instanceof _&&t.enterNumericFunctions(this)},it.prototype.exitRule=function(t){t instanceof _&&t.exitNumericFunctions(this)},it.prototype.accept=function(t){return t instanceof k?t.visitNumericFunctions(this):t.visitChildren(this)},ot.prototype=Object.create(Y.prototype),ot.prototype.constructor=ot,R.SetFunctionsContext=ot,ot.prototype.setOperators=function(){return this.getTypedRuleContext($t,0)},ot.prototype.enterRule=function(t){t instanceof _&&t.enterSetFunctions(this)},ot.prototype.exitRule=function(t){t instanceof _&&t.exitSetFunctions(this)},ot.prototype.accept=function(t){return t instanceof k?t.visitSetFunctions(this):t.visitChildren(this)},st.prototype=Object.create(Y.prototype),st.prototype.constructor=st,R.AnalyticFunctionsContext=st,st.prototype.anFunction=function(){return this.getTypedRuleContext(ce,0)},st.prototype.enterRule=function(t){t instanceof _&&t.enterAnalyticFunctions(this)},st.prototype.exitRule=function(t){t instanceof _&&t.exitAnalyticFunctions(this)},st.prototype.accept=function(t){return t instanceof k?t.visitAnalyticFunctions(this):t.visitChildren(this)},R.FunctionsContext=Y,R.prototype.functions=function(){var t=new Y(this,this._ctx,this.state);this.enterRule(t,6,R.RULE_functions);try{switch(this.state=282,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,6,this._ctx)){case 1:t=new Q(this,t),this.enterOuterAlt(t,1),this.state=269,this.joinOperators();break;case 2:t=new $(this,t),this.enterOuterAlt(t,2),this.state=270,this.genericOperators();break;case 3:t=new K(this,t),this.enterOuterAlt(t,3),this.state=271,this.stringOperators();break;case 4:t=new it(this,t),this.enterOuterAlt(t,4),this.state=272,this.numericOperators();break;case 5:t=new rt(this,t),this.enterOuterAlt(t,5),this.state=273,this.comparisonOperators();break;case 6:t=new Z(this,t),this.enterOuterAlt(t,6),this.state=274,this.timeOperators();break;case 7:t=new ot(this,t),this.enterOuterAlt(t,7),this.state=275,this.setOperators();break;case 8:t=new tt(this,t),this.enterOuterAlt(t,8),this.state=276,this.hierarchyOperators();break;case 9:t=new et(this,t),this.enterOuterAlt(t,9),this.state=277,this.validationOperators();break;case 10:t=new X(this,t),this.enterOuterAlt(t,10),this.state=278,this.conditionalOperators();break;case 11:t=new J(this,t),this.enterOuterAlt(t,11),this.state=279,this.aggrOperatorsGrouping();break;case 12:t=new st(this,t),this.enterOuterAlt(t,12),this.state=280,this.anFunction();break;case 13:t=new nt(this,t),this.enterOuterAlt(t,13),this.state=281,this.distanceOperators()}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},at.prototype=Object.create(m.ParserRuleContext.prototype),at.prototype.constructor=at,at.prototype.renameClause=function(){return this.getTypedRuleContext(ct,0)},at.prototype.aggrClause=function(){return this.getTypedRuleContext(lt,0)},at.prototype.filterClause=function(){return this.getTypedRuleContext(ut,0)},at.prototype.calcClause=function(){return this.getTypedRuleContext(pt,0)},at.prototype.keepOrDropClause=function(){return this.getTypedRuleContext(ht,0)},at.prototype.pivotOrUnpivotClause=function(){return this.getTypedRuleContext(ft,0)},at.prototype.customPivotClause=function(){return this.getTypedRuleContext(dt,0)},at.prototype.subspaceClause=function(){return this.getTypedRuleContext(yt,0)},at.prototype.enterRule=function(t){t instanceof _&&t.enterDatasetClause(this)},at.prototype.exitRule=function(t){t instanceof _&&t.exitDatasetClause(this)},at.prototype.accept=function(t){return t instanceof k?t.visitDatasetClause(this):t.visitChildren(this)},R.DatasetClauseContext=at,R.prototype.datasetClause=function(){var t=new at(this,this._ctx,this.state);this.enterRule(t,8,R.RULE_datasetClause);try{switch(this.state=292,this._errHandler.sync(this),this._input.LA(1)){case R.RENAME:this.enterOuterAlt(t,1),this.state=284,this.renameClause();break;case R.AGGREGATE:this.enterOuterAlt(t,2),this.state=285,this.aggrClause();break;case R.FILTER:this.enterOuterAlt(t,3),this.state=286,this.filterClause();break;case R.CALC:this.enterOuterAlt(t,4),this.state=287,this.calcClause();break;case R.DROP:case R.KEEP:this.enterOuterAlt(t,5),this.state=288,this.keepOrDropClause();break;case R.PIVOT:case R.UNPIVOT:this.enterOuterAlt(t,6),this.state=289,this.pivotOrUnpivotClause();break;case R.CUSTOMPIVOT:this.enterOuterAlt(t,7),this.state=290,this.customPivotClause();break;case R.SUBSPACE:this.enterOuterAlt(t,8),this.state=291,this.subspaceClause();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},ct.prototype=Object.create(m.ParserRuleContext.prototype),ct.prototype.constructor=ct,ct.prototype.RENAME=function(){return this.getToken(R.RENAME,0)},ct.prototype.renameClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(de):this.getTypedRuleContext(de,t)},ct.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ct.prototype.enterRule=function(t){t instanceof _&&t.enterRenameClause(this)},ct.prototype.exitRule=function(t){t instanceof _&&t.exitRenameClause(this)},ct.prototype.accept=function(t){return t instanceof k?t.visitRenameClause(this):t.visitChildren(this)},R.RenameClauseContext=ct,R.prototype.renameClause=function(){var t=new ct(this,this._ctx,this.state);this.enterRule(t,10,R.RULE_renameClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=294,this.match(R.RENAME),this.state=295,this.renameClauseItem(),this.state=300,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=296,this.match(R.COMMA),this.state=297,this.renameClauseItem(),this.state=302,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},lt.prototype=Object.create(m.ParserRuleContext.prototype),lt.prototype.constructor=lt,lt.prototype.AGGREGATE=function(){return this.getToken(R.AGGREGATE,0)},lt.prototype.aggregateClause=function(){return this.getTypedRuleContext(ye,0)},lt.prototype.groupingClause=function(){return this.getTypedRuleContext(Ne,0)},lt.prototype.havingClause=function(){return this.getTypedRuleContext(Le,0)},lt.prototype.enterRule=function(t){t instanceof _&&t.enterAggrClause(this)},lt.prototype.exitRule=function(t){t instanceof _&&t.exitAggrClause(this)},lt.prototype.accept=function(t){return t instanceof k?t.visitAggrClause(this):t.visitChildren(this)},R.AggrClauseContext=lt,R.prototype.aggrClause=function(){var t=new lt(this,this._ctx,this.state);this.enterRule(t,12,R.RULE_aggrClause);try{this.enterOuterAlt(t,1),this.state=303,this.match(R.AGGREGATE),this.state=304,this.aggregateClause(),this.state=309,this._errHandler.sync(this),this._input.LA(1)===R.GROUP&&(this.state=305,this.groupingClause(),this.state=307,this._errHandler.sync(this),this._input.LA(1)===R.HAVING&&(this.state=306,this.havingClause()))}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},ut.prototype=Object.create(m.ParserRuleContext.prototype),ut.prototype.constructor=ut,ut.prototype.FILTER=function(){return this.getToken(R.FILTER,0)},ut.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ut.prototype.enterRule=function(t){t instanceof _&&t.enterFilterClause(this)},ut.prototype.exitRule=function(t){t instanceof _&&t.exitFilterClause(this)},ut.prototype.accept=function(t){return t instanceof k?t.visitFilterClause(this):t.visitChildren(this)},R.FilterClauseContext=ut,R.prototype.filterClause=function(){var t=new ut(this,this._ctx,this.state);this.enterRule(t,14,R.RULE_filterClause);try{this.enterOuterAlt(t,1),this.state=311,this.match(R.FILTER),this.state=312,this.expr(0)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},pt.prototype=Object.create(m.ParserRuleContext.prototype),pt.prototype.constructor=pt,pt.prototype.CALC=function(){return this.getToken(R.CALC,0)},pt.prototype.calcClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(me):this.getTypedRuleContext(me,t)},pt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},pt.prototype.enterRule=function(t){t instanceof _&&t.enterCalcClause(this)},pt.prototype.exitRule=function(t){t instanceof _&&t.exitCalcClause(this)},pt.prototype.accept=function(t){return t instanceof k?t.visitCalcClause(this):t.visitChildren(this)},R.CalcClauseContext=pt,R.prototype.calcClause=function(){var t=new pt(this,this._ctx,this.state);this.enterRule(t,16,R.RULE_calcClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=314,this.match(R.CALC),this.state=315,this.calcClauseItem(),this.state=320,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=316,this.match(R.COMMA),this.state=317,this.calcClauseItem(),this.state=322,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ht.prototype=Object.create(m.ParserRuleContext.prototype),ht.prototype.constructor=ht,ht.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},ht.prototype.KEEP=function(){return this.getToken(R.KEEP,0)},ht.prototype.DROP=function(){return this.getToken(R.DROP,0)},ht.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ht.prototype.enterRule=function(t){t instanceof _&&t.enterKeepOrDropClause(this)},ht.prototype.exitRule=function(t){t instanceof _&&t.exitKeepOrDropClause(this)},ht.prototype.accept=function(t){return t instanceof k?t.visitKeepOrDropClause(this):t.visitChildren(this)},R.KeepOrDropClauseContext=ht,R.prototype.keepOrDropClause=function(){var t=new ht(this,this._ctx,this.state);this.enterRule(t,18,R.RULE_keepOrDropClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=323,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.DROP&&e!==R.KEEP?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=324,this.componentID(),this.state=329,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=325,this.match(R.COMMA),this.state=326,this.componentID(),this.state=331,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ft.prototype=Object.create(m.ParserRuleContext.prototype),ft.prototype.constructor=ft,ft.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},ft.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},ft.prototype.PIVOT=function(){return this.getToken(R.PIVOT,0)},ft.prototype.UNPIVOT=function(){return this.getToken(R.UNPIVOT,0)},ft.prototype.enterRule=function(t){t instanceof _&&t.enterPivotOrUnpivotClause(this)},ft.prototype.exitRule=function(t){t instanceof _&&t.exitPivotOrUnpivotClause(this)},ft.prototype.accept=function(t){return t instanceof k?t.visitPivotOrUnpivotClause(this):t.visitChildren(this)},R.PivotOrUnpivotClauseContext=ft,R.prototype.pivotOrUnpivotClause=function(){var t=new ft(this,this._ctx,this.state);this.enterRule(t,20,R.RULE_pivotOrUnpivotClause);var e=0;try{this.enterOuterAlt(t,1),this.state=332,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.PIVOT&&e!==R.UNPIVOT?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=333,t.id_=this.componentID(),this.state=334,this.match(R.COMMA),this.state=335,t.mea=this.componentID()}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},dt.prototype=Object.create(m.ParserRuleContext.prototype),dt.prototype.constructor=dt,dt.prototype.CUSTOMPIVOT=function(){return this.getToken(R.CUSTOMPIVOT,0)},dt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},dt.prototype.IN=function(){return this.getToken(R.IN,0)},dt.prototype.constant=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Mn):this.getTypedRuleContext(Mn,t)},dt.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},dt.prototype.enterRule=function(t){t instanceof _&&t.enterCustomPivotClause(this)},dt.prototype.exitRule=function(t){t instanceof _&&t.exitCustomPivotClause(this)},dt.prototype.accept=function(t){return t instanceof k?t.visitCustomPivotClause(this):t.visitChildren(this)},R.CustomPivotClauseContext=dt,R.prototype.customPivotClause=function(){var t=new dt(this,this._ctx,this.state);this.enterRule(t,22,R.RULE_customPivotClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=337,this.match(R.CUSTOMPIVOT),this.state=338,t.id_=this.componentID(),this.state=339,this.match(R.COMMA),this.state=340,t.mea=this.componentID(),this.state=341,this.match(R.IN),this.state=342,this.constant(),this.state=347,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=343,this.match(R.COMMA),this.state=344,this.constant(),this.state=349,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},yt.prototype=Object.create(m.ParserRuleContext.prototype),yt.prototype.constructor=yt,yt.prototype.SUBSPACE=function(){return this.getToken(R.SUBSPACE,0)},yt.prototype.subspaceClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(_e):this.getTypedRuleContext(_e,t)},yt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},yt.prototype.enterRule=function(t){t instanceof _&&t.enterSubspaceClause(this)},yt.prototype.exitRule=function(t){t instanceof _&&t.exitSubspaceClause(this)},yt.prototype.accept=function(t){return t instanceof k?t.visitSubspaceClause(this):t.visitChildren(this)},R.SubspaceClauseContext=yt,R.prototype.subspaceClause=function(){var t=new yt(this,this._ctx,this.state);this.enterRule(t,24,R.RULE_subspaceClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=350,this.match(R.SUBSPACE),this.state=351,this.subspaceClauseItem(),this.state=356,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=352,this.match(R.COMMA),this.state=353,this.subspaceClauseItem(),this.state=358,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},gt.prototype=Object.create(m.ParserRuleContext.prototype),gt.prototype.constructor=gt,gt.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},mt.prototype=Object.create(gt.prototype),mt.prototype.constructor=mt,R.JoinExprContext=mt,mt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},mt.prototype.joinClause=function(){return this.getTypedRuleContext(ve,0)},mt.prototype.joinBody=function(){return this.getTypedRuleContext(Ee,0)},mt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},mt.prototype.INNER_JOIN=function(){return this.getToken(R.INNER_JOIN,0)},mt.prototype.LEFT_JOIN=function(){return this.getToken(R.LEFT_JOIN,0)},mt.prototype.joinClauseWithoutUsing=function(){return this.getTypedRuleContext(ke,0)},mt.prototype.FULL_JOIN=function(){return this.getToken(R.FULL_JOIN,0)},mt.prototype.CROSS_JOIN=function(){return this.getToken(R.CROSS_JOIN,0)},mt.prototype.enterRule=function(t){t instanceof _&&t.enterJoinExpr(this)},mt.prototype.exitRule=function(t){t instanceof _&&t.exitJoinExpr(this)},mt.prototype.accept=function(t){return t instanceof k?t.visitJoinExpr(this):t.visitChildren(this)},R.JoinOperatorsContext=gt,R.prototype.joinOperators=function(){var t=new gt(this,this._ctx,this.state);this.enterRule(t,26,R.RULE_joinOperators);var e=0;try{switch(this.state=371,this._errHandler.sync(this),this._input.LA(1)){case R.INNER_JOIN:case R.LEFT_JOIN:t=new mt(this,t),this.enterOuterAlt(t,1),this.state=359,t.joinKeyword=this._input.LT(1),(e=this._input.LA(1))!==R.INNER_JOIN&&e!==R.LEFT_JOIN?t.joinKeyword=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=360,this.match(R.LPAREN),this.state=361,this.joinClause(),this.state=362,this.joinBody(),this.state=363,this.match(R.RPAREN);break;case R.CROSS_JOIN:case R.FULL_JOIN:t=new mt(this,t),this.enterOuterAlt(t,2),this.state=365,t.joinKeyword=this._input.LT(1),(e=this._input.LA(1))!==R.CROSS_JOIN&&e!==R.FULL_JOIN?t.joinKeyword=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=366,this.match(R.LPAREN),this.state=367,this.joinClauseWithoutUsing(),this.state=368,this.joinBody(),this.state=369,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},_t.prototype=Object.create(m.ParserRuleContext.prototype),_t.prototype.constructor=_t,_t.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},kt.prototype=Object.create(_t.prototype),kt.prototype.constructor=kt,R.DefOperatorContext=kt,kt.prototype.DEFINE=function(){return this.getToken(R.DEFINE,0)},kt.prototype.OPERATOR=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.OPERATOR):this.getToken(R.OPERATOR,t)},kt.prototype.operatorID=function(){return this.getTypedRuleContext(Dn,0)},kt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},kt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},kt.prototype.IS=function(){return this.getToken(R.IS,0)},kt.prototype.END=function(){return this.getToken(R.END,0)},kt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},kt.prototype.parameterItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Pe):this.getTypedRuleContext(Pe,t)},kt.prototype.RETURNS=function(){return this.getToken(R.RETURNS,0)},kt.prototype.outputParameterType=function(){return this.getTypedRuleContext(De,0)},kt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},kt.prototype.enterRule=function(t){t instanceof _&&t.enterDefOperator(this)},kt.prototype.exitRule=function(t){t instanceof _&&t.exitDefOperator(this)},kt.prototype.accept=function(t){return t instanceof k?t.visitDefOperator(this):t.visitChildren(this)},vt.prototype=Object.create(_t.prototype),vt.prototype.constructor=vt,R.DefHierarchicalContext=vt,vt.prototype.DEFINE=function(){return this.getToken(R.DEFINE,0)},vt.prototype.HIERARCHICAL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.HIERARCHICAL):this.getToken(R.HIERARCHICAL,t)},vt.prototype.RULESET=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RULESET):this.getToken(R.RULESET,t)},vt.prototype.rulesetID=function(){return this.getTypedRuleContext(Qe,0)},vt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},vt.prototype.hierRuleSignature=function(){return this.getTypedRuleContext(sn,0)},vt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},vt.prototype.IS=function(){return this.getToken(R.IS,0)},vt.prototype.ruleClauseHierarchical=function(){return this.getTypedRuleContext(rn,0)},vt.prototype.END=function(){return this.getToken(R.END,0)},vt.prototype.enterRule=function(t){t instanceof _&&t.enterDefHierarchical(this)},vt.prototype.exitRule=function(t){t instanceof _&&t.exitDefHierarchical(this)},vt.prototype.accept=function(t){return t instanceof k?t.visitDefHierarchical(this):t.visitChildren(this)},xt.prototype=Object.create(_t.prototype),xt.prototype.constructor=xt,R.DefDatapointRulesetContext=xt,xt.prototype.DEFINE=function(){return this.getToken(R.DEFINE,0)},xt.prototype.DATAPOINT=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.DATAPOINT):this.getToken(R.DATAPOINT,t)},xt.prototype.RULESET=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RULESET):this.getToken(R.RULESET,t)},xt.prototype.rulesetID=function(){return this.getTypedRuleContext(Qe,0)},xt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},xt.prototype.rulesetSignature=function(){return this.getTypedRuleContext(Ze,0)},xt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},xt.prototype.IS=function(){return this.getToken(R.IS,0)},xt.prototype.ruleClauseDatapoint=function(){return this.getTypedRuleContext(en,0)},xt.prototype.END=function(){return this.getToken(R.END,0)},xt.prototype.enterRule=function(t){t instanceof _&&t.enterDefDatapointRuleset(this)},xt.prototype.exitRule=function(t){t instanceof _&&t.exitDefDatapointRuleset(this)},xt.prototype.accept=function(t){return t instanceof k?t.visitDefDatapointRuleset(this):t.visitChildren(this)},R.DefOperatorsContext=_t,R.prototype.defOperators=function(){var t=new _t(this,this._ctx,this.state);this.enterRule(t,28,R.RULE_defOperators);var e=0;try{switch(this.state=423,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,19,this._ctx)){case 1:if(t=new kt(this,t),this.enterOuterAlt(t,1),this.state=373,this.match(R.DEFINE),this.state=374,this.match(R.OPERATOR),this.state=375,this.operatorID(),this.state=376,this.match(R.LPAREN),this.state=385,this._errHandler.sync(this),(e=this._input.LA(1))===R.IDENTIFIER)for(this.state=377,this.parameterItem(),this.state=382,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=378,this.match(R.COMMA),this.state=379,this.parameterItem(),this.state=384,this._errHandler.sync(this),e=this._input.LA(1);this.state=387,this.match(R.RPAREN),this.state=390,this._errHandler.sync(this),(e=this._input.LA(1))===R.RETURNS&&(this.state=388,this.match(R.RETURNS),this.state=389,this.outputParameterType()),this.state=392,this.match(R.IS),this.state=393,this.expr(0),this.state=394,this.match(R.END),this.state=395,this.match(R.OPERATOR);break;case 2:t=new xt(this,t),this.enterOuterAlt(t,2),this.state=397,this.match(R.DEFINE),this.state=398,this.match(R.DATAPOINT),this.state=399,this.match(R.RULESET),this.state=400,this.rulesetID(),this.state=401,this.match(R.LPAREN),this.state=402,this.rulesetSignature(),this.state=403,this.match(R.RPAREN),this.state=404,this.match(R.IS),this.state=405,this.ruleClauseDatapoint(),this.state=406,this.match(R.END),this.state=407,this.match(R.DATAPOINT),this.state=408,this.match(R.RULESET);break;case 3:t=new vt(this,t),this.enterOuterAlt(t,3),this.state=410,this.match(R.DEFINE),this.state=411,this.match(R.HIERARCHICAL),this.state=412,this.match(R.RULESET),this.state=413,this.rulesetID(),this.state=414,this.match(R.LPAREN),this.state=415,this.hierRuleSignature(),this.state=416,this.match(R.RPAREN),this.state=417,this.match(R.IS),this.state=418,this.ruleClauseHierarchical(),this.state=419,this.match(R.END),this.state=420,this.match(R.HIERARCHICAL),this.state=421,this.match(R.RULESET)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Et.prototype=Object.create(m.ParserRuleContext.prototype),Et.prototype.constructor=Et,Et.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Tt.prototype=Object.create(Et.prototype),Tt.prototype.constructor=Tt,R.EvalAtomContext=Tt,Tt.prototype.EVAL=function(){return this.getToken(R.EVAL,0)},Tt.prototype.LPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.LPAREN):this.getToken(R.LPAREN,t)},Tt.prototype.routineName=function(){return this.getTypedRuleContext(zn,0)},Tt.prototype.RPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RPAREN):this.getToken(R.RPAREN,t)},Tt.prototype.varID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(wn):this.getTypedRuleContext(wn,t)},Tt.prototype.constant=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Mn):this.getTypedRuleContext(Mn,t)},Tt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Tt.prototype.LANGUAGE=function(){return this.getToken(R.LANGUAGE,0)},Tt.prototype.STRING_CONSTANT=function(){return this.getToken(R.STRING_CONSTANT,0)},Tt.prototype.RETURNS=function(){return this.getToken(R.RETURNS,0)},Tt.prototype.datasetType=function(){return this.getTypedRuleContext(He,0)},Tt.prototype.enterRule=function(t){t instanceof _&&t.enterEvalAtom(this)},Tt.prototype.exitRule=function(t){t instanceof _&&t.exitEvalAtom(this)},Tt.prototype.accept=function(t){return t instanceof k?t.visitEvalAtom(this):t.visitChildren(this)},wt.prototype=Object.create(Et.prototype),wt.prototype.constructor=wt,R.CastExprDatasetContext=wt,wt.prototype.CAST=function(){return this.getToken(R.CAST,0)},wt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},wt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},wt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},wt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},wt.prototype.basicScalarType=function(){return this.getTypedRuleContext(Fn,0)};wt.prototype.valueDomainName=function(){return this.getTypedRuleContext(Je,0)},wt.prototype.STRING_CONSTANT=function(){return this.getToken(R.STRING_CONSTANT,0)},wt.prototype.enterRule=function(t){t instanceof _&&t.enterCastExprDataset(this)},wt.prototype.exitRule=function(t){t instanceof _&&t.exitCastExprDataset(this)},wt.prototype.accept=function(t){return t instanceof k?t.visitCastExprDataset(this):t.visitChildren(this)},bt.prototype=Object.create(Et.prototype),bt.prototype.constructor=bt,R.CallDatasetContext=bt,bt.prototype.operatorID=function(){return this.getTypedRuleContext(Dn,0)},bt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},bt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},bt.prototype.parameter=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(At):this.getTypedRuleContext(At,t)},bt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},bt.prototype.enterRule=function(t){t instanceof _&&t.enterCallDataset(this)},bt.prototype.exitRule=function(t){t instanceof _&&t.exitCallDataset(this)},bt.prototype.accept=function(t){return t instanceof k?t.visitCallDataset(this):t.visitChildren(this)},R.GenericOperatorsContext=Et,R.prototype.genericOperators=function(){var t=new Et(this,this._ctx,this.state);this.enterRule(t,30,R.RULE_genericOperators);var e=0;try{switch(this.state=482,this._errHandler.sync(this),this._input.LA(1)){case R.IDENTIFIER:if(t=new bt(this,t),this.enterOuterAlt(t,1),this.state=425,this.operatorID(),this.state=426,this.match(R.LPAREN),this.state=435,this._errHandler.sync(this),(e=this._input.LA(1))===R.NULL_CONSTANT||e===R.OPTIONAL||!(e-231&-32)&&1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.BOOLEAN_CONSTANT-231|1<<R.STRING_CONSTANT-231|1<<R.IDENTIFIER-231))for(this.state=427,this.parameter(),this.state=432,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=428,this.match(R.COMMA),this.state=429,this.parameter(),this.state=434,this._errHandler.sync(this),e=this._input.LA(1);this.state=437,this.match(R.RPAREN);break;case R.EVAL:switch(t=new Tt(this,t),this.enterOuterAlt(t,2),this.state=439,this.match(R.EVAL),this.state=440,this.match(R.LPAREN),this.state=441,this.routineName(),this.state=442,this.match(R.LPAREN),this.state=445,this._errHandler.sync(this),this._input.LA(1)){case R.IDENTIFIER:this.state=443,this.varID();break;case R.NULL_CONSTANT:case R.INTEGER_CONSTANT:case R.NUMBER_CONSTANT:case R.BOOLEAN_CONSTANT:case R.STRING_CONSTANT:this.state=444,this.constant();case R.RPAREN:case R.COMMA:}for(this.state=454,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;){switch(this.state=447,this.match(R.COMMA),this.state=450,this._errHandler.sync(this),this._input.LA(1)){case R.IDENTIFIER:this.state=448,this.varID();break;case R.NULL_CONSTANT:case R.INTEGER_CONSTANT:case R.NUMBER_CONSTANT:case R.BOOLEAN_CONSTANT:case R.STRING_CONSTANT:this.state=449,this.constant();break;default:throw new m.error.NoViableAltException(this)}this.state=456,this._errHandler.sync(this),e=this._input.LA(1)}this.state=457,this.match(R.RPAREN),this.state=460,this._errHandler.sync(this),(e=this._input.LA(1))===R.LANGUAGE&&(this.state=458,this.match(R.LANGUAGE),this.state=459,this.match(R.STRING_CONSTANT)),this.state=464,this._errHandler.sync(this),(e=this._input.LA(1))===R.RETURNS&&(this.state=462,this.match(R.RETURNS),this.state=463,this.datasetType()),this.state=466,this.match(R.RPAREN);break;case R.CAST:switch(t=new wt(this,t),this.enterOuterAlt(t,3),this.state=468,this.match(R.CAST),this.state=469,this.match(R.LPAREN),this.state=470,this.expr(0),this.state=471,this.match(R.COMMA),this.state=474,this._errHandler.sync(this),this._input.LA(1)){case R.BOOLEAN:case R.DATE:case R.TIME_PERIOD:case R.NUMBER:case R.STRING:case R.TIME:case R.INTEGER:case R.DURATION:case R.SCALAR:this.state=472,this.basicScalarType();break;case R.IDENTIFIER:this.state=473,this.valueDomainName();break;default:throw new m.error.NoViableAltException(this)}this.state=478,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=476,this.match(R.COMMA),this.state=477,this.match(R.STRING_CONSTANT)),this.state=480,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},At.prototype=Object.create(m.ParserRuleContext.prototype),At.prototype.constructor=At,At.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},At.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},At.prototype.OPTIONAL=function(){return this.getToken(R.OPTIONAL,0)},At.prototype.enterRule=function(t){t instanceof _&&t.enterParameter(this)},At.prototype.exitRule=function(t){t instanceof _&&t.exitParameter(this)},At.prototype.accept=function(t){return t instanceof k?t.visitParameter(this):t.visitChildren(this)},R.ParameterContext=At,R.prototype.parameter=function(){var t=new At(this,this._ctx,this.state);this.enterRule(t,32,R.RULE_parameter);try{switch(this.state=487,this._errHandler.sync(this),this._input.LA(1)){case R.IDENTIFIER:this.enterOuterAlt(t,1),this.state=484,this.varID();break;case R.NULL_CONSTANT:case R.INTEGER_CONSTANT:case R.NUMBER_CONSTANT:case R.BOOLEAN_CONSTANT:case R.STRING_CONSTANT:this.enterOuterAlt(t,2),this.state=485,this.constant();break;case R.OPTIONAL:this.enterOuterAlt(t,3),this.state=486,this.match(R.OPTIONAL);break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Rt.prototype=Object.create(m.ParserRuleContext.prototype),Rt.prototype.constructor=Rt,Rt.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Ct.prototype=Object.create(Rt.prototype),Ct.prototype.constructor=Ct,R.InstrAtomContext=Ct,Ct.prototype.INSTR=function(){return this.getToken(R.INSTR,0)},Ct.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ct.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Ct.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ct.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ct.prototype.optionalExpr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(On):this.getTypedRuleContext(On,t)},Ct.prototype.enterRule=function(t){t instanceof _&&t.enterInstrAtom(this)},Ct.prototype.exitRule=function(t){t instanceof _&&t.exitInstrAtom(this)},Ct.prototype.accept=function(t){return t instanceof k?t.visitInstrAtom(this):t.visitChildren(this)},St.prototype=Object.create(Rt.prototype),St.prototype.constructor=St,R.UnaryStringFunctionContext=St,St.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},St.prototype.expr=function(){return this.getTypedRuleContext(L,0)},St.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},St.prototype.TRIM=function(){return this.getToken(R.TRIM,0)},St.prototype.LTRIM=function(){return this.getToken(R.LTRIM,0)},St.prototype.RTRIM=function(){return this.getToken(R.RTRIM,0)},St.prototype.UCASE=function(){return this.getToken(R.UCASE,0)},St.prototype.LCASE=function(){return this.getToken(R.LCASE,0)},St.prototype.LEN=function(){return this.getToken(R.LEN,0)},St.prototype.enterRule=function(t){t instanceof _&&t.enterUnaryStringFunction(this)},St.prototype.exitRule=function(t){t instanceof _&&t.exitUnaryStringFunction(this)},St.prototype.accept=function(t){return t instanceof k?t.visitUnaryStringFunction(this):t.visitChildren(this)},Nt.prototype=Object.create(Rt.prototype),Nt.prototype.constructor=Nt,R.SubstrAtomContext=Nt,Nt.prototype.SUBSTR=function(){return this.getToken(R.SUBSTR,0)},Nt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Nt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Nt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Nt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Nt.prototype.optionalExpr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(On):this.getTypedRuleContext(On,t)},Nt.prototype.enterRule=function(t){t instanceof _&&t.enterSubstrAtom(this)},Nt.prototype.exitRule=function(t){t instanceof _&&t.exitSubstrAtom(this)},Nt.prototype.accept=function(t){return t instanceof k?t.visitSubstrAtom(this):t.visitChildren(this)},Ot.prototype=Object.create(Rt.prototype),Ot.prototype.constructor=Ot,R.ReplaceAtomContext=Ot,Ot.prototype.REPLACE=function(){return this.getToken(R.REPLACE,0)},Ot.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ot.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Ot.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ot.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ot.prototype.optionalExpr=function(){return this.getTypedRuleContext(On,0)},Ot.prototype.enterRule=function(t){t instanceof _&&t.enterReplaceAtom(this)},Ot.prototype.exitRule=function(t){t instanceof _&&t.exitReplaceAtom(this)},Ot.prototype.accept=function(t){return t instanceof k?t.visitReplaceAtom(this):t.visitChildren(this)},R.StringOperatorsContext=Rt,R.prototype.stringOperators=function(){var t=new Rt(this,this._ctx,this.state);this.enterRule(t,34,R.RULE_stringOperators);var e=0;try{switch(this.state=537,this._errHandler.sync(this),this._input.LA(1)){case R.LEN:case R.TRIM:case R.UCASE:case R.LCASE:case R.LTRIM:case R.RTRIM:t=new St(this,t),this.enterOuterAlt(t,1),this.state=489,t.op=this._input.LT(1),!((e=this._input.LA(1))-81&-32)&&1<<e-81&(1<<R.LEN-81|1<<R.TRIM-81|1<<R.UCASE-81|1<<R.LCASE-81)||e===R.LTRIM||e===R.RTRIM?(this._errHandler.reportMatch(this),this.consume()):t.op=this._errHandler.recoverInline(this),this.state=490,this.match(R.LPAREN),this.state=491,this.expr(0),this.state=492,this.match(R.RPAREN);break;case R.SUBSTR:switch(t=new Nt(this,t),this.enterOuterAlt(t,2),this.state=494,this.match(R.SUBSTR),this.state=495,this.match(R.LPAREN),this.state=496,this.expr(0),this.state=507,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,32,this._ctx)){case 1:this.state=503,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=497,this.match(R.COMMA),this.state=498,t.startParameter=this.optionalExpr(),this.state=500,this.match(R.COMMA),this.state=501,t.endParameter=this.optionalExpr());break;case 2:this.state=505,this.match(R.COMMA),this.state=506,t.startParameter=this.optionalExpr()}this.state=509,this.match(R.RPAREN);break;case R.REPLACE:t=new Ot(this,t),this.enterOuterAlt(t,3),this.state=511,this.match(R.REPLACE),this.state=512,this.match(R.LPAREN),this.state=513,this.expr(0),this.state=514,this.match(R.COMMA),this.state=515,t.param=this.expr(0),this.state=518,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=516,this.match(R.COMMA),this.state=517,this.optionalExpr()),this.state=520,this.match(R.RPAREN);break;case R.INSTR:t=new Ct(this,t),this.enterOuterAlt(t,4),this.state=522,this.match(R.INSTR),this.state=523,this.match(R.LPAREN),this.state=524,this.expr(0),this.state=525,this.match(R.COMMA),this.state=526,t.pattern=this.expr(0),this.state=529,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,34,this._ctx)&&(this.state=527,this.match(R.COMMA),this.state=528,t.startParameter=this.optionalExpr()),this.state=533,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=531,this.match(R.COMMA),this.state=532,t.occurrenceParameter=this.optionalExpr()),this.state=535,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},It.prototype=Object.create(m.ParserRuleContext.prototype),It.prototype.constructor=It,It.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Lt.prototype=Object.create(It.prototype),Lt.prototype.constructor=Lt,R.UnaryNumericContext=Lt,Lt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Lt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Lt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Lt.prototype.CEIL=function(){return this.getToken(R.CEIL,0)},Lt.prototype.FLOOR=function(){return this.getToken(R.FLOOR,0)},Lt.prototype.ABS=function(){return this.getToken(R.ABS,0)},Lt.prototype.EXP=function(){return this.getToken(R.EXP,0)},Lt.prototype.LN=function(){return this.getToken(R.LN,0)},Lt.prototype.SQRT=function(){return this.getToken(R.SQRT,0)},Lt.prototype.enterRule=function(t){t instanceof _&&t.enterUnaryNumeric(this)},Lt.prototype.exitRule=function(t){t instanceof _&&t.exitUnaryNumeric(this)},Lt.prototype.accept=function(t){return t instanceof k?t.visitUnaryNumeric(this):t.visitChildren(this)},Pt.prototype=Object.create(It.prototype),Pt.prototype.constructor=Pt,R.OptionalNumericContext=Pt,Pt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Pt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Pt.prototype.RANDOM=function(){return this.getToken(R.RANDOM,0)},Pt.prototype.optionalExpr=function(){return this.getTypedRuleContext(On,0)},Pt.prototype.enterRule=function(t){t instanceof _&&t.enterOptionalNumeric(this)},Pt.prototype.exitRule=function(t){t instanceof _&&t.exitOptionalNumeric(this)},Pt.prototype.accept=function(t){return t instanceof k?t.visitOptionalNumeric(this):t.visitChildren(this)},Dt.prototype=Object.create(It.prototype),Dt.prototype.constructor=Dt,R.UnaryWithOptionalNumericContext=Dt,Dt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Dt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Dt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Dt.prototype.ROUND=function(){return this.getToken(R.ROUND,0)},Dt.prototype.TRUNC=function(){return this.getToken(R.TRUNC,0)},Dt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Dt.prototype.optionalExpr=function(){return this.getTypedRuleContext(On,0)},Dt.prototype.enterRule=function(t){t instanceof _&&t.enterUnaryWithOptionalNumeric(this)},Dt.prototype.exitRule=function(t){t instanceof _&&t.exitUnaryWithOptionalNumeric(this)},Dt.prototype.accept=function(t){return t instanceof k?t.visitUnaryWithOptionalNumeric(this):t.visitChildren(this)},zt.prototype=Object.create(It.prototype),zt.prototype.constructor=zt,R.BinaryNumericContext=zt,zt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},zt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},zt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},zt.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},zt.prototype.MOD=function(){return this.getToken(R.MOD,0)},zt.prototype.POWER=function(){return this.getToken(R.POWER,0)},zt.prototype.LOG=function(){return this.getToken(R.LOG,0)},zt.prototype.enterRule=function(t){t instanceof _&&t.enterBinaryNumeric(this)},zt.prototype.exitRule=function(t){t instanceof _&&t.exitBinaryNumeric(this)},zt.prototype.accept=function(t){return t instanceof k?t.visitBinaryNumeric(this):t.visitChildren(this)},R.NumericOperatorsContext=It,R.prototype.numericOperators=function(){var t=new It(this,this._ctx,this.state);this.enterRule(t,36,R.RULE_numericOperators);var e=0;try{switch(this.state=566,this._errHandler.sync(this),this._input.LA(1)){case R.RANDOM:t=new Pt(this,t),this.enterOuterAlt(t,1),this.state=539,t.op=this.match(R.RANDOM),this.state=540,this.match(R.LPAREN),this.state=542,this._errHandler.sync(this),(!(-32&(e=this._input.LA(1)))&&!!(1<<e&(1<<R.LPAREN|1<<R.PLUS|1<<R.MINUS|1<<R.EVAL|1<<R.IF|1<<R.CURRENT_DATE))||!(e-39&-32)&&!!(1<<e-39&(1<<R.NOT-39|1<<R.BETWEEN-39|1<<R.NULL_CONSTANT-39|1<<R.ISNULL-39|1<<R.UNION-39|1<<R.SYMDIFF-39|1<<R.INTERSECT-39|1<<R.CHECK-39|1<<R.EXISTS_IN-39|1<<R.MIN-39|1<<R.MAX-39))||!(e-73&-32)&&!!(1<<e-73&(1<<R.ABS-73|1<<R.LN-73|1<<R.LOG-73|1<<R.TRUNC-73|1<<R.ROUND-73|1<<R.POWER-73|1<<R.MOD-73|1<<R.LEN-73|1<<R.TRIM-73|1<<R.UCASE-73|1<<R.LCASE-73|1<<R.SUBSTR-73|1<<R.SUM-73|1<<R.AVG-73|1<<R.MEDIAN-73|1<<R.COUNT-73|1<<R.EXP-73|1<<R.CHARSET_MATCH-73|1<<R.NVL-73|1<<R.HIERARCHY-73|1<<R.OPTIONAL-73))||!(e-105&-32)&&!!(1<<e-105&(1<<R.LEVENSHTEIN-105|1<<R.LTRIM-105|1<<R.RTRIM-105|1<<R.INSTR-105|1<<R.REPLACE-105|1<<R.CEIL-105|1<<R.FLOOR-105|1<<R.SQRT-105|1<<R.RANDOM-105|1<<R.SETDIFF-105|1<<R.STDDEV_POP-105|1<<R.STDDEV_SAMP-105|1<<R.VAR_POP-105|1<<R.VAR_SAMP-105))||!(e-137&-32)&&!!(1<<e-137&(1<<R.FIRST_VALUE-137|1<<R.LAST_VALUE-137|1<<R.LAG-137|1<<R.LEAD-137|1<<R.RATIO_TO_REPORT-137|1<<R.FILL_TIME_SERIES-137|1<<R.FLOW_TO_STOCK-137|1<<R.STOCK_TO_FLOW-137|1<<R.TIMESHIFT-137))||!(e-183&-32)&&!!(1<<e-183&(1<<R.INNER_JOIN-183|1<<R.LEFT_JOIN-183|1<<R.CROSS_JOIN-183|1<<R.FULL_JOIN-183|1<<R.PERIOD_INDICATOR-183|1<<R.TIME_AGG-183|1<<R.CAST-183|1<<R.CHECK_DATAPOINT-183|1<<R.CHECK_HIERARCHY-183))||!(e-231&-32)&&!!(1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.BOOLEAN_CONSTANT-231|1<<R.STRING_CONSTANT-231|1<<R.IDENTIFIER-231)))&&(this.state=541,this.optionalExpr()),this.state=544,this.match(R.RPAREN);break;case R.ABS:case R.LN:case R.EXP:case R.CEIL:case R.FLOOR:case R.SQRT:t=new Lt(this,t),this.enterOuterAlt(t,2),this.state=545,t.op=this._input.LT(1),!((e=this._input.LA(1))-73&-32)&&1<<e-73&(1<<R.ABS-73|1<<R.LN-73|1<<R.EXP-73)||!(e-124&-32)&&1<<e-124&(1<<R.CEIL-124|1<<R.FLOOR-124|1<<R.SQRT-124)?(this._errHandler.reportMatch(this),this.consume()):t.op=this._errHandler.recoverInline(this),this.state=546,this.match(R.LPAREN),this.state=547,this.expr(0),this.state=548,this.match(R.RPAREN);break;case R.TRUNC:case R.ROUND:t=new Dt(this,t),this.enterOuterAlt(t,3),this.state=550,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.TRUNC&&e!==R.ROUND?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=551,this.match(R.LPAREN),this.state=552,this.expr(0),this.state=555,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=553,this.match(R.COMMA),this.state=554,this.optionalExpr()),this.state=557,this.match(R.RPAREN);break;case R.LOG:case R.POWER:case R.MOD:t=new zt(this,t),this.enterOuterAlt(t,4),this.state=559,t.op=this._input.LT(1),(e=this._input.LA(1))-76&-32||!(1<<e-76&(1<<R.LOG-76|1<<R.POWER-76|1<<R.MOD-76))?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=560,this.match(R.LPAREN),this.state=561,t.left=this.expr(0),this.state=562,this.match(R.COMMA),this.state=563,t.right=this.expr(0),this.state=564,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Mt.prototype=Object.create(m.ParserRuleContext.prototype),Mt.prototype.constructor=Mt,Mt.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Ft.prototype=Object.create(Mt.prototype),Ft.prototype.constructor=Ft,R.BetweenAtomContext=Ft,Ft.prototype.BETWEEN=function(){return this.getToken(R.BETWEEN,0)},Ft.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ft.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ft.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ft.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Ft.prototype.enterRule=function(t){t instanceof _&&t.enterBetweenAtom(this)},Ft.prototype.exitRule=function(t){t instanceof _&&t.exitBetweenAtom(this)},Ft.prototype.accept=function(t){return t instanceof k?t.visitBetweenAtom(this):t.visitChildren(this)},Ut.prototype=Object.create(Mt.prototype),Ut.prototype.constructor=Ut,R.CharsetMatchAtomContext=Ut,Ut.prototype.CHARSET_MATCH=function(){return this.getToken(R.CHARSET_MATCH,0)},Ut.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ut.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Ut.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ut.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Ut.prototype.enterRule=function(t){t instanceof _&&t.enterCharsetMatchAtom(this)},Ut.prototype.exitRule=function(t){t instanceof _&&t.exitCharsetMatchAtom(this)},Ut.prototype.accept=function(t){return t instanceof k?t.visitCharsetMatchAtom(this):t.visitChildren(this)},jt.prototype=Object.create(Mt.prototype),jt.prototype.constructor=jt,R.IsNullAtomContext=jt,jt.prototype.ISNULL=function(){return this.getToken(R.ISNULL,0)},jt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},jt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},jt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},jt.prototype.enterRule=function(t){t instanceof _&&t.enterIsNullAtom(this)},jt.prototype.exitRule=function(t){t instanceof _&&t.exitIsNullAtom(this)},jt.prototype.accept=function(t){return t instanceof k?t.visitIsNullAtom(this):t.visitChildren(this)},Ht.prototype=Object.create(Mt.prototype),Ht.prototype.constructor=Ht,R.ExistInAtomContext=Ht,Ht.prototype.EXISTS_IN=function(){return this.getToken(R.EXISTS_IN,0)},Ht.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ht.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ht.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ht.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Ht.prototype.retainType=function(){return this.getTypedRuleContext(Un,0)},Ht.prototype.enterRule=function(t){t instanceof _&&t.enterExistInAtom(this)},Ht.prototype.exitRule=function(t){t instanceof _&&t.exitExistInAtom(this)},Ht.prototype.accept=function(t){return t instanceof k?t.visitExistInAtom(this):t.visitChildren(this)},R.ComparisonOperatorsContext=Mt,R.prototype.comparisonOperators=function(){var t=new Mt(this,this._ctx,this.state);this.enterRule(t,38,R.RULE_comparisonOperators);try{switch(this.state=600,this._errHandler.sync(this),this._input.LA(1)){case R.BETWEEN:t=new Ft(this,t),this.enterOuterAlt(t,1),this.state=568,this.match(R.BETWEEN),this.state=569,this.match(R.LPAREN),this.state=570,t.op=this.expr(0),this.state=571,this.match(R.COMMA),this.state=572,t.from_=this.expr(0),this.state=573,this.match(R.COMMA),this.state=574,t.to_=this.expr(0),this.state=575,this.match(R.RPAREN);break;case R.CHARSET_MATCH:t=new Ut(this,t),this.enterOuterAlt(t,2),this.state=577,this.match(R.CHARSET_MATCH),this.state=578,this.match(R.LPAREN),this.state=579,t.op=this.expr(0),this.state=580,this.match(R.COMMA),this.state=581,t.pattern=this.expr(0),this.state=582,this.match(R.RPAREN);break;case R.ISNULL:t=new jt(this,t),this.enterOuterAlt(t,3),this.state=584,this.match(R.ISNULL),this.state=585,this.match(R.LPAREN),this.state=586,this.expr(0),this.state=587,this.match(R.RPAREN);break;case R.EXISTS_IN:t=new Ht(this,t),this.enterOuterAlt(t,4),this.state=589,this.match(R.EXISTS_IN),this.state=590,this.match(R.LPAREN),this.state=591,t.left=this.expr(0),this.state=592,this.match(R.COMMA),this.state=593,t.right=this.expr(0),this.state=596,this._errHandler.sync(this),this._input.LA(1)===R.COMMA&&(this.state=594,this.match(R.COMMA),this.state=595,this.retainType()),this.state=598,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Vt.prototype=Object.create(m.ParserRuleContext.prototype),Vt.prototype.constructor=Vt,Vt.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Bt.prototype=Object.create(Vt.prototype),Bt.prototype.constructor=Bt,R.FlowAtomContext=Bt,Bt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Bt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Bt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Bt.prototype.FLOW_TO_STOCK=function(){return this.getToken(R.FLOW_TO_STOCK,0)},Bt.prototype.STOCK_TO_FLOW=function(){return this.getToken(R.STOCK_TO_FLOW,0)},Bt.prototype.enterRule=function(t){t instanceof _&&t.enterFlowAtom(this)},Bt.prototype.exitRule=function(t){t instanceof _&&t.exitFlowAtom(this)},Bt.prototype.accept=function(t){return t instanceof k?t.visitFlowAtom(this):t.visitChildren(this)},Wt.prototype=Object.create(Vt.prototype),Wt.prototype.constructor=Wt,R.TimeShiftAtomContext=Wt,Wt.prototype.TIMESHIFT=function(){return this.getToken(R.TIMESHIFT,0)},Wt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Wt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Wt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Wt.prototype.signedInteger=function(){return this.getTypedRuleContext(Ce,0)},Wt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Wt.prototype.enterRule=function(t){t instanceof _&&t.enterTimeShiftAtom(this)},Wt.prototype.exitRule=function(t){t instanceof _&&t.exitTimeShiftAtom(this)},Wt.prototype.accept=function(t){return t instanceof k?t.visitTimeShiftAtom(this):t.visitChildren(this)},Gt.prototype=Object.create(Vt.prototype),Gt.prototype.constructor=Gt,R.TimeAggAtomContext=Gt,Gt.prototype.TIME_AGG=function(){return this.getToken(R.TIME_AGG,0)},Gt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Gt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Gt.prototype.STRING_CONSTANT=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.STRING_CONSTANT):this.getToken(R.STRING_CONSTANT,t)},Gt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Gt.prototype.optionalExpr=function(){return this.getTypedRuleContext(On,0)},Gt.prototype.FIRST=function(){return this.getToken(R.FIRST,0)},Gt.prototype.LAST=function(){return this.getToken(R.LAST,0)},Gt.prototype.OPTIONAL=function(){return this.getToken(R.OPTIONAL,0)},Gt.prototype.enterRule=function(t){t instanceof _&&t.enterTimeAggAtom(this)},Gt.prototype.exitRule=function(t){t instanceof _&&t.exitTimeAggAtom(this)},Gt.prototype.accept=function(t){return t instanceof k?t.visitTimeAggAtom(this):t.visitChildren(this)},qt.prototype=Object.create(Vt.prototype),qt.prototype.constructor=qt,R.CurrentDateAtomContext=qt,qt.prototype.CURRENT_DATE=function(){return this.getToken(R.CURRENT_DATE,0)},qt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},qt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},qt.prototype.enterRule=function(t){t instanceof _&&t.enterCurrentDateAtom(this)},qt.prototype.exitRule=function(t){t instanceof _&&t.exitCurrentDateAtom(this)},qt.prototype.accept=function(t){return t instanceof k?t.visitCurrentDateAtom(this):t.visitChildren(this)},Yt.prototype=Object.create(Vt.prototype),Yt.prototype.constructor=Yt,R.PeriodAtomContext=Yt,Yt.prototype.PERIOD_INDICATOR=function(){return this.getToken(R.PERIOD_INDICATOR,0)},Yt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Yt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Yt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Yt.prototype.enterRule=function(t){t instanceof _&&t.enterPeriodAtom(this)},Yt.prototype.exitRule=function(t){t instanceof _&&t.exitPeriodAtom(this)},Yt.prototype.accept=function(t){return t instanceof k?t.visitPeriodAtom(this):t.visitChildren(this)},Kt.prototype=Object.create(Vt.prototype),Kt.prototype.constructor=Kt,R.FillTimeAtomContext=Kt,Kt.prototype.FILL_TIME_SERIES=function(){return this.getToken(R.FILL_TIME_SERIES,0)},Kt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Kt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Kt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Kt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Kt.prototype.SINGLE=function(){return this.getToken(R.SINGLE,0)},Kt.prototype.ALL=function(){return this.getToken(R.ALL,0)},Kt.prototype.enterRule=function(t){t instanceof _&&t.enterFillTimeAtom(this)},Kt.prototype.exitRule=function(t){t instanceof _&&t.exitFillTimeAtom(this)},Kt.prototype.accept=function(t){return t instanceof k?t.visitFillTimeAtom(this):t.visitChildren(this)},R.TimeOperatorsContext=Vt,R.prototype.timeOperators=function(){var t=new Vt(this,this._ctx,this.state);this.enterRule(t,40,R.RULE_timeOperators);var e=0;try{switch(this.state=648,this._errHandler.sync(this),this._input.LA(1)){case R.PERIOD_INDICATOR:t=new Yt(this,t),this.enterOuterAlt(t,1),this.state=602,this.match(R.PERIOD_INDICATOR),this.state=603,this.match(R.LPAREN),this.state=605,this._errHandler.sync(this),(!(-32&(e=this._input.LA(1)))&&!!(1<<e&(1<<R.LPAREN|1<<R.PLUS|1<<R.MINUS|1<<R.EVAL|1<<R.IF|1<<R.CURRENT_DATE))||!(e-39&-32)&&!!(1<<e-39&(1<<R.NOT-39|1<<R.BETWEEN-39|1<<R.NULL_CONSTANT-39|1<<R.ISNULL-39|1<<R.UNION-39|1<<R.SYMDIFF-39|1<<R.INTERSECT-39|1<<R.CHECK-39|1<<R.EXISTS_IN-39|1<<R.MIN-39|1<<R.MAX-39))||!(e-73&-32)&&!!(1<<e-73&(1<<R.ABS-73|1<<R.LN-73|1<<R.LOG-73|1<<R.TRUNC-73|1<<R.ROUND-73|1<<R.POWER-73|1<<R.MOD-73|1<<R.LEN-73|1<<R.TRIM-73|1<<R.UCASE-73|1<<R.LCASE-73|1<<R.SUBSTR-73|1<<R.SUM-73|1<<R.AVG-73|1<<R.MEDIAN-73|1<<R.COUNT-73|1<<R.EXP-73|1<<R.CHARSET_MATCH-73|1<<R.NVL-73|1<<R.HIERARCHY-73))||!(e-105&-32)&&!!(1<<e-105&(1<<R.LEVENSHTEIN-105|1<<R.LTRIM-105|1<<R.RTRIM-105|1<<R.INSTR-105|1<<R.REPLACE-105|1<<R.CEIL-105|1<<R.FLOOR-105|1<<R.SQRT-105|1<<R.RANDOM-105|1<<R.SETDIFF-105|1<<R.STDDEV_POP-105|1<<R.STDDEV_SAMP-105|1<<R.VAR_POP-105|1<<R.VAR_SAMP-105))||!(e-137&-32)&&!!(1<<e-137&(1<<R.FIRST_VALUE-137|1<<R.LAST_VALUE-137|1<<R.LAG-137|1<<R.LEAD-137|1<<R.RATIO_TO_REPORT-137|1<<R.FILL_TIME_SERIES-137|1<<R.FLOW_TO_STOCK-137|1<<R.STOCK_TO_FLOW-137|1<<R.TIMESHIFT-137))||!(e-183&-32)&&!!(1<<e-183&(1<<R.INNER_JOIN-183|1<<R.LEFT_JOIN-183|1<<R.CROSS_JOIN-183|1<<R.FULL_JOIN-183|1<<R.PERIOD_INDICATOR-183|1<<R.TIME_AGG-183|1<<R.CAST-183|1<<R.CHECK_DATAPOINT-183|1<<R.CHECK_HIERARCHY-183))||!(e-231&-32)&&!!(1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.BOOLEAN_CONSTANT-231|1<<R.STRING_CONSTANT-231|1<<R.IDENTIFIER-231)))&&(this.state=604,this.expr(0)),this.state=607,this.match(R.RPAREN);break;case R.FILL_TIME_SERIES:t=new Kt(this,t),this.enterOuterAlt(t,2),this.state=608,this.match(R.FILL_TIME_SERIES),this.state=609,this.match(R.LPAREN),this.state=610,this.expr(0),this.state=613,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=611,this.match(R.COMMA),this.state=612,(e=this._input.LA(1))!==R.ALL&&e!==R.SINGLE?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())),this.state=615,this.match(R.RPAREN);break;case R.FLOW_TO_STOCK:case R.STOCK_TO_FLOW:t=new Bt(this,t),this.enterOuterAlt(t,3),this.state=617,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.FLOW_TO_STOCK&&e!==R.STOCK_TO_FLOW?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=618,this.match(R.LPAREN),this.state=619,this.expr(0),this.state=620,this.match(R.RPAREN);break;case R.TIMESHIFT:t=new Wt(this,t),this.enterOuterAlt(t,4),this.state=622,this.match(R.TIMESHIFT),this.state=623,this.match(R.LPAREN),this.state=624,this.expr(0),this.state=625,this.match(R.COMMA),this.state=626,this.signedInteger(),this.state=627,this.match(R.RPAREN);break;case R.TIME_AGG:t=new Gt(this,t),this.enterOuterAlt(t,5),this.state=629,this.match(R.TIME_AGG),this.state=630,this.match(R.LPAREN),this.state=631,t.periodIndTo=this.match(R.STRING_CONSTANT),this.state=634,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,44,this._ctx)&&(this.state=632,this.match(R.COMMA),this.state=633,t.periodIndFrom=this._input.LT(1),(e=this._input.LA(1))!==R.OPTIONAL&&e!==R.STRING_CONSTANT?t.periodIndFrom=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())),this.state=638,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,45,this._ctx)&&(this.state=636,this.match(R.COMMA),this.state=637,t.op=this.optionalExpr()),this.state=642,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=640,this.match(R.COMMA),this.state=641,(e=this._input.LA(1))!==R.FIRST&&e!==R.LAST?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())),this.state=644,this.match(R.RPAREN);break;case R.CURRENT_DATE:t=new qt(this,t),this.enterOuterAlt(t,6),this.state=645,this.match(R.CURRENT_DATE),this.state=646,this.match(R.LPAREN),this.state=647,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},$t.prototype=Object.create(m.ParserRuleContext.prototype),$t.prototype.constructor=$t,$t.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Xt.prototype=Object.create($t.prototype),Xt.prototype.constructor=Xt,R.SetOrSYmDiffAtomContext=Xt,Xt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Xt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Xt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Xt.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Xt.prototype.SETDIFF=function(){return this.getToken(R.SETDIFF,0)},Xt.prototype.SYMDIFF=function(){return this.getToken(R.SYMDIFF,0)},Xt.prototype.enterRule=function(t){t instanceof _&&t.enterSetOrSYmDiffAtom(this)},Xt.prototype.exitRule=function(t){t instanceof _&&t.exitSetOrSYmDiffAtom(this)},Xt.prototype.accept=function(t){return t instanceof k?t.visitSetOrSYmDiffAtom(this):t.visitChildren(this)},Jt.prototype=Object.create($t.prototype),Jt.prototype.constructor=Jt,R.IntersectAtomContext=Jt,Jt.prototype.INTERSECT=function(){return this.getToken(R.INTERSECT,0)},Jt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Jt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Jt.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Jt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Jt.prototype.enterRule=function(t){t instanceof _&&t.enterIntersectAtom(this)},Jt.prototype.exitRule=function(t){t instanceof _&&t.exitIntersectAtom(this)},Jt.prototype.accept=function(t){return t instanceof k?t.visitIntersectAtom(this):t.visitChildren(this)},Qt.prototype=Object.create($t.prototype),Qt.prototype.constructor=Qt,R.UnionAtomContext=Qt,Qt.prototype.UNION=function(){return this.getToken(R.UNION,0)},Qt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Qt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Qt.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},Qt.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Qt.prototype.enterRule=function(t){t instanceof _&&t.enterUnionAtom(this)},Qt.prototype.exitRule=function(t){t instanceof _&&t.exitUnionAtom(this)},Qt.prototype.accept=function(t){return t instanceof k?t.visitUnionAtom(this):t.visitChildren(this)},R.SetOperatorsContext=$t,R.prototype.setOperators=function(){var t=new $t(this,this._ctx,this.state);this.enterRule(t,42,R.RULE_setOperators);var e=0;try{switch(this.state=679,this._errHandler.sync(this),this._input.LA(1)){case R.UNION:t=new Qt(this,t),this.enterOuterAlt(t,1),this.state=650,this.match(R.UNION),this.state=651,this.match(R.LPAREN),this.state=652,t.left=this.expr(0),this.state=655,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=653,this.match(R.COMMA),this.state=654,this.expr(0),this.state=657,this._errHandler.sync(this),e=this._input.LA(1)}while(e===R.COMMA);this.state=659,this.match(R.RPAREN);break;case R.INTERSECT:t=new Jt(this,t),this.enterOuterAlt(t,2),this.state=661,this.match(R.INTERSECT),this.state=662,this.match(R.LPAREN),this.state=663,t.left=this.expr(0),this.state=666,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=664,this.match(R.COMMA),this.state=665,this.expr(0),this.state=668,this._errHandler.sync(this),e=this._input.LA(1)}while(e===R.COMMA);this.state=670,this.match(R.RPAREN);break;case R.SYMDIFF:case R.SETDIFF:t=new Xt(this,t),this.enterOuterAlt(t,3),this.state=672,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.SYMDIFF&&e!==R.SETDIFF?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=673,this.match(R.LPAREN),this.state=674,t.left=this.expr(0),this.state=675,this.match(R.COMMA),this.state=676,t.right=this.expr(0),this.state=677,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Zt.prototype=Object.create(m.ParserRuleContext.prototype),Zt.prototype.constructor=Zt,Zt.prototype.HIERARCHY=function(){return this.getToken(R.HIERARCHY,0)},Zt.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Zt.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},Zt.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Zt.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Zt.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Zt.prototype.conditionClause=function(){return this.getTypedRuleContext(_n,0)},Zt.prototype.RULE=function(){return this.getToken(R.RULE,0)},Zt.prototype.validationMode=function(){return this.getTypedRuleContext(mn,0)},Zt.prototype.inputModeHierarchy=function(){return this.getTypedRuleContext(xn,0)},Zt.prototype.outputModeHierarchy=function(){return this.getTypedRuleContext(En,0)},Zt.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},Zt.prototype.enterRule=function(t){t instanceof _&&t.enterHierarchyOperators(this)},Zt.prototype.exitRule=function(t){t instanceof _&&t.exitHierarchyOperators(this)},Zt.prototype.accept=function(t){return t instanceof k?t.visitHierarchyOperators(this):t.visitChildren(this)},R.HierarchyOperatorsContext=Zt,R.prototype.hierarchyOperators=function(){var t=new Zt(this,this._ctx,this.state);this.enterRule(t,44,R.RULE_hierarchyOperators);var e=0;try{this.enterOuterAlt(t,1),this.state=681,this.match(R.HIERARCHY),this.state=682,this.match(R.LPAREN),this.state=683,t.op=this.expr(0),this.state=684,this.match(R.COMMA),this.state=685,t.hrName=this.match(R.IDENTIFIER),this.state=687,this._errHandler.sync(this),(e=this._input.LA(1))===R.CONDITION&&(this.state=686,this.conditionClause()),this.state=691,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,52,this._ctx)&&(this.state=689,this.match(R.RULE),this.state=690,t.ruleComponent=this.componentID()),this.state=694,this._errHandler.sync(this),!((e=this._input.LA(1))-215&-32)&&!!(1<<e-215&(1<<R.NON_NULL-215|1<<R.NON_ZERO-215|1<<R.PARTIAL_NULL-215|1<<R.PARTIAL_ZERO-215|1<<R.ALWAYS_NULL-215|1<<R.ALWAYS_ZERO-215))&&(this.state=693,this.validationMode()),this.state=697,this._errHandler.sync(this),(e=this._input.LA(1))!==R.DATASET&&e!==R.RULE&&e!==R.RULE_PRIORITY||(this.state=696,this.inputModeHierarchy()),this.state=700,this._errHandler.sync(this),(e=this._input.LA(1))!==R.ALL&&e!==R.COMPUTED||(this.state=699,this.outputModeHierarchy()),this.state=702,this.match(R.RPAREN)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},te.prototype=Object.create(m.ParserRuleContext.prototype),te.prototype.constructor=te,te.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,R.ValidateHRrulesetContext=ee,ee.prototype.CHECK_HIERARCHY=function(){return this.getToken(R.CHECK_HIERARCHY,0)},ee.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},ee.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},ee.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},ee.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ee.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},ee.prototype.conditionClause=function(){return this.getTypedRuleContext(_n,0)},ee.prototype.RULE=function(){return this.getToken(R.RULE,0)},ee.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},ee.prototype.validationMode=function(){return this.getTypedRuleContext(mn,0)},ee.prototype.inputMode=function(){return this.getTypedRuleContext(kn,0)},ee.prototype.validationOutput=function(){return this.getTypedRuleContext(gn,0)},ee.prototype.enterRule=function(t){t instanceof _&&t.enterValidateHRruleset(this)},ee.prototype.exitRule=function(t){t instanceof _&&t.exitValidateHRruleset(this)},ee.prototype.accept=function(t){return t instanceof k?t.visitValidateHRruleset(this):t.visitChildren(this)},ne.prototype=Object.create(te.prototype),ne.prototype.constructor=ne,R.ValidateDPrulesetContext=ne,ne.prototype.CHECK_DATAPOINT=function(){return this.getToken(R.CHECK_DATAPOINT,0)},ne.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},ne.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ne.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},ne.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ne.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},ne.prototype.COMPONENTS=function(){return this.getToken(R.COMPONENTS,0)},ne.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},ne.prototype.validationOutput=function(){return this.getTypedRuleContext(gn,0)},ne.prototype.enterRule=function(t){t instanceof _&&t.enterValidateDPruleset(this)},ne.prototype.exitRule=function(t){t instanceof _&&t.exitValidateDPruleset(this)},ne.prototype.accept=function(t){return t instanceof k?t.visitValidateDPruleset(this):t.visitChildren(this)},re.prototype=Object.create(te.prototype),re.prototype.constructor=re,R.ValidationSimpleContext=re,re.prototype.CHECK=function(){return this.getToken(R.CHECK,0)},re.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},re.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},re.prototype.expr=function(){return this.getTypedRuleContext(L,0)},re.prototype.imbalanceExpr=function(){return this.getTypedRuleContext(vn,0)},re.prototype.erCode=function(){return this.getTypedRuleContext(Cn,0)},re.prototype.erLevel=function(){return this.getTypedRuleContext(Sn,0)},re.prototype.INVALID=function(){return this.getToken(R.INVALID,0)},re.prototype.ALL=function(){return this.getToken(R.ALL,0)},re.prototype.enterRule=function(t){t instanceof _&&t.enterValidationSimple(this)},re.prototype.exitRule=function(t){t instanceof _&&t.exitValidationSimple(this)},re.prototype.accept=function(t){return t instanceof k?t.visitValidationSimple(this):t.visitChildren(this)},R.ValidationOperatorsContext=te,R.prototype.validationOperators=function(){var t=new te(this,this._ctx,this.state);this.enterRule(t,46,R.RULE_validationOperators);var e=0;try{switch(this.state=765,this._errHandler.sync(this),this._input.LA(1)){case R.CHECK_DATAPOINT:if(t=new ne(this,t),this.enterOuterAlt(t,1),this.state=704,this.match(R.CHECK_DATAPOINT),this.state=705,this.match(R.LPAREN),this.state=706,t.op=this.expr(0),this.state=707,this.match(R.COMMA),this.state=708,t.dpName=this.match(R.IDENTIFIER),this.state=718,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMPONENTS)for(this.state=709,this.match(R.COMPONENTS),this.state=710,this.componentID(),this.state=715,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=711,this.match(R.COMMA),this.state=712,this.componentID(),this.state=717,this._errHandler.sync(this),e=this._input.LA(1);this.state=721,this._errHandler.sync(this),(e=this._input.LA(1))!==R.ALL&&e!==R.INVALID&&e!==R.ALL_MEASURES||(this.state=720,this.validationOutput()),this.state=723,this.match(R.RPAREN);break;case R.CHECK_HIERARCHY:t=new ee(this,t),this.enterOuterAlt(t,2),this.state=725,this.match(R.CHECK_HIERARCHY),this.state=726,this.match(R.LPAREN),this.state=727,t.op=this.expr(0),this.state=728,this.match(R.COMMA),this.state=729,t.hrName=this.match(R.IDENTIFIER),this.state=731,this._errHandler.sync(this),(e=this._input.LA(1))===R.CONDITION&&(this.state=730,this.conditionClause()),this.state=735,this._errHandler.sync(this),(e=this._input.LA(1))===R.RULE&&(this.state=733,this.match(R.RULE),this.state=734,this.componentID()),this.state=738,this._errHandler.sync(this),!((e=this._input.LA(1))-215&-32)&&!!(1<<e-215&(1<<R.NON_NULL-215|1<<R.NON_ZERO-215|1<<R.PARTIAL_NULL-215|1<<R.PARTIAL_ZERO-215|1<<R.ALWAYS_NULL-215|1<<R.ALWAYS_ZERO-215))&&(this.state=737,this.validationMode()),this.state=741,this._errHandler.sync(this),(e=this._input.LA(1))!==R.DATASET&&e!==R.DATASET_PRIORITY||(this.state=740,this.inputMode()),this.state=744,this._errHandler.sync(this),(e=this._input.LA(1))!==R.ALL&&e!==R.INVALID&&e!==R.ALL_MEASURES||(this.state=743,this.validationOutput()),this.state=746,this.match(R.RPAREN);break;case R.CHECK:t=new re(this,t),this.enterOuterAlt(t,3),this.state=748,this.match(R.CHECK),this.state=749,this.match(R.LPAREN),this.state=750,t.op=this.expr(0),this.state=752,this._errHandler.sync(this),(e=this._input.LA(1))===R.ERRORCODE&&(this.state=751,t.codeErr=this.erCode()),this.state=755,this._errHandler.sync(this),(e=this._input.LA(1))===R.ERRORLEVEL&&(this.state=754,t.levelCode=this.erLevel()),this.state=758,this._errHandler.sync(this),(e=this._input.LA(1))===R.IMBALANCE&&(this.state=757,this.imbalanceExpr()),this.state=761,this._errHandler.sync(this),(e=this._input.LA(1))!==R.ALL&&e!==R.INVALID||(this.state=760,t.output=this._input.LT(1),(e=this._input.LA(1))!==R.ALL&&e!==R.INVALID?t.output=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())),this.state=763,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ie.prototype=Object.create(m.ParserRuleContext.prototype),ie.prototype.constructor=ie,ie.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},oe.prototype=Object.create(ie.prototype),oe.prototype.constructor=oe,R.NvlAtomContext=oe,oe.prototype.NVL=function(){return this.getToken(R.NVL,0)},oe.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},oe.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},oe.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},oe.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},oe.prototype.enterRule=function(t){t instanceof _&&t.enterNvlAtom(this)},oe.prototype.exitRule=function(t){t instanceof _&&t.exitNvlAtom(this)},oe.prototype.accept=function(t){return t instanceof k?t.visitNvlAtom(this):t.visitChildren(this)},R.ConditionalOperatorsContext=ie,R.prototype.conditionalOperators=function(){var t=new ie(this,this._ctx,this.state);this.enterRule(t,48,R.RULE_conditionalOperators);try{t=new oe(this,t),this.enterOuterAlt(t,1),this.state=767,this.match(R.NVL),this.state=768,this.match(R.LPAREN),this.state=769,t.left=this.expr(0),this.state=770,this.match(R.COMMA),this.state=771,t.right=this.expr(0),this.state=772,this.match(R.RPAREN)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},se.prototype=Object.create(m.ParserRuleContext.prototype),se.prototype.constructor=se,se.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},ae.prototype=Object.create(se.prototype),ae.prototype.constructor=ae,R.AggrDatasetContext=ae,ae.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},ae.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ae.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},ae.prototype.SUM=function(){return this.getToken(R.SUM,0)},ae.prototype.AVG=function(){return this.getToken(R.AVG,0)},ae.prototype.COUNT=function(){return this.getToken(R.COUNT,0)},ae.prototype.MEDIAN=function(){return this.getToken(R.MEDIAN,0)},ae.prototype.MIN=function(){return this.getToken(R.MIN,0)},ae.prototype.MAX=function(){return this.getToken(R.MAX,0)},ae.prototype.STDDEV_POP=function(){return this.getToken(R.STDDEV_POP,0)},ae.prototype.STDDEV_SAMP=function(){return this.getToken(R.STDDEV_SAMP,0)},ae.prototype.VAR_POP=function(){return this.getToken(R.VAR_POP,0)},ae.prototype.VAR_SAMP=function(){return this.getToken(R.VAR_SAMP,0)},ae.prototype.groupingClause=function(){return this.getTypedRuleContext(Ne,0)},ae.prototype.havingClause=function(){return this.getTypedRuleContext(Le,0)},ae.prototype.enterRule=function(t){t instanceof _&&t.enterAggrDataset(this)},ae.prototype.exitRule=function(t){t instanceof _&&t.exitAggrDataset(this)},ae.prototype.accept=function(t){return t instanceof k?t.visitAggrDataset(this):t.visitChildren(this)},R.AggrOperatorsGroupingContext=se,R.prototype.aggrOperatorsGrouping=function(){var t=new se(this,this._ctx,this.state);this.enterRule(t,50,R.RULE_aggrOperatorsGrouping);var e=0;try{t=new ae(this,t),this.enterOuterAlt(t,1),this.state=774,t.op=this._input.LT(1),!((e=this._input.LA(1))-68&-32)&&1<<e-68&(1<<R.MIN-68|1<<R.MAX-68|1<<R.SUM-68|1<<R.AVG-68|1<<R.MEDIAN-68|1<<R.COUNT-68)||!(e-130&-32)&&1<<e-130&(1<<R.STDDEV_POP-130|1<<R.STDDEV_SAMP-130|1<<R.VAR_POP-130|1<<R.VAR_SAMP-130)?(this._errHandler.reportMatch(this),this.consume()):t.op=this._errHandler.recoverInline(this),this.state=775,this.match(R.LPAREN),this.state=776,this.expr(0),this.state=781,this._errHandler.sync(this),(e=this._input.LA(1))===R.GROUP&&(this.state=777,this.groupingClause(),this.state=779,this._errHandler.sync(this),(e=this._input.LA(1))===R.HAVING&&(this.state=778,this.havingClause())),this.state=783,this.match(R.RPAREN)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ce.prototype=Object.create(m.ParserRuleContext.prototype),ce.prototype.constructor=ce,ce.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},le.prototype=Object.create(ce.prototype),le.prototype.constructor=le,R.LagOrLeadAnContext=le,le.prototype.LPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.LPAREN):this.getToken(R.LPAREN,t)},le.prototype.expr=function(){return this.getTypedRuleContext(L,0)},le.prototype.OVER=function(){return this.getToken(R.OVER,0)},le.prototype.RPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RPAREN):this.getToken(R.RPAREN,t)},le.prototype.LAG=function(){return this.getToken(R.LAG,0)},le.prototype.LEAD=function(){return this.getToken(R.LEAD,0)},le.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},le.prototype.orderByClause=function(){return this.getTypedRuleContext(be,0)},le.prototype.signedInteger=function(){return this.getTypedRuleContext(Ce,0)},le.prototype.partitionByClause=function(){return this.getTypedRuleContext(we,0)},le.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},le.prototype.enterRule=function(t){t instanceof _&&t.enterLagOrLeadAn(this)},le.prototype.exitRule=function(t){t instanceof _&&t.exitLagOrLeadAn(this)},le.prototype.accept=function(t){return t instanceof k?t.visitLagOrLeadAn(this):t.visitChildren(this)},ue.prototype=Object.create(ce.prototype),ue.prototype.constructor=ue,R.RatioToReportAnContext=ue,ue.prototype.LPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.LPAREN):this.getToken(R.LPAREN,t)},ue.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ue.prototype.OVER=function(){return this.getToken(R.OVER,0)},ue.prototype.RPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RPAREN):this.getToken(R.RPAREN,t)},ue.prototype.RATIO_TO_REPORT=function(){return this.getToken(R.RATIO_TO_REPORT,0)},ue.prototype.partitionByClause=function(){return this.getTypedRuleContext(we,0)},ue.prototype.enterRule=function(t){t instanceof _&&t.enterRatioToReportAn(this)},ue.prototype.exitRule=function(t){t instanceof _&&t.exitRatioToReportAn(this)},ue.prototype.accept=function(t){return t instanceof k?t.visitRatioToReportAn(this):t.visitChildren(this)},pe.prototype=Object.create(ce.prototype),pe.prototype.constructor=pe,R.AnSimpleFunctionContext=pe,pe.prototype.LPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.LPAREN):this.getToken(R.LPAREN,t)},pe.prototype.expr=function(){return this.getTypedRuleContext(L,0)},pe.prototype.OVER=function(){return this.getToken(R.OVER,0)},pe.prototype.RPAREN=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.RPAREN):this.getToken(R.RPAREN,t)},pe.prototype.SUM=function(){return this.getToken(R.SUM,0)},pe.prototype.AVG=function(){return this.getToken(R.AVG,0)},pe.prototype.COUNT=function(){return this.getToken(R.COUNT,0)},pe.prototype.MEDIAN=function(){return this.getToken(R.MEDIAN,0)},pe.prototype.MIN=function(){return this.getToken(R.MIN,0)},pe.prototype.MAX=function(){return this.getToken(R.MAX,0)},pe.prototype.STDDEV_POP=function(){return this.getToken(R.STDDEV_POP,0)},pe.prototype.STDDEV_SAMP=function(){return this.getToken(R.STDDEV_SAMP,0)},pe.prototype.VAR_POP=function(){return this.getToken(R.VAR_POP,0)},pe.prototype.VAR_SAMP=function(){return this.getToken(R.VAR_SAMP,0)},pe.prototype.FIRST_VALUE=function(){return this.getToken(R.FIRST_VALUE,0)},pe.prototype.LAST_VALUE=function(){return this.getToken(R.LAST_VALUE,0)},pe.prototype.partitionByClause=function(){return this.getTypedRuleContext(we,0)},pe.prototype.orderByClause=function(){return this.getTypedRuleContext(be,0)},pe.prototype.windowingClause=function(){return this.getTypedRuleContext(Re,0)},pe.prototype.enterRule=function(t){t instanceof _&&t.enterAnSimpleFunction(this)},pe.prototype.exitRule=function(t){t instanceof _&&t.exitAnSimpleFunction(this)},pe.prototype.accept=function(t){return t instanceof k?t.visitAnSimpleFunction(this):t.visitChildren(this)},R.AnFunctionContext=ce,R.prototype.anFunction=function(){var t=new ce(this,this._ctx,this.state);this.enterRule(t,52,R.RULE_anFunction);var e=0;try{switch(this.state=831,this._errHandler.sync(this),this._input.LA(1)){case R.MIN:case R.MAX:case R.SUM:case R.AVG:case R.MEDIAN:case R.COUNT:case R.STDDEV_POP:case R.STDDEV_SAMP:case R.VAR_POP:case R.VAR_SAMP:case R.FIRST_VALUE:case R.LAST_VALUE:t=new pe(this,t),this.enterOuterAlt(t,1),this.state=785,t.op=this._input.LT(1),!((e=this._input.LA(1))-68&-32)&&1<<e-68&(1<<R.MIN-68|1<<R.MAX-68|1<<R.SUM-68|1<<R.AVG-68|1<<R.MEDIAN-68|1<<R.COUNT-68)||!(e-130&-32)&&1<<e-130&(1<<R.STDDEV_POP-130|1<<R.STDDEV_SAMP-130|1<<R.VAR_POP-130|1<<R.VAR_SAMP-130|1<<R.FIRST_VALUE-130|1<<R.LAST_VALUE-130)?(this._errHandler.reportMatch(this),this.consume()):t.op=this._errHandler.recoverInline(this),this.state=786,this.match(R.LPAREN),this.state=787,this.expr(0),this.state=788,this.match(R.OVER),this.state=789,this.match(R.LPAREN),this.state=791,this._errHandler.sync(this),(e=this._input.LA(1))===R.PARTITION&&(this.state=790,t.partition=this.partitionByClause()),this.state=794,this._errHandler.sync(this),(e=this._input.LA(1))===R.ORDER&&(this.state=793,t.orderBy=this.orderByClause()),this.state=797,this._errHandler.sync(this),(e=this._input.LA(1))!==R.DATA&&e!==R.RANGE||(this.state=796,t.windowing=this.windowingClause()),this.state=799,this.match(R.RPAREN),this.state=800,this.match(R.RPAREN);break;case R.LAG:case R.LEAD:t=new le(this,t),this.enterOuterAlt(t,2),this.state=802,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.LAG&&e!==R.LEAD?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=803,this.match(R.LPAREN),this.state=804,this.expr(0),this.state=810,this._errHandler.sync(this),(e=this._input.LA(1))===R.COMMA&&(this.state=805,this.match(R.COMMA),this.state=806,t.offet=this.signedInteger(),this.state=808,this._errHandler.sync(this),((e=this._input.LA(1))===R.NULL_CONSTANT||!(e-231&-32)&&!!(1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.BOOLEAN_CONSTANT-231|1<<R.STRING_CONSTANT-231)))&&(this.state=807,t.defaultValue=this.constant())),this.state=812,this.match(R.OVER),this.state=813,this.match(R.LPAREN),this.state=815,this._errHandler.sync(this),(e=this._input.LA(1))===R.PARTITION&&(this.state=814,t.partition=this.partitionByClause()),this.state=817,t.orderBy=this.orderByClause(),this.state=819,this.match(R.RPAREN),this.state=820,this.match(R.RPAREN);break;case R.RATIO_TO_REPORT:t=new ue(this,t),this.enterOuterAlt(t,3),this.state=822,t.op=this.match(R.RATIO_TO_REPORT),this.state=823,this.match(R.LPAREN),this.state=824,this.expr(0),this.state=825,this.match(R.OVER),this.state=826,this.match(R.LPAREN),this.state=827,t.partition=this.partitionByClause(),this.state=828,this.match(R.RPAREN),this.state=829,this.match(R.RPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},he.prototype=Object.create(m.ParserRuleContext.prototype),he.prototype.constructor=he,he.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},fe.prototype=Object.create(he.prototype),fe.prototype.constructor=fe,R.LevenshteinAtomContext=fe,fe.prototype.LEVENSHTEIN=function(){return this.getToken(R.LEVENSHTEIN,0)},fe.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},fe.prototype.COMMA=function(){return this.getToken(R.COMMA,0)},fe.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},fe.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},fe.prototype.enterRule=function(t){t instanceof _&&t.enterLevenshteinAtom(this)},fe.prototype.exitRule=function(t){t instanceof _&&t.exitLevenshteinAtom(this)},fe.prototype.accept=function(t){return t instanceof k?t.visitLevenshteinAtom(this):t.visitChildren(this)},R.DistanceOperatorsContext=he,R.prototype.distanceOperators=function(){var t=new he(this,this._ctx,this.state);this.enterRule(t,54,R.RULE_distanceOperators);try{t=new fe(this,t),this.enterOuterAlt(t,1),this.state=833,this.match(R.LEVENSHTEIN),this.state=834,this.match(R.LPAREN),this.state=835,t.left=this.expr(0),this.state=836,this.match(R.COMMA),this.state=837,t.right=this.expr(0),this.state=838,this.match(R.RPAREN)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},de.prototype=Object.create(m.ParserRuleContext.prototype),de.prototype.constructor=de,de.prototype.TO=function(){return this.getToken(R.TO,0)},de.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},de.prototype.enterRule=function(t){t instanceof _&&t.enterRenameClauseItem(this)},de.prototype.exitRule=function(t){t instanceof _&&t.exitRenameClauseItem(this)},de.prototype.accept=function(t){return t instanceof k?t.visitRenameClauseItem(this):t.visitChildren(this)},R.RenameClauseItemContext=de,R.prototype.renameClauseItem=function(){var t=new de(this,this._ctx,this.state);this.enterRule(t,56,R.RULE_renameClauseItem);try{this.enterOuterAlt(t,1),this.state=840,t.fromName=this.componentID(),this.state=841,this.match(R.TO),this.state=842,t.toName=this.componentID()}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},ye.prototype=Object.create(m.ParserRuleContext.prototype),ye.prototype.constructor=ye,ye.prototype.aggrFunctionClause=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(ge):this.getTypedRuleContext(ge,t)},ye.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ye.prototype.enterRule=function(t){t instanceof _&&t.enterAggregateClause(this)},ye.prototype.exitRule=function(t){t instanceof _&&t.exitAggregateClause(this)},ye.prototype.accept=function(t){return t instanceof k?t.visitAggregateClause(this):t.visitChildren(this)},R.AggregateClauseContext=ye,R.prototype.aggregateClause=function(){var t=new ye(this,this._ctx,this.state);this.enterRule(t,58,R.RULE_aggregateClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=844,this.aggrFunctionClause(),this.state=849,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=845,this.match(R.COMMA),this.state=846,this.aggrFunctionClause(),this.state=851,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ge.prototype=Object.create(m.ParserRuleContext.prototype),ge.prototype.constructor=ge,ge.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},ge.prototype.ASSIGN=function(){return this.getToken(R.ASSIGN,0)},ge.prototype.aggrOperatorsGrouping=function(){return this.getTypedRuleContext(se,0)},ge.prototype.componentRole=function(){return this.getTypedRuleContext(In,0)},ge.prototype.enterRule=function(t){t instanceof _&&t.enterAggrFunctionClause(this)},ge.prototype.exitRule=function(t){t instanceof _&&t.exitAggrFunctionClause(this)},ge.prototype.accept=function(t){return t instanceof k?t.visitAggrFunctionClause(this):t.visitChildren(this)},R.AggrFunctionClauseContext=ge,R.prototype.aggrFunctionClause=function(){var t=new ge(this,this._ctx,this.state);this.enterRule(t,60,R.RULE_aggrFunctionClause);var e=0;try{this.enterOuterAlt(t,1),this.state=853,this._errHandler.sync(this),(!((e=this._input.LA(1))-91&-32)&&!!(1<<e-91&(1<<R.DIMENSION-91|1<<R.MEASURE-91|1<<R.ATTRIBUTE-91|1<<R.VIRAL-91))||e===R.COMPONENT)&&(this.state=852,this.componentRole()),this.state=855,this.componentID(),this.state=856,this.match(R.ASSIGN),this.state=857,this.aggrOperatorsGrouping()}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},me.prototype=Object.create(m.ParserRuleContext.prototype),me.prototype.constructor=me,me.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},me.prototype.ASSIGN=function(){return this.getToken(R.ASSIGN,0)},me.prototype.expr=function(){return this.getTypedRuleContext(L,0)},me.prototype.componentRole=function(){return this.getTypedRuleContext(In,0)},me.prototype.enterRule=function(t){t instanceof _&&t.enterCalcClauseItem(this)},me.prototype.exitRule=function(t){t instanceof _&&t.exitCalcClauseItem(this)},me.prototype.accept=function(t){return t instanceof k?t.visitCalcClauseItem(this):t.visitChildren(this)},R.CalcClauseItemContext=me,R.prototype.calcClauseItem=function(){var t=new me(this,this._ctx,this.state);this.enterRule(t,62,R.RULE_calcClauseItem);var e=0;try{this.enterOuterAlt(t,1),this.state=860,this._errHandler.sync(this),(!((e=this._input.LA(1))-91&-32)&&!!(1<<e-91&(1<<R.DIMENSION-91|1<<R.MEASURE-91|1<<R.ATTRIBUTE-91|1<<R.VIRAL-91))||e===R.COMPONENT)&&(this.state=859,this.componentRole()),this.state=862,this.componentID(),this.state=863,this.match(R.ASSIGN),this.state=864,this.expr(0)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},_e.prototype=Object.create(m.ParserRuleContext.prototype),_e.prototype.constructor=_e,_e.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},_e.prototype.EQ=function(){return this.getToken(R.EQ,0)},_e.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},_e.prototype.enterRule=function(t){t instanceof _&&t.enterSubspaceClauseItem(this)},_e.prototype.exitRule=function(t){t instanceof _&&t.exitSubspaceClauseItem(this)},_e.prototype.accept=function(t){return t instanceof k?t.visitSubspaceClauseItem(this):t.visitChildren(this)},R.SubspaceClauseItemContext=_e,R.prototype.subspaceClauseItem=function(){var t=new _e(this,this._ctx,this.state);this.enterRule(t,64,R.RULE_subspaceClauseItem);try{this.enterOuterAlt(t,1),this.state=866,this.componentID(),this.state=867,this.match(R.EQ),this.state=868,this.constant()}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},ke.prototype=Object.create(m.ParserRuleContext.prototype),ke.prototype.constructor=ke,ke.prototype.joinClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(xe):this.getTypedRuleContext(xe,t)},ke.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ke.prototype.enterRule=function(t){t instanceof _&&t.enterJoinClauseWithoutUsing(this)},ke.prototype.exitRule=function(t){t instanceof _&&t.exitJoinClauseWithoutUsing(this)},ke.prototype.accept=function(t){return t instanceof k?t.visitJoinClauseWithoutUsing(this):t.visitChildren(this)},R.JoinClauseWithoutUsingContext=ke,R.prototype.joinClauseWithoutUsing=function(){var t=new ke(this,this._ctx,this.state);this.enterRule(t,66,R.RULE_joinClauseWithoutUsing);var e=0;try{for(this.enterOuterAlt(t,1),this.state=870,this.joinClauseItem(),this.state=875,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=871,this.match(R.COMMA),this.state=872,this.joinClauseItem(),this.state=877,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ve.prototype=Object.create(m.ParserRuleContext.prototype),ve.prototype.constructor=ve,ve.prototype.joinClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(xe):this.getTypedRuleContext(xe,t)},ve.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},ve.prototype.USING=function(){return this.getToken(R.USING,0)},ve.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},ve.prototype.enterRule=function(t){t instanceof _&&t.enterJoinClause(this)},ve.prototype.exitRule=function(t){t instanceof _&&t.exitJoinClause(this)},ve.prototype.accept=function(t){return t instanceof k?t.visitJoinClause(this):t.visitChildren(this)},R.JoinClauseContext=ve,R.prototype.joinClause=function(){var t=new ve(this,this._ctx,this.state);this.enterRule(t,68,R.RULE_joinClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=878,this.joinClauseItem(),this.state=883,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=879,this.match(R.COMMA),this.state=880,this.joinClauseItem(),this.state=885,this._errHandler.sync(this),e=this._input.LA(1);if(this.state=895,this._errHandler.sync(this),(e=this._input.LA(1))===R.USING)for(this.state=886,this.match(R.USING),this.state=887,this.componentID(),this.state=892,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=888,this.match(R.COMMA),this.state=889,this.componentID(),this.state=894,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},xe.prototype=Object.create(m.ParserRuleContext.prototype),xe.prototype.constructor=xe,xe.prototype.expr=function(){return this.getTypedRuleContext(L,0)},xe.prototype.AS=function(){return this.getToken(R.AS,0)},xe.prototype.alias=function(){return this.getTypedRuleContext(Tn,0)},xe.prototype.enterRule=function(t){t instanceof _&&t.enterJoinClauseItem(this)},xe.prototype.exitRule=function(t){t instanceof _&&t.exitJoinClauseItem(this)},xe.prototype.accept=function(t){return t instanceof k?t.visitJoinClauseItem(this):t.visitChildren(this)},R.JoinClauseItemContext=xe,R.prototype.joinClauseItem=function(){var t=new xe(this,this._ctx,this.state);this.enterRule(t,70,R.RULE_joinClauseItem);try{this.enterOuterAlt(t,1),this.state=897,this.expr(0),this.state=900,this._errHandler.sync(this),this._input.LA(1)===R.AS&&(this.state=898,this.match(R.AS),this.state=899,this.alias())}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ee.prototype=Object.create(m.ParserRuleContext.prototype),Ee.prototype.constructor=Ee,Ee.prototype.filterClause=function(){return this.getTypedRuleContext(ut,0)},Ee.prototype.calcClause=function(){return this.getTypedRuleContext(pt,0)},Ee.prototype.joinApplyClause=function(){return this.getTypedRuleContext(Te,0)},Ee.prototype.aggrClause=function(){return this.getTypedRuleContext(lt,0)},Ee.prototype.keepOrDropClause=function(){return this.getTypedRuleContext(ht,0)},Ee.prototype.renameClause=function(){return this.getTypedRuleContext(ct,0)},Ee.prototype.enterRule=function(t){t instanceof _&&t.enterJoinBody(this)},Ee.prototype.exitRule=function(t){t instanceof _&&t.exitJoinBody(this)},Ee.prototype.accept=function(t){return t instanceof k?t.visitJoinBody(this):t.visitChildren(this)},R.JoinBodyContext=Ee,R.prototype.joinBody=function(){var t=new Ee(this,this._ctx,this.state);this.enterRule(t,72,R.RULE_joinBody);var e=0;try{switch(this.enterOuterAlt(t,1),this.state=903,this._errHandler.sync(this),(e=this._input.LA(1))===R.FILTER&&(this.state=902,this.filterClause()),this.state=908,this._errHandler.sync(this),this._input.LA(1)){case R.CALC:this.state=905,this.calcClause();break;case R.APPLY:this.state=906,this.joinApplyClause();break;case R.AGGREGATE:this.state=907,this.aggrClause();case R.RPAREN:case R.DROP:case R.KEEP:case R.RENAME:}this.state=911,this._errHandler.sync(this),(e=this._input.LA(1))!==R.DROP&&e!==R.KEEP||(this.state=910,this.keepOrDropClause()),this.state=914,this._errHandler.sync(this),(e=this._input.LA(1))===R.RENAME&&(this.state=913,this.renameClause())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Te.prototype=Object.create(m.ParserRuleContext.prototype),Te.prototype.constructor=Te,Te.prototype.APPLY=function(){return this.getToken(R.APPLY,0)},Te.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Te.prototype.enterRule=function(t){t instanceof _&&t.enterJoinApplyClause(this)},Te.prototype.exitRule=function(t){t instanceof _&&t.exitJoinApplyClause(this)},Te.prototype.accept=function(t){return t instanceof k?t.visitJoinApplyClause(this):t.visitChildren(this)},R.JoinApplyClauseContext=Te,R.prototype.joinApplyClause=function(){var t=new Te(this,this._ctx,this.state);this.enterRule(t,74,R.RULE_joinApplyClause);try{this.enterOuterAlt(t,1),this.state=916,this.match(R.APPLY),this.state=917,this.expr(0)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},we.prototype=Object.create(m.ParserRuleContext.prototype),we.prototype.constructor=we,we.prototype.PARTITION=function(){return this.getToken(R.PARTITION,0)},we.prototype.BY=function(){return this.getToken(R.BY,0)},we.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},we.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},we.prototype.enterRule=function(t){t instanceof _&&t.enterPartitionByClause(this)},we.prototype.exitRule=function(t){t instanceof _&&t.exitPartitionByClause(this)},we.prototype.accept=function(t){return t instanceof k?t.visitPartitionByClause(this):t.visitChildren(this)},R.PartitionByClauseContext=we,R.prototype.partitionByClause=function(){var t=new we(this,this._ctx,this.state);this.enterRule(t,76,R.RULE_partitionByClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=919,this.match(R.PARTITION),this.state=920,this.match(R.BY),this.state=921,this.componentID(),this.state=926,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=922,this.match(R.COMMA),this.state=923,this.componentID(),this.state=928,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},be.prototype=Object.create(m.ParserRuleContext.prototype),be.prototype.constructor=be,be.prototype.ORDER=function(){return this.getToken(R.ORDER,0)},be.prototype.BY=function(){return this.getToken(R.BY,0)},be.prototype.orderByItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Ae):this.getTypedRuleContext(Ae,t)},be.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},be.prototype.enterRule=function(t){t instanceof _&&t.enterOrderByClause(this)},be.prototype.exitRule=function(t){t instanceof _&&t.exitOrderByClause(this)},be.prototype.accept=function(t){return t instanceof k?t.visitOrderByClause(this):t.visitChildren(this)},R.OrderByClauseContext=be,R.prototype.orderByClause=function(){var t=new be(this,this._ctx,this.state);this.enterRule(t,78,R.RULE_orderByClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=929,this.match(R.ORDER),this.state=930,this.match(R.BY),this.state=931,this.orderByItem(),this.state=936,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=932,this.match(R.COMMA),this.state=933,this.orderByItem(),this.state=938,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Ae.prototype=Object.create(m.ParserRuleContext.prototype),Ae.prototype.constructor=Ae,Ae.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},Ae.prototype.ASC=function(){return this.getToken(R.ASC,0)},Ae.prototype.DESC=function(){return this.getToken(R.DESC,0)},Ae.prototype.enterRule=function(t){t instanceof _&&t.enterOrderByItem(this)},Ae.prototype.exitRule=function(t){t instanceof _&&t.exitOrderByItem(this)},Ae.prototype.accept=function(t){return t instanceof k?t.visitOrderByItem(this):t.visitChildren(this)},R.OrderByItemContext=Ae,R.prototype.orderByItem=function(){var t=new Ae(this,this._ctx,this.state);this.enterRule(t,80,R.RULE_orderByItem);var e=0;try{this.enterOuterAlt(t,1),this.state=939,this.componentID(),this.state=941,this._errHandler.sync(this),(e=this._input.LA(1))!==R.ASC&&e!==R.DESC||(this.state=940,(e=this._input.LA(1))!==R.ASC&&e!==R.DESC?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()))}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Re.prototype=Object.create(m.ParserRuleContext.prototype),Re.prototype.constructor=Re,Re.prototype.BETWEEN=function(){return this.getToken(R.BETWEEN,0)},Re.prototype.AND=function(){return this.getToken(R.AND,0)},Re.prototype.limitClauseItem=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Se):this.getTypedRuleContext(Se,t)},Re.prototype.RANGE=function(){return this.getToken(R.RANGE,0)},Re.prototype.DATA=function(){return this.getToken(R.DATA,0)},Re.prototype.POINTS=function(){return this.getToken(R.POINTS,0)},Re.prototype.enterRule=function(t){t instanceof _&&t.enterWindowingClause(this)},Re.prototype.exitRule=function(t){t instanceof _&&t.exitWindowingClause(this)},Re.prototype.accept=function(t){return t instanceof k?t.visitWindowingClause(this):t.visitChildren(this)},R.WindowingClauseContext=Re,R.prototype.windowingClause=function(){var t=new Re(this,this._ctx,this.state);this.enterRule(t,82,R.RULE_windowingClause);try{switch(this.enterOuterAlt(t,1),this.state=946,this._errHandler.sync(this),this._input.LA(1)){case R.DATA:this.state=943,this.match(R.DATA),this.state=944,this.match(R.POINTS);break;case R.RANGE:this.state=945,this.match(R.RANGE);break;default:throw new m.error.NoViableAltException(this)}this.state=948,this.match(R.BETWEEN),this.state=949,t.from_=this.limitClauseItem(),this.state=950,this.match(R.AND),this.state=951,t.to_=this.limitClauseItem()}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ce.prototype=Object.create(m.ParserRuleContext.prototype),Ce.prototype.constructor=Ce,Ce.prototype.INTEGER_CONSTANT=function(){return this.getToken(R.INTEGER_CONSTANT,0)},Ce.prototype.enterRule=function(t){t instanceof _&&t.enterSignedInteger(this)},Ce.prototype.exitRule=function(t){t instanceof _&&t.exitSignedInteger(this)},Ce.prototype.accept=function(t){return t instanceof k?t.visitSignedInteger(this):t.visitChildren(this)},R.SignedIntegerContext=Ce,R.prototype.signedInteger=function(){var t=new Ce(this,this._ctx,this.state);this.enterRule(t,84,R.RULE_signedInteger);try{this.enterOuterAlt(t,1),this.state=953,this.match(R.INTEGER_CONSTANT)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Se.prototype=Object.create(m.ParserRuleContext.prototype),Se.prototype.constructor=Se,Se.prototype.INTEGER_CONSTANT=function(){return this.getToken(R.INTEGER_CONSTANT,0)},Se.prototype.PRECEDING=function(){return this.getToken(R.PRECEDING,0)},Se.prototype.FOLLOWING=function(){return this.getToken(R.FOLLOWING,0)},Se.prototype.CURRENT=function(){return this.getToken(R.CURRENT,0)},Se.prototype.DATA=function(){return this.getToken(R.DATA,0)},Se.prototype.POINT=function(){return this.getToken(R.POINT,0)},Se.prototype.UNBOUNDED=function(){return this.getToken(R.UNBOUNDED,0)},Se.prototype.enterRule=function(t){t instanceof _&&t.enterLimitClauseItem(this)},Se.prototype.exitRule=function(t){t instanceof _&&t.exitLimitClauseItem(this)},Se.prototype.accept=function(t){return t instanceof k?t.visitLimitClauseItem(this):t.visitChildren(this)},R.LimitClauseItemContext=Se,R.prototype.limitClauseItem=function(){var t=new Se(this,this._ctx,this.state);this.enterRule(t,86,R.RULE_limitClauseItem);try{switch(this.state=966,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,94,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=955,this.match(R.INTEGER_CONSTANT),this.state=956,this.match(R.PRECEDING);break;case 2:this.enterOuterAlt(t,2),this.state=957,this.match(R.INTEGER_CONSTANT),this.state=958,this.match(R.FOLLOWING);break;case 3:this.enterOuterAlt(t,3),this.state=959,this.match(R.CURRENT),this.state=960,this.match(R.DATA),this.state=961,this.match(R.POINT);break;case 4:this.enterOuterAlt(t,4),this.state=962,this.match(R.UNBOUNDED),this.state=963,this.match(R.PRECEDING);break;case 5:this.enterOuterAlt(t,5),this.state=964,this.match(R.UNBOUNDED),this.state=965,this.match(R.FOLLOWING)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ne.prototype=Object.create(m.ParserRuleContext.prototype),Ne.prototype.constructor=Ne,Ne.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Oe.prototype=Object.create(Ne.prototype),Oe.prototype.constructor=Oe,R.GroupAllContext=Oe,Oe.prototype.GROUP=function(){return this.getToken(R.GROUP,0)},Oe.prototype.ALL=function(){return this.getToken(R.ALL,0)},Oe.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Oe.prototype.enterRule=function(t){t instanceof _&&t.enterGroupAll(this)},Oe.prototype.exitRule=function(t){t instanceof _&&t.exitGroupAll(this)},Oe.prototype.accept=function(t){return t instanceof k?t.visitGroupAll(this):t.visitChildren(this)},Ie.prototype=Object.create(Ne.prototype),Ie.prototype.constructor=Ie,R.GroupByOrExceptContext=Ie,Ie.prototype.GROUP=function(){return this.getToken(R.GROUP,0)},Ie.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},Ie.prototype.BY=function(){return this.getToken(R.BY,0)},Ie.prototype.EXCEPT=function(){return this.getToken(R.EXCEPT,0)},Ie.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ie.prototype.enterRule=function(t){t instanceof _&&t.enterGroupByOrExcept(this)},Ie.prototype.exitRule=function(t){t instanceof _&&t.exitGroupByOrExcept(this)},Ie.prototype.accept=function(t){return t instanceof k?t.visitGroupByOrExcept(this):t.visitChildren(this)},R.GroupingClauseContext=Ne,R.prototype.groupingClause=function(){var t=new Ne(this,this._ctx,this.state);this.enterRule(t,88,R.RULE_groupingClause);var e=0;try{switch(this.state=981,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,96,this._ctx)){case 1:for(t=new Ie(this,t),this.enterOuterAlt(t,1),this.state=968,this.match(R.GROUP),this.state=969,t.op=this._input.LT(1),(e=this._input.LA(1))!==R.BY&&e!==R.EXCEPT?t.op=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=970,this.componentID(),this.state=975,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=971,this.match(R.COMMA),this.state=972,this.componentID(),this.state=977,this._errHandler.sync(this),e=this._input.LA(1);break;case 2:t=new Oe(this,t),this.enterOuterAlt(t,2),this.state=978,this.match(R.GROUP),this.state=979,this.match(R.ALL),this.state=980,this.expr(0)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Le.prototype=Object.create(m.ParserRuleContext.prototype),Le.prototype.constructor=Le,Le.prototype.HAVING=function(){return this.getToken(R.HAVING,0)},Le.prototype.expr=function(){return this.getTypedRuleContext(L,0)},Le.prototype.enterRule=function(t){t instanceof _&&t.enterHavingClause(this)},Le.prototype.exitRule=function(t){t instanceof _&&t.exitHavingClause(this)},Le.prototype.accept=function(t){return t instanceof k?t.visitHavingClause(this):t.visitChildren(this)},R.HavingClauseContext=Le,R.prototype.havingClause=function(){var t=new Le(this,this._ctx,this.state);this.enterRule(t,90,R.RULE_havingClause);try{this.enterOuterAlt(t,1),this.state=983,this.match(R.HAVING),this.state=984,this.expr(0)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Pe.prototype=Object.create(m.ParserRuleContext.prototype),Pe.prototype.constructor=Pe,Pe.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},Pe.prototype.inputParameterType=function(){return this.getTypedRuleContext(Me,0)},Pe.prototype.DEFAULT=function(){return this.getToken(R.DEFAULT,0)},Pe.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},Pe.prototype.enterRule=function(t){t instanceof _&&t.enterParameterItem(this)},Pe.prototype.exitRule=function(t){t instanceof _&&t.exitParameterItem(this)},Pe.prototype.accept=function(t){return t instanceof k?t.visitParameterItem(this):t.visitChildren(this)},R.ParameterItemContext=Pe,R.prototype.parameterItem=function(){var t=new Pe(this,this._ctx,this.state);this.enterRule(t,92,R.RULE_parameterItem);try{this.enterOuterAlt(t,1),this.state=986,this.varID(),this.state=987,this.inputParameterType(),this.state=990,this._errHandler.sync(this),this._input.LA(1)===R.DEFAULT&&(this.state=988,this.match(R.DEFAULT),this.state=989,this.constant())}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},De.prototype=Object.create(m.ParserRuleContext.prototype),De.prototype.constructor=De,De.prototype.scalarType=function(){return this.getTypedRuleContext(Ue,0)},De.prototype.datasetType=function(){return this.getTypedRuleContext(He,0)},De.prototype.componentType=function(){return this.getTypedRuleContext(je,0)},De.prototype.enterRule=function(t){t instanceof _&&t.enterOutputParameterType(this)},De.prototype.exitRule=function(t){t instanceof _&&t.exitOutputParameterType(this)},De.prototype.accept=function(t){return t instanceof k?t.visitOutputParameterType(this):t.visitChildren(this)},R.OutputParameterTypeContext=De,R.prototype.outputParameterType=function(){var t=new De(this,this._ctx,this.state);this.enterRule(t,94,R.RULE_outputParameterType);try{switch(this.state=995,this._errHandler.sync(this),this._input.LA(1)){case R.BOOLEAN:case R.DATE:case R.TIME_PERIOD:case R.NUMBER:case R.STRING:case R.TIME:case R.INTEGER:case R.DURATION:case R.SCALAR:case R.IDENTIFIER:this.enterOuterAlt(t,1),this.state=992,this.scalarType();break;case R.DATASET:this.enterOuterAlt(t,2),this.state=993,this.datasetType();break;case R.DIMENSION:case R.MEASURE:case R.ATTRIBUTE:case R.VIRAL:case R.COMPONENT:this.enterOuterAlt(t,3),this.state=994,this.componentType();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},ze.prototype=Object.create(m.ParserRuleContext.prototype),ze.prototype.constructor=ze,ze.prototype.componentType=function(){return this.getTypedRuleContext(je,0)},ze.prototype.scalarType=function(){return this.getTypedRuleContext(Ue,0)},ze.prototype.enterRule=function(t){t instanceof _&&t.enterOutputParameterTypeComponent(this)},ze.prototype.exitRule=function(t){t instanceof _&&t.exitOutputParameterTypeComponent(this)},ze.prototype.accept=function(t){return t instanceof k?t.visitOutputParameterTypeComponent(this):t.visitChildren(this)},R.OutputParameterTypeComponentContext=ze,R.prototype.outputParameterTypeComponent=function(){var t=new ze(this,this._ctx,this.state);this.enterRule(t,96,R.RULE_outputParameterTypeComponent);try{switch(this.state=999,this._errHandler.sync(this),this._input.LA(1)){case R.DIMENSION:case R.MEASURE:case R.ATTRIBUTE:case R.VIRAL:case R.COMPONENT:this.enterOuterAlt(t,1),this.state=997,this.componentType();break;case R.BOOLEAN:case R.DATE:case R.TIME_PERIOD:case R.NUMBER:case R.STRING:case R.TIME:case R.INTEGER:case R.DURATION:case R.SCALAR:case R.IDENTIFIER:this.enterOuterAlt(t,2),this.state=998,this.scalarType();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Me.prototype=Object.create(m.ParserRuleContext.prototype),Me.prototype.constructor=Me,Me.prototype.scalarType=function(){return this.getTypedRuleContext(Ue,0)},Me.prototype.datasetType=function(){return this.getTypedRuleContext(He,0)},Me.prototype.scalarSetType=function(){return this.getTypedRuleContext(Ve,0)},Me.prototype.rulesetType=function(){return this.getTypedRuleContext(Fe,0)},Me.prototype.componentType=function(){return this.getTypedRuleContext(je,0)},Me.prototype.enterRule=function(t){t instanceof _&&t.enterInputParameterType(this)},Me.prototype.exitRule=function(t){t instanceof _&&t.exitInputParameterType(this)},Me.prototype.accept=function(t){return t instanceof k?t.visitInputParameterType(this):t.visitChildren(this)},R.InputParameterTypeContext=Me,R.prototype.inputParameterType=function(){var t=new Me(this,this._ctx,this.state);this.enterRule(t,98,R.RULE_inputParameterType);try{switch(this.state=1006,this._errHandler.sync(this),this._input.LA(1)){case R.BOOLEAN:case R.DATE:case R.TIME_PERIOD:case R.NUMBER:case R.STRING:case R.TIME:case R.INTEGER:case R.DURATION:case R.SCALAR:case R.IDENTIFIER:this.enterOuterAlt(t,1),this.state=1001,this.scalarType();break;case R.DATASET:this.enterOuterAlt(t,2),this.state=1002,this.datasetType();break;case R.SET:this.enterOuterAlt(t,3),this.state=1003,this.scalarSetType();break;case R.DATAPOINT:case R.HIERARCHICAL:case R.RULESET:case R.DATAPOINT_ON_VD:case R.DATAPOINT_ON_VAR:case R.HIERARCHICAL_ON_VD:case R.HIERARCHICAL_ON_VAR:this.enterOuterAlt(t,4),this.state=1004,this.rulesetType();break;case R.DIMENSION:case R.MEASURE:case R.ATTRIBUTE:case R.VIRAL:case R.COMPONENT:this.enterOuterAlt(t,5),this.state=1005,this.componentType();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Fe.prototype=Object.create(m.ParserRuleContext.prototype),Fe.prototype.constructor=Fe,Fe.prototype.RULESET=function(){return this.getToken(R.RULESET,0)},Fe.prototype.dpRuleset=function(){return this.getTypedRuleContext(Be,0)},Fe.prototype.hrRuleset=function(){return this.getTypedRuleContext(Ye,0)},Fe.prototype.enterRule=function(t){t instanceof _&&t.enterRulesetType(this)},Fe.prototype.exitRule=function(t){t instanceof _&&t.exitRulesetType(this)},Fe.prototype.accept=function(t){return t instanceof k?t.visitRulesetType(this):t.visitChildren(this)},R.RulesetTypeContext=Fe,R.prototype.rulesetType=function(){var t=new Fe(this,this._ctx,this.state);this.enterRule(t,100,R.RULE_rulesetType);try{switch(this.state=1011,this._errHandler.sync(this),this._input.LA(1)){case R.RULESET:this.enterOuterAlt(t,1),this.state=1008,this.match(R.RULESET);break;case R.DATAPOINT:case R.DATAPOINT_ON_VD:case R.DATAPOINT_ON_VAR:this.enterOuterAlt(t,2),this.state=1009,this.dpRuleset();break;case R.HIERARCHICAL:case R.HIERARCHICAL_ON_VD:case R.HIERARCHICAL_ON_VAR:this.enterOuterAlt(t,3),this.state=1010,this.hrRuleset();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ue.prototype=Object.create(m.ParserRuleContext.prototype),Ue.prototype.constructor=Ue,Ue.prototype.basicScalarType=function(){return this.getTypedRuleContext(Fn,0)},Ue.prototype.valueDomainName=function(){return this.getTypedRuleContext(Je,0)},Ue.prototype.scalarTypeConstraint=function(){return this.getTypedRuleContext(pn,0)},Ue.prototype.NULL_CONSTANT=function(){return this.getToken(R.NULL_CONSTANT,0)},Ue.prototype.NOT=function(){return this.getToken(R.NOT,0)},Ue.prototype.enterRule=function(t){t instanceof _&&t.enterScalarType(this)},Ue.prototype.exitRule=function(t){t instanceof _&&t.exitScalarType(this)},Ue.prototype.accept=function(t){return t instanceof k?t.visitScalarType(this):t.visitChildren(this)},R.ScalarTypeContext=Ue,R.prototype.scalarType=function(){var t=new Ue(this,this._ctx,this.state);this.enterRule(t,102,R.RULE_scalarType);var e=0;try{switch(this.enterOuterAlt(t,1),this.state=1015,this._errHandler.sync(this),this._input.LA(1)){case R.BOOLEAN:case R.DATE:case R.TIME_PERIOD:case R.NUMBER:case R.STRING:case R.TIME:case R.INTEGER:case R.DURATION:case R.SCALAR:this.state=1013,this.basicScalarType();break;case R.IDENTIFIER:this.state=1014,this.valueDomainName();break;default:throw new m.error.NoViableAltException(this)}this.state=1018,this._errHandler.sync(this),(e=this._input.LA(1))!==R.QLPAREN&&e!==R.GLPAREN||(this.state=1017,this.scalarTypeConstraint()),this.state=1024,this._errHandler.sync(this),(e=this._input.LA(1))!==R.NOT&&e!==R.NULL_CONSTANT||(this.state=1021,this._errHandler.sync(this),(e=this._input.LA(1))===R.NOT&&(this.state=1020,this.match(R.NOT)),this.state=1023,this.match(R.NULL_CONSTANT))}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},je.prototype=Object.create(m.ParserRuleContext.prototype),je.prototype.constructor=je,je.prototype.componentRole=function(){return this.getTypedRuleContext(In,0)},je.prototype.LT=function(){return this.getToken(R.LT,0)},je.prototype.scalarType=function(){return this.getTypedRuleContext(Ue,0)},je.prototype.MT=function(){return this.getToken(R.MT,0)},je.prototype.enterRule=function(t){t instanceof _&&t.enterComponentType(this)},je.prototype.exitRule=function(t){t instanceof _&&t.exitComponentType(this)},je.prototype.accept=function(t){return t instanceof k?t.visitComponentType(this):t.visitChildren(this)},R.ComponentTypeContext=je,R.prototype.componentType=function(){var t=new je(this,this._ctx,this.state);this.enterRule(t,104,R.RULE_componentType);try{this.enterOuterAlt(t,1),this.state=1026,this.componentRole(),this.state=1031,this._errHandler.sync(this),this._input.LA(1)===R.LT&&(this.state=1027,this.match(R.LT),this.state=1028,this.scalarType(),this.state=1029,this.match(R.MT))}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},He.prototype=Object.create(m.ParserRuleContext.prototype),He.prototype.constructor=He,He.prototype.DATASET=function(){return this.getToken(R.DATASET,0)},He.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},He.prototype.compConstraint=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(dn):this.getTypedRuleContext(dn,t)},He.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},He.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},He.prototype.enterRule=function(t){t instanceof _&&t.enterDatasetType(this)},He.prototype.exitRule=function(t){t instanceof _&&t.exitDatasetType(this)},He.prototype.accept=function(t){return t instanceof k?t.visitDatasetType(this):t.visitChildren(this)},R.DatasetTypeContext=He,R.prototype.datasetType=function(){var t=new He(this,this._ctx,this.state);this.enterRule(t,106,R.RULE_datasetType);var e=0;try{if(this.enterOuterAlt(t,1),this.state=1033,this.match(R.DATASET),this.state=1045,this._errHandler.sync(this),(e=this._input.LA(1))===R.GLPAREN){for(this.state=1034,this.match(R.GLPAREN),this.state=1035,this.compConstraint(),this.state=1040,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1036,this.match(R.COMMA),this.state=1037,this.compConstraint(),this.state=1042,this._errHandler.sync(this),e=this._input.LA(1);this.state=1043,this.match(R.GRPAREN)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Ve.prototype=Object.create(m.ParserRuleContext.prototype),Ve.prototype.constructor=Ve,Ve.prototype.SET=function(){return this.getToken(R.SET,0)},Ve.prototype.LT=function(){return this.getToken(R.LT,0)},Ve.prototype.scalarType=function(){return this.getTypedRuleContext(Ue,0)},Ve.prototype.MT=function(){return this.getToken(R.MT,0)},Ve.prototype.enterRule=function(t){t instanceof _&&t.enterScalarSetType(this)},Ve.prototype.exitRule=function(t){t instanceof _&&t.exitScalarSetType(this)},Ve.prototype.accept=function(t){return t instanceof k?t.visitScalarSetType(this):t.visitChildren(this)},R.ScalarSetTypeContext=Ve,R.prototype.scalarSetType=function(){var t=new Ve(this,this._ctx,this.state);this.enterRule(t,108,R.RULE_scalarSetType);try{this.enterOuterAlt(t,1),this.state=1047,this.match(R.SET),this.state=1052,this._errHandler.sync(this),this._input.LA(1)===R.LT&&(this.state=1048,this.match(R.LT),this.state=1049,this.scalarType(),this.state=1050,this.match(R.MT))}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Be.prototype=Object.create(m.ParserRuleContext.prototype),Be.prototype.constructor=Be,Be.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},We.prototype=Object.create(Be.prototype),We.prototype.constructor=We,R.DataPointVdContext=We,We.prototype.DATAPOINT_ON_VD=function(){return this.getToken(R.DATAPOINT_ON_VD,0)};We.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},We.prototype.valueDomainName=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Je):this.getTypedRuleContext(Je,t)},We.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},We.prototype.MUL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.MUL):this.getToken(R.MUL,t)},We.prototype.enterRule=function(t){t instanceof _&&t.enterDataPointVd(this)},We.prototype.exitRule=function(t){t instanceof _&&t.exitDataPointVd(this)},We.prototype.accept=function(t){return t instanceof k?t.visitDataPointVd(this):t.visitChildren(this)},Ge.prototype=Object.create(Be.prototype),Ge.prototype.constructor=Ge,R.DataPointVarContext=Ge,Ge.prototype.DATAPOINT_ON_VAR=function(){return this.getToken(R.DATAPOINT_ON_VAR,0)},Ge.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},Ge.prototype.varID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(wn):this.getTypedRuleContext(wn,t)},Ge.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},Ge.prototype.MUL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.MUL):this.getToken(R.MUL,t)},Ge.prototype.enterRule=function(t){t instanceof _&&t.enterDataPointVar(this)},Ge.prototype.exitRule=function(t){t instanceof _&&t.exitDataPointVar(this)},Ge.prototype.accept=function(t){return t instanceof k?t.visitDataPointVar(this):t.visitChildren(this)},qe.prototype=Object.create(Be.prototype),qe.prototype.constructor=qe,R.DataPointContext=qe,qe.prototype.DATAPOINT=function(){return this.getToken(R.DATAPOINT,0)},qe.prototype.enterRule=function(t){t instanceof _&&t.enterDataPoint(this)},qe.prototype.exitRule=function(t){t instanceof _&&t.exitDataPoint(this)},qe.prototype.accept=function(t){return t instanceof k?t.visitDataPoint(this):t.visitChildren(this)},R.DpRulesetContext=Be,R.prototype.dpRuleset=function(){var t=new Be(this,this._ctx,this.state);this.enterRule(t,110,R.RULE_dpRuleset);var e=0;try{switch(this.state=1083,this._errHandler.sync(this),this._input.LA(1)){case R.DATAPOINT:t=new qe(this,t),this.enterOuterAlt(t,1),this.state=1054,this.match(R.DATAPOINT);break;case R.DATAPOINT_ON_VD:if(t=new We(this,t),this.enterOuterAlt(t,2),this.state=1055,this.match(R.DATAPOINT_ON_VD),this.state=1067,this._errHandler.sync(this),(e=this._input.LA(1))===R.GLPAREN){for(this.state=1056,this.match(R.GLPAREN),this.state=1057,this.valueDomainName(),this.state=1062,this._errHandler.sync(this),e=this._input.LA(1);e===R.MUL;)this.state=1058,this.match(R.MUL),this.state=1059,this.valueDomainName(),this.state=1064,this._errHandler.sync(this),e=this._input.LA(1);this.state=1065,this.match(R.GRPAREN)}break;case R.DATAPOINT_ON_VAR:if(t=new Ge(this,t),this.enterOuterAlt(t,3),this.state=1069,this.match(R.DATAPOINT_ON_VAR),this.state=1081,this._errHandler.sync(this),(e=this._input.LA(1))===R.GLPAREN){for(this.state=1070,this.match(R.GLPAREN),this.state=1071,this.varID(),this.state=1076,this._errHandler.sync(this),e=this._input.LA(1);e===R.MUL;)this.state=1072,this.match(R.MUL),this.state=1073,this.varID(),this.state=1078,this._errHandler.sync(this),e=this._input.LA(1);this.state=1079,this.match(R.GRPAREN)}break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Ye.prototype=Object.create(m.ParserRuleContext.prototype),Ye.prototype.constructor=Ye,Ye.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},Ke.prototype=Object.create(Ye.prototype),Ke.prototype.constructor=Ke,R.HrRulesetVdTypeContext=Ke,Ke.prototype.HIERARCHICAL_ON_VD=function(){return this.getToken(R.HIERARCHICAL_ON_VD,0)},Ke.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},Ke.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},Ke.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Ke.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},Ke.prototype.valueDomainName=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Je):this.getTypedRuleContext(Je,t)},Ke.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},Ke.prototype.MUL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.MUL):this.getToken(R.MUL,t)},Ke.prototype.enterRule=function(t){t instanceof _&&t.enterHrRulesetVdType(this)},Ke.prototype.exitRule=function(t){t instanceof _&&t.exitHrRulesetVdType(this)},Ke.prototype.accept=function(t){return t instanceof k?t.visitHrRulesetVdType(this):t.visitChildren(this)},$e.prototype=Object.create(Ye.prototype),$e.prototype.constructor=$e,R.HrRulesetVarTypeContext=$e,$e.prototype.HIERARCHICAL_ON_VAR=function(){return this.getToken(R.HIERARCHICAL_ON_VAR,0)},$e.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},$e.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},$e.prototype.varID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(wn):this.getTypedRuleContext(wn,t)},$e.prototype.LPAREN=function(){return this.getToken(R.LPAREN,0)},$e.prototype.RPAREN=function(){return this.getToken(R.RPAREN,0)},$e.prototype.MUL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.MUL):this.getToken(R.MUL,t)},$e.prototype.enterRule=function(t){t instanceof _&&t.enterHrRulesetVarType(this)},$e.prototype.exitRule=function(t){t instanceof _&&t.exitHrRulesetVarType(this)},$e.prototype.accept=function(t){return t instanceof k?t.visitHrRulesetVarType(this):t.visitChildren(this)},Xe.prototype=Object.create(Ye.prototype),Xe.prototype.constructor=Xe,R.HrRulesetTypeContext=Xe,Xe.prototype.HIERARCHICAL=function(){return this.getToken(R.HIERARCHICAL,0)},Xe.prototype.enterRule=function(t){t instanceof _&&t.enterHrRulesetType(this)},Xe.prototype.exitRule=function(t){t instanceof _&&t.exitHrRulesetType(this)},Xe.prototype.accept=function(t){return t instanceof k?t.visitHrRulesetType(this):t.visitChildren(this)},R.HrRulesetContext=Ye,R.prototype.hrRuleset=function(){var t=new Ye(this,this._ctx,this.state);this.enterRule(t,112,R.RULE_hrRuleset);var e=0;try{switch(this.state=1125,this._errHandler.sync(this),this._input.LA(1)){case R.HIERARCHICAL:t=new Xe(this,t),this.enterOuterAlt(t,1),this.state=1085,this.match(R.HIERARCHICAL);break;case R.HIERARCHICAL_ON_VD:if(t=new Ke(this,t),this.enterOuterAlt(t,2),this.state=1086,this.match(R.HIERARCHICAL_ON_VD),this.state=1103,this._errHandler.sync(this),(e=this._input.LA(1))===R.GLPAREN){if(this.state=1087,this.match(R.GLPAREN),this.state=1088,t.vdName=this.match(R.IDENTIFIER),this.state=1100,this._errHandler.sync(this),(e=this._input.LA(1))===R.LPAREN){for(this.state=1089,this.match(R.LPAREN),this.state=1090,this.valueDomainName(),this.state=1095,this._errHandler.sync(this),e=this._input.LA(1);e===R.MUL;)this.state=1091,this.match(R.MUL),this.state=1092,this.valueDomainName(),this.state=1097,this._errHandler.sync(this),e=this._input.LA(1);this.state=1098,this.match(R.RPAREN)}this.state=1102,this.match(R.GRPAREN)}break;case R.HIERARCHICAL_ON_VAR:if(t=new $e(this,t),this.enterOuterAlt(t,3),this.state=1105,this.match(R.HIERARCHICAL_ON_VAR),this.state=1123,this._errHandler.sync(this),(e=this._input.LA(1))===R.GLPAREN){if(this.state=1106,this.match(R.GLPAREN),this.state=1107,t.varName=this.varID(),this.state=1119,this._errHandler.sync(this),(e=this._input.LA(1))===R.LPAREN){for(this.state=1108,this.match(R.LPAREN),this.state=1109,this.varID(),this.state=1114,this._errHandler.sync(this),e=this._input.LA(1);e===R.MUL;)this.state=1110,this.match(R.MUL),this.state=1111,this.varID(),this.state=1116,this._errHandler.sync(this),e=this._input.LA(1);this.state=1117,this.match(R.RPAREN)}this.state=1121,this.match(R.GRPAREN)}break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Je.prototype=Object.create(m.ParserRuleContext.prototype),Je.prototype.constructor=Je,Je.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Je.prototype.enterRule=function(t){t instanceof _&&t.enterValueDomainName(this)},Je.prototype.exitRule=function(t){t instanceof _&&t.exitValueDomainName(this)},Je.prototype.accept=function(t){return t instanceof k?t.visitValueDomainName(this):t.visitChildren(this)},R.ValueDomainNameContext=Je,R.prototype.valueDomainName=function(){var t=new Je(this,this._ctx,this.state);this.enterRule(t,114,R.RULE_valueDomainName);try{this.enterOuterAlt(t,1),this.state=1127,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Qe.prototype=Object.create(m.ParserRuleContext.prototype),Qe.prototype.constructor=Qe,Qe.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Qe.prototype.enterRule=function(t){t instanceof _&&t.enterRulesetID(this)},Qe.prototype.exitRule=function(t){t instanceof _&&t.exitRulesetID(this)},Qe.prototype.accept=function(t){return t instanceof k?t.visitRulesetID(this):t.visitChildren(this)},R.RulesetIDContext=Qe,R.prototype.rulesetID=function(){var t=new Qe(this,this._ctx,this.state);this.enterRule(t,116,R.RULE_rulesetID);try{this.enterOuterAlt(t,1),this.state=1129,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ze.prototype=Object.create(m.ParserRuleContext.prototype),Ze.prototype.constructor=Ze,Ze.prototype.signature=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(tn):this.getTypedRuleContext(tn,t)},Ze.prototype.VALUE_DOMAIN=function(){return this.getToken(R.VALUE_DOMAIN,0)},Ze.prototype.VARIABLE=function(){return this.getToken(R.VARIABLE,0)},Ze.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Ze.prototype.enterRule=function(t){t instanceof _&&t.enterRulesetSignature(this)},Ze.prototype.exitRule=function(t){t instanceof _&&t.exitRulesetSignature(this)},Ze.prototype.accept=function(t){return t instanceof k?t.visitRulesetSignature(this):t.visitChildren(this)},R.RulesetSignatureContext=Ze,R.prototype.rulesetSignature=function(){var t=new Ze(this,this._ctx,this.state);this.enterRule(t,118,R.RULE_rulesetSignature);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1131,(e=this._input.LA(1))!==R.VALUE_DOMAIN&&e!==R.VARIABLE?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1132,this.signature(),this.state=1137,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1133,this.match(R.COMMA),this.state=1134,this.signature(),this.state=1139,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},tn.prototype=Object.create(m.ParserRuleContext.prototype),tn.prototype.constructor=tn,tn.prototype.varID=function(){return this.getTypedRuleContext(wn,0)},tn.prototype.AS=function(){return this.getToken(R.AS,0)},tn.prototype.alias=function(){return this.getTypedRuleContext(Tn,0)},tn.prototype.enterRule=function(t){t instanceof _&&t.enterSignature(this)},tn.prototype.exitRule=function(t){t instanceof _&&t.exitSignature(this)},tn.prototype.accept=function(t){return t instanceof k?t.visitSignature(this):t.visitChildren(this)},R.SignatureContext=tn,R.prototype.signature=function(){var t=new tn(this,this._ctx,this.state);this.enterRule(t,120,R.RULE_signature);try{this.enterOuterAlt(t,1),this.state=1140,this.varID(),this.state=1143,this._errHandler.sync(this),this._input.LA(1)===R.AS&&(this.state=1141,this.match(R.AS),this.state=1142,this.alias())}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},en.prototype=Object.create(m.ParserRuleContext.prototype),en.prototype.constructor=en,en.prototype.ruleItemDatapoint=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(nn):this.getTypedRuleContext(nn,t)},en.prototype.EOL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.EOL):this.getToken(R.EOL,t)},en.prototype.enterRule=function(t){t instanceof _&&t.enterRuleClauseDatapoint(this)},en.prototype.exitRule=function(t){t instanceof _&&t.exitRuleClauseDatapoint(this)},en.prototype.accept=function(t){return t instanceof k?t.visitRuleClauseDatapoint(this):t.visitChildren(this)},R.RuleClauseDatapointContext=en,R.prototype.ruleClauseDatapoint=function(){var t=new en(this,this._ctx,this.state);this.enterRule(t,122,R.RULE_ruleClauseDatapoint);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1145,this.ruleItemDatapoint(),this.state=1150,this._errHandler.sync(this),e=this._input.LA(1);e===R.EOL;)this.state=1146,this.match(R.EOL),this.state=1147,this.ruleItemDatapoint(),this.state=1152,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},nn.prototype=Object.create(m.ParserRuleContext.prototype),nn.prototype.constructor=nn,nn.prototype.expr=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(L):this.getTypedRuleContext(L,t)},nn.prototype.COLON=function(){return this.getToken(R.COLON,0)},nn.prototype.WHEN=function(){return this.getToken(R.WHEN,0)},nn.prototype.THEN=function(){return this.getToken(R.THEN,0)},nn.prototype.erCode=function(){return this.getTypedRuleContext(Cn,0)},nn.prototype.erLevel=function(){return this.getTypedRuleContext(Sn,0)},nn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},nn.prototype.enterRule=function(t){t instanceof _&&t.enterRuleItemDatapoint(this)},nn.prototype.exitRule=function(t){t instanceof _&&t.exitRuleItemDatapoint(this)},nn.prototype.accept=function(t){return t instanceof k?t.visitRuleItemDatapoint(this):t.visitChildren(this)},R.RuleItemDatapointContext=nn,R.prototype.ruleItemDatapoint=function(){var t=new nn(this,this._ctx,this.state);this.enterRule(t,124,R.RULE_ruleItemDatapoint);try{this.enterOuterAlt(t,1),this.state=1155,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,125,this._ctx)&&(this.state=1153,t.ruleName=this.match(R.IDENTIFIER),this.state=1154,this.match(R.COLON)),this.state=1161,this._errHandler.sync(this),this._input.LA(1)===R.WHEN&&(this.state=1157,this.match(R.WHEN),this.state=1158,t.antecedentContiditon=this.expr(0),this.state=1159,this.match(R.THEN)),this.state=1163,t.consequentCondition=this.expr(0),this.state=1165,this._errHandler.sync(this),this._input.LA(1)===R.ERRORCODE&&(this.state=1164,this.erCode()),this.state=1168,this._errHandler.sync(this),this._input.LA(1)===R.ERRORLEVEL&&(this.state=1167,this.erLevel())}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},rn.prototype=Object.create(m.ParserRuleContext.prototype),rn.prototype.constructor=rn,rn.prototype.ruleItemHierarchical=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(on):this.getTypedRuleContext(on,t)},rn.prototype.EOL=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.EOL):this.getToken(R.EOL,t)},rn.prototype.enterRule=function(t){t instanceof _&&t.enterRuleClauseHierarchical(this)},rn.prototype.exitRule=function(t){t instanceof _&&t.exitRuleClauseHierarchical(this)},rn.prototype.accept=function(t){return t instanceof k?t.visitRuleClauseHierarchical(this):t.visitChildren(this)},R.RuleClauseHierarchicalContext=rn,R.prototype.ruleClauseHierarchical=function(){var t=new rn(this,this._ctx,this.state);this.enterRule(t,126,R.RULE_ruleClauseHierarchical);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1170,this.ruleItemHierarchical(),this.state=1175,this._errHandler.sync(this),e=this._input.LA(1);e===R.EOL;)this.state=1171,this.match(R.EOL),this.state=1172,this.ruleItemHierarchical(),this.state=1177,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},on.prototype=Object.create(m.ParserRuleContext.prototype),on.prototype.constructor=on,on.prototype.codeItemRelation=function(){return this.getTypedRuleContext(cn,0)},on.prototype.COLON=function(){return this.getToken(R.COLON,0)},on.prototype.erCode=function(){return this.getTypedRuleContext(Cn,0)},on.prototype.erLevel=function(){return this.getTypedRuleContext(Sn,0)},on.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},on.prototype.enterRule=function(t){t instanceof _&&t.enterRuleItemHierarchical(this)},on.prototype.exitRule=function(t){t instanceof _&&t.exitRuleItemHierarchical(this)},on.prototype.accept=function(t){return t instanceof k?t.visitRuleItemHierarchical(this):t.visitChildren(this)},R.RuleItemHierarchicalContext=on,R.prototype.ruleItemHierarchical=function(){var t=new on(this,this._ctx,this.state);this.enterRule(t,128,R.RULE_ruleItemHierarchical);try{this.enterOuterAlt(t,1),this.state=1180,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,130,this._ctx)&&(this.state=1178,t.ruleName=this.match(R.IDENTIFIER),this.state=1179,this.match(R.COLON)),this.state=1182,this.codeItemRelation(),this.state=1184,this._errHandler.sync(this),this._input.LA(1)===R.ERRORCODE&&(this.state=1183,this.erCode()),this.state=1187,this._errHandler.sync(this),this._input.LA(1)===R.ERRORLEVEL&&(this.state=1186,this.erLevel())}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},sn.prototype=Object.create(m.ParserRuleContext.prototype),sn.prototype.constructor=sn,sn.prototype.RULE=function(){return this.getToken(R.RULE,0)},sn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},sn.prototype.VALUE_DOMAIN=function(){return this.getToken(R.VALUE_DOMAIN,0)},sn.prototype.VARIABLE=function(){return this.getToken(R.VARIABLE,0)},sn.prototype.CONDITION=function(){return this.getToken(R.CONDITION,0)},sn.prototype.valueDomainSignature=function(){return this.getTypedRuleContext(an,0)},sn.prototype.enterRule=function(t){t instanceof _&&t.enterHierRuleSignature(this)},sn.prototype.exitRule=function(t){t instanceof _&&t.exitHierRuleSignature(this)},sn.prototype.accept=function(t){return t instanceof k?t.visitHierRuleSignature(this):t.visitChildren(this)},R.HierRuleSignatureContext=sn,R.prototype.hierRuleSignature=function(){var t=new sn(this,this._ctx,this.state);this.enterRule(t,130,R.RULE_hierRuleSignature);var e=0;try{this.enterOuterAlt(t,1),this.state=1189,(e=this._input.LA(1))!==R.VALUE_DOMAIN&&e!==R.VARIABLE?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1192,this._errHandler.sync(this),(e=this._input.LA(1))===R.CONDITION&&(this.state=1190,this.match(R.CONDITION),this.state=1191,this.valueDomainSignature()),this.state=1194,this.match(R.RULE),this.state=1195,this.match(R.IDENTIFIER)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},an.prototype=Object.create(m.ParserRuleContext.prototype),an.prototype.constructor=an,an.prototype.signature=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(tn):this.getTypedRuleContext(tn,t)},an.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},an.prototype.enterRule=function(t){t instanceof _&&t.enterValueDomainSignature(this)},an.prototype.exitRule=function(t){t instanceof _&&t.exitValueDomainSignature(this)},an.prototype.accept=function(t){return t instanceof k?t.visitValueDomainSignature(this):t.visitChildren(this)},R.ValueDomainSignatureContext=an,R.prototype.valueDomainSignature=function(){var t=new an(this,this._ctx,this.state);this.enterRule(t,132,R.RULE_valueDomainSignature);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1197,this.signature(),this.state=1202,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1198,this.match(R.COMMA),this.state=1199,this.signature(),this.state=1204,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},cn.prototype=Object.create(m.ParserRuleContext.prototype),cn.prototype.constructor=cn,cn.prototype.codeItemRelationClause=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(ln):this.getTypedRuleContext(ln,t)},cn.prototype.valueDomainValue=function(){return this.getTypedRuleContext(un,0)},cn.prototype.WHEN=function(){return this.getToken(R.WHEN,0)},cn.prototype.expr=function(){return this.getTypedRuleContext(L,0)},cn.prototype.THEN=function(){return this.getToken(R.THEN,0)},cn.prototype.comparisonOperand=function(){return this.getTypedRuleContext(Nn,0)},cn.prototype.enterRule=function(t){t instanceof _&&t.enterCodeItemRelation(this)},cn.prototype.exitRule=function(t){t instanceof _&&t.exitCodeItemRelation(this)},cn.prototype.accept=function(t){return t instanceof k?t.visitCodeItemRelation(this):t.visitChildren(this)},R.CodeItemRelationContext=cn,R.prototype.codeItemRelation=function(){var t=new cn(this,this._ctx,this.state);this.enterRule(t,134,R.RULE_codeItemRelation);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1209,this._errHandler.sync(this),(e=this._input.LA(1))===R.WHEN&&(this.state=1205,this.match(R.WHEN),this.state=1206,this.expr(0),this.state=1207,this.match(R.THEN)),this.state=1211,t.codetemRef=this.valueDomainValue(),this.state=1213,this._errHandler.sync(this),!(-32&(e=this._input.LA(1)))&&!!(1<<e&(1<<R.EQ|1<<R.LT|1<<R.MT|1<<R.ME|1<<R.NEQ|1<<R.LE))&&(this.state=1212,this.comparisonOperand()),this.state=1215,this.codeItemRelationClause(),this.state=1219,this._errHandler.sync(this),e=this._input.LA(1);e===R.PLUS||e===R.MINUS||!(e-231&-32)&&1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.IDENTIFIER-231);)this.state=1216,this.codeItemRelationClause(),this.state=1221,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},ln.prototype=Object.create(m.ParserRuleContext.prototype),ln.prototype.constructor=ln,ln.prototype.valueDomainValue=function(){return this.getTypedRuleContext(un,0)},ln.prototype.QLPAREN=function(){return this.getToken(R.QLPAREN,0)},ln.prototype.QRPAREN=function(){return this.getToken(R.QRPAREN,0)},ln.prototype.expr=function(){return this.getTypedRuleContext(L,0)},ln.prototype.PLUS=function(){return this.getToken(R.PLUS,0)},ln.prototype.MINUS=function(){return this.getToken(R.MINUS,0)},ln.prototype.enterRule=function(t){t instanceof _&&t.enterCodeItemRelationClause(this)},ln.prototype.exitRule=function(t){t instanceof _&&t.exitCodeItemRelationClause(this)},ln.prototype.accept=function(t){return t instanceof k?t.visitCodeItemRelationClause(this):t.visitChildren(this)},R.CodeItemRelationClauseContext=ln,R.prototype.codeItemRelationClause=function(){var t=new ln(this,this._ctx,this.state);this.enterRule(t,136,R.RULE_codeItemRelationClause);var e=0;try{this.enterOuterAlt(t,1),this.state=1223,this._errHandler.sync(this),(e=this._input.LA(1))!==R.PLUS&&e!==R.MINUS||(this.state=1222,t.opAdd=this._input.LT(1),(e=this._input.LA(1))!==R.PLUS&&e!==R.MINUS?t.opAdd=this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())),this.state=1225,t.rightCodeItem=this.valueDomainValue(),this.state=1230,this._errHandler.sync(this),(e=this._input.LA(1))===R.QLPAREN&&(this.state=1226,this.match(R.QLPAREN),this.state=1227,t.rightCondition=this.expr(0),this.state=1228,this.match(R.QRPAREN))}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},un.prototype=Object.create(m.ParserRuleContext.prototype),un.prototype.constructor=un,un.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},un.prototype.INTEGER_CONSTANT=function(){return this.getToken(R.INTEGER_CONSTANT,0)},un.prototype.NUMBER_CONSTANT=function(){return this.getToken(R.NUMBER_CONSTANT,0)},un.prototype.enterRule=function(t){t instanceof _&&t.enterValueDomainValue(this)},un.prototype.exitRule=function(t){t instanceof _&&t.exitValueDomainValue(this)},un.prototype.accept=function(t){return t instanceof k?t.visitValueDomainValue(this):t.visitChildren(this)},R.ValueDomainValueContext=un,R.prototype.valueDomainValue=function(){var t=new un(this,this._ctx,this.state);this.enterRule(t,138,R.RULE_valueDomainValue);var e=0;try{this.enterOuterAlt(t,1),this.state=1232,(e=this._input.LA(1))-231&-32||!(1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.IDENTIFIER-231))?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},pn.prototype=Object.create(m.ParserRuleContext.prototype),pn.prototype.constructor=pn,pn.prototype.copyFrom=function(t){m.ParserRuleContext.prototype.copyFrom.call(this,t)},hn.prototype=Object.create(pn.prototype),hn.prototype.constructor=hn,R.RangeConstraintContext=hn,hn.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},hn.prototype.constant=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Mn):this.getTypedRuleContext(Mn,t)},hn.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},hn.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},hn.prototype.enterRule=function(t){t instanceof _&&t.enterRangeConstraint(this)},hn.prototype.exitRule=function(t){t instanceof _&&t.exitRangeConstraint(this)},hn.prototype.accept=function(t){return t instanceof k?t.visitRangeConstraint(this):t.visitChildren(this)},fn.prototype=Object.create(pn.prototype),fn.prototype.constructor=fn,R.ConditionConstraintContext=fn,fn.prototype.QLPAREN=function(){return this.getToken(R.QLPAREN,0)},fn.prototype.expr=function(){return this.getTypedRuleContext(L,0)},fn.prototype.QRPAREN=function(){return this.getToken(R.QRPAREN,0)},fn.prototype.enterRule=function(t){t instanceof _&&t.enterConditionConstraint(this)},fn.prototype.exitRule=function(t){t instanceof _&&t.exitConditionConstraint(this)},fn.prototype.accept=function(t){return t instanceof k?t.visitConditionConstraint(this):t.visitChildren(this)},R.ScalarTypeConstraintContext=pn,R.prototype.scalarTypeConstraint=function(){var t=new pn(this,this._ctx,this.state);this.enterRule(t,140,R.RULE_scalarTypeConstraint);var e=0;try{switch(this.state=1249,this._errHandler.sync(this),this._input.LA(1)){case R.QLPAREN:t=new fn(this,t),this.enterOuterAlt(t,1),this.state=1234,this.match(R.QLPAREN),this.state=1235,this.expr(0),this.state=1236,this.match(R.QRPAREN);break;case R.GLPAREN:for(t=new hn(this,t),this.enterOuterAlt(t,2),this.state=1238,this.match(R.GLPAREN),this.state=1239,this.constant(),this.state=1244,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1240,this.match(R.COMMA),this.state=1241,this.constant(),this.state=1246,this._errHandler.sync(this),e=this._input.LA(1);this.state=1247,this.match(R.GRPAREN);break;default:throw new m.error.NoViableAltException(this)}}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},dn.prototype=Object.create(m.ParserRuleContext.prototype),dn.prototype.constructor=dn,dn.prototype.componentType=function(){return this.getTypedRuleContext(je,0)},dn.prototype.componentID=function(){return this.getTypedRuleContext(An,0)},dn.prototype.multModifier=function(){return this.getTypedRuleContext(yn,0)},dn.prototype.enterRule=function(t){t instanceof _&&t.enterCompConstraint(this)},dn.prototype.exitRule=function(t){t instanceof _&&t.exitCompConstraint(this)},dn.prototype.accept=function(t){return t instanceof k?t.visitCompConstraint(this):t.visitChildren(this)},R.CompConstraintContext=dn,R.prototype.compConstraint=function(){var t=new dn(this,this._ctx,this.state);this.enterRule(t,142,R.RULE_compConstraint);try{switch(this.enterOuterAlt(t,1),this.state=1251,this.componentType(),this.state=1254,this._errHandler.sync(this),this._input.LA(1)){case R.IDENTIFIER:this.state=1252,this.componentID();break;case R.OPTIONAL:this.state=1253,this.multModifier();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},yn.prototype=Object.create(m.ParserRuleContext.prototype),yn.prototype.constructor=yn,yn.prototype.OPTIONAL=function(){return this.getToken(R.OPTIONAL,0)},yn.prototype.PLUS=function(){return this.getToken(R.PLUS,0)},yn.prototype.MUL=function(){return this.getToken(R.MUL,0)},yn.prototype.enterRule=function(t){t instanceof _&&t.enterMultModifier(this)},yn.prototype.exitRule=function(t){t instanceof _&&t.exitMultModifier(this)},yn.prototype.accept=function(t){return t instanceof k?t.visitMultModifier(this):t.visitChildren(this)},R.MultModifierContext=yn,R.prototype.multModifier=function(){var t=new yn(this,this._ctx,this.state);this.enterRule(t,144,R.RULE_multModifier);var e=0;try{this.enterOuterAlt(t,1),this.state=1256,this.match(R.OPTIONAL),this.state=1258,this._errHandler.sync(this),(e=this._input.LA(1))!==R.PLUS&&e!==R.MUL||(this.state=1257,(e=this._input.LA(1))!==R.PLUS&&e!==R.MUL?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()))}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},gn.prototype=Object.create(m.ParserRuleContext.prototype),gn.prototype.constructor=gn,gn.prototype.INVALID=function(){return this.getToken(R.INVALID,0)},gn.prototype.ALL_MEASURES=function(){return this.getToken(R.ALL_MEASURES,0)},gn.prototype.ALL=function(){return this.getToken(R.ALL,0)},gn.prototype.enterRule=function(t){t instanceof _&&t.enterValidationOutput(this)},gn.prototype.exitRule=function(t){t instanceof _&&t.exitValidationOutput(this)},gn.prototype.accept=function(t){return t instanceof k?t.visitValidationOutput(this):t.visitChildren(this)},R.ValidationOutputContext=gn,R.prototype.validationOutput=function(){var t=new gn(this,this._ctx,this.state);this.enterRule(t,146,R.RULE_validationOutput);var e=0;try{this.enterOuterAlt(t,1),this.state=1260,(e=this._input.LA(1))!==R.ALL&&e!==R.INVALID&&e!==R.ALL_MEASURES?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},mn.prototype=Object.create(m.ParserRuleContext.prototype),mn.prototype.constructor=mn,mn.prototype.NON_NULL=function(){return this.getToken(R.NON_NULL,0)},mn.prototype.NON_ZERO=function(){return this.getToken(R.NON_ZERO,0)},mn.prototype.PARTIAL_NULL=function(){return this.getToken(R.PARTIAL_NULL,0)},mn.prototype.PARTIAL_ZERO=function(){return this.getToken(R.PARTIAL_ZERO,0)},mn.prototype.ALWAYS_NULL=function(){return this.getToken(R.ALWAYS_NULL,0)},mn.prototype.ALWAYS_ZERO=function(){return this.getToken(R.ALWAYS_ZERO,0)},mn.prototype.enterRule=function(t){t instanceof _&&t.enterValidationMode(this)},mn.prototype.exitRule=function(t){t instanceof _&&t.exitValidationMode(this)},mn.prototype.accept=function(t){return t instanceof k?t.visitValidationMode(this):t.visitChildren(this)},R.ValidationModeContext=mn,R.prototype.validationMode=function(){var t=new mn(this,this._ctx,this.state);this.enterRule(t,148,R.RULE_validationMode);var e=0;try{this.enterOuterAlt(t,1),this.state=1262,(e=this._input.LA(1))-215&-32||!(1<<e-215&(1<<R.NON_NULL-215|1<<R.NON_ZERO-215|1<<R.PARTIAL_NULL-215|1<<R.PARTIAL_ZERO-215|1<<R.ALWAYS_NULL-215|1<<R.ALWAYS_ZERO-215))?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},_n.prototype=Object.create(m.ParserRuleContext.prototype),_n.prototype.constructor=_n,_n.prototype.CONDITION=function(){return this.getToken(R.CONDITION,0)},_n.prototype.componentID=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(An):this.getTypedRuleContext(An,t)},_n.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},_n.prototype.enterRule=function(t){t instanceof _&&t.enterConditionClause(this)},_n.prototype.exitRule=function(t){t instanceof _&&t.exitConditionClause(this)},_n.prototype.accept=function(t){return t instanceof k?t.visitConditionClause(this):t.visitChildren(this)},R.ConditionClauseContext=_n,R.prototype.conditionClause=function(){var t=new _n(this,this._ctx,this.state);this.enterRule(t,150,R.RULE_conditionClause);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1264,this.match(R.CONDITION),this.state=1265,this.componentID(),this.state=1270,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1266,this.match(R.COMMA),this.state=1267,this.componentID(),this.state=1272,this._errHandler.sync(this),e=this._input.LA(1)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},kn.prototype=Object.create(m.ParserRuleContext.prototype),kn.prototype.constructor=kn,kn.prototype.DATASET=function(){return this.getToken(R.DATASET,0)},kn.prototype.DATASET_PRIORITY=function(){return this.getToken(R.DATASET_PRIORITY,0)},kn.prototype.enterRule=function(t){t instanceof _&&t.enterInputMode(this)},kn.prototype.exitRule=function(t){t instanceof _&&t.exitInputMode(this)},kn.prototype.accept=function(t){return t instanceof k?t.visitInputMode(this):t.visitChildren(this)},R.InputModeContext=kn,R.prototype.inputMode=function(){var t=new kn(this,this._ctx,this.state);this.enterRule(t,152,R.RULE_inputMode);var e=0;try{this.enterOuterAlt(t,1),this.state=1273,(e=this._input.LA(1))!==R.DATASET&&e!==R.DATASET_PRIORITY?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},vn.prototype=Object.create(m.ParserRuleContext.prototype),vn.prototype.constructor=vn,vn.prototype.IMBALANCE=function(){return this.getToken(R.IMBALANCE,0)},vn.prototype.expr=function(){return this.getTypedRuleContext(L,0)},vn.prototype.enterRule=function(t){t instanceof _&&t.enterImbalanceExpr(this)},vn.prototype.exitRule=function(t){t instanceof _&&t.exitImbalanceExpr(this)},vn.prototype.accept=function(t){return t instanceof k?t.visitImbalanceExpr(this):t.visitChildren(this)},R.ImbalanceExprContext=vn,R.prototype.imbalanceExpr=function(){var t=new vn(this,this._ctx,this.state);this.enterRule(t,154,R.RULE_imbalanceExpr);try{this.enterOuterAlt(t,1),this.state=1275,this.match(R.IMBALANCE),this.state=1276,this.expr(0)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},xn.prototype=Object.create(m.ParserRuleContext.prototype),xn.prototype.constructor=xn,xn.prototype.RULE=function(){return this.getToken(R.RULE,0)},xn.prototype.DATASET=function(){return this.getToken(R.DATASET,0)},xn.prototype.RULE_PRIORITY=function(){return this.getToken(R.RULE_PRIORITY,0)},xn.prototype.enterRule=function(t){t instanceof _&&t.enterInputModeHierarchy(this)},xn.prototype.exitRule=function(t){t instanceof _&&t.exitInputModeHierarchy(this)},xn.prototype.accept=function(t){return t instanceof k?t.visitInputModeHierarchy(this):t.visitChildren(this)},R.InputModeHierarchyContext=xn,R.prototype.inputModeHierarchy=function(){var t=new xn(this,this._ctx,this.state);this.enterRule(t,156,R.RULE_inputModeHierarchy);var e=0;try{this.enterOuterAlt(t,1),this.state=1278,(e=this._input.LA(1))!==R.DATASET&&e!==R.RULE&&e!==R.RULE_PRIORITY?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},En.prototype=Object.create(m.ParserRuleContext.prototype),En.prototype.constructor=En,En.prototype.COMPUTED=function(){return this.getToken(R.COMPUTED,0)},En.prototype.ALL=function(){return this.getToken(R.ALL,0)},En.prototype.enterRule=function(t){t instanceof _&&t.enterOutputModeHierarchy(this)},En.prototype.exitRule=function(t){t instanceof _&&t.exitOutputModeHierarchy(this)},En.prototype.accept=function(t){return t instanceof k?t.visitOutputModeHierarchy(this):t.visitChildren(this)},R.OutputModeHierarchyContext=En,R.prototype.outputModeHierarchy=function(){var t=new En(this,this._ctx,this.state);this.enterRule(t,158,R.RULE_outputModeHierarchy);var e=0;try{this.enterOuterAlt(t,1),this.state=1280,(e=this._input.LA(1))!==R.ALL&&e!==R.COMPUTED?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Tn.prototype=Object.create(m.ParserRuleContext.prototype),Tn.prototype.constructor=Tn,Tn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Tn.prototype.enterRule=function(t){t instanceof _&&t.enterAlias(this)},Tn.prototype.exitRule=function(t){t instanceof _&&t.exitAlias(this)},Tn.prototype.accept=function(t){return t instanceof k?t.visitAlias(this):t.visitChildren(this)},R.AliasContext=Tn,R.prototype.alias=function(){var t=new Tn(this,this._ctx,this.state);this.enterRule(t,160,R.RULE_alias);try{this.enterOuterAlt(t,1),this.state=1282,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},wn.prototype=Object.create(m.ParserRuleContext.prototype),wn.prototype.constructor=wn,wn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},wn.prototype.enterRule=function(t){t instanceof _&&t.enterVarID(this)},wn.prototype.exitRule=function(t){t instanceof _&&t.exitVarID(this)},wn.prototype.accept=function(t){return t instanceof k?t.visitVarID(this):t.visitChildren(this)},R.VarIDContext=wn,R.prototype.varID=function(){var t=new wn(this,this._ctx,this.state);this.enterRule(t,162,R.RULE_varID);try{this.enterOuterAlt(t,1),this.state=1284,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},bn.prototype=Object.create(m.ParserRuleContext.prototype),bn.prototype.constructor=bn,bn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},bn.prototype.enterRule=function(t){t instanceof _&&t.enterSimpleComponentId(this)},bn.prototype.exitRule=function(t){t instanceof _&&t.exitSimpleComponentId(this)},bn.prototype.accept=function(t){return t instanceof k?t.visitSimpleComponentId(this):t.visitChildren(this)},R.SimpleComponentIdContext=bn,R.prototype.simpleComponentId=function(){var t=new bn(this,this._ctx,this.state);this.enterRule(t,164,R.RULE_simpleComponentId);try{this.enterOuterAlt(t,1),this.state=1286,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},An.prototype=Object.create(m.ParserRuleContext.prototype),An.prototype.constructor=An,An.prototype.IDENTIFIER=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.IDENTIFIER):this.getToken(R.IDENTIFIER,t)},An.prototype.MEMBERSHIP=function(){return this.getToken(R.MEMBERSHIP,0)},An.prototype.enterRule=function(t){t instanceof _&&t.enterComponentID(this)},An.prototype.exitRule=function(t){t instanceof _&&t.exitComponentID(this)},An.prototype.accept=function(t){return t instanceof k?t.visitComponentID(this):t.visitChildren(this)},R.ComponentIDContext=An,R.prototype.componentID=function(){var t=new An(this,this._ctx,this.state);this.enterRule(t,166,R.RULE_componentID);try{this.enterOuterAlt(t,1),this.state=1288,this.match(R.IDENTIFIER),this.state=1291,this._errHandler.sync(this),this._input.LA(1)===R.MEMBERSHIP&&(this.state=1289,this.match(R.MEMBERSHIP),this.state=1290,this.match(R.IDENTIFIER))}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Rn.prototype=Object.create(m.ParserRuleContext.prototype),Rn.prototype.constructor=Rn,Rn.prototype.GLPAREN=function(){return this.getToken(R.GLPAREN,0)},Rn.prototype.constant=function(t){return void 0===t&&(t=null),null===t?this.getTypedRuleContexts(Mn):this.getTypedRuleContext(Mn,t)},Rn.prototype.GRPAREN=function(){return this.getToken(R.GRPAREN,0)},Rn.prototype.COMMA=function(t){return void 0===t&&(t=null),null===t?this.getTokens(R.COMMA):this.getToken(R.COMMA,t)},Rn.prototype.enterRule=function(t){t instanceof _&&t.enterLists(this)},Rn.prototype.exitRule=function(t){t instanceof _&&t.exitLists(this)},Rn.prototype.accept=function(t){return t instanceof k?t.visitLists(this):t.visitChildren(this)},R.ListsContext=Rn,R.prototype.lists=function(){var t=new Rn(this,this._ctx,this.state);this.enterRule(t,168,R.RULE_lists);var e=0;try{for(this.enterOuterAlt(t,1),this.state=1293,this.match(R.GLPAREN),this.state=1294,this.constant(),this.state=1299,this._errHandler.sync(this),e=this._input.LA(1);e===R.COMMA;)this.state=1295,this.match(R.COMMA),this.state=1296,this.constant(),this.state=1301,this._errHandler.sync(this),e=this._input.LA(1);this.state=1302,this.match(R.GRPAREN)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Cn.prototype=Object.create(m.ParserRuleContext.prototype),Cn.prototype.constructor=Cn,Cn.prototype.ERRORCODE=function(){return this.getToken(R.ERRORCODE,0)},Cn.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},Cn.prototype.enterRule=function(t){t instanceof _&&t.enterErCode(this)},Cn.prototype.exitRule=function(t){t instanceof _&&t.exitErCode(this)},Cn.prototype.accept=function(t){return t instanceof k?t.visitErCode(this):t.visitChildren(this)},R.ErCodeContext=Cn,R.prototype.erCode=function(){var t=new Cn(this,this._ctx,this.state);this.enterRule(t,170,R.RULE_erCode);try{this.enterOuterAlt(t,1),this.state=1304,this.match(R.ERRORCODE),this.state=1305,this.constant()}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Sn.prototype=Object.create(m.ParserRuleContext.prototype),Sn.prototype.constructor=Sn,Sn.prototype.ERRORLEVEL=function(){return this.getToken(R.ERRORLEVEL,0)},Sn.prototype.constant=function(){return this.getTypedRuleContext(Mn,0)},Sn.prototype.enterRule=function(t){t instanceof _&&t.enterErLevel(this)},Sn.prototype.exitRule=function(t){t instanceof _&&t.exitErLevel(this)},Sn.prototype.accept=function(t){return t instanceof k?t.visitErLevel(this):t.visitChildren(this)},R.ErLevelContext=Sn,R.prototype.erLevel=function(){var t=new Sn(this,this._ctx,this.state);this.enterRule(t,172,R.RULE_erLevel);try{this.enterOuterAlt(t,1),this.state=1307,this.match(R.ERRORLEVEL),this.state=1308,this.constant()}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Nn.prototype=Object.create(m.ParserRuleContext.prototype),Nn.prototype.constructor=Nn,Nn.prototype.MT=function(){return this.getToken(R.MT,0)},Nn.prototype.ME=function(){return this.getToken(R.ME,0)},Nn.prototype.LE=function(){return this.getToken(R.LE,0)},Nn.prototype.LT=function(){return this.getToken(R.LT,0)},Nn.prototype.EQ=function(){return this.getToken(R.EQ,0)},Nn.prototype.NEQ=function(){return this.getToken(R.NEQ,0)},Nn.prototype.enterRule=function(t){t instanceof _&&t.enterComparisonOperand(this)},Nn.prototype.exitRule=function(t){t instanceof _&&t.exitComparisonOperand(this)},Nn.prototype.accept=function(t){return t instanceof k?t.visitComparisonOperand(this):t.visitChildren(this)},R.ComparisonOperandContext=Nn,R.prototype.comparisonOperand=function(){var t=new Nn(this,this._ctx,this.state);this.enterRule(t,174,R.RULE_comparisonOperand);var e=0;try{this.enterOuterAlt(t,1),this.state=1310,-32&(e=this._input.LA(1))||!(1<<e&(1<<R.EQ|1<<R.LT|1<<R.MT|1<<R.ME|1<<R.NEQ|1<<R.LE))?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},On.prototype=Object.create(m.ParserRuleContext.prototype),On.prototype.constructor=On,On.prototype.expr=function(){return this.getTypedRuleContext(L,0)},On.prototype.OPTIONAL=function(){return this.getToken(R.OPTIONAL,0)},On.prototype.enterRule=function(t){t instanceof _&&t.enterOptionalExpr(this)},On.prototype.exitRule=function(t){t instanceof _&&t.exitOptionalExpr(this)},On.prototype.accept=function(t){return t instanceof k?t.visitOptionalExpr(this):t.visitChildren(this)},R.OptionalExprContext=On,R.prototype.optionalExpr=function(){var t=new On(this,this._ctx,this.state);this.enterRule(t,176,R.RULE_optionalExpr);try{switch(this.state=1314,this._errHandler.sync(this),this._input.LA(1)){case R.LPAREN:case R.PLUS:case R.MINUS:case R.EVAL:case R.IF:case R.CURRENT_DATE:case R.NOT:case R.BETWEEN:case R.NULL_CONSTANT:case R.ISNULL:case R.UNION:case R.SYMDIFF:case R.INTERSECT:case R.CHECK:case R.EXISTS_IN:case R.MIN:case R.MAX:case R.ABS:case R.LN:case R.LOG:case R.TRUNC:case R.ROUND:case R.POWER:case R.MOD:case R.LEN:case R.TRIM:case R.UCASE:case R.LCASE:case R.SUBSTR:case R.SUM:case R.AVG:case R.MEDIAN:case R.COUNT:case R.EXP:case R.CHARSET_MATCH:case R.NVL:case R.HIERARCHY:case R.LEVENSHTEIN:case R.LTRIM:case R.RTRIM:case R.INSTR:case R.REPLACE:case R.CEIL:case R.FLOOR:case R.SQRT:case R.RANDOM:case R.SETDIFF:case R.STDDEV_POP:case R.STDDEV_SAMP:case R.VAR_POP:case R.VAR_SAMP:case R.FIRST_VALUE:case R.LAST_VALUE:case R.LAG:case R.LEAD:case R.RATIO_TO_REPORT:case R.FILL_TIME_SERIES:case R.FLOW_TO_STOCK:case R.STOCK_TO_FLOW:case R.TIMESHIFT:case R.INNER_JOIN:case R.LEFT_JOIN:case R.CROSS_JOIN:case R.FULL_JOIN:case R.PERIOD_INDICATOR:case R.TIME_AGG:case R.CAST:case R.CHECK_DATAPOINT:case R.CHECK_HIERARCHY:case R.INTEGER_CONSTANT:case R.NUMBER_CONSTANT:case R.BOOLEAN_CONSTANT:case R.STRING_CONSTANT:case R.IDENTIFIER:this.enterOuterAlt(t,1),this.state=1312,this.expr(0);break;case R.OPTIONAL:this.enterOuterAlt(t,2),this.state=1313,this.match(R.OPTIONAL);break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},In.prototype=Object.create(m.ParserRuleContext.prototype),In.prototype.constructor=In,In.prototype.MEASURE=function(){return this.getToken(R.MEASURE,0)},In.prototype.COMPONENT=function(){return this.getToken(R.COMPONENT,0)},In.prototype.DIMENSION=function(){return this.getToken(R.DIMENSION,0)},In.prototype.ATTRIBUTE=function(){return this.getToken(R.ATTRIBUTE,0)},In.prototype.viralAttribute=function(){return this.getTypedRuleContext(Ln,0)},In.prototype.enterRule=function(t){t instanceof _&&t.enterComponentRole(this)},In.prototype.exitRule=function(t){t instanceof _&&t.exitComponentRole(this)},In.prototype.accept=function(t){return t instanceof k?t.visitComponentRole(this):t.visitChildren(this)},R.ComponentRoleContext=In,R.prototype.componentRole=function(){var t=new In(this,this._ctx,this.state);this.enterRule(t,178,R.RULE_componentRole);try{switch(this.state=1321,this._errHandler.sync(this),this._input.LA(1)){case R.MEASURE:this.enterOuterAlt(t,1),this.state=1316,this.match(R.MEASURE);break;case R.COMPONENT:this.enterOuterAlt(t,2),this.state=1317,this.match(R.COMPONENT);break;case R.DIMENSION:this.enterOuterAlt(t,3),this.state=1318,this.match(R.DIMENSION);break;case R.ATTRIBUTE:this.enterOuterAlt(t,4),this.state=1319,this.match(R.ATTRIBUTE);break;case R.VIRAL:this.enterOuterAlt(t,5),this.state=1320,this.viralAttribute();break;default:throw new m.error.NoViableAltException(this)}}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Ln.prototype=Object.create(m.ParserRuleContext.prototype),Ln.prototype.constructor=Ln,Ln.prototype.VIRAL=function(){return this.getToken(R.VIRAL,0)},Ln.prototype.ATTRIBUTE=function(){return this.getToken(R.ATTRIBUTE,0)},Ln.prototype.enterRule=function(t){t instanceof _&&t.enterViralAttribute(this)},Ln.prototype.exitRule=function(t){t instanceof _&&t.exitViralAttribute(this)},Ln.prototype.accept=function(t){return t instanceof k?t.visitViralAttribute(this):t.visitChildren(this)},R.ViralAttributeContext=Ln,R.prototype.viralAttribute=function(){var t=new Ln(this,this._ctx,this.state);this.enterRule(t,180,R.RULE_viralAttribute);try{this.enterOuterAlt(t,1),this.state=1323,this.match(R.VIRAL),this.state=1324,this.match(R.ATTRIBUTE)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Pn.prototype=Object.create(m.ParserRuleContext.prototype),Pn.prototype.constructor=Pn,Pn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Pn.prototype.enterRule=function(t){t instanceof _&&t.enterValueDomainID(this)},Pn.prototype.exitRule=function(t){t instanceof _&&t.exitValueDomainID(this)},Pn.prototype.accept=function(t){return t instanceof k?t.visitValueDomainID(this):t.visitChildren(this)},R.ValueDomainIDContext=Pn,R.prototype.valueDomainID=function(){var t=new Pn(this,this._ctx,this.state);this.enterRule(t,182,R.RULE_valueDomainID);try{this.enterOuterAlt(t,1),this.state=1326,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Dn.prototype=Object.create(m.ParserRuleContext.prototype),Dn.prototype.constructor=Dn,Dn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},Dn.prototype.enterRule=function(t){t instanceof _&&t.enterOperatorID(this)},Dn.prototype.exitRule=function(t){t instanceof _&&t.exitOperatorID(this)},Dn.prototype.accept=function(t){return t instanceof k?t.visitOperatorID(this):t.visitChildren(this)},R.OperatorIDContext=Dn,R.prototype.operatorID=function(){var t=new Dn(this,this._ctx,this.state);this.enterRule(t,184,R.RULE_operatorID);try{this.enterOuterAlt(t,1),this.state=1328,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},zn.prototype=Object.create(m.ParserRuleContext.prototype),zn.prototype.constructor=zn,zn.prototype.IDENTIFIER=function(){return this.getToken(R.IDENTIFIER,0)},zn.prototype.enterRule=function(t){t instanceof _&&t.enterRoutineName(this)},zn.prototype.exitRule=function(t){t instanceof _&&t.exitRoutineName(this)},zn.prototype.accept=function(t){return t instanceof k?t.visitRoutineName(this):t.visitChildren(this)},R.RoutineNameContext=zn,R.prototype.routineName=function(){var t=new zn(this,this._ctx,this.state);this.enterRule(t,186,R.RULE_routineName);try{this.enterOuterAlt(t,1),this.state=1330,this.match(R.IDENTIFIER)}catch(i){if(!(i instanceof m.error.RecognitionException))throw i;t.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i)}finally{this.exitRule()}return t},Mn.prototype=Object.create(m.ParserRuleContext.prototype),Mn.prototype.constructor=Mn,Mn.prototype.INTEGER_CONSTANT=function(){return this.getToken(R.INTEGER_CONSTANT,0)},Mn.prototype.NUMBER_CONSTANT=function(){return this.getToken(R.NUMBER_CONSTANT,0)},Mn.prototype.BOOLEAN_CONSTANT=function(){return this.getToken(R.BOOLEAN_CONSTANT,0)},Mn.prototype.STRING_CONSTANT=function(){return this.getToken(R.STRING_CONSTANT,0)},Mn.prototype.NULL_CONSTANT=function(){return this.getToken(R.NULL_CONSTANT,0)},Mn.prototype.enterRule=function(t){t instanceof _&&t.enterConstant(this)},Mn.prototype.exitRule=function(t){t instanceof _&&t.exitConstant(this)},Mn.prototype.accept=function(t){return t instanceof k?t.visitConstant(this):t.visitChildren(this)},R.ConstantContext=Mn,R.prototype.constant=function(){var t=new Mn(this,this._ctx,this.state);this.enterRule(t,188,R.RULE_constant);var e=0;try{this.enterOuterAlt(t,1),this.state=1332,(e=this._input.LA(1))===R.NULL_CONSTANT||!(e-231&-32)&&1<<e-231&(1<<R.INTEGER_CONSTANT-231|1<<R.NUMBER_CONSTANT-231|1<<R.BOOLEAN_CONSTANT-231|1<<R.STRING_CONSTANT-231)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Fn.prototype=Object.create(m.ParserRuleContext.prototype),Fn.prototype.constructor=Fn,Fn.prototype.STRING=function(){return this.getToken(R.STRING,0)},Fn.prototype.INTEGER=function(){return this.getToken(R.INTEGER,0)},Fn.prototype.NUMBER=function(){return this.getToken(R.NUMBER,0)},Fn.prototype.BOOLEAN=function(){return this.getToken(R.BOOLEAN,0)},Fn.prototype.DATE=function(){return this.getToken(R.DATE,0)},Fn.prototype.TIME=function(){return this.getToken(R.TIME,0)},Fn.prototype.TIME_PERIOD=function(){return this.getToken(R.TIME_PERIOD,0)},Fn.prototype.DURATION=function(){return this.getToken(R.DURATION,0)},Fn.prototype.SCALAR=function(){return this.getToken(R.SCALAR,0)},Fn.prototype.enterRule=function(t){t instanceof _&&t.enterBasicScalarType(this)},Fn.prototype.exitRule=function(t){t instanceof _&&t.exitBasicScalarType(this)},Fn.prototype.accept=function(t){return t instanceof k?t.visitBasicScalarType(this):t.visitChildren(this)},R.BasicScalarTypeContext=Fn,R.prototype.basicScalarType=function(){var t=new Fn(this,this._ctx,this.state);this.enterRule(t,190,R.RULE_basicScalarType);var e=0;try{this.enterOuterAlt(t,1),this.state=1334,!((e=this._input.LA(1))-158&-32)&&1<<e-158&(1<<R.BOOLEAN-158|1<<R.DATE-158|1<<R.TIME_PERIOD-158|1<<R.NUMBER-158|1<<R.STRING-158|1<<R.TIME-158|1<<R.INTEGER-158)||e===R.DURATION||e===R.SCALAR?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},Un.prototype=Object.create(m.ParserRuleContext.prototype),Un.prototype.constructor=Un,Un.prototype.BOOLEAN_CONSTANT=function(){return this.getToken(R.BOOLEAN_CONSTANT,0)},Un.prototype.ALL=function(){return this.getToken(R.ALL,0)},Un.prototype.enterRule=function(t){t instanceof _&&t.enterRetainType(this)},Un.prototype.exitRule=function(t){t instanceof _&&t.exitRetainType(this)},Un.prototype.accept=function(t){return t instanceof k?t.visitRetainType(this):t.visitChildren(this)},R.RetainTypeContext=Un,R.prototype.retainType=function(){var t=new Un(this,this._ctx,this.state);this.enterRule(t,192,R.RULE_retainType);var e=0;try{this.enterOuterAlt(t,1),this.state=1336,(e=this._input.LA(1))!==R.ALL&&e!==R.BOOLEAN_CONSTANT?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof m.error.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t},R.prototype.sempred=function(t,e,n){if(2===e)return this.expr_sempred(t,n);throw"No predicate with index:"+e},R.prototype.expr_sempred=function(t,e){switch(e){case 0:return this.precpred(this._ctx,9);case 1:return this.precpred(this._ctx,8);case 2:return this.precpred(this._ctx,7);case 3:return this.precpred(this._ctx,5);case 4:return this.precpred(this._ctx,4);case 5:return this.precpred(this._ctx,12);case 6:return this.precpred(this._ctx,11);case 7:return this.precpred(this._ctx,6);default:throw"No predicate with index:"+e}};var jn=R;e.PT=c,e.kW=jn,e.fl=y},8890:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];const r=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...n];const i=["null","undefined","string","number","bigint","boolean","symbol"];function o(t){return e=>typeof e===t}const{toString:s}=Object.prototype,a=t=>{const e=s.call(t).slice(8,-1);return/HTML\w+Element/.test(e)&&l.domElement(t)?"HTMLElement":(n=e,r.includes(n)?e:void 0);var n},c=t=>e=>a(e)===t;function l(t){if(null===t)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(l.observable(t))return"Observable";if(l.array(t))return"Array";if(l.buffer(t))return"Buffer";const e=a(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}l.undefined=o("undefined"),l.string=o("string");const u=o("number");l.number=t=>u(t)&&!l.nan(t),l.bigint=o("bigint"),l.function_=o("function"),l.null_=t=>null===t,l.class_=t=>l.function_(t)&&t.toString().startsWith("class "),l.boolean=t=>!0===t||!1===t,l.symbol=o("symbol"),l.numericString=t=>l.string(t)&&!l.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t)),l.array=(t,e)=>!!Array.isArray(t)&&(!l.function_(e)||t.every(e)),l.buffer=t=>{var e,n,r,i;return null!==(i=null===(r=null===(n=null===(e=t)||void 0===e?void 0:e.constructor)||void 0===n?void 0:n.isBuffer)||void 0===r?void 0:r.call(n,t))&&void 0!==i&&i},l.blob=t=>c("Blob")(t),l.nullOrUndefined=t=>l.null_(t)||l.undefined(t),l.object=t=>!l.null_(t)&&("object"==typeof t||l.function_(t)),l.iterable=t=>{var e;return l.function_(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},l.asyncIterable=t=>{var e;return l.function_(null===(e=t)||void 0===e?void 0:e[Symbol.asyncIterator])},l.generator=t=>{var e,n;return l.iterable(t)&&l.function_(null===(e=t)||void 0===e?void 0:e.next)&&l.function_(null===(n=t)||void 0===n?void 0:n.throw)},l.asyncGenerator=t=>l.asyncIterable(t)&&l.function_(t.next)&&l.function_(t.throw),l.nativePromise=t=>c("Promise")(t);l.promise=t=>l.nativePromise(t)||(t=>{var e,n;return l.function_(null===(e=t)||void 0===e?void 0:e.then)&&l.function_(null===(n=t)||void 0===n?void 0:n.catch)})(t),l.generatorFunction=c("GeneratorFunction"),l.asyncGeneratorFunction=t=>"AsyncGeneratorFunction"===a(t),l.asyncFunction=t=>"AsyncFunction"===a(t),l.boundFunction=t=>l.function_(t)&&!t.hasOwnProperty("prototype"),l.regExp=c("RegExp"),l.date=c("Date"),l.error=c("Error"),l.map=t=>c("Map")(t),l.set=t=>c("Set")(t),l.weakMap=t=>c("WeakMap")(t),l.weakSet=t=>c("WeakSet")(t),l.int8Array=c("Int8Array"),l.uint8Array=c("Uint8Array"),l.uint8ClampedArray=c("Uint8ClampedArray"),l.int16Array=c("Int16Array"),l.uint16Array=c("Uint16Array"),l.int32Array=c("Int32Array"),l.uint32Array=c("Uint32Array"),l.float32Array=c("Float32Array"),l.float64Array=c("Float64Array"),l.bigInt64Array=c("BigInt64Array"),l.bigUint64Array=c("BigUint64Array"),l.arrayBuffer=c("ArrayBuffer"),l.sharedArrayBuffer=c("SharedArrayBuffer"),l.dataView=c("DataView"),l.enumCase=(t,e)=>Object.values(e).includes(t),l.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype,l.urlInstance=t=>c("URL")(t),l.urlString=t=>{if(!l.string(t))return!1;try{return new URL(t),!0}catch(e){return!1}},l.truthy=t=>Boolean(t),l.falsy=t=>!t,l.nan=t=>Number.isNaN(t),l.primitive=t=>{return l.null_(t)||(e=typeof t,i.includes(e));var e},l.integer=t=>Number.isInteger(t),l.safeInteger=t=>Number.isSafeInteger(t),l.plainObject=t=>{if("[object Object]"!==s.call(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.getPrototypeOf({})},l.typedArray=t=>{return e=a(t),n.includes(e);var e};l.arrayLike=t=>!l.nullOrUndefined(t)&&!l.function_(t)&&(t=>l.safeInteger(t)&&t>=0)(t.length),l.inRange=(t,e)=>{if(l.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(l.array(e)&&2===e.length)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};const p=["innerHTML","ownerDocument","style","attributes","nodeValue"];l.domElement=t=>l.object(t)&&1===t.nodeType&&l.string(t.nodeName)&&!l.plainObject(t)&&p.every((e=>e in t)),l.observable=t=>{var e,n,r,i;return!!t&&(t===(null===(n=(e=t)[Symbol.observable])||void 0===n?void 0:n.call(e))||t===(null===(i=(r=t)["@@observable"])||void 0===i?void 0:i.call(r)))},l.nodeStream=t=>l.object(t)&&l.function_(t.pipe)&&!l.observable(t),l.infinite=t=>t===1/0||t===-1/0;const h=t=>e=>l.integer(e)&&Math.abs(e%2)===t;l.evenInteger=h(0),l.oddInteger=h(1),l.emptyArray=t=>l.array(t)&&0===t.length,l.nonEmptyArray=t=>l.array(t)&&t.length>0,l.emptyString=t=>l.string(t)&&0===t.length;l.emptyStringOrWhitespace=t=>l.emptyString(t)||(t=>l.string(t)&&!/\S/.test(t))(t),l.nonEmptyString=t=>l.string(t)&&t.length>0,l.nonEmptyStringAndNotWhitespace=t=>l.string(t)&&!l.emptyStringOrWhitespace(t),l.emptyObject=t=>l.object(t)&&!l.map(t)&&!l.set(t)&&0===Object.keys(t).length,l.nonEmptyObject=t=>l.object(t)&&!l.map(t)&&!l.set(t)&&Object.keys(t).length>0,l.emptySet=t=>l.set(t)&&0===t.size,l.nonEmptySet=t=>l.set(t)&&t.size>0,l.emptyMap=t=>l.map(t)&&0===t.size,l.nonEmptyMap=t=>l.map(t)&&t.size>0,l.propertyKey=t=>l.any([l.string,l.number,l.symbol],t),l.formData=t=>c("FormData")(t),l.urlSearchParams=t=>c("URLSearchParams")(t);const f=(t,e,n)=>{if(!l.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(0===n.length)throw new TypeError("Invalid number of values");return t.call(n,e)};l.any=(t,...e)=>(l.array(t)?t:[t]).some((t=>f(Array.prototype.some,t,e))),l.all=(t,...e)=>f(Array.prototype.every,t,e);const d=(t,e,n,r={})=>{if(!t){const{multipleValues:t}=r,i=t?`received values of types ${[...new Set(n.map((t=>`\`${l(t)}\``)))].join(", ")}`:`received value of type \`${l(n)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${i}.`)}};e.assert={undefined:t=>d(l.undefined(t),"undefined",t),string:t=>d(l.string(t),"string",t),number:t=>d(l.number(t),"number",t),bigint:t=>d(l.bigint(t),"bigint",t),function_:t=>d(l.function_(t),"Function",t),null_:t=>d(l.null_(t),"null",t),class_:t=>d(l.class_(t),"Class",t),boolean:t=>d(l.boolean(t),"boolean",t),symbol:t=>d(l.symbol(t),"symbol",t),numericString:t=>d(l.numericString(t),"string with a number",t),array:(t,e)=>{d(l.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>d(l.buffer(t),"Buffer",t),blob:t=>d(l.blob(t),"Blob",t),nullOrUndefined:t=>d(l.nullOrUndefined(t),"null or undefined",t),object:t=>d(l.object(t),"Object",t),iterable:t=>d(l.iterable(t),"Iterable",t),asyncIterable:t=>d(l.asyncIterable(t),"AsyncIterable",t),generator:t=>d(l.generator(t),"Generator",t),asyncGenerator:t=>d(l.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>d(l.nativePromise(t),"native Promise",t),promise:t=>d(l.promise(t),"Promise",t),generatorFunction:t=>d(l.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>d(l.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>d(l.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>d(l.boundFunction(t),"Function",t),regExp:t=>d(l.regExp(t),"RegExp",t),date:t=>d(l.date(t),"Date",t),error:t=>d(l.error(t),"Error",t),map:t=>d(l.map(t),"Map",t),set:t=>d(l.set(t),"Set",t),weakMap:t=>d(l.weakMap(t),"WeakMap",t),weakSet:t=>d(l.weakSet(t),"WeakSet",t),int8Array:t=>d(l.int8Array(t),"Int8Array",t),uint8Array:t=>d(l.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>d(l.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>d(l.int16Array(t),"Int16Array",t),uint16Array:t=>d(l.uint16Array(t),"Uint16Array",t),int32Array:t=>d(l.int32Array(t),"Int32Array",t),uint32Array:t=>d(l.uint32Array(t),"Uint32Array",t),float32Array:t=>d(l.float32Array(t),"Float32Array",t),float64Array:t=>d(l.float64Array(t),"Float64Array",t),bigInt64Array:t=>d(l.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>d(l.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>d(l.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>d(l.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>d(l.dataView(t),"DataView",t),enumCase:(t,e)=>d(l.enumCase(t,e),"EnumCase",t),urlInstance:t=>d(l.urlInstance(t),"URL",t),urlString:t=>d(l.urlString(t),"string with a URL",t),truthy:t=>d(l.truthy(t),"truthy",t),falsy:t=>d(l.falsy(t),"falsy",t),nan:t=>d(l.nan(t),"NaN",t),primitive:t=>d(l.primitive(t),"primitive",t),integer:t=>d(l.integer(t),"integer",t),safeInteger:t=>d(l.safeInteger(t),"integer",t),plainObject:t=>d(l.plainObject(t),"plain object",t),typedArray:t=>d(l.typedArray(t),"TypedArray",t),arrayLike:t=>d(l.arrayLike(t),"array-like",t),domElement:t=>d(l.domElement(t),"HTMLElement",t),observable:t=>d(l.observable(t),"Observable",t),nodeStream:t=>d(l.nodeStream(t),"Node.js Stream",t),infinite:t=>d(l.infinite(t),"infinite number",t),emptyArray:t=>d(l.emptyArray(t),"empty array",t),nonEmptyArray:t=>d(l.nonEmptyArray(t),"non-empty array",t),emptyString:t=>d(l.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>d(l.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>d(l.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>d(l.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>d(l.emptyObject(t),"empty object",t),nonEmptyObject:t=>d(l.nonEmptyObject(t),"non-empty object",t),emptySet:t=>d(l.emptySet(t),"empty set",t),nonEmptySet:t=>d(l.nonEmptySet(t),"non-empty set",t),emptyMap:t=>d(l.emptyMap(t),"empty map",t),nonEmptyMap:t=>d(l.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>d(l.propertyKey(t),"PropertyKey",t),formData:t=>d(l.formData(t),"FormData",t),urlSearchParams:t=>d(l.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>d(l.evenInteger(t),"even integer",t),oddInteger:t=>d(l.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>d(l.directInstanceOf(t,e),"T",t),inRange:(t,e)=>d(l.inRange(t,e),"in range",t),any:(t,...e)=>d(l.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>d(l.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})},Object.defineProperties(l,{class:{value:l.class_},function:{value:l.function_},null:{value:l.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=l,t.exports=l,t.exports.default=l,t.exports.assert=e.assert},8572:(t,e,n)=>{var r=n(653).Token,i=n(7562).Lexer,o=n(5063).Interval;function s(){return this}function a(t){return s.call(this),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.mark=function(){return 0},a.prototype.release=function(t){},a.prototype.reset=function(){this.seek(0)},a.prototype.seek=function(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)},a.prototype.get=function(t){return this.lazyInit(),this.tokens[t]},a.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===r.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))},a.prototype.sync=function(t){var e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e},a.prototype.fetch=function(t){if(this.fetchedEOF)return 0;for(var e=0;e<t;e++){var n=this.tokenSource.nextToken();if(n.tokenIndex=this.tokens.length,this.tokens.push(n),n.type===r.EOF)return this.fetchedEOF=!0,e+1}return t},a.prototype.getTokens=function(t,e,n){if(void 0===n&&(n=null),t<0||e<0)return null;this.lazyInit();var i=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(var o=t;o<e;o++){var s=this.tokens[o];if(s.type===r.EOF)break;(null===n||n.contains(s.type))&&i.push(s)}return i},a.prototype.LA=function(t){return this.LT(t).type},a.prototype.LB=function(t){return this.index-t<0?null:this.tokens[this.index-t]},a.prototype.LT=function(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);var e=this.index+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]},a.prototype.adjustSeekIndex=function(t){return t},a.prototype.lazyInit=function(){-1===this.index&&this.setup()},a.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},a.prototype.setTokenSource=function(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1},a.prototype.nextTokenOnChannel=function(t,e){if(this.sync(t),t>=this.tokens.length)return-1;for(var n=this.tokens[t];n.channel!==this.channel;){if(n.type===r.EOF)return-1;t+=1,this.sync(t),n=this.tokens[t]}return t},a.prototype.previousTokenOnChannel=function(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t},a.prototype.getHiddenTokensToRight=function(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;var n=this.nextTokenOnChannel(t+1,i.DEFAULT_TOKEN_CHANNEL),r=t+1,o=-1===n?this.tokens.length-1:n;return this.filterForChannel(r,o,e)},a.prototype.getHiddenTokensToLeft=function(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;var n=this.previousTokenOnChannel(t-1,i.DEFAULT_TOKEN_CHANNEL);if(n===t-1)return null;var r=n+1,o=t-1;return this.filterForChannel(r,o,e)},a.prototype.filterForChannel=function(t,e,n){for(var r=[],o=t;o<e+1;o++){var s=this.tokens[o];-1===n?s.channel!==i.DEFAULT_TOKEN_CHANNEL&&r.push(s):s.channel===n&&r.push(s)}return 0===r.length?null:r},a.prototype.getSourceName=function(){return this.tokenSource.getSourceName()},a.prototype.getText=function(t){this.lazyInit(),this.fill(),null==t&&(t=new o(0,this.tokens.length-1));var e=t.start;e instanceof r&&(e=e.tokenIndex);var n=t.stop;if(n instanceof r&&(n=n.tokenIndex),null===e||null===n||e<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);for(var i="",s=e;s<n+1;s++){var a=this.tokens[s];if(a.type===r.EOF)break;i+=a.text}return i},a.prototype.fill=function(){for(this.lazyInit();1e3===this.fetch(1e3););},e.f=a},2365:(t,e,n)=>{var r=n(4992).InputStream,i="undefined"==typeof window&&"undefined"==typeof importScripts?n(5843):null,o={fromString:function(t){return new r(t,!0)},fromBlob:function(t,e,n,i){var o=FileReader();o.onload=function(t){var e=new r(t.target.result,!0);n(e)},o.onerror=i,o.readAsText(t,e)},fromBuffer:function(t,e){return new r(t.toString(e),!0)},fromPath:function(t,e,n){i.readFile(t,e,(function(t,e){var i=null;null!==e&&(i=new r(e,!0)),n(t,i)}))},fromPathSync:function(t,e){var n=i.readFileSync(t,e);return new r(n,!0)}};e.CharStreams=o},3426:(t,e,n)=>{var r=n(653).CommonToken;function i(){return this}function o(t){return i.call(this),this.copyText=void 0!==t&&t,this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.DEFAULT=new o,o.prototype.create=function(t,e,n,i,o,s,a,c){var l=new r(t,e,i,o,s);return l.line=a,l.column=c,null!==n?l.text=n:this.copyText&&null!==t[1]&&(l.text=t[1].getText(o,s)),l},o.prototype.createThin=function(t,e){var n=new r(null,t);return n.text=e,n},e.p=o},5546:(t,e,n)=>{var r=n(653).Token,i=n(8572).f;function o(t,e){return i.call(this,t),this.channel=void 0===e?r.DEFAULT_CHANNEL:e,this}o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.prototype.adjustSeekIndex=function(t){return this.nextTokenOnChannel(t,this.channel)},o.prototype.LB=function(t){if(0===t||this.index-t<0)return null;for(var e=this.index,n=1;n<=t;)e=this.previousTokenOnChannel(e-1,this.channel),n+=1;return e<0?null:this.tokens[e]},o.prototype.LT=function(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);for(var e=this.index,n=1;n<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),n+=1;return this.tokens[e]},o.prototype.getNumberOfOnChannelTokens=function(){var t=0;this.fill();for(var e=0;e<this.tokens.length;e++){var n=this.tokens[e];if(n.channel===this.channel&&(t+=1),n.type===r.EOF)break}return t},e.CommonTokenStream=o},3088:(t,e,n)=>{var r=n(4992).InputStream,i="undefined"==typeof window&&"undefined"==typeof importScripts?n(5843):null;function o(t,e){var n=i.readFileSync(t,"utf8");return r.call(this,n,e),this.fileName=t,this}o.prototype=Object.create(r.prototype),o.prototype.constructor=o,e.FileStream=o},4992:(t,e,n)=>{var r=n(653).Token;function i(t,e){return this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,function(t){if(t._index=0,t.data=[],t.decodeToUnicodeCodePoints)for(var e=0;e<t.strdata.length;){var n=t.strdata.codePointAt(e);t.data.push(n),e+=n<=65535?1:2}else for(e=0;e<t.strdata.length;e++){var r=t.strdata.charCodeAt(e);t.data.push(r)}t._size=t.data.length}(this),this}n(8203),n(9490),Object.defineProperty(i.prototype,"index",{get:function(){return this._index}}),Object.defineProperty(i.prototype,"size",{get:function(){return this._size}}),i.prototype.reset=function(){this._index=0},i.prototype.consume=function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1},i.prototype.LA=function(t){if(0===t)return 0;t<0&&(t+=1);var e=this._index+t-1;return e<0||e>=this._size?r.EOF:this.data[e]},i.prototype.LT=function(t){return this.LA(t)},i.prototype.mark=function(){return-1},i.prototype.release=function(t){},i.prototype.seek=function(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)},i.prototype.getText=function(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var n="",r=t;r<=e;r++)n+=String.fromCodePoint(this.data[r]);return n}return this.strdata.slice(t,e+1)},i.prototype.toString=function(){return this.strdata},e.InputStream=i},5063:(t,e,n)=>{var r=n(653).Token;function i(t,e){return this.start=t,this.stop=e,this}function o(){this.intervals=null,this.readOnly=!1}i.prototype.contains=function(t){return t>=this.start&&t<this.stop},i.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(i.prototype,"length",{get:function(){return this.stop-this.start}}),o.prototype.first=function(t){return null===this.intervals||0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start},o.prototype.addOne=function(t){this.addInterval(new i(t,t+1))},o.prototype.addRange=function(t,e){this.addInterval(new i(t,e+1))},o.prototype.addInterval=function(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t);else{for(var e=0;e<this.intervals.length;e++){var n=this.intervals[e];if(t.stop<n.start)return void this.intervals.splice(e,0,t);if(t.stop===n.start)return void(this.intervals[e].start=t.start);if(t.start<=n.stop)return this.intervals[e]=new i(Math.min(n.start,t.start),Math.max(n.stop,t.stop)),void this.reduce(e)}this.intervals.push(t)}},o.prototype.addSet=function(t){if(null!==t.intervals)for(var e=0;e<t.intervals.length;e++){var n=t.intervals[e];this.addInterval(new i(n.start,n.stop))}return this},o.prototype.reduce=function(t){if(t<this.intervalslength-1){var e=this.intervals[t],n=this.intervals[t+1];e.stop>=n.stop?(this.intervals.pop(t+1),this.reduce(t)):e.stop>=n.start&&(this.intervals[t]=new i(e.start,n.stop),this.intervals.pop(t+1))}},o.prototype.complement=function(t,e){var n=new o;n.addInterval(new i(t,e+1));for(var r=0;r<this.intervals.length;r++)n.removeRange(this.intervals[r]);return n},o.prototype.contains=function(t){if(null===this.intervals)return!1;for(var e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1},Object.defineProperty(o.prototype,"length",{get:function(){var t=0;return this.intervals.map((function(e){t+=e.length})),t}}),o.prototype.removeRange=function(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals)for(var e=0,n=0;n<this.intervals.length;n++){var r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new i(r.start,t.start);var o=new i(t.stop,r.stop);return void this.intervals.splice(e,0,o)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new i(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new i(t.stop,r.stop)),e+=1}},o.prototype.removeOne=function(t){if(null!==this.intervals)for(var e=0;e<this.intervals.length;e++){var n=this.intervals[e];if(t<n.start)return;if(t===n.start&&t===n.stop-1)return void this.intervals.splice(e,1);if(t===n.start)return void(this.intervals[e]=new i(n.start+1,n.stop));if(t===n.stop-1)return void(this.intervals[e]=new i(n.start,n.stop-1));if(t<n.stop-1){var r=new i(n.start,t);return n.start=t+1,void this.intervals.splice(e,0,r)}}},o.prototype.toString=function(t,e,n){return t=t||null,e=e||null,n=n||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):n?this.toCharString():this.toIndexString()},o.prototype.toCharString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===r.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(n.start)+"'"):t.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]},o.prototype.toIndexString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===r.EOF?t.push("<EOF>"):t.push(n.start.toString()):t.push(n.start.toString()+".."+(n.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]},o.prototype.toTokenString=function(t,e){for(var n=[],r=0;r<this.intervals.length;r++)for(var i=this.intervals[r],o=i.start;o<i.stop;o++)n.push(this.elementName(t,e,o));return n.length>1?"{"+n.join(", ")+"}":n[0]},o.prototype.elementName=function(t,e,n){return n===r.EOF?"<EOF>":n===r.EPSILON?"<EPSILON>":t[n]||e[n]},e.Interval=i,e.m=o},9521:(t,e,n)=>{var r=n(1257).Set,i=n(1257).BitSet,o=n(653).Token,s=n(9845).G,a=(n(5063).Interval,n(5063).m),c=n(7250).RuleStopState,l=n(5895).RuleTransition,u=n(5895).NotSetTransition,p=n(5895).WildcardTransition,h=n(5895).AbstractPredicateTransition,f=n(2044),d=f.predictionContextFromRuleContext,y=f.PredictionContext,g=f.SingletonPredictionContext;function m(t){this.atn=t}m.HIT_PRED=o.INVALID_TYPE,m.prototype.getDecisionLookahead=function(t){if(null===t)return null;for(var e=t.transitions.length,n=[],o=0;o<e;o++){n[o]=new a;var s=new r;this._LOOK(t.transition(o).target,null,y.EMPTY,n[o],s,new i,!1,!1),(0===n[o].length||n[o].contains(m.HIT_PRED))&&(n[o]=null)}return n},m.prototype.LOOK=function(t,e,n){var o=new a,s=null!==(n=n||null)?d(t.atn,n):null;return this._LOOK(t,e,s,o,new r,new i,!0,!0),o},m.prototype._LOOK=function(t,e,n,r,i,a,f,d){var _=new s({state:t,alt:0,context:n},null);if(!i.contains(_)){if(i.add(_),t===e){if(null===n)return void r.addOne(o.EPSILON);if(n.isEmpty()&&d)return void r.addOne(o.EOF)}if(t instanceof c){if(null===n)return void r.addOne(o.EPSILON);if(n.isEmpty()&&d)return void r.addOne(o.EOF);if(n!==y.EMPTY){for(var k=0;k<n.length;k++){var v=this.atn.states[n.getReturnState(k)],x=a.contains(v.ruleIndex);try{a.remove(v.ruleIndex),this._LOOK(v,e,n.getParent(k),r,i,a,f,d)}finally{x&&a.add(v.ruleIndex)}}return}}for(var E=0;E<t.transitions.length;E++){var T=t.transitions[E];if(T.constructor===l){if(a.contains(T.target.ruleIndex))continue;var w=g.create(n,T.followState.stateNumber);try{a.add(T.target.ruleIndex),this._LOOK(T.target,e,w,r,i,a,f,d)}finally{a.remove(T.target.ruleIndex)}}else if(T instanceof h)f?this._LOOK(T.target,e,n,r,i,a,f,d):r.addOne(m.HIT_PRED);else if(T.isEpsilon)this._LOOK(T.target,e,n,r,i,a,f,d);else if(T.constructor===p)r.addRange(o.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var b=T.label;null!==b&&(T instanceof u&&(b=b.complement(o.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),r.addSet(b))}}}},e.a=m},7562:(t,e,n)=>{var r=n(653).Token,i=n(4712).f,o=n(3426).p,s=n(6342).RecognitionException,a=n(6342).LexerNoViableAltException;function c(t){return i.call(this),this._input=t,this._factory=o.DEFAULT,this._tokenFactorySourcePair=[this,t],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=r.DEFAULT_CHANNEL,this._type=r.INVALID_TYPE,this._modeStack=[],this._mode=c.DEFAULT_MODE,this._text=null,this}c.prototype=Object.create(i.prototype),c.prototype.constructor=c,c.DEFAULT_MODE=0,c.MORE=-2,c.SKIP=-3,c.DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL,c.HIDDEN=r.HIDDEN_CHANNEL,c.MIN_CHAR_VALUE=0,c.MAX_CHAR_VALUE=1114111,c.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=r.INVALID_TYPE,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=c.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},c.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var t=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var e=!1;;){this._type=r.INVALID_TYPE;var n=c.SKIP;try{n=this._interp.match(this._input,this._mode)}catch(i){if(!(i instanceof s))throw console.log(i.stack),i;this.notifyListeners(i),this.recover(i)}if(this._input.LA(1)===r.EOF&&(this._hitEOF=!0),this._type===r.INVALID_TYPE&&(this._type=n),this._type===c.SKIP){e=!0;break}if(this._type!==c.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(t)}},c.prototype.skip=function(){this._type=c.SKIP},c.prototype.more=function(){this._type=c.MORE},c.prototype.mode=function(t){this._mode=t},c.prototype.pushMode=function(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)},c.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(c.prototype,"inputStream",{get:function(){return this._input},set:function(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(c.prototype,"sourceName",{get:function(){return this._input.sourceName}}),c.prototype.emitToken=function(t){this._token=t},c.prototype.emit=function(){var t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t},c.prototype.emitEOF=function(){var t=this.column,e=this.line,n=this._factory.create(this._tokenFactorySourcePair,r.EOF,null,r.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emitToken(n),n},Object.defineProperty(c.prototype,"type",{get:function(){return this.type},set:function(t){this._type=t}}),Object.defineProperty(c.prototype,"line",{get:function(){return this._interp.line},set:function(t){this._interp.line=t}}),Object.defineProperty(c.prototype,"column",{get:function(){return this._interp.column},set:function(t){this._interp.column=t}}),c.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(c.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(t){this._text=t}}),c.prototype.getAllTokens=function(){for(var t=[],e=this.nextToken();e.type!==r.EOF;)t.push(e),e=this.nextToken();return t},c.prototype.notifyListeners=function(t){var e=this._tokenStartCharIndex,n=this._input.index,r=this._input.getText(e,n),i="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)},c.prototype.getErrorDisplay=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e.join("")},c.prototype.getErrorDisplayForChar=function(t){return t.charCodeAt(0)===r.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t},c.prototype.getCharErrorDisplay=function(t){return"'"+this.getErrorDisplayForChar(t)+"'"},c.prototype.recover=function(t){this._input.LA(1)!==r.EOF&&(t instanceof a?this._interp.consume(this._input):this._input.consume())},e.Lexer=c},1717:(t,e,n)=>{var r=n(653).Token,i=n(6149).ParseTreeListener,o=n(4712).f,s=n(2730).$,a=n(2456).ATNDeserializer,c=n(7330).$,l=n(6149).TerminalNode,u=n(6149).ErrorNode;function p(t){return i.call(this),this.parser=t,this}function h(t){return o.call(this),this._input=null,this._errHandler=new s,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t),this}p.prototype=Object.create(i.prototype),p.prototype.constructor=p,p.prototype.enterEveryRule=function(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},p.prototype.visitTerminal=function(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},p.prototype.exitEveryRule=function(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},h.prototype=Object.create(o.prototype),h.prototype.contructor=h,h.bypassAltsAtnCache={},h.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},h.prototype.match=function(t){var e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e},h.prototype.matchWildcard=function(){var t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t},h.prototype.getParseListeners=function(){return this._parseListeners||[]},h.prototype.addParseListener=function(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)},h.prototype.removeParseListener=function(t){if(null!==this._parseListeners){var e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}},h.prototype.removeParseListeners=function(){this._parseListeners=null},h.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var t=this._ctx;this._parseListeners.map((function(e){e.enterEveryRule(t),t.enterRule(e)}))}},h.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var t=this._ctx;this._parseListeners.slice(0).reverse().map((function(e){t.exitRule(e),e.exitEveryRule(t)}))}},h.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},h.prototype.setTokenFactory=function(t){this._input.tokenSource._factory=t},h.prototype.getATNWithBypassAlts=function(){var t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";var e=this.bypassAltsAtnCache[t];if(null===e){var n=new c;n.generateRuleBypassTransitions=!0,e=new a(n).deserialize(t),this.bypassAltsAtnCache[t]=e}return e};var f=n(7562).Lexer;h.prototype.compileParseTreePattern=function(t,e,n){if(null===(n=n||null)&&null!==this.getTokenStream()){var r=this.getTokenStream().tokenSource;r instanceof f&&(n=r)}if(null===n)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(n,this).compile(t,e)},h.prototype.getInputStream=function(){return this.getTokenStream()},h.prototype.setInputStream=function(t){this.setTokenStream(t)},h.prototype.getTokenStream=function(){return this._input},h.prototype.setTokenStream=function(t){this._input=null,this.reset(),this._input=t},h.prototype.getCurrentToken=function(){return this._input.LT(1)},h.prototype.notifyErrorListeners=function(t,e,n){n=n||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;var r=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,r,i,t,n)},h.prototype.consume=function(){var t=this.getCurrentToken();t.type!==r.EOF&&this.getInputStream().consume();var e,n=null!==this._parseListeners&&this._parseListeners.length>0;(this.buildParseTrees||n)&&((e=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(t):this._ctx.addTokenNode(t)).invokingState=this.state,n&&this._parseListeners.map((function(t){e instanceof u||void 0!==e.isErrorNode&&e.isErrorNode()?t.visitErrorNode(e):e instanceof l&&t.visitTerminal(e)})));return t},h.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},h.prototype.enterRule=function(t,e,n){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},h.prototype.enterOuterAlt=function(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t},h.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},h.prototype.enterRecursionRule=function(t,e,n,r){this.state=e,this._precedenceStack.push(r),this._ctx=t,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.pushNewRecursionContext=function(t,e,n){var r=this._ctx;r.parentCtx=t,r.invokingState=e,r.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=r.start,this.buildParseTrees&&this._ctx.addChild(r),null!==this._parseListeners&&this.triggerEnterRuleEvent()},h.prototype.unrollRecursionContexts=function(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var e=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)},h.prototype.getInvokingContext=function(t){for(var e=this._ctx;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null},h.prototype.precpred=function(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]},h.prototype.inContext=function(t){return!1},h.prototype.isExpectedToken=function(t){var e=this._interp.atn,n=this._ctx,i=e.states[this.state],o=e.nextTokens(i);if(o.contains(t))return!0;if(!o.contains(r.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&o.contains(r.EPSILON);){var s=e.states[n.invokingState].transitions[0];if((o=e.nextTokens(s.followState)).contains(t))return!0;n=n.parentCtx}return!(!o.contains(r.EPSILON)||t!==r.EOF)},h.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},h.prototype.getExpectedTokensWithinCurrentRule=function(){var t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)},h.prototype.getRuleIndex=function(t){var e=this.getRuleIndexMap()[t];return null!==e?e:-1},h.prototype.getRuleInvocationStack=function(t){null===(t=t||null)&&(t=this._ctx);for(var e=[];null!==t;){var n=t.ruleIndex;n<0?e.push("n/a"):e.push(this.ruleNames[n]),t=t.parentCtx}return e},h.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},h.prototype.dumpDFA=function(){for(var t=!1,e=0;e<this._interp.decisionToDFA.length;e++){var n=this._interp.decisionToDFA[e];n.states.length>0&&(t&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),t=!0)}},h.prototype.getSourceName=function(){return this._input.sourceName},h.prototype.setTrace=function(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new p(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},e.Parser=h},588:(t,e,n)=>{var r=n(6053).m,i=n(6149),o=i.INVALID_INTERVAL,s=i.TerminalNode,a=i.TerminalNodeImpl,c=i.ErrorNodeImpl,l=n(5063).Interval;function u(t,e){t=t||null,e=e||null,r.call(this,t,e),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function p(t,e,n){return u.call(t,e),this.ruleIndex=n,this}u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.prototype.copyFrom=function(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof c&&(this.children.push(t),t.parentCtx=this)}),this))},u.prototype.enterRule=function(t){},u.prototype.exitRule=function(t){},u.prototype.addChild=function(t){return null===this.children&&(this.children=[]),this.children.push(t),t},u.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},u.prototype.addTokenNode=function(t){var e=new a(t);return this.addChild(e),e.parentCtx=this,e},u.prototype.addErrorNode=function(t){var e=new c(t);return this.addChild(e),e.parentCtx=this,e},u.prototype.getChild=function(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof e){if(0===t)return r;t-=1}}return null},u.prototype.getToken=function(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(var n=0;n<this.children.length;n++){var r=this.children[n];if(r instanceof s&&r.symbol.type===t){if(0===e)return r;e-=1}}return null},u.prototype.getTokens=function(t){if(null===this.children)return[];for(var e=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof s&&r.symbol.type===t&&e.push(r)}return e},u.prototype.getTypedRuleContext=function(t,e){return this.getChild(e,t)},u.prototype.getTypedRuleContexts=function(t){if(null===this.children)return[];for(var e=[],n=0;n<this.children.length;n++){var r=this.children[n];r instanceof t&&e.push(r)}return e},u.prototype.getChildCount=function(){return null===this.children?0:this.children.length},u.prototype.getSourceInterval=function(){return null===this.start||null===this.stop?o:new l(this.start.tokenIndex,this.stop.tokenIndex)},r.EMPTY=new u,p.prototype=Object.create(u.prototype),p.prototype.constructor=p,e.ParserRuleContext=u},2044:(t,e,n)=>{var r=n(6053).m,i=n(1257).Hash,o=n(1257).Map;function s(t){this.cachedHashCode=t}function a(){return this.cache=new o,this}function c(t,e){var n,r=new i;null!==t?r.update(t,e):r.update(1),n=r.finish(),s.call(this,n),this.parentCtx=t,this.returnState=e}function l(){return c.call(this,null,s.EMPTY_RETURN_STATE),this}function u(t,e){var n=new i;n.update(t,e);var r=n.finish();return s.call(this,r),this.parents=t,this.returnStates=e,this}function p(t,e,n,r){if(t===e)return t;if(t instanceof c&&e instanceof c)return function(t,e,n,r){if(null!==r){var i=r.get(t,e);if(null!==i)return i;if(null!==(i=r.get(e,t)))return i}var o=function(t,e,n){if(n){if(t===s.EMPTY)return s.EMPTY;if(e===s.EMPTY)return s.EMPTY}else{if(t===s.EMPTY&&e===s.EMPTY)return s.EMPTY;if(t===s.EMPTY){var r=[e.returnState,s.EMPTY_RETURN_STATE];return new u([e.parentCtx,null],r)}if(e===s.EMPTY){r=[t.returnState,s.EMPTY_RETURN_STATE];return new u([t.parentCtx,null],r)}}return null}(t,e,n);if(null!==o)return null!==r&&r.set(t,e,o),o;if(t.returnState===e.returnState){var a=p(t.parentCtx,e.parentCtx,n,r);if(a===t.parentCtx)return t;if(a===e.parentCtx)return e;var l=c.create(a,t.returnState);return null!==r&&r.set(t,e,l),l}var h=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(h=t.parentCtx),null!==h){var f=[t.returnState,e.returnState];t.returnState>e.returnState&&(f[0]=e.returnState,f[1]=t.returnState);var d=new u(y=[h,h],f);return null!==r&&r.set(t,e,d),d}f=[t.returnState,e.returnState];var y=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(f[0]=e.returnState,f[1]=t.returnState,y=[e.parentCtx,t.parentCtx]);var g=new u(y,f);return null!==r&&r.set(t,e,g),g}(t,e,n,r);if(n){if(t instanceof l)return t;if(e instanceof l)return e}return t instanceof c&&(t=new u([t.getParent()],[t.returnState])),e instanceof c&&(e=new u([e.getParent()],[e.returnState])),function(t,e,n,r){if(null!==r){var i=r.get(t,e);if(null!==i)return i;if(null!==(i=r.get(e,t)))return i}var a=0,l=0,h=0,f=[],d=[];for(;a<t.returnStates.length&&l<e.returnStates.length;){var y=t.parents[a],g=e.parents[l];if(t.returnStates[a]===e.returnStates[l]){var m=t.returnStates[a];if(m===s.EMPTY_RETURN_STATE&&null===y&&null===g||null!==y&&null!==g&&y===g)d[h]=y,f[h]=m;else{var _=p(y,g,n,r);d[h]=_,f[h]=m}a+=1,l+=1}else t.returnStates[a]<e.returnStates[l]?(d[h]=y,f[h]=t.returnStates[a],a+=1):(d[h]=g,f[h]=e.returnStates[l],l+=1);h+=1}if(a<t.returnStates.length)for(var k=a;k<t.returnStates.length;k++)d[h]=t.parents[k],f[h]=t.returnStates[k],h+=1;else for(k=l;k<e.returnStates.length;k++)d[h]=e.parents[k],f[h]=e.returnStates[k],h+=1;if(h<d.length){if(1===h){var v=c.create(d[0],f[0]);return null!==r&&r.set(t,e,v),v}d=d.slice(0,h),f=f.slice(0,h)}var x=new u(d,f);if(x===t)return null!==r&&r.set(t,e,t),t;if(x===e)return null!==r&&r.set(t,e,e),e;(function(t){for(var e=new o,n=0;n<t.length;n++){var r=t[n];e.containsKey(r)||e.put(r,r)}for(var i=0;i<t.length;i++)t[i]=e.get(t[i])})(d),null!==r&&r.set(t,e,x);return x}(t,e,n,r)}s.EMPTY=null,s.EMPTY_RETURN_STATE=2147483647,s.globalNodeCount=1,s.id=s.globalNodeCount,s.prototype.isEmpty=function(){return this===s.EMPTY},s.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===s.EMPTY_RETURN_STATE},s.prototype.hashCode=function(){return this.cachedHashCode},s.prototype.updateHashCode=function(t){t.update(this.cachedHashCode)},a.prototype.add=function(t){if(t===s.EMPTY)return s.EMPTY;var e=this.cache.get(t)||null;return null!==e?e:(this.cache.put(t,t),t)},a.prototype.get=function(t){return this.cache.get(t)||null},Object.defineProperty(a.prototype,"length",{get:function(){return this.cache.length}}),c.prototype=Object.create(s.prototype),c.prototype.contructor=c,c.create=function(t,e){return e===s.EMPTY_RETURN_STATE&&null===t?s.EMPTY:new c(t,e)},Object.defineProperty(c.prototype,"length",{get:function(){return 1}}),c.prototype.getParent=function(t){return this.parentCtx},c.prototype.getReturnState=function(t){return this.returnState},c.prototype.equals=function(t){return this===t||t instanceof c&&(this.hashCode()===t.hashCode()&&(this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))))},c.prototype.toString=function(){var t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===s.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t},l.prototype=Object.create(c.prototype),l.prototype.constructor=l,l.prototype.isEmpty=function(){return!0},l.prototype.getParent=function(t){return null},l.prototype.getReturnState=function(t){return this.returnState},l.prototype.equals=function(t){return this===t},l.prototype.toString=function(){return"$"},s.EMPTY=new l,u.prototype=Object.create(s.prototype),u.prototype.constructor=u,u.prototype.isEmpty=function(){return this.returnStates[0]===s.EMPTY_RETURN_STATE},Object.defineProperty(u.prototype,"length",{get:function(){return this.returnStates.length}}),u.prototype.getParent=function(t){return this.parents[t]},u.prototype.getReturnState=function(t){return this.returnStates[t]},u.prototype.equals=function(t){return this===t||t instanceof u&&(this.hashCode()===t.hashCode()&&(this.returnStates===t.returnStates&&this.parents===t.parents))},u.prototype.toString=function(){if(this.isEmpty())return"[]";for(var t="[",e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==s.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"},e.merge=p,e.PredictionContext=s,e.PredictionContextCache=a,e.SingletonPredictionContext=c,e.predictionContextFromRuleContext=function t(e,n){if(null==n&&(n=r.EMPTY),null===n.parentCtx||n===r.EMPTY)return s.EMPTY;var i=t(e,n.parentCtx),o=e.states[n.invokingState].transitions[0];return c.create(i,o.followState.stateNumber)},e.getCachedPredictionContext=function t(e,n,r){if(e.isEmpty())return e;var i=r.get(e)||null;if(null!==i)return i;if(null!==(i=n.get(e)))return r.put(e,i),i;for(var o=!1,a=[],l=0;l<a.length;l++){var p=t(e.getParent(l),n,r);if(o||p!==e.getParent(l)){if(!o){a=[];for(var h=0;h<e.length;h++)a[h]=e.getParent(h);o=!0}a[l]=p}}if(!o)return n.add(e),r.put(e,e),e;var f=null;return f=0===a.length?s.EMPTY:1===a.length?c.create(a[0],e.getReturnState(0)):new u(a,e.returnStates),n.add(f),r.put(f,f),r.put(e,f),f}},4712:(t,e,n)=>{var r=n(653).Token,i=n(139).q,o=n(139).X;function s(){return this._listeners=[i.INSTANCE],this._interp=null,this._stateNumber=-1,this}s.tokenTypeMapCache={},s.ruleIndexMapCache={},s.prototype.checkVersion=function(t){"4.8"!==t&&console.log("ANTLR runtime and generated code versions disagree: 4.8!="+t)},s.prototype.addErrorListener=function(t){this._listeners.push(t)},s.prototype.removeErrorListeners=function(){this._listeners=[]},s.prototype.getTokenTypeMap=function(){var t=this.getTokenNames();if(null===t)throw"The current recognizer does not provide a list of token names.";var e=this.tokenTypeMapCache[t];return void 0===e&&((e=t.reduce((function(t,e,n){t[e]=n}))).EOF=r.EOF,this.tokenTypeMapCache[t]=e),e},s.prototype.getRuleIndexMap=function(){var t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";var e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,n){t[e]=n})),this.ruleIndexMapCache[t]=e),e},s.prototype.getTokenType=function(t){var e=this.getTokenTypeMap()[t];return void 0!==e?e:r.INVALID_TYPE},s.prototype.getErrorHeader=function(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column},s.prototype.getTokenErrorDisplay=function(t){if(null===t)return"<no token>";var e=t.text;return null===e&&(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),"'"+(e=e.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},s.prototype.getErrorListenerDispatch=function(){return new o(this._listeners)},s.prototype.sempred=function(t,e,n){return!0},s.prototype.precpred=function(t,e){return!0},Object.defineProperty(s.prototype,"state",{get:function(){return this._stateNumber},set:function(t){this._stateNumber=t}}),e.f=s},6053:(t,e,n)=>{var r=n(6149).RuleNode,i=n(6149).INVALID_INTERVAL,o=n(7339).INVALID_ALT_NUMBER;function s(t,e){return r.call(this),this.parentCtx=t||null,this.invokingState=e||-1,this}s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.prototype.depth=function(){for(var t=0,e=this;null!==e;)e=e.parentCtx,t+=1;return t},s.prototype.isEmpty=function(){return-1===this.invokingState},s.prototype.getSourceInterval=function(){return i},s.prototype.getRuleContext=function(){return this},s.prototype.getPayload=function(){return this},s.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")},s.prototype.getAltNumber=function(){return o},s.prototype.setAltNumber=function(t){},s.prototype.getChild=function(t){return null},s.prototype.getChildCount=function(){return 0},s.prototype.accept=function(t){return t.visitChildren(this)},e.m=s;var a=n(704).Trees;s.prototype.toStringTree=function(t,e){return a.toStringTree(this,t,e)},s.prototype.toString=function(t,e){t=t||null,e=e||null;for(var n=this,r="[";null!==n&&n!==e;){if(null===t)n.isEmpty()||(r+=n.invokingState);else{var i=n.ruleIndex;r+=i>=0&&i<t.length?t[i]:""+i}null===n.parentCtx||null===t&&n.parentCtx.isEmpty()||(r+=" "),n=n.parentCtx}return r+="]"}},653:(t,e)=>{function n(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function r(t,e,i,o,s){return n.call(this),this.source=void 0!==t?t:r.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==i?i:n.DEFAULT_CHANNEL,this.start=void 0!==o?o:-1,this.stop=void 0!==s?s:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1,this}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1,Object.defineProperty(n.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t}}),n.prototype.getTokenSource=function(){return this.source[0]},n.prototype.getInputStream=function(){return this.source[1]},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.EMPTY_SOURCE=[null,null],r.prototype.clone=function(){var t=new r(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t},Object.defineProperty(r.prototype,"text",{get:function(){if(null!==this._text)return this._text;var t=this.getInputStream();if(null===t)return null;var e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"},set:function(t){this._text=t}}),r.prototype.toString=function(){var t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},e.Token=n,e.CommonToken=r},1257:(t,e)=>{function n(t){return"["+t.join(", ")+"]"}function r(t,e){return t.equals(e)}function i(t){return t.hashCode()}function o(t,e){return this.data={},this.hashFunction=t||i,this.equalsFunction=e||r,this}function s(){return this.data=[],this}function a(t,e){return this.data={},this.hashFunction=t||i,this.equalsFunction=e||r,this}function c(){return this.data={},this}function l(t){return this.defaultMapCtor=t||a,this.cacheMap=new this.defaultMapCtor,this}function u(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var t,e,n,r,i,o,s,a,c=this.toString();for(t=3&c.length,e=c.length-t,n=String.prototype.seed,i=3432918353,o=461845907,a=0;a<e;)s=255&c.charCodeAt(a)|(255&c.charCodeAt(++a))<<8|(255&c.charCodeAt(++a))<<16|(255&c.charCodeAt(++a))<<24,++a,n=27492+(65535&(r=5*(65535&(n=(n^=s=(65535&(s=(s=(65535&s)*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*o+(((s>>>16)*o&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(s=0,t){case 3:s^=(255&c.charCodeAt(a+2))<<16;case 2:s^=(255&c.charCodeAt(a+1))<<8;case 1:n^=s=(65535&(s=(s=(65535&(s^=255&c.charCodeAt(a)))*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*o+(((s>>>16)*o&65535)<<16)&4294967295}return n^=c.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0},Object.defineProperty(o.prototype,"length",{get:function(){var t=0;for(var e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}}),o.prototype.add=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data){for(var n=this.data[e],r=0;r<n.length;r++)if(this.equalsFunction(t,n[r]))return n[r];return n.push(t),t}return this.data[e]=[t],t},o.prototype.contains=function(t){return null!=this.get(t)},o.prototype.get=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++)if(this.equalsFunction(t,n[r]))return n[r];return null},o.prototype.values=function(){var t=[];for(var e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t},o.prototype.toString=function(){return n(this.values())},s.prototype.add=function(t){this.data[t]=!0},s.prototype.or=function(t){var e=this;Object.keys(t.data).map((function(t){e.add(t)}))},s.prototype.remove=function(t){delete this.data[t]},s.prototype.contains=function(t){return!0===this.data[t]},s.prototype.values=function(){return Object.keys(this.data)},s.prototype.minValue=function(){return Math.min.apply(null,this.values())},s.prototype.hashCode=function(){var t=new u;return t.update(this.values()),t.finish()},s.prototype.equals=function(t){return t instanceof s&&this.hashCode()===t.hashCode()},Object.defineProperty(s.prototype,"length",{get:function(){return this.values().length}}),s.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},Object.defineProperty(a.prototype,"length",{get:function(){var t=0;for(var e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}}),a.prototype.put=function(t,e){var n="hash_"+this.hashFunction(t);if(n in this.data){for(var r=this.data[n],i=0;i<r.length;i++){var o=r[i];if(this.equalsFunction(t,o.key)){var s=o.value;return o.value=e,s}}return r.push({key:t,value:e}),e}return this.data[n]=[{key:t,value:e}],e},a.prototype.containsKey=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(t,i.key))return!0}return!1},a.prototype.get=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(t,i.key))return i.value}return null},a.prototype.entries=function(){var t=[];for(var e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t},a.prototype.getKeys=function(){return this.entries().map((function(t){return t.key}))},a.prototype.getValues=function(){return this.entries().map((function(t){return t.value}))},a.prototype.toString=function(){return"["+this.entries().map((function(t){return"{"+t.key+":"+t.value+"}"})).join(", ")+"]"},c.prototype.get=function(t){return(t="k-"+t)in this.data?this.data[t]:null},c.prototype.put=function(t,e){t="k-"+t,this.data[t]=e},c.prototype.values=function(){var t=this.data;return Object.keys(this.data).map((function(e){return t[e]}))},u.prototype.update=function(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{var n=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":n=e;break;case"string":n=e.hashCode();break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}n=(n*=3432918353)<<15|n>>>17,n*=461845907,this.count=this.count+1;var r=this.hash^n;r=5*(r=r<<13|r>>>19)+3864292196,this.hash=r}}},u.prototype.finish=function(){var t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16},l.prototype.get=function(t,e){var n=this.cacheMap.get(t)||null;return null===n?null:n.get(e)||null},l.prototype.set=function(t,e,n){var r=this.cacheMap.get(t)||null;null===r&&(r=new this.defaultMapCtor,this.cacheMap.put(t,r)),r.put(e,n)},e.Hash=u,e.Set=o,e.Map=a,e.BitSet=s,e.AltDict=c,e.DoubleDict=l,e.hashStuff=function(){var t=new u;return t.update.apply(t,arguments),t.finish()},e.escapeWhitespace=function(t,e){return t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"\xb7")),t},e.arrayToString=n,e.titleCase=function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1)}))},e.equalArrays=function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t==e)return!0;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].equals(e[n]))return!1;return!0}},7339:(t,e,n)=>{var r=n(9521).a,i=n(5063).m;function o(t,e){return this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}o.prototype.nextTokensInContext=function(t,e){return new r(this).LOOK(t,null,e)},o.prototype.nextTokensNoContext=function(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule},o.prototype.nextTokens=function(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)},o.prototype.addState=function(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)},o.prototype.removeState=function(t){this.states[t.stateNumber]=null},o.prototype.defineDecisionState=function(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision},o.prototype.getDecisionState=function(t){return 0===this.decisionToState.length?null:this.decisionToState[t]};var s=n(653).Token;o.prototype.getExpectedTokens=function(t,e){if(t<0||t>=this.states.length)throw"Invalid state number.";var n=this.states[t],r=this.nextTokens(n);if(!r.contains(s.EPSILON))return r;var o=new i;for(o.addSet(r),o.removeOne(s.EPSILON);null!==e&&e.invokingState>=0&&r.contains(s.EPSILON);){var a=this.states[e.invokingState].transitions[0];r=this.nextTokens(a.followState),o.addSet(r),o.removeOne(s.EPSILON),e=e.parentCtx}return r.contains(s.EPSILON)&&o.addOne(s.EOF),o},o.INVALID_ALT_NUMBER=0,e.ATN=o},9845:(t,e,n)=>{var r=n(7250).DecisionState,i=n(6097).Ij,o=n(1257).Hash;function s(t,e){if(null===t){var n={state:null,alt:null,context:null,semanticContext:null};return e&&(n.reachesIntoOuterContext=0),n}var r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}function a(t,e){return this.checkContext(t,e),t=s(t),e=s(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:i.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed,this}function c(t,e){a.call(this,t,e);var n=t.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this}a.prototype.checkContext=function(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)},a.prototype.hashCode=function(){var t=new o;return this.updateHashCode(t),t.finish()},a.prototype.updateHashCode=function(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},a.prototype.equals=function(t){return this===t||t instanceof a&&(this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed)},a.prototype.hashCodeForConfigSet=function(){var t=new o;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()},a.prototype.equalsForConfigSet=function(t){return this===t||t instanceof a&&(this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext))},a.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==i.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.updateHashCode=function(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},c.prototype.equals=function(t){return this===t||t instanceof c&&this.passedThroughNonGreedyDecision==t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&a.prototype.equals.call(this,t)},c.prototype.hashCodeForConfigSet=c.prototype.hashCode,c.prototype.equalsForConfigSet=c.prototype.equals,c.prototype.checkNonGreedyDecision=function(t,e){return t.passedThroughNonGreedyDecision||e instanceof r&&e.nonGreedy},e.G=a,e.I=c},637:(t,e,n)=>{var r=n(7339).ATN,i=n(1257),o=i.Hash,s=i.Set,a=n(6097).Ij,c=n(2044).merge;function l(t){return t.hashCodeForConfigSet()}function u(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}function p(t){return this.configLookup=new s(l,u),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function h(){return p.call(this),this.configLookup=new s,this}p.prototype.add=function(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==a.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var n=this.configLookup.add(t);if(n===t)return this.cachedHashCode=-1,this.configs.push(t),!0;var r=!this.fullCtx,i=c(n.context,t.context,r,e);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=i,!0},p.prototype.getStates=function(){for(var t=new s,e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t},p.prototype.getPredicates=function(){for(var t=[],e=0;e<this.configs.length;e++){var n=this.configs[e].semanticContext;n!==a.NONE&&t.push(n.semanticContext)}return t},Object.defineProperty(p.prototype,"items",{get:function(){return this.configs}}),p.prototype.optimizeConfigs=function(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(var e=0;e<this.configs.length;e++){var n=this.configs[e];n.context=t.getCachedContext(n.context)}},p.prototype.addAll=function(t){for(var e=0;e<t.length;e++)this.add(t[e]);return!1},p.prototype.equals=function(t){return this===t||t instanceof p&&i.equalArrays(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext},p.prototype.hashCode=function(){var t=new o;return t.update(this.configs),t.finish()},p.prototype.updateHashCode=function(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())},Object.defineProperty(p.prototype,"length",{get:function(){return this.configs.length}}),p.prototype.isEmpty=function(){return 0===this.configs.length},p.prototype.contains=function(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)},p.prototype.containsFast=function(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)},p.prototype.clear=function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new s},p.prototype.setReadonly=function(t){this.readOnly=t,t&&(this.configLookup=null)},p.prototype.toString=function(){return i.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==r.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")},h.prototype=Object.create(p.prototype),h.prototype.constructor=h,e.Q=p,e.F=h},7330:(t,e)=>{function n(t){return void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions,this}n.defaultOptions=new n,n.defaultOptions.readOnly=!0,e.$=n},2456:(t,e,n)=>{var r=n(653).Token,i=n(7339).ATN,o=n(8771).E,s=n(7250),a=s.ATNState,c=s.BasicState,l=s.DecisionState,u=s.BlockStartState,p=s.BlockEndState,h=s.LoopEndState,f=s.RuleStartState,d=s.RuleStopState,y=s.TokensStartState,g=s.PlusLoopbackState,m=s.StarLoopbackState,_=s.StarLoopEntryState,k=s.PlusBlockStartState,v=s.StarBlockStartState,x=s.BasicBlockStartState,E=n(5895),T=E.Transition,w=E.AtomTransition,b=E.SetTransition,A=E.NotSetTransition,R=E.RuleTransition,C=E.RangeTransition,S=E.ActionTransition,N=E.EpsilonTransition,O=E.WildcardTransition,I=E.PredicateTransition,L=E.PrecedencePredicateTransition,P=n(5063).m,D=(n(5063).Interval,n(7330).$),z=n(1586),M=z.LexerActionType,F=z.LexerSkipAction,U=z.LexerChannelAction,j=z.LexerCustomAction,H=z.LexerMoreAction,V=z.LexerTypeAction,B=z.LexerPushModeAction,W=z.LexerPopModeAction,G=z.LexerModeAction,q="59627784-3BE5-417A-B9EB-8131A7286089",Y=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",q],K=q;function $(t,e){var n=[];return n[t-1]=e,n.map((function(t){return e}))}function X(t){return null==t&&(t=D.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null,this}X.prototype.isFeatureSupported=function(t,e){var n=Y.indexOf(t);return!(n<0)&&Y.indexOf(e)>=n},X.prototype.deserialize=function(t){this.reset(t),this.checkVersion(),this.checkUUID();var e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);var n=[];return this.readSets(e,n,this.readInt.bind(this)),this.isFeatureSupported(q,this.uuid)&&this.readSets(e,n,this.readInt32.bind(this)),this.readEdges(e,n),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===o.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e},X.prototype.reset=function(t){var e=t.split("").map((function(t){var e=t.charCodeAt(0);return e>1?e-2:e+65534}));e[0]=t.charCodeAt(0),this.data=e,this.pos=0},X.prototype.checkVersion=function(){var t=this.readInt();if(3!==t)throw"Could not deserialize ATN with version "+t+" (expected 3)."},X.prototype.checkUUID=function(){var t=this.readUUID();if(Y.indexOf(t)<0)throw K;this.uuid=t},X.prototype.readATN=function(){var t=this.readInt(),e=this.readInt();return new i(t,e)},X.prototype.readStates=function(t){for(var e,n,r,i=[],o=[],s=this.readInt(),c=0;c<s;c++){var l=this.readInt();if(l!==a.INVALID_TYPE){var p=this.readInt();65535===p&&(p=-1);var h=this.stateFactory(l,p);if(l===a.LOOP_END){var f=this.readInt();i.push([h,f])}else if(h instanceof u){var d=this.readInt();o.push([h,d])}t.addState(h)}else t.addState(null)}for(e=0;e<i.length;e++)(n=i[e])[0].loopBackState=t.states[n[1]];for(e=0;e<o.length;e++)(n=o[e])[0].endState=t.states[n[1]];var y=this.readInt();for(e=0;e<y;e++)r=this.readInt(),t.states[r].nonGreedy=!0;var g=this.readInt();for(e=0;e<g;e++)r=this.readInt(),t.states[r].isPrecedenceRule=!0},X.prototype.readRules=function(t){var e,n=this.readInt();for(t.grammarType===o.LEXER&&(t.ruleToTokenType=$(n,0)),t.ruleToStartState=$(n,0),e=0;e<n;e++){var i=this.readInt(),s=t.states[i];if(t.ruleToStartState[e]=s,t.grammarType===o.LEXER){var a=this.readInt();65535===a&&(a=r.EOF),t.ruleToTokenType[e]=a}}for(t.ruleToStopState=$(n,0),e=0;e<t.states.length;e++){var c=t.states[e];c instanceof d&&(t.ruleToStopState[c.ruleIndex]=c,t.ruleToStartState[c.ruleIndex].stopState=c)}},X.prototype.readModes=function(t){for(var e=this.readInt(),n=0;n<e;n++){var r=this.readInt();t.modeToStartState.push(t.states[r])}},X.prototype.readSets=function(t,e,n){for(var r=this.readInt(),i=0;i<r;i++){var o=new P;e.push(o);var s=this.readInt();0!==this.readInt()&&o.addOne(-1);for(var a=0;a<s;a++){var c=n(),l=n();o.addRange(c,l)}}},X.prototype.readEdges=function(t,e){var n,r,i,o,s,a=this.readInt();for(n=0;n<a;n++){var c=this.readInt(),l=this.readInt(),p=this.readInt(),h=this.readInt(),f=this.readInt(),d=this.readInt();o=this.edgeFactory(t,p,c,l,h,f,d,e),t.states[c].addTransition(o)}for(n=0;n<t.states.length;n++)for(i=t.states[n],r=0;r<i.transitions.length;r++){var y=i.transitions[r];if(y instanceof R){var v=-1;t.ruleToStartState[y.target.ruleIndex].isPrecedenceRule&&0===y.precedence&&(v=y.target.ruleIndex),o=new N(y.followState,v),t.ruleToStopState[y.target.ruleIndex].addTransition(o)}}for(n=0;n<t.states.length;n++){if((i=t.states[n])instanceof u){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof g)for(r=0;r<i.transitions.length;r++)(s=i.transitions[r].target)instanceof k&&(s.loopBackState=i);else if(i instanceof m)for(r=0;r<i.transitions.length;r++)(s=i.transitions[r].target)instanceof _&&(s.loopBackState=i)}},X.prototype.readDecisions=function(t){for(var e=this.readInt(),n=0;n<e;n++){var r=this.readInt(),i=t.states[r];t.decisionToState.push(i),i.decision=n}},X.prototype.readLexerActions=function(t){if(t.grammarType===o.LEXER){var e=this.readInt();t.lexerActions=$(e,null);for(var n=0;n<e;n++){var r=this.readInt(),i=this.readInt();65535===i&&(i=-1);var s=this.readInt();65535===s&&(s=-1);var a=this.lexerActionFactory(r,i,s);t.lexerActions[n]=a}}},X.prototype.generateRuleBypassTransitions=function(t){var e,n=t.ruleToStartState.length;for(e=0;e<n;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<n;e++)this.generateRuleBypassTransition(t,e)},X.prototype.generateRuleBypassTransition=function(t,e){var n,r,i=new x;i.ruleIndex=e,t.addState(i);var o=new p;o.ruleIndex=e,t.addState(o),i.endState=o,t.defineDecisionState(i),o.startState=i;var s=null,a=null;if(t.ruleToStartState[e].isPrecedenceRule){for(a=null,n=0;n<t.states.length;n++)if(r=t.states[n],this.stateIsEndStateFor(r,e)){a=r,s=r.loopBackState.transitions[0];break}if(null===s)throw"Couldn't identify final state of the precedence rule prefix section."}else a=t.ruleToStopState[e];for(n=0;n<t.states.length;n++){r=t.states[n];for(var l=0;l<r.transitions.length;l++){var u=r.transitions[l];u!==s&&(u.target===a&&(u.target=o))}}for(var h=t.ruleToStartState[e],f=h.transitions.length;f>0;)i.addTransition(h.transitions[f-1]),h.transitions=h.transitions.slice(-1);t.ruleToStartState[e].addTransition(new N(i)),o.addTransition(new N(a));var d=new c;t.addState(d),d.addTransition(new w(o,t.ruleToTokenType[e])),i.addTransition(new N(d))},X.prototype.stateIsEndStateFor=function(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof _))return null;var n=t.transitions[t.transitions.length-1].target;return n instanceof h&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof d?t:null},X.prototype.markPrecedenceDecisions=function(t){for(var e=0;e<t.states.length;e++){var n=t.states[e];if(n instanceof _&&t.ruleToStartState[n.ruleIndex].isPrecedenceRule){var r=n.transitions[n.transitions.length-1].target;r instanceof h&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof d&&(n.isPrecedenceDecision=!0)}}},X.prototype.verifyATN=function(t){if(this.deserializationOptions.verifyATN)for(var e=0;e<t.states.length;e++){var n=t.states[e];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof k)this.checkCondition(null!==n.loopBackState);else if(n instanceof _)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof v)this.checkCondition(n.transitions[1].target instanceof h),this.checkCondition(!n.nonGreedy);else{if(!(n.transitions[0].target instanceof h))throw"IllegalState";this.checkCondition(n.transitions[1].target instanceof v),this.checkCondition(n.nonGreedy)}else n instanceof m?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof _)):n instanceof h?this.checkCondition(null!==n.loopBackState):n instanceof f?this.checkCondition(null!==n.stopState):n instanceof u?this.checkCondition(null!==n.endState):n instanceof p?this.checkCondition(null!==n.startState):n instanceof l?this.checkCondition(n.transitions.length<=1||n.decision>=0):this.checkCondition(n.transitions.length<=1||n instanceof d)}},X.prototype.checkCondition=function(t,e){if(!t)throw null==e&&(e="IllegalState"),e},X.prototype.readInt=function(){return this.data[this.pos++]},X.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},X.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var J=function(){for(var t=[],e=0;e<256;e++)t[e]=(e+256).toString(16).substr(1).toUpperCase();return t}();X.prototype.readUUID=function(){for(var t=[],e=7;e>=0;e--){var n=this.readInt();t[2*e+1]=255&n,t[2*e]=n>>8&255}return J[t[0]]+J[t[1]]+J[t[2]]+J[t[3]]+"-"+J[t[4]]+J[t[5]]+"-"+J[t[6]]+J[t[7]]+"-"+J[t[8]]+J[t[9]]+"-"+J[t[10]]+J[t[11]]+J[t[12]]+J[t[13]]+J[t[14]]+J[t[15]]},X.prototype.edgeFactory=function(t,e,n,i,o,s,a,c){var l=t.states[i];switch(e){case T.EPSILON:return new N(l);case T.RANGE:return new C(l,0!==a?r.EOF:o,s);case T.RULE:return new R(t.states[o],s,a,l);case T.PREDICATE:return new I(l,o,s,0!==a);case T.PRECEDENCE:return new L(l,o);case T.ATOM:return new w(l,0!==a?r.EOF:o);case T.ACTION:return new S(l,o,s,0!==a);case T.SET:return new b(l,c[o]);case T.NOT_SET:return new A(l,c[o]);case T.WILDCARD:return new O(l);default:throw"The specified transition type: "+e+" is not valid."}},X.prototype.stateFactory=function(t,e){if(null===this.stateFactories){var n=[];n[a.INVALID_TYPE]=null,n[a.BASIC]=function(){return new c},n[a.RULE_START]=function(){return new f},n[a.BLOCK_START]=function(){return new x},n[a.PLUS_BLOCK_START]=function(){return new k},n[a.STAR_BLOCK_START]=function(){return new v},n[a.TOKEN_START]=function(){return new y},n[a.RULE_STOP]=function(){return new d},n[a.BLOCK_END]=function(){return new p},n[a.STAR_LOOP_BACK]=function(){return new m},n[a.STAR_LOOP_ENTRY]=function(){return new _},n[a.PLUS_LOOP_BACK]=function(){return new g},n[a.LOOP_END]=function(){return new h},this.stateFactories=n}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";var r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r},X.prototype.lexerActionFactory=function(t,e,n){if(null===this.actionFactories){var r=[];r[M.CHANNEL]=function(t,e){return new U(t)},r[M.CUSTOM]=function(t,e){return new j(t,e)},r[M.MODE]=function(t,e){return new G(t)},r[M.MORE]=function(t,e){return H.INSTANCE},r[M.POP_MODE]=function(t,e){return W.INSTANCE},r[M.PUSH_MODE]=function(t,e){return new B(t)},r[M.SKIP]=function(t,e){return F.INSTANCE},r[M.TYPE]=function(t,e){return new V(t)},this.actionFactories=r}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,n)},e.ATNDeserializer=X},8361:(t,e,n)=>{var r=n(1418).X,i=n(637).Q,o=n(2044).getCachedPredictionContext,s=n(1257).Map;function a(t,e){return this.atn=t,this.sharedContextCache=e,this}a.ERROR=new r(2147483647,new i),a.prototype.getCachedContext=function(t){if(null===this.sharedContextCache)return t;var e=new s;return o(t,this.sharedContextCache,e)},e.e=a},7250:(t,e)=>{function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function r(){return n.call(this),this.stateType=n.BASIC,this}function i(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function o(){return i.call(this),this.endState=null,this}function s(){return o.call(this),this.stateType=n.BLOCK_START,this}function a(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function c(){return n.call(this),this.stateType=n.RULE_STOP,this}function l(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function u(){return i.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function p(){return o.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function h(){return o.call(this),this.stateType=n.STAR_BLOCK_START,this}function f(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function d(){return i.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function y(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function g(){return i.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(t){return t instanceof n&&this.stateNumber===t.stateNumber},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,i.prototype=Object.create(n.prototype),i.prototype.constructor=i,o.prototype=Object.create(i.prototype),o.prototype.constructor=o,s.prototype=Object.create(o.prototype),s.prototype.constructor=s,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,c.prototype=Object.create(n.prototype),c.prototype.constructor=c,l.prototype=Object.create(n.prototype),l.prototype.constructor=l,u.prototype=Object.create(i.prototype),u.prototype.constructor=u,p.prototype=Object.create(o.prototype),p.prototype.constructor=p,h.prototype=Object.create(o.prototype),h.prototype.constructor=h,f.prototype=Object.create(n.prototype),f.prototype.constructor=f,d.prototype=Object.create(i.prototype),d.prototype.constructor=d,y.prototype=Object.create(n.prototype),y.prototype.constructor=y,g.prototype=Object.create(i.prototype),g.prototype.constructor=g,e.ATNState=n,e.BasicState=r,e.DecisionState=i,e.BlockStartState=o,e.BlockEndState=a,e.LoopEndState=y,e.RuleStartState=l,e.RuleStopState=c,e.TokensStartState=g,e.PlusLoopbackState=u,e.StarLoopbackState=f,e.StarLoopEntryState=d,e.PlusBlockStartState=p,e.StarBlockStartState=h,e.BasicBlockStartState=s},8771:(t,e)=>{function n(){}n.LEXER=0,n.PARSER=1,e.E=n},8989:(t,e,n)=>{var r=n(653).Token,i=n(7562).Lexer,o=n(7339).ATN,s=n(8361).e,a=n(1418).X,c=(n(637).Q,n(637).F),l=n(2044).PredictionContext,u=n(2044).SingletonPredictionContext,p=n(7250).RuleStopState,h=n(9845).I,f=n(5895).Transition,d=n(7231).I,y=n(6342).LexerNoViableAltException;function g(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}function m(){return g(this),this}function _(t,e,n,r){return s.call(this,e,r),this.decisionToDFA=n,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE,this.prevAccept=new m,this}m.prototype.reset=function(){g(this)},_.prototype=Object.create(s.prototype),_.prototype.constructor=_,_.debug=!1,_.dfa_debug=!1,_.MIN_DFA_EDGE=0,_.MAX_DFA_EDGE=127,_.match_calls=0,_.prototype.copyState=function(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex},_.prototype.match=function(t,e){this.match_calls+=1,this.mode=e;var n=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();var r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(n)}},_.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE},_.prototype.matchATN=function(t){var e=this.atn.modeToStartState[this.mode];_.debug&&console.log("matchATN mode "+this.mode+" start: "+e);var n=this.mode,r=this.computeStartState(t,e),i=r.hasSemanticContext;r.hasSemanticContext=!1;var o=this.addDFAState(r);i||(this.decisionToDFA[this.mode].s0=o);var s=this.execATN(t,o);return _.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),s},_.prototype.execATN=function(t,e){_.debug&&console.log("start state closure="+e.configs),e.isAcceptState&&this.captureSimState(this.prevAccept,t,e);for(var n=t.LA(1),i=e;;){_.debug&&console.log("execATN loop starting closure: "+i.configs);var o=this.getExistingTargetState(i,n);if(null===o&&(o=this.computeTargetState(t,i,n)),o===s.ERROR)break;if(n!==r.EOF&&this.consume(t),o.isAcceptState&&(this.captureSimState(this.prevAccept,t,o),n===r.EOF))break;n=t.LA(1),i=o}return this.failOrAccept(this.prevAccept,t,i.configs,n)},_.prototype.getExistingTargetState=function(t,e){if(null===t.edges||e<_.MIN_DFA_EDGE||e>_.MAX_DFA_EDGE)return null;var n=t.edges[e-_.MIN_DFA_EDGE];return void 0===n&&(n=null),_.debug&&null!==n&&console.log("reuse state "+t.stateNumber+" edge to "+n.stateNumber),n},_.prototype.computeTargetState=function(t,e,n){var r=new c;return this.getReachableConfigSet(t,e.configs,r,n),0===r.items.length?(r.hasSemanticContext||this.addDFAEdge(e,n,s.ERROR),s.ERROR):this.addDFAEdge(e,n,null,r)},_.prototype.failOrAccept=function(t,e,n,i){if(null!==this.prevAccept.dfaState){var o=t.dfaState.lexerActionExecutor;return this.accept(e,o,this.startIndex,t.index,t.line,t.column),t.dfaState.prediction}if(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new y(this.recog,e,this.startIndex,n)},_.prototype.getReachableConfigSet=function(t,e,n,i){for(var s=o.INVALID_ALT_NUMBER,a=0;a<e.items.length;a++){var c=e.items[a],l=c.alt===s;if(!l||!c.passedThroughNonGreedyDecision){_.debug&&console.log("testing %s at %s\n",this.getTokenName(i),c.toString(this.recog,!0));for(var u=0;u<c.state.transitions.length;u++){var p=c.state.transitions[u],f=this.getReachableTarget(p,i);if(null!==f){var d=c.lexerActionExecutor;null!==d&&(d=d.fixOffsetBeforeMatch(t.index-this.startIndex));var y=i===r.EOF,g=new h({state:f,lexerActionExecutor:d},c);this.closure(t,g,n,l,!0,y)&&(s=c.alt)}}}}},_.prototype.accept=function(t,e,n,r,i,o){_.debug&&console.log("ACTION %s\n",e),t.seek(r),this.line=i,this.column=o,null!==e&&null!==this.recog&&e.execute(this.recog,t,n)},_.prototype.getReachableTarget=function(t,e){return t.matches(e,0,i.MAX_CHAR_VALUE)?t.target:null},_.prototype.computeStartState=function(t,e){for(var n=l.EMPTY,r=new c,i=0;i<e.transitions.length;i++){var o=e.transitions[i].target,s=new h({state:o,alt:i+1,context:n},null);this.closure(t,s,r,!1,!1,!1)}return r},_.prototype.closure=function(t,e,n,r,i,o){var s=null;if(_.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof p){if(_.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return n.add(e),!0;n.add(new h({state:e.state,context:l.EMPTY},e)),r=!0}if(null!==e.context&&!e.context.isEmpty())for(var a=0;a<e.context.length;a++)if(e.context.getReturnState(a)!==l.EMPTY_RETURN_STATE){var c=e.context.getParent(a),u=this.atn.states[e.context.getReturnState(a)];s=new h({state:u,context:c},e),r=this.closure(t,s,n,r,i,o)}return r}e.state.epsilonOnlyTransitions||r&&e.passedThroughNonGreedyDecision||n.add(e);for(var f=0;f<e.state.transitions.length;f++){var d=e.state.transitions[f];null!==(s=this.getEpsilonTarget(t,e,d,n,i,o))&&(r=this.closure(t,s,n,r,i,o))}return r},_.prototype.getEpsilonTarget=function(t,e,n,o,s,a){var c=null;if(n.serializationType===f.RULE){var l=u.create(e.context,n.followState.stateNumber);c=new h({state:n.target,context:l},e)}else{if(n.serializationType===f.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===f.PREDICATE)_.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),o.hasSemanticContext=!0,this.evaluatePredicate(t,n.ruleIndex,n.predIndex,s)&&(c=new h({state:n.target},e));else if(n.serializationType===f.ACTION)if(null===e.context||e.context.hasEmptyPath()){var p=d.append(e.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);c=new h({state:n.target,lexerActionExecutor:p},e)}else c=new h({state:n.target},e);else n.serializationType===f.EPSILON?c=new h({state:n.target},e):n.serializationType!==f.ATOM&&n.serializationType!==f.RANGE&&n.serializationType!==f.SET||a&&n.matches(r.EOF,0,i.MAX_CHAR_VALUE)&&(c=new h({state:n.target},e))}return c},_.prototype.evaluatePredicate=function(t,e,n,r){if(null===this.recog)return!0;if(!r)return this.recog.sempred(null,e,n);var i=this.column,o=this.line,s=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(null,e,n)}finally{this.column=i,this.line=o,t.seek(s),t.release(a)}},_.prototype.captureSimState=function(t,e,n){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=n},_.prototype.addDFAEdge=function(t,e,n,r){if(void 0===n&&(n=null),void 0===r&&(r=null),null===n&&null!==r){var i=r.hasSemanticContext;if(r.hasSemanticContext=!1,n=this.addDFAState(r),i)return n}return e<_.MIN_DFA_EDGE||e>_.MAX_DFA_EDGE||(_.debug&&console.log("EDGE "+t+" -> "+n+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-_.MIN_DFA_EDGE]=n),n},_.prototype.addDFAState=function(t){for(var e=new a(null,t),n=null,r=0;r<t.items.length;r++){var i=t.items[r];if(i.state instanceof p){n=i;break}}null!==n&&(e.isAcceptState=!0,e.lexerActionExecutor=n.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);var o=this.decisionToDFA[this.mode],s=o.states.get(e);if(null!==s)return s;var c=e;return c.stateNumber=o.states.length,t.setReadonly(!0),c.configs=t,o.states.add(c),c},_.prototype.getDFA=function(t){return this.decisionToDFA[t]},_.prototype.getText=function(t){return t.getText(this.startIndex,t.index-1)},_.prototype.consume=function(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()},_.prototype.getTokenName=function(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"},e.LexerATNSimulator=_},1586:(t,e)=>{function n(){}function r(t){return this.actionType=t,this.isPositionDependent=!1,this}function i(){return r.call(this,n.SKIP),this}function o(t){return r.call(this,n.TYPE),this.type=t,this}function s(t){return r.call(this,n.PUSH_MODE),this.mode=t,this}function a(){return r.call(this,n.POP_MODE),this}function c(){return r.call(this,n.MORE),this}function l(t){return r.call(this,n.MODE),this.mode=t,this}function u(t,e){return r.call(this,n.CUSTOM),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0,this}function p(t){return r.call(this,n.CHANNEL),this.channel=t,this}function h(t,e){return r.call(this,e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0,this}n.CHANNEL=0,n.CUSTOM=1,n.MODE=2,n.MORE=3,n.POP_MODE=4,n.PUSH_MODE=5,n.SKIP=6,n.TYPE=7,r.prototype.hashCode=function(){var t=new Hash;return this.updateHashCode(t),t.finish()},r.prototype.updateHashCode=function(t){t.update(this.actionType)},r.prototype.equals=function(t){return this===t},i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.INSTANCE=new i,i.prototype.execute=function(t){t.skip()},i.prototype.toString=function(){return"skip"},o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.prototype.execute=function(t){t.type=this.type},o.prototype.updateHashCode=function(t){t.update(this.actionType,this.type)},o.prototype.equals=function(t){return this===t||t instanceof o&&this.type===t.type},o.prototype.toString=function(){return"type("+this.type+")"},s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.prototype.execute=function(t){t.pushMode(this.mode)},s.prototype.updateHashCode=function(t){t.update(this.actionType,this.mode)},s.prototype.equals=function(t){return this===t||t instanceof s&&this.mode===t.mode},s.prototype.toString=function(){return"pushMode("+this.mode+")"},a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.INSTANCE=new a,a.prototype.execute=function(t){t.popMode()},a.prototype.toString=function(){return"popMode"},c.prototype=Object.create(r.prototype),c.prototype.constructor=c,c.INSTANCE=new c,c.prototype.execute=function(t){t.more()},c.prototype.toString=function(){return"more"},l.prototype=Object.create(r.prototype),l.prototype.constructor=l,l.prototype.execute=function(t){t.mode(this.mode)},l.prototype.updateHashCode=function(t){t.update(this.actionType,this.mode)},l.prototype.equals=function(t){return this===t||t instanceof l&&this.mode===t.mode},l.prototype.toString=function(){return"mode("+this.mode+")"},u.prototype=Object.create(r.prototype),u.prototype.constructor=u,u.prototype.execute=function(t){t.action(null,this.ruleIndex,this.actionIndex)},u.prototype.updateHashCode=function(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)},u.prototype.equals=function(t){return this===t||t instanceof u&&(this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex)},p.prototype=Object.create(r.prototype),p.prototype.constructor=p,p.prototype.execute=function(t){t._channel=this.channel},p.prototype.updateHashCode=function(t){t.update(this.actionType,this.channel)},p.prototype.equals=function(t){return this===t||t instanceof p&&this.channel===t.channel},p.prototype.toString=function(){return"channel("+this.channel+")"},h.prototype=Object.create(r.prototype),h.prototype.constructor=h,h.prototype.execute=function(t){this.action.execute(t)},h.prototype.updateHashCode=function(t){t.update(this.actionType,this.offset,this.action)},h.prototype.equals=function(t){return this===t||t instanceof h&&(this.offset===t.offset&&this.action===t.action)},e.LexerActionType=n,e.LexerSkipAction=i,e.LexerChannelAction=p,e.LexerCustomAction=u,e.LexerIndexedCustomAction=h,e.LexerMoreAction=c,e.LexerTypeAction=o,e.LexerPushModeAction=s,e.LexerPopModeAction=a,e.LexerModeAction=l},7231:(t,e,n)=>{var r=n(1257).hashStuff,i=n(1586).LexerIndexedCustomAction;function o(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=r(t),this}o.append=function(t,e){return new o(null===t?[e]:t.lexerActions.concat([e]))},o.prototype.fixOffsetBeforeMatch=function(t){for(var e=null,n=0;n<this.lexerActions.length;n++)!this.lexerActions[n].isPositionDependent||this.lexerActions[n]instanceof i||(null===e&&(e=this.lexerActions.concat([])),e[n]=new i(t,this.lexerActions[n]));return null===e?this:new o(e)},o.prototype.execute=function(t,e,n){var r=!1,o=e.index;try{for(var s=0;s<this.lexerActions.length;s++){var a=this.lexerActions[s];if(a instanceof i){var c=a.offset;e.seek(n+c),a=a.action,r=n+c!==o}else a.isPositionDependent&&(e.seek(o),r=!1);a.execute(t)}}finally{r&&e.seek(o)}},o.prototype.hashCode=function(){return this.cachedHashCode},o.prototype.updateHashCode=function(t){t.update(this.cachedHashCode)},o.prototype.equals=function(t){if(this===t)return!0;if(t instanceof o){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;for(var e=this.lexerActions.length,n=0;n<e;++n)if(!this.lexerActions[n].equals(t.lexerActions[n]))return!1;return!0}return!1},e.I=o},2082:(t,e,n)=>{var r=n(1257),i=r.Set,o=r.BitSet,s=r.DoubleDict,a=n(7339).ATN,c=n(7250).ATNState,l=n(9845).G,u=n(637).Q,p=n(653).Token,h=n(1418).X,f=n(1418).PredPrediction,d=n(8361).e,y=n(9326).PredictionMode,g=n(6053).m,m=(n(588).ParserRuleContext,n(6097).Ij),_=(n(7250).StarLoopEntryState,n(7250).RuleStopState),k=n(2044).PredictionContext,v=n(5063).Interval,x=n(5895),E=x.Transition,T=x.SetTransition,w=x.NotSetTransition,b=x.RuleTransition,A=x.ActionTransition,R=n(6342).NoViableAltException,C=n(2044).SingletonPredictionContext,S=n(2044).predictionContextFromRuleContext;function N(t,e,n,r){return d.call(this,e,r),this.parser=t,this.decisionToDFA=n,this.predictionMode=y.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}N.prototype=Object.create(d.prototype),N.prototype.constructor=N,N.prototype.debug=!1,N.prototype.debug_closure=!1,N.prototype.debug_add=!1,N.prototype.debug_list_atn_decisions=!1,N.prototype.dfa_debug=!1,N.prototype.retry_debug=!1,N.prototype.reset=function(){},N.prototype.adaptivePredict=function(t,e,n){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=n;var r=this.decisionToDFA[e];this._dfa=r;var i=t.mark(),o=t.index;try{var s;if(null===(s=r.precedenceDfa?r.getPrecedenceStartState(this.parser.getPrecedence()):r.s0)){null===n&&(n=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+r.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+n.toString(this.parser.ruleNames));var a=this.computeStartState(r.atnStartState,g.EMPTY,!1);r.precedenceDfa?(r.s0.configs=a,a=this.applyPrecedenceFilter(a),s=this.addDFAState(r,new h(null,a)),r.setPrecedenceStartState(this.parser.getPrecedence(),s)):(s=this.addDFAState(r,new h(null,a)),r.s0=s)}var c=this.execATN(r,s,t,o,n);return this.debug&&console.log("DFA after predictATN: "+r.toString(this.parser.literalNames)),c}finally{this._dfa=null,this.mergeCache=null,t.seek(o),t.release(i)}},N.prototype.execATN=function(t,e,n,r,i){var o;(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);var s=e;this.debug&&console.log("s0 = "+e);for(var c=n.LA(1);;){var l=this.getExistingTargetState(s,c);if(null===l&&(l=this.computeTargetState(t,s,c)),l===d.ERROR){var u=this.noViableAlt(n,i,s.configs,r);if(n.seek(r),(o=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s.configs,i))!==a.INVALID_ALT_NUMBER)return o;throw u}if(l.requiresFullContext&&this.predictionMode!==y.SLL){var h=null;if(null!==l.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var f=n.index;if(f!==r&&n.seek(r),1===(h=this.evalSemanticContext(l.predicates,i,!0)).length)return this.debug&&console.log("Full LL avoided"),h.minValue();f!==r&&n.seek(f)}this.dfa_debug&&console.log("ctx sensitive state "+i+" in "+l);var g=this.computeStartState(t.atnStartState,i,!0);return this.reportAttemptingFullContext(t,h,l.configs,r,n.index),o=this.execATNWithFullContext(t,l,g,n,r,i)}if(l.isAcceptState){if(null===l.predicates)return l.prediction;var m=n.index;n.seek(r);var _=this.evalSemanticContext(l.predicates,i,!0);if(0===_.length)throw this.noViableAlt(n,i,l.configs,r);return 1===_.length||this.reportAmbiguity(t,l,r,m,!1,_,l.configs),_.minValue()}s=l,c!==p.EOF&&(n.consume(),c=n.LA(1))}},N.prototype.getExistingTargetState=function(t,e){var n=t.edges;return null===n?null:n[e+1]||null},N.prototype.computeTargetState=function(t,e,n){var i=this.computeReachSet(e.configs,n,!1);if(null===i)return this.addDFAEdge(t,e,n,d.ERROR),d.ERROR;var o=new h(null,i),s=this.getUniqueAlt(i);if(this.debug){var c=y.getConflictingAltSubsets(i);console.log("SLL altSubSets="+r.arrayToString(c)+", previous="+e.configs+", configs="+i+", predict="+s+", allSubsetsConflict="+y.allSubsetsConflict(c)+", conflictingAlts="+this.getConflictingAlts(i))}return s!==a.INVALID_ALT_NUMBER?(o.isAcceptState=!0,o.configs.uniqueAlt=s,o.prediction=s):y.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(o.configs.conflictingAlts=this.getConflictingAlts(i),o.requiresFullContext=!0,o.isAcceptState=!0,o.prediction=o.configs.conflictingAlts.minValue()),o.isAcceptState&&o.configs.hasSemanticContext&&(this.predicateDFAState(o,this.atn.getDecisionState(t.decision)),null!==o.predicates&&(o.prediction=a.INVALID_ALT_NUMBER)),o=this.addDFAEdge(t,e,n,o)},N.prototype.predicateDFAState=function(t,e){var n=e.transitions.length,r=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(r,t.configs,n);null!==i?(t.predicates=this.getPredicatePredictions(r,i),t.prediction=a.INVALID_ALT_NUMBER):t.prediction=r.minValue()},N.prototype.execATNWithFullContext=function(t,e,n,r,i,o){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+n);var s=!1,c=null,l=n;r.seek(i);for(var u=r.LA(1),h=-1;;){if(null===(c=this.computeReachSet(l,u,true))){var f=this.noViableAlt(r,o,l,i);r.seek(i);var d=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,o);if(d!==a.INVALID_ALT_NUMBER)return d;throw f}var g=y.getConflictingAltSubsets(c);if(this.debug&&console.log("LL altSubSets="+g+", predict="+y.getUniqueAlt(g)+", resolvesToJustOneViableAlt="+y.resolvesToJustOneViableAlt(g)),c.uniqueAlt=this.getUniqueAlt(c),c.uniqueAlt!==a.INVALID_ALT_NUMBER){h=c.uniqueAlt;break}if(this.predictionMode!==y.LL_EXACT_AMBIG_DETECTION){if((h=y.resolvesToJustOneViableAlt(g))!==a.INVALID_ALT_NUMBER)break}else if(y.allSubsetsConflict(g)&&y.allSubsetsEqual(g)){s=!0,h=y.getSingleViableAlt(g);break}l=c,u!==p.EOF&&(r.consume(),u=r.LA(1))}return c.uniqueAlt!==a.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,h,c,i,r.index),h):(this.reportAmbiguity(t,e,i,r.index,s,null,c),h)},N.prototype.computeReachSet=function(t,e,n){this.debug&&console.log("in computeReachSet, starting closure: "+t),null===this.mergeCache&&(this.mergeCache=new s);for(var r=new u(n),o=null,c=0;c<t.items.length;c++){var h=t.items[c];if(this.debug_add&&console.log("testing "+this.getTokenName(e)+" at "+h),h.state instanceof _)(n||e===p.EOF)&&(null===o&&(o=[]),o.push(h),this.debug_add&&console.log("added "+h+" to skippedStopStates"));else for(var f=0;f<h.state.transitions.length;f++){var d=h.state.transitions[f],g=this.getReachableTarget(d,e);if(null!==g){var m=new l({state:g},h);r.add(m,this.mergeCache),this.debug_add&&console.log("added "+m+" to intermediate")}}}var k=null;if(null===o&&e!==p.EOF&&(1===r.items.length||this.getUniqueAlt(r)!==a.INVALID_ALT_NUMBER)&&(k=r),null===k){k=new u(n);for(var v=new i,x=e===p.EOF,E=0;E<r.items.length;E++)this.closure(r.items[E],k,v,!1,n,x)}if(e===p.EOF&&(k=this.removeAllConfigsNotInRuleStopState(k,k===r)),!(null===o||n&&y.hasConfigInRuleStopState(k)))for(var T=0;T<o.length;T++)k.add(o[T],this.mergeCache);return 0===k.items.length?null:k},N.prototype.removeAllConfigsNotInRuleStopState=function(t,e){if(y.allConfigsInRuleStopStates(t))return t;for(var n=new u(t.fullCtx),r=0;r<t.items.length;r++){var i=t.items[r];if(i.state instanceof _)n.add(i,this.mergeCache);else if(e&&i.state.epsilonOnlyTransitions)if(this.atn.nextTokens(i.state).contains(p.EPSILON)){var o=this.atn.ruleToStopState[i.state.ruleIndex];n.add(new l({state:o},i),this.mergeCache)}}return n},N.prototype.computeStartState=function(t,e,n){for(var r=S(this.atn,e),o=new u(n),s=0;s<t.transitions.length;s++){var a=t.transitions[s].target,c=new l({state:a,alt:s+1,context:r},null),p=new i;this.closure(c,o,p,!0,n,!1)}return o},N.prototype.applyPrecedenceFilter=function(t){for(var e,n=[],r=new u(t.fullCtx),i=0;i<t.items.length;i++)if(1===(e=t.items[i]).alt){var o=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==o&&(n[e.state.stateNumber]=e.context,o!==e.semanticContext?r.add(new l({semanticContext:o},e),this.mergeCache):r.add(e,this.mergeCache))}for(i=0;i<t.items.length;i++)if(1!==(e=t.items[i]).alt){if(!e.precedenceFilterSuppressed){var s=n[e.state.stateNumber]||null;if(null!==s&&s.equals(e.context))continue}r.add(e,this.mergeCache)}return r},N.prototype.getReachableTarget=function(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null},N.prototype.getPredsForAmbigAlts=function(t,e,n){for(var i=[],o=0;o<e.items.length;o++){var s=e.items[o];t.contains(s.alt)&&(i[s.alt]=m.orContext(i[s.alt]||null,s.semanticContext))}var a=0;for(o=1;o<n+1;o++){var c=i[o]||null;null===c?i[o]=m.NONE:c!==m.NONE&&(a+=1)}return 0===a&&(i=null),this.debug&&console.log("getPredsForAmbigAlts result "+r.arrayToString(i)),i},N.prototype.getPredicatePredictions=function(t,e){for(var n=[],r=!1,i=1;i<e.length;i++){var o=e[i];null!==t&&t.contains(i)&&n.push(new f(o,i)),o!==m.NONE&&(r=!0)}return r?n:null},N.prototype.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule=function(t,e){var n=this.splitAccordingToSemanticValidity(t,e),r=n[0],i=n[1],o=this.getAltThatFinishedDecisionEntryRule(r);return o!==a.INVALID_ALT_NUMBER||i.items.length>0&&(o=this.getAltThatFinishedDecisionEntryRule(i))!==a.INVALID_ALT_NUMBER?o:a.INVALID_ALT_NUMBER},N.prototype.getAltThatFinishedDecisionEntryRule=function(t){for(var e=[],n=0;n<t.items.length;n++){var r=t.items[n];(r.reachesIntoOuterContext>0||r.state instanceof _&&r.context.hasEmptyPath())&&e.indexOf(r.alt)<0&&e.push(r.alt)}return 0===e.length?a.INVALID_ALT_NUMBER:Math.min.apply(null,e)},N.prototype.splitAccordingToSemanticValidity=function(t,e){for(var n=new u(t.fullCtx),r=new u(t.fullCtx),i=0;i<t.items.length;i++){var o=t.items[i];if(o.semanticContext!==m.NONE)o.semanticContext.evaluate(this.parser,e)?n.add(o):r.add(o);else n.add(o)}return[n,r]},N.prototype.evalSemanticContext=function(t,e,n){for(var r=new o,i=0;i<t.length;i++){var s=t[i];if(s.pred!==m.NONE){var a=s.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+s+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+s.alt),r.add(s.alt),!n))break}else if(r.add(s.alt),!n)break}return r},N.prototype.closure=function(t,e,n,r,i,o){this.closureCheckingStopState(t,e,n,r,i,0,o)},N.prototype.closureCheckingStopState=function(t,e,n,r,i,o,s){if((this.debug||this.debug_closure)&&(console.log("closure("+t.toString(this.parser,!0)+")"),t.reachesIntoOuterContext>50))throw"problem";if(t.state instanceof _){if(!t.context.isEmpty()){for(var a=0;a<t.context.length;a++)if(t.context.getReturnState(a)!==k.EMPTY_RETURN_STATE){var c=this.atn.states[t.context.getReturnState(a)],u=t.context.getParent(a),p={state:c,alt:t.alt,context:u,semanticContext:t.semanticContext},h=new l(p,null);h.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(h,e,n,r,i,o-1,s)}else{if(i){e.add(new l({state:t.state,context:k.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,n,r,i,o,s)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,n,r,i,o,s)},N.prototype.closure_=function(t,e,n,r,i,o,s){var a=t.state;a.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(var c=0;c<a.transitions.length;c++)if(0!=c||!this.canDropLoopEntryEdgeInLeftRecursiveRule(t)){var l=a.transitions[c],u=r&&!(l instanceof A),p=this.getEpsilonTarget(t,l,u,0===o,i,s);if(null!==p){var h=o;if(t.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(p.precedenceFilterSuppressed=!0),p.reachesIntoOuterContext+=1,n.add(p)!==p)continue;e.dipsIntoOuterContext=!0,h-=1,this.debug&&console.log("dips into outer ctx: "+p)}else{if(!l.isEpsilon&&n.add(p)!==p)continue;l instanceof b&&h>=0&&(h+=1)}this.closureCheckingStopState(p,e,n,u,i,h,s)}}},N.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(t){var e=t.state;if(e.stateType!=c.STAR_LOOP_ENTRY)return!1;if(e.stateType!=c.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;for(var n=t.context.length,r=0;r<n;r++){if((s=this.atn.states[t.context.getReturnState(r)]).ruleIndex!=e.ruleIndex)return!1}var i=e.transitions[0].target.endState.stateNumber,o=this.atn.states[i];for(r=0;r<n;r++){var s,a=t.context.getReturnState(r);if(1!=(s=this.atn.states[a]).transitions.length||!s.transitions[0].isEpsilon)return!1;var l=s.transitions[0].target;if((s.stateType!=c.BLOCK_END||l!=e)&&(s!=o&&l!=o&&(l.stateType!=c.BLOCK_END||1!=l.transitions.length||!l.transitions[0].isEpsilon||l.transitions[0].target!=e)))return!1}return!0},N.prototype.getRuleName=function(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"},N.prototype.getEpsilonTarget=function(t,e,n,r,i,o){switch(e.serializationType){case E.RULE:return this.ruleTransition(t,e);case E.PRECEDENCE:return this.precedenceTransition(t,e,n,r,i);case E.PREDICATE:return this.predTransition(t,e,n,r,i);case E.ACTION:return this.actionTransition(t,e);case E.EPSILON:return new l({state:e.target},t);case E.ATOM:case E.RANGE:case E.SET:return o&&e.matches(p.EOF,0,1)?new l({state:e.target},t):null;default:return null}},N.prototype.actionTransition=function(t,e){if(this.debug){var n=-1==e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+n)}return new l({state:e.target},t)},N.prototype.precedenceTransition=function(t,e,n,i,o){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&i)if(o){var a=this._input.index;this._input.seek(this._startIndex);var c=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),c&&(s=new l({state:e.target},t))}else{var u=m.andContext(t.semanticContext,e.getPredicate());s=new l({state:e.target,semanticContext:u},t)}else s=new l({state:e.target},t);return this.debug&&console.log("config from pred transition="+s),s},N.prototype.predTransition=function(t,e,n,i,o){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));var s=null;if(n&&(e.isCtxDependent&&i||!e.isCtxDependent))if(o){var a=this._input.index;this._input.seek(this._startIndex);var c=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(a),c&&(s=new l({state:e.target},t))}else{var u=m.andContext(t.semanticContext,e.getPredicate());s=new l({state:e.target,semanticContext:u},t)}else s=new l({state:e.target},t);return this.debug&&console.log("config from pred transition="+s),s},N.prototype.ruleTransition=function(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);var n=e.followState,r=C.create(t.context,n.stateNumber);return new l({state:e.target,context:r},t)},N.prototype.getConflictingAlts=function(t){var e=y.getConflictingAltSubsets(t);return y.getAlts(e)},N.prototype.getConflictingAltsOrUniqueAlt=function(t){var e=null;return t.uniqueAlt!==a.INVALID_ALT_NUMBER?(e=new o).add(t.uniqueAlt):e=t.conflictingAlts,e},N.prototype.getTokenName=function(t){if(t===p.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(t>=this.parser.literalNames.length&&t>=this.parser.symbolicNames.length))return(this.parser.literalNames[t]||this.parser.symbolicNames[t])+"<"+t+">";console.log(t+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+t},N.prototype.getLookaheadName=function(t){return this.getTokenName(t.LA(1))},N.prototype.dumpDeadEndConfigs=function(t){console.log("dead end configs: ");for(var e=t.getDeadEndConfigs(),n=0;n<e.length;n++){var r=e[n],i="no edges";if(r.state.transitions.length>0){var o=r.state.transitions[0];if(o instanceof AtomTransition)i="Atom "+this.getTokenName(o.label);else if(o instanceof T){i=(o instanceof w?"~":"")+"Set "+o.set}}console.error(r.toString(this.parser,!0)+":"+i)}},N.prototype.noViableAlt=function(t,e,n,r){return new R(this.parser,t,t.get(r),t.LT(1),n,e)},N.prototype.getUniqueAlt=function(t){for(var e=a.INVALID_ALT_NUMBER,n=0;n<t.items.length;n++){var r=t.items[n];if(e===a.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return a.INVALID_ALT_NUMBER}return e},N.prototype.addDFAEdge=function(t,e,n,r){if(this.debug&&console.log("EDGE "+e+" -> "+r+" upon "+this.getTokenName(n)),null===r)return null;if(r=this.addDFAState(t,r),null===e||n<-1||n>this.atn.maxTokenType)return r;if(null===e.edges&&(e.edges=[]),e.edges[n+1]=r,this.debug){var i=null===this.parser?null:this.parser.literalNames,o=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(i,o))}return r},N.prototype.addDFAState=function(t,e){if(e==d.ERROR)return e;var n=t.states.get(e);return null!==n?n:(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)},N.prototype.reportAttemptingFullContext=function(t,e,n,r,i){if(this.debug||this.retry_debug){var o=new v(r,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(o))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,r,i,e,n)},N.prototype.reportContextSensitivity=function(t,e,n,r,i){if(this.debug||this.retry_debug){var o=new v(r,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(o))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,r,i,e,n)},N.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){if(this.debug||this.retry_debug){var a=new v(n,r+1);console.log("reportAmbiguity "+o+":"+s+", input="+this.parser.getTokenStream().getText(a))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,n,r,i,o,s)},e.ParserATNSimulator=N},9326:(t,e,n)=>{n(1257).Set;var r=n(1257).Map,i=n(1257).BitSet,o=n(1257).AltDict,s=n(7339).ATN,a=n(7250).RuleStopState,c=n(637).Q,l=n(9845).G,u=n(6097).Ij,p=(n(1257).Hash,n(1257).hashStuff);n(1257).equalArrays;function h(){return this}h.SLL=0,h.LL=1,h.LL_EXACT_AMBIG_DETECTION=2,h.hasSLLConflictTerminatingPrediction=function(t,e){if(h.allConfigsInRuleStopStates(e))return!0;if(t===h.SLL&&e.hasSemanticContext){for(var n=new c,r=0;r<e.items.length;r++){var i=e.items[r];i=new l({semanticContext:u.NONE},i),n.add(i)}e=n}var o=h.getConflictingAltSubsets(e);return h.hasConflictingAltSet(o)&&!h.hasStateAssociatedWithOneAlt(e)},h.hasConfigInRuleStopState=function(t){for(var e=0;e<t.items.length;e++){if(t.items[e].state instanceof a)return!0}return!1},h.allConfigsInRuleStopStates=function(t){for(var e=0;e<t.items.length;e++){if(!(t.items[e].state instanceof a))return!1}return!0},h.resolvesToJustOneViableAlt=function(t){return h.getSingleViableAlt(t)},h.allSubsetsConflict=function(t){return!h.hasNonConflictingAltSet(t)},h.hasNonConflictingAltSet=function(t){for(var e=0;e<t.length;e++){if(1===t[e].length)return!0}return!1},h.hasConflictingAltSet=function(t){for(var e=0;e<t.length;e++){if(t[e].length>1)return!0}return!1},h.allSubsetsEqual=function(t){for(var e=null,n=0;n<t.length;n++){var r=t[n];if(null===e)e=r;else if(r!==e)return!1}return!0},h.getUniqueAlt=function(t){var e=h.getAlts(t);return 1===e.length?e.minValue():s.INVALID_ALT_NUMBER},h.getAlts=function(t){var e=new i;return t.map((function(t){e.or(t)})),e},h.getConflictingAltSubsets=function(t){var e=new r;return e.hashFunction=function(t){p(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber==e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){var n=e.get(t);null===n&&(n=new i,e.put(t,n)),n.add(t.alt)})),e.getValues()},h.getStateToAltMap=function(t){var e=new o;return t.items.map((function(t){var n=e.get(t.state);null===n&&(n=new i,e.put(t.state,n)),n.add(t.alt)})),e},h.hasStateAssociatedWithOneAlt=function(t){for(var e=h.getStateToAltMap(t).values(),n=0;n<e.length;n++)if(1===e[n].length)return!0;return!1},h.getSingleViableAlt=function(t){for(var e=null,n=0;n<t.length;n++){var r=t[n].minValue();if(null===e)e=r;else if(e!==r)return s.INVALID_ALT_NUMBER}return e},e.PredictionMode=h},6097:(t,e,n)=>{var r=n(1257).Set,i=n(1257).Hash;function o(){return this}function s(t,e,n){return o.call(this),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==n&&n,this}function a(t){o.call(this),this.precedence=void 0===t?0:t}function c(t,e){o.call(this);var n=new r;t instanceof c?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof c?e.opnds.map((function(t){n.add(t)})):n.add(e);var i=a.filterPrecedencePredicates(n);if(i.length>0){var s=null;i.map((function(t){(null===s||t.precedence<s.precedence)&&(s=t)})),n.add(s)}return this.opnds=n.values(),this}function l(t,e){o.call(this);var n=new r;t instanceof l?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof l?e.opnds.map((function(t){n.add(t)})):n.add(e);var i=a.filterPrecedencePredicates(n);if(i.length>0){var s=i.sort((function(t,e){return t.compareTo(e)})),c=s[s.length-1];n.add(c)}return this.opnds=n.values(),this}o.prototype.hashCode=function(){var t=new i;return this.updateHashCode(t),t.finish()},o.prototype.evaluate=function(t,e){},o.prototype.evalPrecedence=function(t,e){return this},o.andContext=function(t,e){if(null===t||t===o.NONE)return e;if(null===e||e===o.NONE)return t;var n=new c(t,e);return 1===n.opnds.length?n.opnds[0]:n},o.orContext=function(t,e){if(null===t)return e;if(null===e)return t;if(t===o.NONE||e===o.NONE)return o.NONE;var n=new l(t,e);return 1===n.opnds.length?n.opnds[0]:n},s.prototype=Object.create(o.prototype),s.prototype.constructor=s,o.NONE=new s,s.prototype.evaluate=function(t,e){var n=this.isCtxDependent?e:null;return t.sempred(n,this.ruleIndex,this.predIndex)},s.prototype.updateHashCode=function(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},s.prototype.equals=function(t){return this===t||t instanceof s&&(this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent)},s.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},a.prototype=Object.create(o.prototype),a.prototype.constructor=a,a.prototype.evaluate=function(t,e){return t.precpred(e,this.precedence)},a.prototype.evalPrecedence=function(t,e){return t.precpred(e,this.precedence)?o.NONE:null},a.prototype.compareTo=function(t){return this.precedence-t.precedence},a.prototype.updateHashCode=function(t){t.update(31)},a.prototype.equals=function(t){return this===t||t instanceof a&&this.precedence===t.precedence},a.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},a.filterPrecedencePredicates=function(t){var e=[];return t.values().map((function(t){t instanceof a&&e.push(t)})),e},c.prototype=Object.create(o.prototype),c.prototype.constructor=c,c.prototype.equals=function(t){return this===t||t instanceof c&&this.opnds===t.opnds},c.prototype.updateHashCode=function(t){t.update(this.opnds,"AND")},c.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(t,e))return!1;return!0},c.prototype.evalPrecedence=function(t,e){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var s=this.opnds[i],a=s.evalPrecedence(t,e);if(n|=a!==s,null===a)return null;a!==o.NONE&&r.push(a)}if(!n)return this;if(0===r.length)return o.NONE;var c=null;return r.map((function(t){c=null===c?t:o.andContext(c,t)})),c},c.prototype.toString=function(){var t="";return this.opnds.map((function(e){t+="&& "+e.toString()})),t.length>3?t.slice(3):t},l.prototype=Object.create(o.prototype),l.prototype.constructor=l,l.prototype.constructor=function(t){return this===t||t instanceof l&&this.opnds===t.opnds},l.prototype.updateHashCode=function(t){t.update(this.opnds,"OR")},l.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(t,e))return!0;return!1},l.prototype.evalPrecedence=function(t,e){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var s=this.opnds[i],a=s.evalPrecedence(t,e);if(n|=a!==s,a===o.NONE)return o.NONE;null!==a&&r.push(a)}if(!n)return this;if(0===r.length)return null;var c=null;return r.map((function(t){return t})),c},l.prototype.toString=function(){var t="";return this.opnds.map((function(e){t+="|| "+e.toString()})),t.length>3?t.slice(3):t},e.Ij=o,e.Yi=a,e.mT=s},5895:(t,e,n)=>{var r=n(653).Token,i=(n(5063).Interval,n(5063).m),o=n(6097).mT,s=n(6097).Yi;function a(t){if(null==t)throw"target cannot be null.";return this.target=t,this.isEpsilon=!1,this.label=null,this}function c(t,e){return a.call(this,t),this.label_=e,this.label=this.makeLabel(),this.serializationType=a.ATOM,this}function l(t,e,n,r){return a.call(this,t),this.ruleIndex=e,this.precedence=n,this.followState=r,this.serializationType=a.RULE,this.isEpsilon=!0,this}function u(t,e){return a.call(this,t),this.serializationType=a.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e,this}function p(t,e,n){return a.call(this,t),this.serializationType=a.RANGE,this.start=e,this.stop=n,this.label=this.makeLabel(),this}function h(t){return a.call(this,t),this}function f(t,e,n,r){return h.call(this,t),this.serializationType=a.PREDICATE,this.ruleIndex=e,this.predIndex=n,this.isCtxDependent=r,this.isEpsilon=!0,this}function d(t,e,n,r){return a.call(this,t),this.serializationType=a.ACTION,this.ruleIndex=e,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==r&&r,this.isEpsilon=!0,this}function y(t,e){return a.call(this,t),this.serializationType=a.SET,null!=e?this.label=e:(this.label=new i,this.label.addOne(r.INVALID_TYPE)),this}function g(t,e){return y.call(this,t,e),this.serializationType=a.NOT_SET,this}function m(t){return a.call(this,t),this.serializationType=a.WILDCARD,this}function _(t,e){return h.call(this,t),this.serializationType=a.PRECEDENCE,this.precedence=e,this.isEpsilon=!0,this}a.EPSILON=1,a.RANGE=2,a.RULE=3,a.PREDICATE=4,a.ATOM=5,a.ACTION=6,a.SET=7,a.NOT_SET=8,a.WILDCARD=9,a.PRECEDENCE=10,a.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],a.serializationTypes={EpsilonTransition:a.EPSILON,RangeTransition:a.RANGE,RuleTransition:a.RULE,PredicateTransition:a.PREDICATE,AtomTransition:a.ATOM,ActionTransition:a.ACTION,SetTransition:a.SET,NotSetTransition:a.NOT_SET,WildcardTransition:a.WILDCARD,PrecedencePredicateTransition:a.PRECEDENCE},c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.makeLabel=function(){var t=new i;return t.addOne(this.label_),t},c.prototype.matches=function(t,e,n){return this.label_===t},c.prototype.toString=function(){return this.label_},l.prototype=Object.create(a.prototype),l.prototype.constructor=l,l.prototype.matches=function(t,e,n){return!1},u.prototype=Object.create(a.prototype),u.prototype.constructor=u,u.prototype.matches=function(t,e,n){return!1},u.prototype.toString=function(){return"epsilon"},p.prototype=Object.create(a.prototype),p.prototype.constructor=p,p.prototype.makeLabel=function(){var t=new i;return t.addRange(this.start,this.stop),t},p.prototype.matches=function(t,e,n){return t>=this.start&&t<=this.stop},p.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},h.prototype=Object.create(a.prototype),h.prototype.constructor=h,f.prototype=Object.create(h.prototype),f.prototype.constructor=f,f.prototype.matches=function(t,e,n){return!1},f.prototype.getPredicate=function(){return new o(this.ruleIndex,this.predIndex,this.isCtxDependent)},f.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},d.prototype=Object.create(a.prototype),d.prototype.constructor=d,d.prototype.matches=function(t,e,n){return!1},d.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},y.prototype=Object.create(a.prototype),y.prototype.constructor=y,y.prototype.matches=function(t,e,n){return this.label.contains(t)},y.prototype.toString=function(){return this.label.toString()},g.prototype=Object.create(y.prototype),g.prototype.constructor=g,g.prototype.matches=function(t,e,n){return t>=e&&t<=n&&!y.prototype.matches.call(this,t,e,n)},g.prototype.toString=function(){return"~"+y.prototype.toString.call(this)},m.prototype=Object.create(a.prototype),m.prototype.constructor=m,m.prototype.matches=function(t,e,n){return t>=e&&t<=n},m.prototype.toString=function(){return"."},_.prototype=Object.create(h.prototype),_.prototype.constructor=_,_.prototype.matches=function(t,e,n){return!1},_.prototype.getPredicate=function(){return new s(this.precedence)},_.prototype.toString=function(){return this.precedence+" >= _p"},e.Transition=a,e.AtomTransition=c,e.SetTransition=y,e.NotSetTransition=g,e.RuleTransition=l,e.ActionTransition=d,e.EpsilonTransition=u,e.RangeTransition=p,e.WildcardTransition=m,e.PredicateTransition=f,e.PrecedencePredicateTransition=_,e.AbstractPredicateTransition=h},8566:(t,e,n)=>{e.ATN=n(7339).ATN,e.ATNDeserializer=n(2456).ATNDeserializer,e.LexerATNSimulator=n(8989).LexerATNSimulator,e.ParserATNSimulator=n(2082).ParserATNSimulator,e.PredictionMode=n(9326).PredictionMode},3123:(t,e,n)=>{var r=n(1257).Set,i=n(1418).X,o=n(7250).StarLoopEntryState,s=n(637).Q,a=n(1383).DFASerializer,c=n(1383).LexerDFASerializer;function l(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new r,this.s0=null,this.precedenceDfa=!1,t instanceof o&&t.isPrecedenceDecision){this.precedenceDfa=!0;var n=new i(null,new s);n.edges=[],n.isAcceptState=!1,n.requiresFullContext=!1,this.s0=n}return this}l.prototype.getPrecedenceStartState=function(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null},l.prototype.setPrecedenceStartState=function(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)},l.prototype.setPrecedenceDfa=function(t){if(this.precedenceDfa!==t){if(this._states=new DFAStatesSet,t){var e=new i(null,new s);e.edges=[],e.isAcceptState=!1,e.requiresFullContext=!1,this.s0=e}else this.s0=null;this.precedenceDfa=t}},Object.defineProperty(l.prototype,"states",{get:function(){return this._states}}),l.prototype.sortedStates=function(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))},l.prototype.toString=function(t,e){return t=t||null,e=e||null,null===this.s0?"":new a(this,t,e).toString()},l.prototype.toLexerString=function(){return null===this.s0?"":new c(this).toString()},e.DFA=l},1383:(t,e)=>{function n(t,e,n){return this.dfa=t,this.literalNames=e||[],this.symbolicNames=n||[],this}function r(t){return n.call(this,t,null),this}n.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var t="",e=this.dfa.sortedStates(),n=0;n<e.length;n++){var r=e[n];if(null!==r.edges)for(var i=r.edges.length,o=0;o<i;o++){var s=r.edges[o]||null;null!==s&&2147483647!==s.stateNumber&&(t=(t=(t=(t=(t=(t=t.concat(this.getStateString(r))).concat("-")).concat(this.getEdgeLabel(o))).concat("->")).concat(this.getStateString(s))).concat("\n"))}}return 0===t.length?null:t},n.prototype.getEdgeLabel=function(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)},n.prototype.getStateString=function(t){var e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+t.predicates.toString():e+"=>"+t.prediction.toString():e},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.getEdgeLabel=function(t){return"'"+String.fromCharCode(t)+"'"},e.DFASerializer=n,e.LexerDFASerializer=r},1418:(t,e,n)=>{var r=n(637).Q,i=n(1257),o=i.Hash,s=i.Set;function a(t,e){return this.alt=e,this.pred=t,this}function c(t,e){return null===t&&(t=-1),null===e&&(e=new r),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}a.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},c.prototype.getAltSet=function(){var t=new s;if(null!==this.configs)for(var e=0;e<this.configs.length;e++){var n=this.configs[e];t.add(n.alt)}return 0===t.length?null:t},c.prototype.equals=function(t){return this===t||t instanceof c&&this.configs.equals(t.configs)},c.prototype.toString=function(){var t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t},c.prototype.hashCode=function(){var t=new o;return t.update(this.configs),t.finish()},e.X=c,e.PredPrediction=a},2782:(t,e,n)=>{e.DFA=n(3123).DFA,e.DFASerializer=n(1383).DFASerializer,e.LexerDFASerializer=n(1383).LexerDFASerializer,e.PredPrediction=n(1418).PredPrediction},1926:(t,e,n)=>{var r=n(1257).BitSet,i=n(139).ErrorListener,o=n(5063).Interval;function s(t){return i.call(this),t=t||!0,this.exactOnly=t,this}s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.reportAmbiguity=function(t,e,n,r,i,s,a){if(!this.exactOnly||i){var c="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(s,a)+", input='"+t.getTokenStream().getText(new o(n,r))+"'";t.notifyErrorListeners(c)}},s.prototype.reportAttemptingFullContext=function(t,e,n,r,i,s){var a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new o(n,r))+"'";t.notifyErrorListeners(a)},s.prototype.reportContextSensitivity=function(t,e,n,r,i,s){var a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new o(n,r))+"'";t.notifyErrorListeners(a)},s.prototype.getDecisionDescription=function(t,e){var n=e.decision,r=e.atnStartState.ruleIndex,i=t.ruleNames;if(r<0||r>=i.length)return""+n;var o=i[r]||null;return null===o||0===o.length?""+n:n+" ("+o+")"},s.prototype.getConflictingAlts=function(t,e){if(null!==t)return t;for(var n=new r,i=0;i<e.items.length;i++)n.add(e.items[i].alt);return"{"+n.values().join(", ")+"}"},e.DiagnosticErrorListener=s},139:(t,e)=>{function n(){return this}function r(){return n.call(this),this}function i(t){if(n.call(this),null===t)throw"delegates";return this.delegates=t,this}n.prototype.syntaxError=function(t,e,n,r,i,o){},n.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){},n.prototype.reportAttemptingFullContext=function(t,e,n,r,i,o){},n.prototype.reportContextSensitivity=function(t,e,n,r,i,o){},r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.INSTANCE=new r,r.prototype.syntaxError=function(t,e,n,r,i,o){console.error("line "+n+":"+r+" "+i)},i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.syntaxError=function(t,e,n,r,i,o){this.delegates.map((function(s){s.syntaxError(t,e,n,r,i,o)}))},i.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){this.delegates.map((function(a){a.reportAmbiguity(t,e,n,r,i,o,s)}))},i.prototype.reportAttemptingFullContext=function(t,e,n,r,i,o){this.delegates.map((function(s){s.reportAttemptingFullContext(t,e,n,r,i,o)}))},i.prototype.reportContextSensitivity=function(t,e,n,r,i,o){this.delegates.map((function(s){s.reportContextSensitivity(t,e,n,r,i,o)}))},e.ErrorListener=n,e.q=r,e.X=i},2730:(t,e,n)=>{var r=n(653).Token,i=n(6342),o=i.NoViableAltException,s=i.InputMismatchException,a=i.FailedPredicateException,c=i.ParseCancellationException,l=n(7250).ATNState,u=n(5063).Interval,p=n(5063).m;function h(){}function f(){return h.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function d(){return f.call(this),this}h.prototype.reset=function(t){},h.prototype.recoverInline=function(t){},h.prototype.recover=function(t,e){},h.prototype.sync=function(t){},h.prototype.inErrorRecoveryMode=function(t){},h.prototype.reportError=function(t){},f.prototype=Object.create(h.prototype),f.prototype.constructor=f,f.prototype.reset=function(t){this.endErrorCondition(t)},f.prototype.beginErrorCondition=function(t){this.errorRecoveryMode=!0},f.prototype.inErrorRecoveryMode=function(t){return this.errorRecoveryMode},f.prototype.endErrorCondition=function(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},f.prototype.reportMatch=function(t){this.endErrorCondition(t)},f.prototype.reportError=function(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof o?this.reportNoViableAlternative(t,e):e instanceof s?this.reportInputMismatch(t,e):e instanceof a?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))},f.prototype.recover=function(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);var n=this.getErrorRecoverySet(t);this.consumeUntil(t,n)},f.prototype.sync=function(t){if(!this.inErrorRecoveryMode(t)){var e=t._interp.atn.states[t.state],n=t.getTokenStream().LA(1),i=t.atn.nextTokens(e);if(!i.contains(r.EPSILON)&&!i.contains(n))switch(e.stateType){case l.BLOCK_START:case l.STAR_BLOCK_START:case l.PLUS_BLOCK_START:case l.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new s(t);case l.PLUS_LOOP_BACK:case l.STAR_LOOP_BACK:this.reportUnwantedToken(t);var o=new p;o.addSet(t.getExpectedTokens());var a=o.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,a)}}},f.prototype.reportNoViableAlternative=function(t,e){var n,i=t.getTokenStream();n=null!==i?e.startToken.type===r.EOF?"<EOF>":i.getText(new u(e.startToken.tokenIndex,e.offendingToken.tokenIndex)):"<unknown input>";var o="no viable alternative at input "+this.escapeWSAndQuote(n);t.notifyErrorListeners(o,e.offendingToken,e)},f.prototype.reportInputMismatch=function(t,e){var n="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e.offendingToken,e)},f.prototype.reportFailedPredicate=function(t,e){var n="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(n,e.offendingToken,e)},f.prototype.reportUnwantedToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e,null)}},f.prototype.reportMissingToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(n,e,null)}},f.prototype.recoverInline=function(t){var e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new s(t)},f.prototype.singleTokenInsertion=function(t){var e=t.getTokenStream().LA(1),n=t._interp.atn,r=n.states[t.state].transitions[0].target;return!!n.nextTokens(r,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)},f.prototype.singleTokenDeletion=function(t){var e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();var n=t.getCurrentToken();return this.reportMatch(t),n}return null},f.prototype.getMissingSymbol=function(t){var e,n=t.getCurrentToken(),i=this.getExpectedTokens(t).first();e=i===r.EOF?"<missing EOF>":"<missing "+t.literalNames[i]+">";var o=n,s=t.getTokenStream().LT(-1);return o.type===r.EOF&&null!==s&&(o=s),t.getTokenFactory().create(o.source,i,e,r.DEFAULT_CHANNEL,-1,-1,o.line,o.column)},f.prototype.getExpectedTokens=function(t){return t.getExpectedTokens()},f.prototype.getTokenErrorDisplay=function(t){if(null===t)return"<no token>";var e=t.text;return null===e&&(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)},f.prototype.escapeWSAndQuote=function(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},f.prototype.getErrorRecoverySet=function(t){for(var e=t._interp.atn,n=t._ctx,i=new p;null!==n&&n.invokingState>=0;){var o=e.states[n.invokingState].transitions[0],s=e.nextTokens(o.followState);i.addSet(s),n=n.parentCtx}return i.removeOne(r.EPSILON),i},f.prototype.consumeUntil=function(t,e){for(var n=t.getTokenStream().LA(1);n!==r.EOF&&!e.contains(n);)t.consume(),n=t.getTokenStream().LA(1)},d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.prototype.recover=function(t,e){for(var n=t._ctx;null!==n;)n.exception=e,n=n.parentCtx;throw new c(e)},d.prototype.recoverInline=function(t){this.recover(t,new s(t))},d.prototype.sync=function(t){},e.BailErrorStrategy=d,e.$=f},6342:(t,e,n)=>{var r=n(5895).PredicateTransition;function i(t){if(Error.call(this),Error.captureStackTrace)Error.captureStackTrace(this,i);else(new Error).stack;return this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function o(t,e,n,r){return i.call(this,{message:"",recognizer:t,input:e,ctx:null}),this.startIndex=n,this.deadEndConfigs=r,this}function s(t,e,n,r,o,s){s=s||t._ctx,r=r||t.getCurrentToken(),n=n||t.getCurrentToken(),e=e||t.getInputStream(),i.call(this,{message:"",recognizer:t,input:e,ctx:s}),this.deadEndConfigs=o,this.startToken=n,this.offendingToken=r}function a(t){i.call(this,{message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}function c(t,e,n){i.call(this,{message:this.formatMessage(e,n||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});var o=t._interp.atn.states[t.state].transitions[0];return o instanceof r?(this.ruleIndex=o.ruleIndex,this.predicateIndex=o.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken(),this}function l(){return Error.call(this),Error.captureStackTrace(this,l),this}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},i.prototype.toString=function(){return this.message},o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.prototype.toString=function(){var t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+t},s.prototype=Object.create(i.prototype),s.prototype.constructor=s,a.prototype=Object.create(i.prototype),a.prototype.constructor=a,c.prototype=Object.create(i.prototype),c.prototype.constructor=c,c.prototype.formatMessage=function(t,e){return null!==e?e:"failed predicate: {"+t+"}?"},l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,e.RecognitionException=i,e.NoViableAltException=s,e.LexerNoViableAltException=o,e.InputMismatchException=a,e.FailedPredicateException=c,e.ParseCancellationException=l},2305:(t,e,n)=>{e.RecognitionException=n(6342).RecognitionException,e.NoViableAltException=n(6342).NoViableAltException,e.LexerNoViableAltException=n(6342).LexerNoViableAltException,e.InputMismatchException=n(6342).InputMismatchException,e.FailedPredicateException=n(6342).FailedPredicateException,e.DiagnosticErrorListener=n(1926).DiagnosticErrorListener,e.BailErrorStrategy=n(2730).BailErrorStrategy,e.ErrorListener=n(139).ErrorListener},6096:(t,e,n)=>{e.atn=n(8566),e.codepointat=n(8203),e.dfa=n(2782),e.fromcodepoint=n(9490),e.tree=n(2893),e.error=n(2305),e.Token=n(653).Token,e.CharStreams=n(2365).CharStreams,e.CommonToken=n(653).CommonToken,e.InputStream=n(4992).InputStream,e.FileStream=n(3088).FileStream,e.CommonTokenStream=n(5546).CommonTokenStream,e.Lexer=n(7562).Lexer,e.Parser=n(1717).Parser;var r=n(2044);e.PredictionContextCache=r.PredictionContextCache,e.ParserRuleContext=n(588).ParserRuleContext,e.Interval=n(5063).Interval,e.Utils=n(1257)},8203:()=>{String.prototype.codePointAt||function(){"use strict";var t=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(r){}return n}(),e=function(t){if(null==this)throw TypeError();var e=String(this),n=e.length,r=t?Number(t):0;if(r!=r&&(r=0),!(r<0||r>=n)){var i,o=e.charCodeAt(r);return o>=55296&&o<=56319&&n>r+1&&(i=e.charCodeAt(r+1))>=56320&&i<=57343?1024*(o-55296)+i-56320+65536:o}};t?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e}()},9490:()=>{var t,e,n,r;String.fromCodePoint||(t=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(r){}return n}(),e=String.fromCharCode,n=Math.floor,r=function(t){var r,i,o=[],s=-1,a=arguments.length;if(!a)return"";for(var c="";++s<a;){var l=Number(arguments[s]);if(!isFinite(l)||l<0||l>1114111||n(l)!=l)throw RangeError("Invalid code point: "+l);l<=65535?o.push(l):(r=55296+((l-=65536)>>10),i=l%1024+56320,o.push(r,i)),(s+1==a||o.length>16384)&&(c+=e.apply(null,o),o.length=0)}return c},t?t(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r)},6149:(t,e,n)=>{var r=n(653).Token,i=n(5063).Interval,o=new i(-1,-2);n(1257);function s(){return this}function a(){return s.call(this),this}function c(){return a.call(this),this}function l(){return c.call(this),this}function u(){return c.call(this),this}function p(){return u.call(this),this}function h(){return this}function f(){return this}function d(t){return u.call(this),this.parentCtx=null,this.symbol=t,this}function y(t){return d.call(this,t),this}function g(){return this}a.prototype=Object.create(s.prototype),a.prototype.constructor=a,c.prototype=Object.create(a.prototype),c.prototype.constructor=c,l.prototype=Object.create(c.prototype),l.prototype.constructor=l,u.prototype=Object.create(c.prototype),u.prototype.constructor=u,p.prototype=Object.create(u.prototype),p.prototype.constructor=p,h.prototype.visit=function(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)},h.prototype.visitChildren=function(t){return t.children?this.visit(t.children):null},h.prototype.visitTerminal=function(t){},h.prototype.visitErrorNode=function(t){},f.prototype.visitTerminal=function(t){},f.prototype.visitErrorNode=function(t){},f.prototype.enterEveryRule=function(t){},f.prototype.exitEveryRule=function(t){},d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.getChild=function(t){return null},d.prototype.getSymbol=function(){return this.symbol},d.prototype.getParent=function(){return this.parentCtx},d.prototype.getPayload=function(){return this.symbol},d.prototype.getSourceInterval=function(){if(null===this.symbol)return o;var t=this.symbol.tokenIndex;return new i(t,t)},d.prototype.getChildCount=function(){return 0},d.prototype.accept=function(t){return t.visitTerminal(this)},d.prototype.getText=function(){return this.symbol.text},d.prototype.toString=function(){return this.symbol.type===r.EOF?"<EOF>":this.symbol.text},y.prototype=Object.create(d.prototype),y.prototype.constructor=y,y.prototype.isErrorNode=function(){return!0},y.prototype.accept=function(t){return t.visitErrorNode(this)},g.prototype.walk=function(t,e){if(e instanceof p||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof u)t.visitTerminal(e);else{this.enterRule(t,e);for(var n=0;n<e.getChildCount();n++){var r=e.getChild(n);this.walk(t,r)}this.exitRule(t,e)}},g.prototype.enterRule=function(t,e){var n=e.getRuleContext();t.enterEveryRule(n),n.enterRule(t)},g.prototype.exitRule=function(t,e){var n=e.getRuleContext();n.exitRule(t),t.exitEveryRule(n)},g.DEFAULT=new g,e.RuleNode=l,e.ErrorNode=p,e.TerminalNode=u,e.ErrorNodeImpl=y,e.TerminalNodeImpl=d,e.ParseTreeListener=f,e.ParseTreeVisitor=h,e.ParseTreeWalker=g,e.INVALID_INTERVAL=o},704:(t,e,n)=>{var r=n(1257),i=n(653).Token,o=(n(6149).RuleNode,n(6149).ErrorNode),s=n(6149).TerminalNode,a=n(588).ParserRuleContext,c=n(6053).m,l=n(7339).INVALID_ALT_NUMBER;function u(){}u.toStringTree=function(t,e,n){e=e||null,null!==(n=n||null)&&(e=n.ruleNames);var i=u.getNodeText(t,e);i=r.escapeWhitespace(i,!1);var o=t.getChildCount();if(0===o)return i;var s="("+i+" ";o>0&&(i=u.toStringTree(t.getChild(0),e),s=s.concat(i));for(var a=1;a<o;a++)i=u.toStringTree(t.getChild(a),e),s=s.concat(" "+i);return s=s.concat(")")},u.getNodeText=function(t,e,n){if(e=e||null,null!==(n=n||null)&&(e=n.ruleNames),null!==e){if(t instanceof c){var r=t.getAltNumber();return r!=l?e[t.ruleIndex]+":"+r:e[t.ruleIndex]}if(t instanceof o)return t.toString();if(t instanceof s&&null!==t.symbol)return t.symbol.text}var a=t.getPayload();return a instanceof i?a.text:t.getPayload().toString()},u.getChildren=function(t){for(var e=[],n=0;n<t.getChildCount();n++)e.push(t.getChild(n));return e},u.getAncestors=function(t){var e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},u.findAllTokenNodes=function(t,e){return u.findAllNodes(t,e,!0)},u.findAllRuleNodes=function(t,e){return u.findAllNodes(t,e,!1)},u.findAllNodes=function(t,e,n){var r=[];return u._findAllNodes(t,e,n,r),r},u._findAllNodes=function(t,e,n,r){n&&t instanceof s?t.symbol.type===e&&r.push(t):!n&&t instanceof a&&t.ruleIndex===e&&r.push(t);for(var i=0;i<t.getChildCount();i++)u._findAllNodes(t.getChild(i),e,n,r)},u.descendants=function(t){for(var e=[t],n=0;n<t.getChildCount();n++)e=e.concat(u.descendants(t.getChild(n)));return e},e.Trees=u},2893:(t,e,n)=>{var r=n(6149);e.Trees=n(704).Trees,e.RuleNode=r.RuleNode,e.ParseTreeListener=r.ParseTreeListener,e.ParseTreeVisitor=r.ParseTreeVisitor,e.ParseTreeWalker=r.ParseTreeWalker},9947:t=>{"use strict";t.exports=()=>{const t="\\ud800-\\udfff",e=`[${t}]`,n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]",r="\\ud83c[\\udffb-\\udfff]",i=`[^${t}]`,o="(?:\\uD83C[\\uDDE6-\\uDDFF]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="[\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83C\\uDF93]",c=`${`(?:${n}|${r})`}?`,l="[\\ufe0e\\ufe0f]?",u=l+c+`(?:\\u200d(?:${[i,o,s].join("|")})${l+c})*`,p=`(?:${[`${i}${n}?`,n,o,s,e,a].join("|")})`;return new RegExp(`(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)|${r}(?=${r})|${p+u}`,"g")}},9756:(t,e,n)=>{t.exports={lib:n(8802),ordered:n(5062),fitzpatrick_scale_modifiers:["\ud83c\udffb","\ud83c\udffc","\ud83c\udffd","\ud83c\udffe","\ud83c\udfff"]}},2849:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},s=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var r,i=e.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&e.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(r in t);return void 0===r||e.call(t,r)},a=function(t,e){r&&"__proto__"===e.name?r(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};t.exports=function t(){var e,n,r,i,l,u,p=arguments[0],h=1,f=arguments.length,d=!1;for("boolean"==typeof p&&(d=p,p=arguments[1]||{},h=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});h<f;++h)if(null!=(e=arguments[h]))for(n in e)r=c(p,n),p!==(i=c(e,n))&&(d&&i&&(s(i)||(l=o(i)))?(l?(l=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},a(p,{name:n,newValue:t(d,u,i)})):void 0!==i&&a(p,{name:n,newValue:i}));return p}},6926:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,l="";function u(t){return t?t.replace(c,l):l}t.exports=function(t,c){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];c=c||{};var p=1,h=1;function f(t){var e=t.match(n);e&&(p+=e.length);var r=t.lastIndexOf("\n");h=~r?t.length-r:h+t.length}function d(){var t={line:p,column:h};return function(e){return e.position=new y(t),k(),e}}function y(t){this.start=t,this.end={line:p,column:h},this.source=c.source}y.prototype.content=t;var g=[];function m(e){var n=new Error(c.source+":"+p+":"+h+": "+e);if(n.reason=e,n.filename=c.source,n.line=p,n.column=h,n.source=t,!c.silent)throw n;g.push(n)}function _(e){var n=e.exec(t);if(n){var r=n[0];return f(r),t=t.slice(r.length),n}}function k(){_(r)}function v(t){var e;for(t=t||[];e=x();)!1!==e&&t.push(e);return t}function x(){var e=d();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;l!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,l===t.charAt(n-1))return m("End of comment missing");var r=t.slice(2,n-2);return h+=2,f(r),t=t.slice(n),h+=2,e({type:"comment",comment:r})}}function E(){var t=d(),n=_(i);if(n){if(x(),!_(o))return m("property missing ':'");var r=_(s),c=t({type:"declaration",property:u(n[0].replace(e,l)),value:r?u(r[0].replace(e,l)):l});return _(a),c}}return k(),function(){var t,e=[];for(v(e);t=E();)!1!==t&&(e.push(t),v(e));return e}()}},5671:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(6926));e.default=function(t,e){var n=null;if(!t||"string"!=typeof t)return n;var r=(0,i.default)(t),o="function"==typeof e;return r.forEach((function(t){if("declaration"===t.type){var r=t.property,i=t.value;o?e(r,i,t):i&&((n=n||{})[r]=i)}})),n}},4983:(t,e,n)=>{"use strict";const r=n(4015),i=new Map([["none",""],["white","\ud83c\udffb"],["creamWhite","\ud83c\udffc"],["lightBrown","\ud83c\udffd"],["brown","\ud83c\udffe"],["darkBrown","\ud83c\udfff"]]);t.exports=(t,e)=>{if(!i.has(e))throw new TypeError(`Unexpected \`skinTone\` name: ${e}`);return t=t.replace(/[\u{1f3fb}-\u{1f3ff}]/u,""),r.has(t.codePointAt(0))&&"none"!==e&&(t+=i.get(e)),t}},4015:t=>{t.exports=new Set([9757,9977,9994,9995,9996,9997,127877,127939,127940,127946,127947,128066,128067,128070,128071,128072,128073,128074,128075,128076,128077,128078,128079,128080,128102,128103,128104,128105,128110,128112,128113,128114,128115,128116,128117,128118,128119,128120,128124,128129,128130,128131,128133,128134,128135,128170,128373,128378,128400,128405,128406,128581,128582,128583,128587,128588,128589,128590,128591,128675,128692,128693,128694,128704,129304,129305,129306,129307,129308,129309,129310,129318,129328,129331,129332,129333,129334,129335,129336,129337,129340,129341,129342])},6942:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=s(t,o(n)))}return t}function o(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=s(e,n));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},1999:(t,e,n)=>{"use strict";n.d(e,{R2:()=>at,I1:()=>rr,O1:()=>Um});var r={};n.r(r),n.d(r,{boolean:()=>Zu,booleanish:()=>tp,commaOrSpaceSeparated:()=>op,commaSeparated:()=>ip,number:()=>np,overloadedBoolean:()=>ep,spaceSeparated:()=>rp});var i={};n.r(i),n.d(i,{attentionMarkers:()=>Uf,contentInitial:()=>Lf,disable:()=>jf,document:()=>If,flow:()=>Df,flowInitial:()=>Pf,insideSpan:()=>Ff,string:()=>zf,text:()=>Mf});var o=n(4848),s=n(6540);const a={},c=(0,s.createContext)(a),l=({slots:t,children:e})=>t?(0,o.jsx)(c.Provider,{value:t??a,children:e}):(0,o.jsx)(o.Fragment,{children:e});function u(t,e){const n=n=>{const r=(0,s.useContext)(c)??a;if(r&&t in r){const e=r[t];return(0,o.jsx)(e,{...n})}return(0,o.jsx)(e,{...n})};return n.displayName=t,n}var p=n(6942);function h({value:t,className:e}){return"string"==typeof t&&t.length>0||s.isValidElement(t)?(0,o.jsx)("span",{className:p("label-description",e),children:t}):null}const f=u("Declaration",(({children:t,declarationType:e})=>(0,o.jsx)("div",{"data-testid":"declaration",className:p("declaration-lunatic",`declaration-${e.toLowerCase()}`),children:t})));const d=u("Declarations",(function({id:t,type:e="AFTER_QUESTION_TEXT",declarations:n}){const r=n?.filter((t=>t.position===e&&t.label))??[];return 0===r.length?null:(0,o.jsx)("div",{id:`declarations-${t}-${e}`,className:"declarations-lunatic",children:r.map((({id:t,label:e,declarationType:n})=>(0,o.jsx)(f,{declarationType:n,children:e},t)))})}));const y=u("Sequence",(function({label:t,id:e,style:n,description:r,declarations:i}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"sequence-lunatic",id:`sequence-${e}`,style:n,children:t}),(0,o.jsx)(h,{value:r}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:i,id:e})]})}));const g=u("Subsequence",(function({id:t,label:e,declarations:n}){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{"aria-label":`subsequence-${t}`,className:"subsequence-lunatic",id:`subsequence-${t}`,children:e}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:n,id:t})]})}));function m({errors:t,componentId:e}){const n=Array.isArray(t)?t:_(t,e);return n?(0,o.jsx)("div",{className:"lunatic-errors",children:n.map((({id:t,errorMessage:e})=>(0,o.jsx)("div",{className:"lunatic-error",children:e},`error-${t}`)))}):null}function _(t,e){if(!e||!t)return;const n=Object.entries(t).find((([t])=>e?.trim().endsWith(t)));return Array.isArray(n)&&Array.isArray(n[1])?n[1]:void 0}const k=u("Label",(function({children:t,id:e,htmlFor:n,className:r,style:i,description:s}){return t?(0,o.jsxs)("label",{htmlFor:n,id:e,className:p("lunatic-label",r),style:i,children:[t,(0,o.jsx)(h,{value:s})]}):null}));const v=u("Table",(function({id:t,className:e,children:n,errors:r,declarations:i,label:s}){const a=`table-${t}`,c=`label-${t}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{htmlFor:a,id:c,children:s}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:i,id:t}),(0,o.jsx)("table",{id:a,className:p("lunatic-table",e),children:n}),(0,o.jsx)(m,{errors:r})]})}));const x=u("Tbody",(function({className:t,children:e}){return(0,o.jsx)("tbody",{className:p("lunatic-table-tbody",t),children:e})}));const E=u("Td",(function({children:t,className:e,colSpan:n,rowSpan:r}){return(0,o.jsx)("td",{className:p("lunatic-table-td",e),colSpan:n,rowSpan:r,children:t})}));const T=u("Th",(function({children:t,className:e,colSpan:n,rowSpan:r}){return(0,o.jsx)("th",{className:p("lunatic-table-th",e),colSpan:n,rowSpan:r,children:t})}));const w=u("Thead",(function({children:t,className:e}){return(0,o.jsx)("thead",{className:p("lunatic-table-thead",e),children:t})}));const b=u("Tr",(function({children:t,className:e}){return(0,o.jsx)("tr",{className:p("lunatic-table-tr",e),children:t})}));function A({header:t}){if(!Array.isArray(t))return null;const e=t.map((function({label:t,rowspan:e,colspan:n},r){return(0,o.jsx)(T,{row:0,index:r,rowSpan:e,colSpan:n,children:t},r)}));return(0,o.jsx)(w,{children:(0,o.jsx)(b,{row:0,children:e})})}function R(t,e){return new Array(t).fill(null).map(((t,n)=>e(n)))}function C(t,e,n){if(!Array.isArray(e))return C(t,[e],n);const[r,...i]=e;let o=Array.isArray(t)?[...t]:[t];return o.length<r+1&&(o=S(o,r+1,null)),o[r]=0===i.length?n:C(o[r],i,n),o}function S(t,e,n){return Array.isArray(t)?t.length===e?t:new Array(e).fill(n??null).map((function(e,n){return n<t.length?t[n]:e}),[]):new Array(e).fill(n??null)}function N(t,e=0){return Array.isArray(t)?N(t[0],e+1):e}function O(t){return!!t&&"object"==typeof t&&"response"in t&&"name"in t.response}function I(t){return!!t&&"object"==typeof t&&"componentType"in t&&"string"==typeof t.componentType}const L="DK",P="RF",D={DEFAULT_BUTTON_ADD:{fr:"Ajouter une ligne",en:"Add row"},DEFAULT_BUTTON_REMOVE:{fr:"Supprimer une ligne",en:"Remove row"},MODAL_IGNORE:{fr:"Poursuivre",en:"Ignore"},MODAL_CORRECT:{fr:"Corriger ma r\xe9ponse",en:"Correct"},DK:{fr:"Ne sais pas",en:"Don't know"},RF:{fr:"Refus",en:"Refused"},PLACEHOLDER:{fr:"Commencez votre saisie...",en:"Start typing..."},SUGGESTER_LOADING:{fr:"Liste en cours de chargement",en:"List is loading"},SUGGESTER_NO_RESULT:{fr:"Aucun r\xe9sultat trouv\xe9",en:"No results"},SUGGESTER_ERROR:{fr:"Erreur lors du chargement de la liste",en:"An error has occured while loading the list"},SUGGESTER_ARBITRARY:{fr:"Choisir",en:"Select"}};const z=function(t,e){return Object.entries(e).reduce(((e,[n,r])=>({...e,[n]:r[t]})),{})},M=["en","fr"],F=()=>{const t=navigator.language.split("-")[0],e=M.map((t=>t.toString())).indexOf(t);return-1===e?M[0]:M[e]},U={thousandSeparator:{fr:" ",en:","},decimalSeparator:{fr:",",en:"."}},j=Object.values(U.decimalSeparator),H=U,V=z("fr",D),B=z("en",D),W=z("fr",H),G=z("en",H),q={..."fr"===F()?W:G,allDecimalSeparators:j},Y="fr"===F()?V:B,K=(0,s.createContext)({missingStrategy:()=>{},management:!1,missing:!1,shortcut:!1,missingShortcut:{dontKnow:"",refused:""},dontKnowButton:Y.DK,refusedButton:Y.RF});function $(t){return(0,s.isValidElement)(t)}const X=u("Button",(function({id:t,children:e,onClick:n,disabled:r,label:i,className:s,value:a,type:c="button",selected:l,readOnly:u}){const h=function(t){if(t)return e=>{e.preventDefault(),e.stopPropagation(),t(e)}}(n);return $(e)||a?(0,o.jsx)("button",{id:t,disabled:r||u,type:c,className:p("button-lunatic",s,{disabled:r}),onClick:h,value:a,"aria-pressed":l,children:e}):(0,o.jsx)("input",{id:t,"aria-pressed":l,disabled:r||u,type:"button",className:p("button-lunatic",s,{disabled:r}),value:i??e?.toString(),onClick:h})}));function J(t){const e=(0,s.useRef)(t);return e.current=t,e}function Q(t,e,n=!0){const r=J(e),i=J(t);(0,s.useEffect)((()=>{if(!n)return;const t=t=>{i.current.map((t=>t.toLowerCase())).includes(t.key.toLowerCase())&&r.current(t)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[n])}const Z=t=>{const e=(()=>{const{missing:t,missingStrategy:e,shortcut:n,missingShortcut:r,dontKnowButton:i,refusedButton:o}=(0,s.useContext)(K);return{missing:t,missingStrategy:e,shortcut:n,missingShortcut:r,dontKnowButton:i,refusedButton:o}})();return e.missing&&t.missingResponse?"Loop"===t.componentType&&t.paginatedLoop?null:(0,o.jsx)(tt,{...t,...e}):null},tt=t=>{const{missingResponse:e,handleChanges:n,missingStrategy:r,shortcut:i,missingShortcut:a,dontKnowButton:c,refusedButton:l,disabled:u,readOnly:p}=t,h=e?.value,f=t=>{n([{name:e?.name??"UNKNOWN",value:t}])},d=(0,s.useCallback)((()=>{r&&r()}),[r]),y=()=>{f(L),d()},g=()=>{f(P),d()},m=Boolean(i&&!u&&!p&&a&&a.dontKnow&&a.refused);return Q(Object.values(a),(t=>{t.preventDefault(),t.key.toLowerCase()===a.dontKnow.toLowerCase()&&y(),t.key.toLowerCase()===a.refused.toLowerCase()&&g()}),m),(0,o.jsxs)("div",{className:"missing-buttons",children:[(0,o.jsx)("span",{className:`missing-button${h===L?"-active":""} missing-button-dk${h===L?"-active":""}`,children:(0,o.jsx)(X,{selected:h===L,disabled:u,readOnly:p,label:c,onClick:y})}),(0,o.jsx)("span",{className:`missing-button${h===P?"-active":""} missing-button-rf${h===P?"-active":""}`,children:(0,o.jsx)(X,{selected:h===P,disabled:u,readOnly:p,label:l,onClick:g})})]})},et=()=>{};function nt(t){const{id:e,declarations:n,children:r,management:i,handleChanges:s}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{type:"BEFORE_QUESTION_TEXT",declarations:n,id:e}),(0,o.jsxs)("div",{className:"field-container",children:[(0,o.jsx)("div",{className:p({"field-with-tooltip":i,field:!i}),children:r}),i&&(0,o.jsx)("div",{className:"tooltip"})]}),(0,o.jsx)(d,{type:"DETACHABLE",declarations:n,id:e}),(0,o.jsx)(Z,{...t,handleChanges:s??et})]})}const rt=(0,s.createContext)(null),it={didCatch:!1,error:null};class ot extends s.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=it}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(null!==t){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(e=(n=this.props).onReset)||void 0===e||e.call(n,{args:i,reason:"imperative-api"}),this.setState(it)}}componentDidCatch(t,e){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,t,e)}componentDidUpdate(t,e){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var i,o;n&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some(((t,n)=>!Object.is(t,e[n])))}(t.resetKeys,r)&&(null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:t.resetKeys,reason:"keys"}),this.setState(it))}render(){const{children:t,fallbackRender:e,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let a=t;if(i){const t={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)a=e(t);else if(n)a=(0,s.createElement)(n,t);else{if(null!==r&&!(0,s.isValidElement)(r))throw o;a=r}}return(0,s.createElement)(rt.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},a)}}const st=u("ComponentWrapper",(({children:t})=>(0,o.jsx)("div",{className:"lunatic lunatic-component",children:t})));function at({components:t,autoFocusKey:e,componentProps:n,blocklist:r,memo:i,slots:a,wrapper:c=(t=>(0,o.jsx)(st,{...t}))}){const u=(0,s.useRef)(null),p=t.length>0,h=e?"div":s.Fragment;return function(t,e){(0,s.useEffect)((()=>{if(!e||!t.current)return;const n=t.current?.querySelector('button[aria-invalid="true"], [href][aria-invalid="true"], input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"], [tabindex][aria-invalid="true"]:not([tabindex="-1"])')??t.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');return n?n.focus():void 0}),[e,t])}(u,p?e:void 0),(0,o.jsx)(h,{ref:h===s.Fragment?void 0:u,children:(0,o.jsx)(l,{slots:a,children:t.map(((t,e)=>{if(I(t)){if(r&&r.includes(t.componentType))return(0,o.jsx)(s.Fragment,{children:c({children:(0,o.jsxs)("div",{style:{color:"red"},children:['Component "',t.componentType,'" is not allowed here']}),index:e,...t})},pt(t,e));const a={...t,...n?.(t)};return(0,o.jsx)(s.Fragment,{children:c({children:i?(0,o.jsx)(ut,{...a}):(0,o.jsx)(ct,{...a}),index:e,...a})},pt(t,e))}return function(t){return!!t&&"object"==typeof t&&"label"in t&&(0,s.isValidElement)(t.label)}(t)?(0,o.jsx)(s.Fragment,{children:c({...t,children:t.label,index:e})},e):(0,s.isValidElement)(t)?(0,o.jsx)(s.Fragment,{children:c({children:t,index:e})},e):null}))})})}function ct(t){const e=Qn[t.componentType];return(0,o.jsx)(ot,{FallbackComponent:lt,children:(0,o.jsx)(nt,{...t,children:(0,o.jsx)(e,{...t})})})}function lt({error:t}){return console.error(t),(0,o.jsxs)("p",{style:{color:"red"},children:["Cannot render this component : ",t.toString()]})}const ut=(0,s.memo)(ct);function pt(t,e){return t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id?t.id:e}const ht=["RosterForLoop","Loop","PairwiseLinks","Roundabout"];const ft=u("Loop",(t=>{const{declarations:e,id:n,label:r,canControlRows:i,children:s,errors:a,addRow:c,removeRow:l}=t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{htmlFor:n,id:`label-${n}`,children:r}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:e,id:n}),s,(0,o.jsx)(m,{errors:a}),i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X,{onClick:c,disabled:!c,children:Y.DEFAULT_BUTTON_ADD}),(0,o.jsx)(X,{onClick:l,disabled:!l,children:Y.DEFAULT_BUTTON_REMOVE})]})]})}));function dt({label:t,id:e,description:n,onChange:r,value:i,max:s,readOnly:a,disabled:c}){return(0,o.jsxs)("div",{className:p("lunaticDatepickerField",(!s||s>999)&&"lunaticDatepickerFieldLarge"),children:[(0,o.jsxs)("label",{htmlFor:e,children:[t,(0,o.jsx)("span",{className:"lunaticDatepickerHint",children:n})]}),(0,o.jsx)("input",{id:e,type:"number",min:1,max:s,readOnly:a,disabled:c,value:Number.isNaN(i)?"":i,onChange:t=>{!Number.isNaN(t.target.valueAsNumber)&&(s&&t.target.valueAsNumber>s||t.target.valueAsNumber<1)||r(t.target.valueAsNumber)},onFocus:t=>t.target.select()})]})}const yt=u("Datepicker",(t=>{const{disabled:e,readOnly:n,value:r="",dateFormat:i="YYYY-MM-DD",id:a,label:c,errors:l,description:u,declarations:p,onChange:h}=t,f=`lunatic-datepicker-${a}`,y=i.includes("DD"),g=i.includes("MM"),[_,v]=(0,s.useState)((()=>function(t){if(!t)return[NaN,NaN,NaN];const e=t.split("-");return[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}(r??void 0))),x=t=>e=>{const n=[..._];n[t]=e,v(n),E(n)},E=t=>{const e=i.split("-"),n=t.findIndex((t=>Number.isNaN(t)));if(n>-1&&n<=e.length-1)return void h(null);if("YYYY-MM-DD"===i&&!function(t){const[e,n,r]=t,i=new Date(e,n-1,r);return i.getFullYear()===e&&i.getMonth()===n-1&&i.getDate()===r}(t))return void h(null);const r=e.map(((e,n)=>t[n].toString().padStart(e.length,"0"))).join("-");h(r)},T={readOnly:n,disabled:e};return(0,o.jsxs)("div",{className:"lunatic-input",children:[(0,o.jsx)(k,{htmlFor:a,id:f,description:u,children:c}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:p,id:a}),(0,o.jsxs)("div",{className:"lunaticDatepickerFields",children:[y&&(0,o.jsx)(dt,{id:a+"day",label:"Jour",description:"Exemple: 14",max:31,value:_[2],onChange:x(2),...T}),g&&(0,o.jsx)(dt,{id:a+"month",label:"Mois",description:"Exemple: 07",max:12,value:_[1],onChange:x(1),...T}),(0,o.jsx)(dt,{id:a+"year",label:"Ann\xe9e",description:"Exemple: 2023",value:_[0],max:9999,onChange:x(0),...T})]}),(0,o.jsx)(m,{errors:l})]})}));function gt(t){if(!t)return"";if("string"==typeof t||"boolean"==typeof t||"number"==typeof t)return t;if("object"==typeof t){if($(t))return t;if("value"in t&&"string"==typeof t.value)return t.value}return""}const mt=u("Fieldset",(function({children:t,legend:e,description:n,className:r}){return(0,o.jsxs)("fieldset",{className:p(r),children:[(0,o.jsxs)("legend",{children:[gt(e),(0,o.jsx)(h,{value:n})]}),t]})}));const _t=u("CheckboxOption",(function({disabled:t,readOnly:e,checked:n,id:r,onCheck:i,label:s,description:a,codeModality:c,shortcut:l,invalid:u}){const p=!e&&!t,h=Boolean(l&&c&&p),f=()=>{p&&i(!n)},d=`label-${r}`;return Q(c?[c]:[],(t=>{t.preventDefault(),f()}),h),(0,o.jsxs)("div",{id:r,role:"checkbox","aria-invalid":u,"aria-disabled":t,"aria-readonly":e,className:"lunatic-input-checkbox","aria-checked":n,tabIndex:0,onClick:f,onKeyDown:t=>{"Space"===t.code&&f()},"aria-labelledby":d,children:[(0,o.jsx)("div",{className:"lunatic-input-checkbox__icon",children:n&&(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 11",children:(0,o.jsx)("path",{d:"M5 11 0 6l1.4-1.4L5 8.2 12.6.6 14 2l-9 9Z",fill:"currentColor"})})}),(0,o.jsxs)(k,{id:d,htmlFor:r,description:a,children:[c&&(0,o.jsx)("span",{className:"code-modality",children:c.toUpperCase()})," ",s]})]})})),kt="abcdefghijklmnopqrstuvwxyz".split(""),vt=(t,e)=>e<10?`${t+1}`:kt[t];const xt=u("Input",(t=>{const{value:e,onChange:n,disabled:r,required:i,maxLength:s,label:a,description:c,id:l,errors:u,readOnly:h,declarations:f}=t,y=`label-${l}`;return(0,o.jsxs)("div",{className:p("lunatic-input"),children:[(0,o.jsx)(k,{htmlFor:l,id:y,description:c,children:a}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:f,id:l}),(0,o.jsx)("input",{id:l,"aria-labelledby":y,autoComplete:"off",type:"text",disabled:r,readOnly:h,value:(e??"").toString(),onChange:t=>n(t.target.value),"aria-required":i,required:i,maxLength:s,"aria-invalid":!!u}),(0,o.jsx)(m,{errors:u})]})})),Et=u("CheckboxGroup",(({options:t,label:e,description:n,errors:r,shortcut:i,disabled:s,readOnly:a,declarations:c,orientation:l})=>(0,o.jsxs)(mt,{className:"lunatic-checkbox-group",legend:e,description:n,children:[(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:c}),(0,o.jsx)("div",{className:`lunatic-checkboxes lunatic-checkboxes--${l}`,children:t.map(((e,n)=>(0,o.jsxs)("div",{className:"lunatic-checkbox-group-option",children:[(0,o.jsx)(_t,{...e,disabled:s,readOnly:a,shortcut:i,invalid:!!r,id:e.id,codeModality:i?vt(n,t.length):void 0}),e.onDetailChange&&e.checked&&(0,o.jsx)(xt,{id:"detailId",label:e.detailLabel??"Pr\xe9cisez :",value:"string"==typeof e.detailValue?e.detailValue:"",onChange:e.onDetailChange,disabled:s})]},e.id)))}),(0,o.jsx)(m,{errors:r})]})));const Tt=u("CheckboxBoolean",(t=>{const{disabled:e,checked:n,id:r,onChange:i,label:s,declarations:a,description:c,errors:l}=t;return(0,o.jsxs)("div",{className:"lunatic-checkbox-boolean",children:[(0,o.jsx)(_t,{disabled:e,checked:n,id:r,onCheck:i,label:(0,o.jsxs)(o.Fragment,{children:[s,(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:a})]}),description:c,invalid:!!l}),(0,o.jsx)(m,{errors:l})]})}));const wt=u("RadioOption",(function({checked:t,disabled:e,readOnly:n,checkboxStyle:r,value:i,onKeyDown:a,index:c,shortcut:l,codeModality:u,id:h,labelledBy:f,description:d,label:y,onDetailChange:g,detailLabel:m,detailValue:_,onCheck:v}){const x=(0,s.useRef)(null),E=!e&&!n,T=!r,w=!!g,b=()=>{E&&v&&!t&&v()};return(0,s.useEffect)((function(){const{current:e}=x;e&&t&&e.focus()}),[t,x,i]),Q(u?[u]:[],(t=>{t.preventDefault(),b()}),Boolean(l&&u&&E)),(0,o.jsxs)("div",{className:"lunatic-input-checkbox-wrapper",children:[(0,o.jsxs)("div",{id:h,role:"radio","aria-disabled":e,className:p("lunatic-input-checkbox",T&&"lunatic-input-radio"),"aria-checked":t,tabIndex:t?-1:0,onClick:b,onKeyDown:t=>{a?.({key:t.key,index:c??-1}),x.current?.blur()},"aria-labelledby":f,ref:x,children:[(0,o.jsx)("div",{className:"lunatic-input-checkbox__icon",children:t&&r&&(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 11",children:(0,o.jsx)("path",{d:"M5 11 0 6l1.4-1.4L5 8.2 12.6.6 14 2l-9 9Z",fill:"currentColor"})})}),(0,o.jsxs)(k,{id:f,htmlFor:h,description:d,children:[u&&(0,o.jsx)("span",{className:"code-modality",children:u.toUpperCase()}),y]})]}),w&&t&&(0,o.jsx)(xt,{id:"detailId",label:m??"Pr\xe9cisez :",value:"string"==typeof _?_:"",onChange:g,disabled:e})]})}));const bt=u("RadioGroup",(function({options:t,value:e,id:n,label:r,description:i,checkboxStyle:a=!1,errors:c,className:l,shortcut:u,disabled:p,readOnly:h,declarations:f,orientation:y}){const g=function(t){return(0,s.useCallback)((({key:e,index:n})=>{const{length:r}=t,i=t[n];if(" "===e&&!i.checked&&i.onCheck)i.onCheck();else if("ArrowRight"===e||"ArrowDown"===e){const e=t[n===r-1?0:n+1];e.onCheck&&e.onCheck()}else if("ArrowLeft"===e||"ArrowUp"===e){const e=t[0===n?r-1:n-1];e.onCheck&&e.onCheck()}}),[t])}(t),_=t.length;return(0,o.jsxs)(mt,{className:l,legend:r,description:i,children:[(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:f}),(0,o.jsx)("div",{className:`lunatic-checkboxes lunatic-checkboxes--${y}`,children:t.map((function(t,r){const i=`lunatic-radio-${n}-${t.value}`,o=vt(r,_);return(0,s.createElement)(wt,{...t,key:i,id:i,index:r,checked:e===t.value,onKeyDown:g,checkboxStyle:a,codeModality:u?o:void 0,shortcut:u,disabled:p,readOnly:h,invalid:!!c})}))}),(0,o.jsx)(m,{errors:c})]})}));const At=u("Radio",(function(t){const{id:e,options:n,value:r,checkboxStyle:i,errors:s,label:a,shortcut:c,className:l="lunatic-radio-group",disabled:u,readOnly:p,description:h,declarations:f,orientation:d}=t;return(0,o.jsx)(bt,{id:e,options:n,value:r,description:h,checkboxStyle:i,errors:_(s,e),label:a,className:l,shortcut:c,disabled:u,readOnly:p,declarations:f,orientation:d??"vertical"})})),Rt=u("Accordion",(function({items:t}){return(0,o.jsx)("div",{className:"lunatic-accordion",children:t.map(((t,e)=>(0,o.jsxs)("details",{children:[(0,o.jsx)("summary",{children:t.label}),t.body]},e)))})}));const Ct=u("Textarea",(t=>{const{value:e,onChange:n,disabled:r,required:i,maxLength:s,label:a,description:c,id:l,errors:u,readOnly:p,declarations:h,rows:f,cols:y,placeHolder:g}=t,_=`label-${l}`;return(0,o.jsxs)("div",{className:"lunatic-textarea",children:[(0,o.jsx)(k,{htmlFor:l,id:_,description:c,children:a}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:h,id:l}),(0,o.jsx)("textarea",{required:i,disabled:r,id:l,rows:f,maxLength:s,cols:y,onChange:t=>n(t.target.value),value:e??"",placeholder:g,readOnly:p,"aria-invalid":!!u}),(0,o.jsx)(m,{errors:u})]})})),St={true:"True",false:"False"};const Nt=u("Switch",(t=>{const{id:e,onChange:n,checked:r,statusLabel:i=St,label:s,errors:a,disabled:c,declarations:l}=t,{true:u,false:h}=i,f=`lunatic-switch-label-${e}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(k,{htmlFor:e,id:f,children:s}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:l,id:e}),(0,o.jsxs)("div",{className:"lunatic-switch",id:e,children:[(0,o.jsx)("div",{className:p("lunatic-switch-label",{checked:!r}),children:h}),(0,o.jsx)("div",{role:"switch","aria-checked":r,"aria-invalid":!!a,tabIndex:0,className:p("lunatic-switch-container",{disabled:c,checked:r}),onClick:n,onKeyDown:t=>{const{code:e}=t;"Space"===e&&n()},"aria-labelledby":f,children:(0,o.jsx)("div",{className:"lunatic-switch-button"})}),(0,o.jsx)("div",{className:p("lunatic-switch-label",{checked:r}),children:u})]}),(0,o.jsx)(m,{errors:a})]})})),Ot=u("Switch",(function({handleChanges:t,response:e,errors:n,value:r,statusLabel:i,...s}){const a=r??!1;return(0,o.jsx)(Nt,{...s,statusLabel:i??St,checked:r??!1,onChange:()=>t([{name:e.name,value:!a}]),errors:_(n,s.id)})})),It=u("Question",(t=>{const{id:e,description:n,declarations:r,label:i,children:s}=t;return(0,o.jsxs)("fieldset",{children:[(0,o.jsxs)("legend",{id:`question-legend-${e}`,children:[(0,o.jsx)("h3",{children:i}),(0,o.jsx)("p",{className:"description-lunatic",id:`question-description-${e}`,children:n})]}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:r,id:e}),s]})}));function Lt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}var Pt;function Dt(){}function zt(t){return!!(t||"").match(/\d/)}function Mt(t){return null==t}function Ft(t){return Mt(t)||function(t){return"number"==typeof t&&isNaN(t)}(t)||"number"==typeof t&&!isFinite(t)}function Ut(t){return t.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function jt(t,e){void 0===e&&(e=!0);var n="-"===t[0],r=n&&e,i=(t=t.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNegation:n,addNegation:r}}function Ht(t,e,n){for(var r="",i=n?"0":"",o=0;o<=e-1;o++)r+=t[o]||i;return r}function Vt(t,e){return Array(e+1).join(t)}function Bt(t){var e=t+"",n="-"===e[0]?"-":"";n&&(e=e.substring(1));var r=e.split(/[eE]/g),i=r[0],o=r[1];if(!(o=Number(o)))return n+i;var s=1+o,a=(i=i.replace(".","")).length;return s<0?i="0."+Vt("0",Math.abs(s))+i:s>=a?i+=Vt("0",s-a):i=(i.substring(0,s)||"0")+"."+i.substring(s),n+i}function Wt(t,e,n){if(-1!==["","-"].indexOf(t))return t;var r=(-1!==t.indexOf(".")||n)&&e,i=jt(t),o=i.beforeDecimal,s=i.afterDecimal,a=i.hasNegation,c=parseFloat("0."+(s||"0")),l=(s.length<=e?"0."+s:c.toFixed(e)).split("."),u=o;return o&&Number(l[0])&&(u=o.split("").reverse().reduce((function(t,e,n){return t.length>n?(Number(t[0])+Number(e)).toString()+t.substring(1,t.length):e+t}),l[0])),""+(a?"-":"")+u+(r?".":"")+Ht(l[1]||"",e,n)}function Gt(t,e){if(t.value=t.value,null!==t){if(t.createTextRange){var n=t.createTextRange();return n.move("character",e),n.select(),!0}return t.selectionStart||0===t.selectionStart?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}}!function(t){t.event="event",t.props="prop"}(Pt||(Pt={}));var qt,Yt,Kt,$t=(qt=function(t,e){for(var n=0,r=0,i=t.length,o=e.length;t[n]===e[n]&&n<i;)n++;for(;t[i-1-r]===e[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}},Kt=void 0,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Yt&&t.length===Yt.length&&t.every((function(t,e){return t===Yt[e]}))?Kt:(Yt=t,Kt=qt.apply(void 0,t))}),Xt=function(t,e){var n=Math.min(t.selectionStart,e);return{from:{start:n,end:t.selectionEnd},to:{start:n,end:e}}};function Jt(t){return Math.max(t.selectionStart,t.selectionEnd)}function Qt(t){return{from:{start:0,end:0},to:{start:0,end:t.length},lastValue:""}}function Zt(t){var e=t.currentValue,n=t.formattedValue,r=t.currentValueIndex,i=t.formattedValueIndex;return e[r]===n[i]}function te(t,e,n,r){var i=t.length;if(e=function(t,e,n){return Math.min(Math.max(t,e),n)}(e,0,i),"left"===r){for(;e>=0&&!n[e];)e--;-1===e&&(e=n.indexOf(!0))}else{for(;e<=i&&!n[e];)e++;e>i&&(e=n.lastIndexOf(!0))}return-1===e&&(e=i),e}function ee(t){for(var e=Array.from({length:t.length+1}).map((function(){return!0})),n=0,r=e.length;n<r;n++)e[n]=Boolean(zt(t[n])||zt(t[n-1]));return e}function ne(t,e,n,r,i,o){void 0===o&&(o=Dt);var a=function(t){var e=(0,s.useRef)(t);e.current=t;var n=(0,s.useRef)((function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.current.apply(e,t)}));return n.current}((function(t,e){var n,o;return Ft(t)?(o="",n=""):"number"==typeof t||e?(o="number"==typeof t?Bt(t):t,n=r(o)):(o=i(t,void 0),n=r(o)),{formattedValue:n,numAsString:o}})),c=(0,s.useState)((function(){return a(Mt(t)?e:t,n)})),l=c[0],u=c[1],p=t,h=n;Mt(t)&&(p=l.numAsString,h=!0);var f=a(p,h);return(0,s.useMemo)((function(){u(f)}),[f.formattedValue]),[l,function(t,e){t.formattedValue!==l.formattedValue&&u({formattedValue:t.formattedValue,numAsString:t.value}),o(t,e)}]}function re(t){return t.replace(/[^0-9]/g,"")}function ie(t){return t}function oe(t){var e=t.type;void 0===e&&(e="text");var n=t.displayType;void 0===n&&(n="input");var r=t.customInput,i=t.renderText,o=t.getInputRef,a=t.format;void 0===a&&(a=ie);var c=t.removeFormatting;void 0===c&&(c=re);var l=t.defaultValue,u=t.valueIsNumericString,p=t.onValueChange,h=t.isAllowed,f=t.onChange;void 0===f&&(f=Dt);var d=t.onKeyDown;void 0===d&&(d=Dt);var y=t.onMouseUp;void 0===y&&(y=Dt);var g=t.onFocus;void 0===g&&(g=Dt);var m=t.onBlur;void 0===m&&(m=Dt);var _=t.value,k=t.getCaretBoundary;void 0===k&&(k=ee);var v=t.isValidInputCharacter;void 0===v&&(v=zt);var x=t.isCharacterSame,E=Lt(t,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),T=ne(_,l,Boolean(u),a,c,p),w=T[0],b=w.formattedValue,A=w.numAsString,R=T[1],C=(0,s.useRef)(),S=(0,s.useRef)({formattedValue:b,numAsString:A}),N=function(t,e){S.current={formattedValue:t.formattedValue,numAsString:t.value},R(t,e)},O=(0,s.useState)(!1),I=O[0],L=O[1],P=(0,s.useRef)(null),D=(0,s.useRef)({setCaretTimeout:null,focusTimeout:null});(0,s.useEffect)((function(){return L(!0),function(){clearTimeout(D.current.setCaretTimeout),clearTimeout(D.current.focusTimeout)}}),[]);var z=a,M=function(t,e){var n=parseFloat(e);return{formattedValue:t,value:e,floatValue:isNaN(n)?void 0:n}},F=function(t,e,n){0===t.selectionStart&&t.selectionEnd===t.value.length||(Gt(t,e),D.current.setCaretTimeout=setTimeout((function(){t.value===n&&t.selectionStart!==e&&Gt(t,e)}),0))},U=function(t,e,n){return te(t,e,k(t),n)},j=function(t,e,n){var r=k(e),i=function(t,e,n,r,i,o,s){void 0===s&&(s=Zt);var a=i.findIndex((function(t){return t})),c=t.slice(0,a);e||n.startsWith(c)||(e=c,n=c+n,r+=c.length);for(var l=n.length,u=t.length,p={},h=new Array(l),f=0;f<l;f++){h[f]=-1;for(var d=0,y=u;d<y;d++)if(s({currentValue:n,lastValue:e,formattedValue:t,currentValueIndex:f,formattedValueIndex:d})&&!0!==p[d]){h[f]=d,p[d]=!0;break}}for(var g=r;g<l&&(-1===h[g]||!o(n[g]));)g++;var m=g===l||-1===h[g]?u:h[g];for(g=r-1;g>0&&-1===h[g];)g--;var _=-1===g||-1===h[g]?0:h[g]+1;return _>m?m:r-_<m-r?_:m}(e,b,t,n,r,v,x);return i=te(e,i,r)};(0,s.useEffect)((function(){var t=S.current,e=t.formattedValue,n=t.numAsString;b===e&&A===n||N(M(b,A),{event:void 0,source:Pt.props})}),[b,A]);var H=P.current?Jt(P.current):void 0;("undefined"!=typeof window?s.useLayoutEffect:s.useEffect)((function(){var t=P.current;if(b!==S.current.formattedValue&&t){var e=j(S.current.formattedValue,b,H);t.value=b,F(t,e,b)}}),[b]);var V=function(t,e,n){var r=e.target,i=C.current?Xt(C.current,r.selectionEnd):$t(b,t),o=Object.assign(Object.assign({},i),{lastValue:b}),s=c(t,o),a=z(s);if(s=c(a,void 0),h&&!h(M(a,s))){var l=e.target,u=Jt(l),p=j(t,b,u);return l.value=b,F(l,p,b),!1}return function(t){var e=t.formattedValue;void 0===e&&(e="");var n,r=t.input,i=t.source,o=t.event,s=t.numAsString;if(r){var a=t.inputValue||r.value,c=Jt(r);r.value=e,void 0!==(n=j(a,e,c))&&F(r,n,e)}e!==b&&N(M(e,s),{event:o,source:i})}({formattedValue:a,numAsString:s,inputValue:t,event:e,source:n,input:e.target}),!0},B=function(t,e){void 0===e&&(e=0);var n=t.selectionStart,r=t.selectionEnd;C.current={selectionStart:n,selectionEnd:r+e}},W=!I||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",G=Object.assign({inputMode:W},E,{type:e,value:b,onChange:function(t){var e=t.target.value;V(e,t,Pt.event)&&f(t),C.current=void 0},onKeyDown:function(t){var e,n=t.target,r=t.key,i=n.selectionStart,o=n.selectionEnd,s=n.value;void 0===s&&(s=""),"ArrowLeft"===r||"Backspace"===r?e=Math.max(i-1,0):"ArrowRight"===r?e=Math.min(i+1,s.length):"Delete"===r&&(e=i);var a=0;"Delete"===r&&i===o&&(a=1);var c="ArrowLeft"===r||"ArrowRight"===r;if(void 0===e||i!==o&&!c)return d(t),void B(n,a);var l=e;c?(l=U(s,e,"ArrowLeft"===r?"left":"right"))!==e&&t.preventDefault():"Delete"!==r||v(s[e])?"Backspace"!==r||v(s[e])||(l=U(s,e,"left")):l=U(s,e,"right");l!==e&&F(n,l,s),d(t),B(n,a)},onMouseUp:function(t){var e=t.target,n=function(){var t=e.selectionStart,n=e.selectionEnd,r=e.value;if(void 0===r&&(r=""),t===n){var i=U(r,t);i!==t&&F(e,i,r)}};n(),requestAnimationFrame((function(){n()})),y(t),B(e)},onFocus:function(t){t.persist&&t.persist();var e=t.target,n=t.currentTarget;P.current=e,D.current.focusTimeout=setTimeout((function(){var r=e.selectionStart,i=e.selectionEnd,o=e.value;void 0===o&&(o="");var s=U(o,r);s===r||0===r&&i===o.length||F(e,s,o),g(Object.assign(Object.assign({},t),{currentTarget:n}))}),0)},onBlur:function(t){P.current=null,clearTimeout(D.current.focusTimeout),clearTimeout(D.current.setCaretTimeout),m(t)}});if("text"===n)return i?s.createElement(s.Fragment,null,i(b,E)||null):s.createElement("span",Object.assign({},E,{ref:o}),b);if(r){var q=r;return s.createElement(q,Object.assign({},G,{ref:o}))}return s.createElement("input",Object.assign({},G,{ref:o}))}function se(t,e){var n=e.decimalScale,r=e.fixedDecimalScale,i=e.prefix;void 0===i&&(i="");var o=e.suffix;void 0===o&&(o="");var s=e.allowNegative,a=e.thousandsGroupStyle;if(void 0===a&&(a="thousand"),""===t||"-"===t)return t;var c=ae(e),l=c.thousandSeparator,u=c.decimalSeparator,p=0!==n&&-1!==t.indexOf(".")||n&&r,h=jt(t,s),f=h.beforeDecimal,d=h.afterDecimal,y=h.addNegation;return void 0!==n&&(d=Ht(d,n,!!r)),l&&(f=function(t,e,n){var r=function(t){switch(t){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),i=t.search(/[1-9]/);return i=-1===i?t.length:i,t.substring(0,i)+t.substring(i,t.length).replace(r,"$1"+e)}(f,l,a)),i&&(f=i+f),o&&(d+=o),y&&(f="-"+f),t=f+(p&&u||"")+d}function ae(t){var e=t.decimalSeparator;void 0===e&&(e=".");var n=t.thousandSeparator,r=t.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:r}}function ce(t,e,n){var r;void 0===e&&(e=Qt(t));var i=n.allowNegative,o=n.prefix;void 0===o&&(o="");var s=n.suffix;void 0===s&&(s="");var a=n.decimalScale,c=e.from,l=e.to,u=l.start,p=l.end,h=ae(n),f=h.allowedDecimalSeparators,d=h.decimalSeparator,y=t[p]===d;if(zt(t)&&(t===o||t===s)&&""===e.lastValue)return t;if(p-u==1&&-1!==f.indexOf(t[u])){var g=0===a?"":d;t=t.substring(0,u)+g+t.substring(u+1,t.length)}var m=function(t,e,n){var r=!1,i=!1;o.startsWith("-")?r=!1:t.startsWith("--")?(r=!1,i=!0):s.startsWith("-")&&t.length===s.length?r=!1:"-"===t[0]&&(r=!0);var a=r?1:0;return i&&(a=2),a&&(t=t.substring(a),e-=a,n-=a),{value:t,start:e,end:n,hasNegation:r}},_=m(t,u,p),k=_.hasNegation;t=(r=_).value,u=r.start,p=r.end;var v=m(e.lastValue,c.start,c.end),x=v.start,E=v.end,T=v.value,w=t.substring(u,p);!(t.length&&T.length&&(x>T.length-s.length||E<o.length))||w&&s.startsWith(w)||(t=T);var b=0;t.startsWith(o)?b+=o.length:u<o.length&&(b=u),p-=b;var A=(t=t.substring(b)).length,R=t.length-s.length;t.endsWith(s)?A=R:(p>R||p>t.length-s.length)&&(A=p),t=t.substring(0,A),t=function(t,e){void 0===t&&(t="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(t),o=r.test(t);return t=t.replace(/-/g,""),i&&!o&&e&&(t="-"+t),t}(k?"-"+t:t,i),t=(t.match(function(t,e){return new RegExp("(^-)|[0-9]|"+Ut(t),e?"g":void 0)}(d,!0))||[]).join("");var C=t.indexOf(d);t=t.replace(new RegExp(Ut(d),"g"),(function(t,e){return e===C?".":""}));var S=jt(t,i),N=S.beforeDecimal,O=S.afterDecimal,I=S.addNegation;return l.end-l.start<c.end-c.start&&""===N&&y&&!parseFloat(O)&&(t=I?"-":""),t}function le(t){t=function(t){var e=ae(t),n=e.thousandSeparator,r=e.decimalSeparator,i=t.prefix;void 0===i&&(i="");var o=t.allowNegative;if(void 0===o&&(o=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return i.startsWith("-")&&o&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+i+"\n allowNegative: "+o+"\n "),o=!1),Object.assign(Object.assign({},t),{allowNegative:o})}(t);t.decimalSeparator,t.allowedDecimalSeparators,t.thousandsGroupStyle;var e=t.suffix,n=t.allowNegative,r=t.allowLeadingZeros,i=t.onKeyDown;void 0===i&&(i=Dt);var o=t.onBlur;void 0===o&&(o=Dt);var s=t.thousandSeparator,a=t.decimalScale,c=t.fixedDecimalScale,l=t.prefix;void 0===l&&(l="");var u=t.defaultValue,p=t.value,h=t.valueIsNumericString,f=t.onValueChange,d=Lt(t,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),y=ae(t),g=y.decimalSeparator,m=y.allowedDecimalSeparators,_=function(e){return se(e,t)},k=function(e,n){return ce(e,n,t)},v=Mt(p)?u:p,x=null!=h?h:function(t,e,n){return""===t||!(null==e?void 0:e.match(/\d/))&&!(null==n?void 0:n.match(/\d/))&&"string"==typeof t&&!isNaN(Number(t))}(v,l,e);Mt(p)?Mt(u)||(x=x||"number"==typeof u):x=x||"number"==typeof p;var E=function(t){return Ft(t)?t:("number"==typeof t&&(t=Bt(t)),x&&"number"==typeof a?Wt(t,a,Boolean(c)):t)},T=ne(E(p),E(u),Boolean(x),_,k,f),w=T[0],b=w.numAsString,A=w.formattedValue,R=T[1];return Object.assign(Object.assign({},d),{value:A,valueIsNumericString:!1,isValidInputCharacter:function(t){return t===g||zt(t)},isCharacterSame:function(t){var e=t.currentValue,n=t.lastValue,r=t.formattedValue,i=t.currentValueIndex,o=t.formattedValueIndex,s=e[i],a=r[o],c=$t(n,e).to;return!!(i>=c.start&&i<c.end&&m&&m.includes(s)&&a===g)||s===a},onValueChange:R,format:_,removeFormatting:k,getCaretBoundary:function(e){return function(t,e){var n=e.prefix;void 0===n&&(n="");var r=e.suffix;void 0===r&&(r="");var i=Array.from({length:t.length+1}).map((function(){return!0})),o="-"===t[0];i.fill(!1,0,n.length+(o?1:0));var s=t.length;return i.fill(!1,s-r.length+1,s+1),i}(e,t)},onKeyDown:function(t){var e=t.target,r=t.key,o=e.selectionStart,u=e.selectionEnd,p=e.value;if(void 0===p&&(p=""),("Backspace"===r||"Delete"===r)&&u<l.length)t.preventDefault();else if(o===u){"Backspace"===r&&"-"===p[0]&&o===l.length+1&&n&&Gt(e,1),a&&c&&("Backspace"===r&&p[o-1]===g?(Gt(e,o-1),t.preventDefault()):"Delete"===r&&p[o]===g&&t.preventDefault()),(null==m?void 0:m.includes(r))&&p[o]===g&&Gt(e,o+1);var h=!0===s?",":s;"Backspace"===r&&p[o-1]===h&&Gt(e,o-1),"Delete"===r&&p[o]===h&&Gt(e,o+1),i(t)}else i(t)},onBlur:function(e){var n=b;if(n.match(/\d/g)||(n=""),r||(n=function(t){if(!t)return t;var e="-"===t[0];e&&(t=t.substring(1,t.length));var n=t.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(e?"-":"")+r+(i?"."+i:"")}(n)),c&&a&&(n=Wt(n,a,c)),n!==b){var i=se(n,t);R({formattedValue:i,value:n,floatValue:parseFloat(n)},{event:e,source:Pt.event})}o(e)}})}function ue(t){var e=le(t);return s.createElement(oe,Object.assign({},e))}const pe=({id:t,onChange:e,value:n,disabled:r,readOnly:i,required:a,labelId:c,max:l,decimals:u,invalid:h})=>{const f=(0,s.useCallback)((function(t){const n=t.floatValue??null;e(Number.isNaN(n)?null:n)}),[e]),d=(0,s.useCallback)((t=>{const{floatValue:e}=t;return!(Number.isInteger(l)&&e&&l)||(e<=l||!1)}),[l]);return(0,o.jsx)(ue,{id:t,className:p({disabled:r}),onValueChange:f,value:n??"","aria-labelledby":c,disabled:r,readOnly:i,required:a,lang:"en",isAllowed:d,allowedDecimalSeparators:q.allDecimalSeparators,decimalSeparator:q.decimalSeparator,decimalScale:u,allowLeadingZeros:!0,thousandSeparator:q.thousandSeparator,inputMode:u?"decimal":"numeric","aria-invalid":h})};const he=u("InputNumber",(t=>{const{id:e,value:n,onChange:r,disabled:i,readOnly:s,max:a,decimals:c,unit:l,label:u,errors:p,required:h,description:f,declarations:y}=t,g=`label-${e}`;return(0,o.jsxs)("div",{className:"lunatic-input-number",children:[(0,o.jsx)(k,{htmlFor:e,id:g,description:f,children:u}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:y,id:e}),(0,o.jsx)(pe,{id:e,value:n,onChange:r,disabled:!!i,readOnly:!!s,required:!!h,labelId:g,max:a,decimals:c,invalid:!!p}),l&&(0,o.jsx)("span",{children:l}),(0,o.jsx)(m,{errors:p})]})})),fe={hours:{min:0,max:99,size:2,style:{width:"2.5em"}},minutes:{min:0,max:59,size:2,style:{width:"2.5em"}},months:{min:0,max:11,size:2,style:{width:"2.5em"}},years:{min:0,size:4,style:{width:"4em"}}},de={hours:"Heures :",minutes:"Minutes :",months:"Mois : ",years:"Ann\xe9es :"};const ye=(t,e)=>{const n=new RegExp(e.replaceAll("n","(\\d+)")),r=t.match(n);if(!r)throw new Error(`Invalid duration value "${t}" does not match the format "${e}"`);const[,...i]=r;return i.map((t=>parseInt(t,10)))};function ge(t,e){return Object.entries(t).reduce(((t,[n,r])=>{const i=e(n,r);if(!Array.isArray(i))return t;const[o,s]=i;return t[o]=s,t}),{})}const me=u("Duration",(t=>{const{errors:e,value:n,label:r,format:i,onChange:a,declarations:c,id:l}=t,[u,h]=(0,s.useState)(((t,e)=>{if(null===t&&"PTnHnM"===e)return{hours:null,minutes:null};if(null===t)return{years:null,months:null};const n=ye(t,e);return"PTnHnM"===e?{hours:n[0],minutes:n[1]}:{years:n[0],months:n[1]}})(n,i)),f=t=>e=>{if(!e.target.checkValidity())return;const n=function(t,e){if(null===t)return t;const n=fe[e];return t<n.min?n.min:"max"in n&&t>n.max?n.max:t}(Number.isNaN(e.target.valueAsNumber)?null:e.target.valueAsNumber,t),r={...u,[t]:n};a((t=>{const e="hours"in t&&"minutes"in t?"PT":"P";if(0===Object.values(t).filter((t=>null!==t)).length)return null;const n=["years","months","hours","minutes"];let r="";for(const i of n)i in t&&(r+=(t[i]??0)+i[0].toUpperCase());return e+r})(r)),h(r)};return(0,o.jsxs)("fieldset",{className:p("lunatic-input"),children:[r&&(0,o.jsx)("legend",{children:r}),(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:c,id:l}),(0,o.jsx)("div",{className:"duration-fields",children:(y=u,Object.keys(y)).map((t=>(0,o.jsxs)("div",{className:"duration-field",children:[(0,o.jsx)("label",{htmlFor:`${t}Input`,className:"input-label",children:de[t]}),(0,o.jsx)("input",{id:`${t}Input`,type:"number",value:u[t]??"",className:"input-field",onChange:f(t),...fe[t]})]},t)))}),(0,o.jsx)(m,{errors:e})]});var y}));function _e({option:t,selected:e}){const{value:n,label:r}=t;return r&&"string"==typeof r&&r.length?(0,o.jsxs)("div",{className:p("lunatic-dropdown-option",{selected:e}),children:[(0,o.jsx)("span",{className:"id",children:n}),(0,o.jsx)("span",{children:"\xa0\u2014\xa0"}),(0,o.jsx)("span",{className:"label",children:r})]}):(0,o.jsx)("div",{className:p("lunatic-dropdown-option",{selected:e}),children:(0,o.jsx)("span",{className:"id",children:r})})}function ke({option:t,placeholder:e,search:n}){const r=function(t,e){if(t){const{value:e,label:n}=t;return n||e}return e?.trim().length?e:null}(t,n);return r?(0,o.jsx)("span",{className:"selection",children:r}):(0,o.jsx)("span",{className:"placeholder",children:e})}const ve=u("ComboboxContainer",(({children:t,className:e,classNamePrefix:n,id:r,classStyle:i="default-style",errors:s})=>(0,o.jsxs)("div",{id:`${n??"lunatic"}-combo-box-container-${r}`,className:p(e,`${n??"lunatic"}-combo-box-container`,`${n??"lunatic"}-suggester-${i}`,"lunatic-suggester-default-style",i),children:[t,s&&(0,o.jsx)(m,{errors:s})]}))),xe={ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Home:"Home",End:"End",Enter:"Enter",Escape:"Escape",Tab:"Tab"},Ee=u("ComboboxContentBox",(({children:t,classNamePrefix:e,focused:n})=>(0,o.jsx)("div",{className:p(`${e??"lunatic"}-combo-box`,{focused:n}),children:t})));const Te=function(t,e,n){const r=J(e),i=(0,s.useCallback)((t=>{r.current(t)}),[r]);(0,s.useEffect)((()=>(document.addEventListener(t,i,n),()=>{document.removeEventListener(t,i,n)})),[t,n,i])};function we({children:t,focused:e,onFocus:n,onBlur:r,onKeyDown:i,classNamePrefix:a}){const c=(0,s.useRef)(null),l=(0,s.useCallback)((t=>{!c.current?.contains(t.target)&&r&&r()}),[c,r]);Te("mousedown",l);const u=(0,s.useCallback)((function(t){const{key:e}=t;switch(t.stopPropagation(),e){case xe.Escape:case xe.Enter:case xe.Tab:c.current?.focus()}i(e)}),[i]);return(0,o.jsx)(Ee,{classNamePrefix:a,focused:e,children:(0,o.jsx)("div",{className:p(`${a??"lunatic"}-combo-box-content`,{focused:e}),ref:c,tabIndex:0,onFocus:n,onClick:n,onKeyDown:u,children:t})})}function be(t){const{top:e}=t;return e}function Ae(t){const{top:e,height:n}=t;return e+n}function Re({children:t,index:e,selected:n,onSelect:r}){const i=(0,s.useRef)(null),a=(0,s.useCallback)((t=>{t.stopPropagation(),t.preventDefault(),r(e)}),[r,e]);return(0,s.useEffect)((()=>{const{current:t}=i;if(t&&n&&t.parentNode){(function(t,e){const n=Math.min(be(t),be(e));return Math.max(Ae(t),Ae(e))-n<t.height+e.height})(t.getBoundingClientRect(),t.parentNode.getBoundingClientRect())||t.scrollIntoView()}}),[i,n]),(0,o.jsx)("li",{className:p("lunatic-combo-box-option-container",{selected:n}),role:"option","aria-selected":n,onClick:a,ref:i,children:t})}const Ce=u("ComboboxPanelContainer",(({children:t,focused:e,expanded:n,id:r})=>(0,o.jsx)("ul",{id:`lunatic-combo-box-panel-${r}`,"aria-label":"suggestions",className:p("lunatic-combo-box-panel",{focused:e,expanded:n}),role:"listbox",children:t}))),Se=u("ComboboxOption",(({option:t,selected:e})=>{const{id:n,value:r,label:i}=t;return"OTHER"===r?(0,o.jsx)("div",{className:p("lunatic-combo-box-option",{selected:e}),children:(0,o.jsx)("span",{className:"label",children:`${Y.SUGGESTER_NO_RESULT} : ${Y.SUGGESTER_ARBITRARY} "${i}"`})}):i&&"string"==typeof i&&i.length?(0,o.jsxs)("div",{className:p("lunatic-combo-box-option",{selected:e}),children:[(0,o.jsx)("span",{className:"id",children:n||r}),(0,o.jsx)("span",{children:" - "}),(0,o.jsx)("span",{className:"label",children:i})]}):(0,o.jsx)("div",{className:p("lunatic-combo-box-option",{selected:e}),children:(0,o.jsx)("span",{className:"id",children:n})})}));function Ne({optionRenderer:t,options:e=[],focused:n,selectedIndex:r,expanded:i,id:s,search:a,onSelect:c,isLoading:l}){const u=i?e:[],p=t??Se;return 0!==u.length||a?l?(0,o.jsx)(Ce,{expanded:i,focused:n,id:`${s}-list`,children:(0,o.jsx)("div",{className:"lunatic-combo-box-option",children:(0,o.jsx)("span",{className:"label",children:Y.SUGGESTER_LOADING})})}):a&&0===u.length||0===u.length?(0,o.jsx)(Ce,{expanded:i,focused:n,id:`${s}-list`,children:(0,o.jsx)("div",{className:"lunatic-combo-box-option",children:(0,o.jsx)("span",{className:"label",children:Y.SUGGESTER_NO_RESULT})})}):(0,o.jsx)(Ce,{expanded:i,focused:n,id:`${s}-list`,children:u.map(((t,e)=>(0,o.jsx)(Re,{index:e.toString(),selected:r===e,onSelect:c,children:(0,o.jsx)(p,{option:t,selected:r===e,search:a})},t.id??t.value)))}):null}function Oe({className:t,children:e}){return(0,o.jsx)("i",{className:p("lunatic-icon",t),children:e})}function Ie({className:t,width:e=32,height:n=32}){return(0,o.jsx)(Oe,{className:t,children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:n,x:"0",y:"0",enableBackground:"new 0 0 32 32",version:"1.1",viewBox:"0 0 32 32",xmlSpace:"preserve",children:(0,o.jsx)("path",{d:"M 7.097006,7.0709627 C 6.4710386,7.6950801 6.0348033,8.5167883 6,9.3333333 l 6.666666,6.6666677 -6.6666655,6.666666 C 6.0406655,24.255963 7.7002437,25.930395 9.3333333,26 L 15.999999,19.333334 22.666665,26 C 24.255962,25.95934 25.930393,24.299755 26,22.666667 L 19.333332,16.000001 26,9.3333334 C 25.959335,7.7440359 24.299754,6.069605 22.666665,6 L 15.999999,12.666666 9.3333333,6 C 8.5386853,6.020332 7.7229758,6.4468492 7.097006,7.0709627 Z"})})})}function Le({className:t,children:e,tabIndex:n,title:r="Fab",onClick:i=et,onKeyDown:s=et,disabled:a}){return(0,o.jsx)("button",{className:p("lunatic-fab",t),tabIndex:n,title:r,onClick:i,onKeyDown:s,disabled:a,"aria-label":r,children:e})}function Pe(t){return!t||0===t.trim().length}const De=u("ComboboxClearButton",(function({className:t,search:e,onClick:n,editable:r}){const i=(0,s.useMemo)((()=>function(t){if("function"==typeof t)return e=>{"Enter"===e.key&&t()}}(n)),[n]);return r?(0,o.jsx)(Le,{className:p("mini","lunatic-combo-box-fab",t),title:"delete",onClick:n,disabled:Pe(e),onKeyDown:i,children:(0,o.jsx)(Ie,{className:"lunatic-combo-box-icon"})}):null}));function ze(t,e,n){if(t){const{id:e,value:n,label:r}=t;return r?`${e||n} - ${r}`:e||n}return e&&e.trim().length?e:n??""}const Me=u("ComboboxLabelSelection",(({option:t,placeholder:e,search:n,disabled:r=!1,readOnly:i=!1})=>{const s=!(t||n&&0!==n.length);return"OTHER"===t?.value?(0,o.jsx)("div",{className:p("lunatic-combo-box-selected",{disabled:r,readOnly:i}),children:(0,o.jsx)("span",{className:"selection",children:t.label})}):(0,o.jsx)("div",{className:p("lunatic-combo-box-selected",{disabled:r,readOnly:i}),children:(0,o.jsx)("span",{className:p({placeholder:s,selection:!s}),children:ze(t,n,e)})})}));const Fe=u("ComboboxInput",(function({placeholder:t,disabled:e,onChange:n,value:r,id:i,labelledBy:a,focused:c,className:l,invalid:u}){const h=(0,s.useRef)(null);return(0,s.useEffect)((()=>{h.current&&c&&h.current.focus()}),[h,c]),(0,o.jsx)("input",{ref:h,id:i,className:p("lunatic-combo-box-input",l),type:"text",onChange:n,value:r,"aria-invalid":u,title:"combo-box",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:"false",placeholder:t,disabled:e,"aria-labelledby":a,onKeyDown:t=>{const{key:e}=t;"ArrowUp"!==e&&"ArrowDown"!==e||t.preventDefault()}})}));function Ue({labelRenderer:t,placeholder:e,search:n,expanded:r,disabled:i,readOnly:s,focused:a,onChange:c,selectedIndex:l,options:u,editable:h,labelId:f,id:d,classNamePrefix:y,invalid:g}){const m=!h||!r,_=void 0!==l?u[l]:void 0,k=t??Me;return(0,o.jsx)("div",{id:d,className:p(`${y??"lunatic"}-combo-box-selection`,{focused:a,disabled:i}),role:"combobox","aria-controls":"todo","aria-haspopup":"listbox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":d,"aria-labelledby":f,children:m?(0,o.jsx)(k,{option:_,placeholder:e,search:n,disabled:i,readOnly:s}):(0,o.jsx)(Fe,{invalid:g,id:`combobox-input-${d}`,className:"lunatic-combo-box-input",onChange:t=>c?.(t.target.value??t.target.innerText),value:n,placeholder:e,disabled:i,readOnly:s,focused:a,labelledBy:f})})}function je(t){if("string"==typeof t){const e=parseInt(t,10);if(Number.isNaN(e))throw new Error(`Cannot cast ${t} to int`);return e}if("number"==typeof t)return t;throw new Error(`Cannot cast ${typeof t} to int`)}function He(t){return"number"==typeof t&&Number.isFinite(t)}function Ve(t={value:""}){const{id:e,value:n}=t;return e||n}const Be=u("Combobox",(function({className:t,classNamePrefix:e,classStyle:n="default-style",placeholder:r="Commencez votre saisie...",editable:i=!1,disabled:a,readOnly:c,id:l,optionRenderer:u,labelRenderer:h,onChange:f,onSelect:d,value:y,options:g,messageError:m,search:_="",getOptionValue:v=Ve,label:x,description:E,errors:T,onBlur:w,onFocus:b,isLoading:A}){const[R,C]=(0,s.useState)(!1),[S,N]=(0,s.useState)(!1),O=function(t,e,n){if(!Array.isArray(t))return;return t.map(n).findIndex((t=>t===e))}(g,y,v),I=`label-${l}`,L=(t,e=!0)=>{const n=function(t,e,n){return t<e?e:t>n?n:t}(je(t),0,g.length),r=g[n];e&&(C(!1),w?.()),d(v(r))},P=!a||!c;return m?(0,o.jsx)("div",{className:"lunatic-combo-box-message-error",children:m}):(0,o.jsxs)(ve,{id:l,className:t,classStyle:n,classNamePrefix:e,errors:T,children:[(0,o.jsx)(k,{htmlFor:l,id:I,description:E,children:x}),(0,o.jsxs)(we,{focused:S,onFocus:()=>{a||c||(b?.(),C(!0),N(!0))},onBlur:()=>{a||c||(C(!1),N(!1),w?.())},onKeyDown:t=>{const e=g.length;switch(t){case xe.Tab:case xe.Escape:return void C(!1);case xe.ArrowDown:return void L((O??-1)+1,!1);case xe.ArrowUp:return void L((O??e)-1,!1);case xe.Home:return void L(0,!1);case xe.End:return void L(e-1,!1);case xe.Enter:return void C((t=>!t))}},classNamePrefix:e,children:[(0,o.jsx)(Ue,{labelRenderer:h,placeholder:r,search:_,expanded:R,id:l,labelId:I,disabled:a,readOnly:c,focused:S,editable:i,selectedIndex:O,options:g,onChange:t=>{f?.(t)},classNamePrefix:e,invalid:!!T}),(0,o.jsx)(Ne,{isLoading:A,optionRenderer:u,options:g,focused:S,selectedIndex:O,expanded:R,id:l,search:_,onSelect:L})]}),P&&(0,o.jsx)(De,{className:p({focused:S}),search:y,onClick:()=>{C(!1),f?.(""),d(null)},editable:i})]})}));const We=u("Dropdown",(t=>{const{id:e,disabled:n,options:r,className:i,value:s,description:a,label:c,errors:l,onChange:u,readOnly:h}=t;return(0,o.jsx)(Be,{id:e,className:p(i,"lunatic-dropdown"),disabled:n,readOnly:h,options:r,editable:!1,onSelect:u,optionRenderer:_e,labelRenderer:ke,value:s,label:c,errors:l,description:a})}));function Ge({label:t,progress:e,description:n,onClick:r,disabled:i,iteration:s,locked:a,errors:c}){return(0,o.jsxs)("section",{className:"lunatic-roundabout__item",children:[(0,o.jsxs)("div",{children:[t&&(0,o.jsx)("label",{className:"lunatic-roundabout__label",htmlFor:`action${s}`,children:t}),n&&(0,o.jsx)("div",{className:"lunatic-roundabout__description",children:n})]}),!i&&(0,o.jsx)(X,{id:`action${s}`,className:p("lunatic-roundabout__button",Ke(e)),onClick:r,disabled:a&&1===e,children:Ye(e)}),(0,o.jsx)(m,{errors:c})]})}const qe=u("Roundabout",(({items:t,goToIteration:e,label:n,locked:r})=>(0,o.jsxs)("div",{className:"lunatic-roundabout",children:[(0,o.jsx)(k,{children:n}),(0,o.jsx)("div",{className:"lunatic-roundabout__items",children:t.map(((t,n)=>(0,o.jsx)(Ge,{iteration:n,...t,errors:t.errors,onClick:()=>e(n),locked:r},n)))})]})));function Ye(t){return 1===t?"Compl\xe9t\xe9":0===t?"Modifier":"Commencer"}function Ke(t){return 1===t?"lunatic-roundabout__button-completed":0===t?"lunatic-roundabout__button-progress":null}const $e=({value:t,options:e,label:n})=>{const r=e?.find((e=>e.value===t));return r?(0,o.jsxs)("div",{className:"lunatic lunatic-component lunatic-dropdown lunatic-combo-box-container default-style",children:[(0,o.jsx)(k,{children:n}),(0,o.jsx)("div",{children:r?.label})]}):null},Xe=(t,e)=>R(e,(e=>R(t,(t=>[t,e])))).flat(1);const Je=u("Suggester",(({className:t,classNamePrefix:e="lunatic",placeholder:n=Y.PLACEHOLDER,onSelect:r=et,labelRenderer:i,optionRenderer:s,value:a,disabled:c,readOnly:l,id:u,search:p,label:h,description:f,errors:d,options:y,onSearch:g,onBlur:m,onClear:_,state:k,onFocus:v})=>(0,o.jsx)(Be,{id:u,isLoading:"loading"===k,className:t,classNamePrefix:e,onChange:t=>g(t??""),disabled:c,readOnly:l,options:y.map((t=>({value:t.id,...t}))),editable:!0,onBlur:m,onFocus:v,onSelect:t=>{null===t?_():r(y.find((e=>e.id===t))??null)},value:a[0]?.id??"",search:p,optionRenderer:s,labelRenderer:i,placeholder:n,label:h,description:f,errors:d}))),Qe=(t,e)=>{const n=J(t),[r,i]=(0,s.useMemo)((()=>function(t,e){let n;return[(...r)=>new Promise(((i,o)=>{n&&clearTimeout(n),n=window.setTimeout((async()=>{try{i(await t(...r))}catch(e){o(e)}}),e)})),()=>clearTimeout(n)]}(((...t)=>n.current(...t)),e)),[n,e]);return(0,s.useEffect)((()=>i),[i]),r},Ze=(t,e,n)=>{const r=Qe(t,n);(0,s.useEffect)((()=>{r().catch(console.error)}),[r,...e])};const tn=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().split(/[^a-z0-9]+/).filter((t=>t.length>0)).join(" ");function en(t,e){const n=tn(t),r=tn(e).split(" ");return r.reduce((function(t,e,i){const o=n.search(e);if(o<0)return t;return t+(n.length-o)/n.length*((r.length-i)/r.length)}),0)}function nn(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const rn="KEYS",on="VALUES",sn="";class an{constructor(t,e){const n=t._tree,r=Array.from(n.keys());this.set=t,this._type=e,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){const t=this.dive();return this.backtrack(),t}dive(){if(0===this._path.length)return{done:!0,value:void 0};const{node:t,keys:e}=cn(this._path);if(cn(e)===sn)return{done:!1,value:this.result()};const n=t.get(cn(e));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(0===this._path.length)return;const t=cn(this._path).keys;t.pop(),t.length>0||(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map((({keys:t})=>cn(t))).filter((t=>t!==sn)).join("")}value(){return cn(this._path).node.get(sn)}result(){switch(this._type){case on:return this.value();case rn:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const cn=t=>t[t.length-1],ln=(t,e,n,r,i,o,s,a)=>{const c=o*s;t:for(const l of t.keys())if(l===sn){const e=i[c-1];e<=n&&r.set(a,[t.get(l),e])}else{let c=o;for(let t=0;t<l.length;++t,++c){const r=l[t],o=s*c,a=o-s;let u=i[o];const p=Math.max(0,c-n-1),h=Math.min(s-1,c+n);for(let t=p;t<h;++t){const n=r!==e[t],s=i[a+t]+ +n,c=i[a+t+1]+1,l=i[o+t]+1,p=i[o+t+1]=Math.min(s,c,l);p<u&&(u=p)}if(u>n)continue t}ln(t.get(l),e,n,r,i,c,s,a+l)}};class un{constructor(t=new Map,e=""){this._size=void 0,this._tree=t,this._prefix=e}atPrefix(t){if(!t.startsWith(this._prefix))throw new Error("Mismatched prefix");const[e,n]=pn(this._tree,t.slice(this._prefix.length));if(void 0===e){const[e,r]=mn(n);for(const n of e.keys())if(n!==sn&&n.startsWith(r)){const i=new Map;return i.set(n.slice(r.length),e.get(n)),new un(i,t)}}return new un(e,t)}clear(){this._size=void 0,this._tree.clear()}delete(t){return this._size=void 0,dn(this._tree,t)}entries(){return new an(this,"ENTRIES")}forEach(t){for(const[e,n]of this)t(e,n,this)}fuzzyGet(t,e){return((t,e,n)=>{const r=new Map;if(void 0===e)return r;const i=e.length+1,o=i+n,s=new Uint8Array(o*i).fill(n+1);for(let a=0;a<i;++a)s[a]=a;for(let a=1;a<o;++a)s[a*i]=a;return ln(t,e,n,r,s,1,i,""),r})(this._tree,t,e)}get(t){const e=hn(this._tree,t);return void 0!==e?e.get(sn):void 0}has(t){const e=hn(this._tree,t);return void 0!==e&&e.has(sn)}keys(){return new an(this,rn)}set(t,e){if("string"!=typeof t)throw new Error("key must be a string");this._size=void 0;return fn(this._tree,t).set(sn,e),this}get size(){if(this._size)return this._size;this._size=0;const t=this.entries();for(;!t.next().done;)this._size+=1;return this._size}update(t,e){if("string"!=typeof t)throw new Error("key must be a string");this._size=void 0;const n=fn(this._tree,t);return n.set(sn,e(n.get(sn))),this}fetch(t,e){if("string"!=typeof t)throw new Error("key must be a string");this._size=void 0;const n=fn(this._tree,t);let r=n.get(sn);return void 0===r&&n.set(sn,r=e()),r}values(){return new an(this,on)}[Symbol.iterator](){return this.entries()}static from(t){const e=new un;for(const[n,r]of t)e.set(n,r);return e}static fromObject(t){return un.from(Object.entries(t))}}const pn=(t,e,n=[])=>{if(0===e.length||null==t)return[t,n];for(const r of t.keys())if(r!==sn&&e.startsWith(r))return n.push([t,r]),pn(t.get(r),e.slice(r.length),n);return n.push([t,e]),pn(void 0,"",n)},hn=(t,e)=>{if(0===e.length||null==t)return t;for(const n of t.keys())if(n!==sn&&e.startsWith(n))return hn(t.get(n),e.slice(n.length))},fn=(t,e)=>{const n=e.length;t:for(let r=0;t&&r<n;){for(const o of t.keys())if(o!==sn&&e[r]===o[0]){const i=Math.min(n-r,o.length);let s=1;for(;s<i&&e[r+s]===o[s];)++s;const a=t.get(o);if(s===o.length)t=a;else{const n=new Map;n.set(o.slice(s),a),t.set(e.slice(r,r+s),n),t.delete(o),t=n}r+=s;continue t}const i=new Map;return t.set(e.slice(r),i),i}return t},dn=(t,e)=>{const[n,r]=pn(t,e);if(void 0!==n)if(n.delete(sn),0===n.size)yn(r);else if(1===n.size){const[t,e]=n.entries().next().value;gn(r,t,e)}},yn=t=>{if(0===t.length)return;const[e,n]=mn(t);if(e.delete(n),0===e.size)yn(t.slice(0,-1));else if(1===e.size){const[n,r]=e.entries().next().value;n!==sn&&gn(t.slice(0,-1),n,r)}},gn=(t,e,n)=>{if(0===t.length)return;const[r,i]=mn(t);r.set(i+e,n),r.delete(i)},mn=t=>t[t.length-1],_n="or",kn="and",vn="and_not";class xn{constructor(t){if(null==(null==t?void 0:t.fields))throw new Error('MiniSearch: option "fields" must be provided');const e=null==t.autoVacuum||!0===t.autoVacuum?On:t.autoVacuum;this._options=Object.assign(Object.assign(Object.assign({},An),t),{autoVacuum:e,searchOptions:Object.assign(Object.assign({},Rn),t.searchOptions||{}),autoSuggestOptions:Object.assign(Object.assign({},Cn),t.autoSuggestOptions||{})}),this._index=new un,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Nn,this.addFields(this._options.fields)}add(t){const{extractField:e,tokenize:n,processTerm:r,fields:i,idField:o}=this._options,s=e(t,o);if(null==s)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(s))throw new Error(`MiniSearch: duplicate ID ${s}`);const a=this.addDocumentId(s);this.saveStoredFields(a,t);for(const c of i){const i=e(t,c);if(null==i)continue;const o=n(i.toString(),c),s=this._fieldIds[c],l=new Set(o).size;this.addFieldLength(a,s,this._documentCount-1,l);for(const t of o){const e=r(t,c);if(Array.isArray(e))for(const t of e)this.addTerm(s,a,t);else e&&this.addTerm(s,a,e)}}}addAll(t){for(const e of t)this.add(e)}addAllAsync(t,e={}){const{chunkSize:n=10}=e,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:o}=t.reduce((({chunk:t,promise:e},r,i)=>(t.push(r),(i+1)%n==0?{chunk:[],promise:e.then((()=>new Promise((t=>setTimeout(t,0))))).then((()=>this.addAll(t)))}:{chunk:t,promise:e})),r);return o.then((()=>this.addAll(i)))}remove(t){const{tokenize:e,processTerm:n,extractField:r,fields:i,idField:o}=this._options,s=r(t,o);if(null==s)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const a=this._idToShortId.get(s);if(null==a)throw new Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(const c of i){const i=r(t,c);if(null==i)continue;const o=e(i.toString(),c),s=this._fieldIds[c],l=new Set(o).size;this.removeFieldLength(a,s,this._documentCount,l);for(const t of o){const e=n(t,c);if(Array.isArray(e))for(const t of e)this.removeTerm(s,a,t);else e&&this.removeTerm(s,a,e)}}this._storedFields.delete(a),this._documentIds.delete(a),this._idToShortId.delete(s),this._fieldLength.delete(a),this._documentCount-=1}removeAll(t){if(t)for(const e of t)this.remove(e);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new un,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(t){const e=this._idToShortId.get(t);if(null==e)throw new Error(`MiniSearch: cannot discard document with ID ${t}: it is not in the index`);this._idToShortId.delete(t),this._documentIds.delete(e),this._storedFields.delete(e),(this._fieldLength.get(e)||[]).forEach(((t,n)=>{this.removeFieldLength(e,n,this._documentCount,t)})),this._fieldLength.delete(e),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(!1===this._options.autoVacuum)return;const{minDirtFactor:t,minDirtCount:e,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:e,minDirtFactor:t})}discardAll(t){const e=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const e of t)this.discard(e)}finally{this._options.autoVacuum=e}this.maybeAutoVacuum()}replace(t){const{idField:e,extractField:n}=this._options,r=n(t,e);this.discard(r),this.add(t)}vacuum(t={}){return this.conditionalVacuum(t)}conditionalVacuum(t,e){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&e,null!=this._enqueuedVacuum||(this._enqueuedVacuum=this._currentVacuum.then((()=>{const e=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Nn,this.performVacuuming(t,e)}))),this._enqueuedVacuum):!1===this.vacuumConditionsMet(e)?Promise.resolve():(this._currentVacuum=this.performVacuuming(t),this._currentVacuum)}performVacuuming(t,e){return nn(this,void 0,void 0,(function*(){const n=this._dirtCount;if(this.vacuumConditionsMet(e)){const e=t.batchSize||Sn.batchSize,r=t.batchWait||Sn.batchWait;let i=1;for(const[t,n]of this._index){for(const[t,e]of n)for(const[r]of e)this._documentIds.has(r)||(e.size<=1?n.delete(t):e.delete(r));0===this._index.get(t).size&&this._index.delete(t),i%e==0&&(yield new Promise((t=>setTimeout(t,r)))),i+=1}this._dirtCount-=n}yield null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}))}vacuumConditionsMet(t){if(null==t)return!0;let{minDirtCount:e,minDirtFactor:n}=t;return e=e||On.minDirtCount,n=n||On.minDirtFactor,this.dirtCount>=e&&this.dirtFactor>=n}get isVacuuming(){return null!=this._currentVacuum}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(t){return this._idToShortId.has(t)}getStoredFields(t){const e=this._idToShortId.get(t);if(null!=e)return this._storedFields.get(e)}search(t,e={}){const n=this.executeQuery(t,e),r=[];for(const[i,{score:o,terms:s,match:a}]of n){const t=s.length||1,n={id:this._documentIds.get(i),score:o*t,terms:Object.keys(a),queryTerms:s,match:a};Object.assign(n,this._storedFields.get(i)),(null==e.filter||e.filter(n))&&r.push(n)}return t===xn.wildcard&&null==e.boostDocument&&null==this._options.searchOptions.boostDocument||r.sort(Pn),r}autoSuggest(t,e={}){e=Object.assign(Object.assign({},this._options.autoSuggestOptions),e);const n=new Map;for(const{score:i,terms:o}of this.search(t,e)){const t=o.join(" "),e=n.get(t);null!=e?(e.score+=i,e.count+=1):n.set(t,{score:i,terms:o,count:1})}const r=[];for(const[i,{score:o,terms:s,count:a}]of n)r.push({suggestion:i,terms:s,score:o/a});return r.sort(Pn),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(t,e){if(null==e)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(t),e)}static loadJSONAsync(t,e){return nn(this,void 0,void 0,(function*(){if(null==e)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(t),e)}))}static getDefault(t){if(An.hasOwnProperty(t))return En(An,t);throw new Error(`MiniSearch: unknown option "${t}"`)}static loadJS(t,e){const{index:n,documentIds:r,fieldLength:i,storedFields:o,serializationVersion:s}=t,a=this.instantiateMiniSearch(t,e);a._documentIds=zn(r),a._fieldLength=zn(i),a._storedFields=zn(o);for(const[c,l]of a._documentIds)a._idToShortId.set(l,c);for(const[c,l]of n){const t=new Map;for(const e of Object.keys(l)){let n=l[e];1===s&&(n=n.ds),t.set(parseInt(e,10),zn(n))}a._index.set(c,t)}return a}static loadJSAsync(t,e){return nn(this,void 0,void 0,(function*(){const{index:n,documentIds:r,fieldLength:i,storedFields:o,serializationVersion:s}=t,a=this.instantiateMiniSearch(t,e);a._documentIds=yield Mn(r),a._fieldLength=yield Mn(i),a._storedFields=yield Mn(o);for(const[t,e]of a._documentIds)a._idToShortId.set(e,t);let c=0;for(const[t,e]of n){const n=new Map;for(const t of Object.keys(e)){let r=e[t];1===s&&(r=r.ds),n.set(parseInt(t,10),yield Mn(r))}++c%1e3==0&&(yield Fn(0)),a._index.set(t,n)}return a}))}static instantiateMiniSearch(t,e){const{documentCount:n,nextId:r,fieldIds:i,averageFieldLength:o,dirtCount:s,serializationVersion:a}=t;if(1!==a&&2!==a)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new xn(e);return c._documentCount=n,c._nextId=r,c._idToShortId=new Map,c._fieldIds=i,c._avgFieldLength=o,c._dirtCount=s||0,c._index=new un,c}executeQuery(t,e={}){if(t===xn.wildcard)return this.executeWildcardQuery(e);if("string"!=typeof t){const n=Object.assign(Object.assign(Object.assign({},e),t),{queries:void 0}),r=t.queries.map((t=>this.executeQuery(t,n)));return this.combineResults(r,n.combineWith)}const{tokenize:n,processTerm:r,searchOptions:i}=this._options,o=Object.assign(Object.assign({tokenize:n,processTerm:r},i),e),{tokenize:s,processTerm:a}=o,c=s(t).flatMap((t=>a(t))).filter((t=>!!t)).map(bn(o)).map((t=>this.executeQuerySpec(t,o)));return this.combineResults(c,o.combineWith)}executeQuerySpec(t,e){const n=Object.assign(Object.assign({},this._options.searchOptions),e),r=(n.fields||this._options.fields).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e]:En(n.boost,e)||1})),{}),{boostDocument:i,weights:o,maxFuzzy:s,bm25:a}=n,{fuzzy:c,prefix:l}=Object.assign(Object.assign({},Rn.weights),o),u=this._index.get(t.term),p=this.termResults(t.term,t.term,1,t.termBoost,u,r,i,a);let h,f;if(t.prefix&&(h=this._index.atPrefix(t.term)),t.fuzzy){const e=!0===t.fuzzy?.2:t.fuzzy,n=e<1?Math.min(s,Math.round(t.term.length*e)):e;n&&(f=this._index.fuzzyGet(t.term,n))}if(h)for(const[d,y]of h){const e=d.length-t.term.length;if(!e)continue;null==f||f.delete(d);const n=l*d.length/(d.length+.3*e);this.termResults(t.term,d,n,t.termBoost,y,r,i,a,p)}if(f)for(const d of f.keys()){const[e,n]=f.get(d);if(!n)continue;const o=c*d.length/(d.length+n);this.termResults(t.term,d,o,t.termBoost,e,r,i,a,p)}return p}executeWildcardQuery(t){const e=new Map,n=Object.assign(Object.assign({},this._options.searchOptions),t);for(const[r,i]of this._documentIds){const t=n.boostDocument?n.boostDocument(i,"",this._storedFields.get(r)):1;e.set(r,{score:t,terms:[],match:{}})}return e}combineResults(t,e=_n){if(0===t.length)return new Map;const n=e.toLowerCase(),r=Tn[n];if(!r)throw new Error(`Invalid combination operator: ${e}`);return t.reduce(r)||new Map}toJSON(){const t=[];for(const[e,n]of this._index){const r={};for(const[t,e]of n)r[t]=Object.fromEntries(e);t.push([e,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:t,serializationVersion:2}}termResults(t,e,n,r,i,o,s,a,c=new Map){if(null==i)return c;for(const l of Object.keys(o)){const u=o[l],p=this._fieldIds[l],h=i.get(p);if(null==h)continue;let f=h.size;const d=this._avgFieldLength[p];for(const i of h.keys()){if(!this._documentIds.has(i)){this.removeTerm(p,i,e),f-=1;continue}const o=s?s(this._documentIds.get(i),e,this._storedFields.get(i)):1;if(!o)continue;const y=h.get(i),g=this._fieldLength.get(i)[p],m=n*r*u*o*wn(y,f,this._documentCount,g,d,a),_=c.get(i);if(_){_.score+=m,In(_.terms,t);const n=En(_.match,e);n?n.push(l):_.match[e]=[l]}else c.set(i,{score:m,terms:[t],match:{[e]:[l]}})}}return c}addTerm(t,e,n){const r=this._index.fetch(n,Dn);let i=r.get(t);if(null==i)i=new Map,i.set(e,1),r.set(t,i);else{const t=i.get(e);i.set(e,(t||0)+1)}}removeTerm(t,e,n){if(!this._index.has(n))return void this.warnDocumentChanged(e,t,n);const r=this._index.fetch(n,Dn),i=r.get(t);null==i||null==i.get(e)?this.warnDocumentChanged(e,t,n):i.get(e)<=1?i.size<=1?r.delete(t):i.delete(e):i.set(e,i.get(e)-1),0===this._index.get(n).size&&this._index.delete(n)}warnDocumentChanged(t,e,n){for(const r of Object.keys(this._fieldIds))if(this._fieldIds[r]===e)return void this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(t)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,"version_conflict")}addDocumentId(t){const e=this._nextId;return this._idToShortId.set(t,e),this._documentIds.set(e,t),this._documentCount+=1,this._nextId+=1,e}addFields(t){for(let e=0;e<t.length;e++)this._fieldIds[t[e]]=e}addFieldLength(t,e,n,r){let i=this._fieldLength.get(t);null==i&&this._fieldLength.set(t,i=[]),i[e]=r;const o=(this._avgFieldLength[e]||0)*n+r;this._avgFieldLength[e]=o/(n+1)}removeFieldLength(t,e,n,r){if(1===n)return void(this._avgFieldLength[e]=0);const i=this._avgFieldLength[e]*n-r;this._avgFieldLength[e]=i/(n-1)}saveStoredFields(t,e){const{storeFields:n,extractField:r}=this._options;if(null==n||0===n.length)return;let i=this._storedFields.get(t);null==i&&this._storedFields.set(t,i={});for(const o of n){const t=r(e,o);void 0!==t&&(i[o]=t)}}}xn.wildcard=Symbol("*");const En=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0,Tn={[_n]:(t,e)=>{for(const n of e.keys()){const r=t.get(n);if(null==r)t.set(n,e.get(n));else{const{score:t,terms:i,match:o}=e.get(n);r.score=r.score+t,r.match=Object.assign(r.match,o),Ln(r.terms,i)}}return t},[kn]:(t,e)=>{const n=new Map;for(const r of e.keys()){const i=t.get(r);if(null==i)continue;const{score:o,terms:s,match:a}=e.get(r);Ln(i.terms,s),n.set(r,{score:i.score+o,terms:i.terms,match:Object.assign(i.match,a)})}return n},[vn]:(t,e)=>{for(const n of e.keys())t.delete(n);return t}},wn=(t,e,n,r,i,o)=>{const{k:s,b:a,d:c}=o;return Math.log(1+(n-e+.5)/(e+.5))*(c+t*(s+1)/(t+s*(1-a+a*r/i)))},bn=t=>(e,n,r)=>({term:e,fuzzy:"function"==typeof t.fuzzy?t.fuzzy(e,n,r):t.fuzzy||!1,prefix:"function"==typeof t.prefix?t.prefix(e,n,r):!0===t.prefix,termBoost:"function"==typeof t.boostTerm?t.boostTerm(e,n,r):1}),An={idField:"id",extractField:(t,e)=>t[e],tokenize:t=>t.split(Un),processTerm:t=>t.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(t,e)=>{"function"==typeof(null===console||void 0===console?void 0:console[t])&&console[t](e)},autoVacuum:!0},Rn={combineWith:_n,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:{k:1.2,b:.7,d:.5}},Cn={combineWith:"and",prefix:(t,e,n)=>e===n.length-1},Sn={batchSize:1e3,batchWait:10},Nn={minDirtFactor:.1,minDirtCount:20},On=Object.assign(Object.assign({},Sn),Nn),In=(t,e)=>{t.includes(e)||t.push(e)},Ln=(t,e)=>{for(const n of e)t.includes(n)||t.push(n)},Pn=({score:t},{score:e})=>e-t,Dn=()=>new Map,zn=t=>{const e=new Map;for(const n of Object.keys(t))e.set(parseInt(n,10),t[n]);return e},Mn=t=>nn(void 0,void 0,void 0,(function*(){const e=new Map;let n=0;for(const r of Object.keys(t))e.set(parseInt(r,10),t[r]),++n%1e3==0&&(yield Fn(0));return e})),Fn=t=>new Promise((e=>setTimeout(e,t))),Un=/[\n\r\p{Z}\p{P}]+/u,jn=(t,e)=>{if("soft"===e.type)return Vn(t).split(/[^a-z0-9]+/).filter((t=>t.length>0));const n=e.params.pattern&&"soft"!==e.params.pattern?/\w+/gi:new RegExp(e.params.pattern,"gi"),r=e.params.min??1;return Vn(t).match(n)?.filter((t=>t.length>=r))??[]},Hn=(t,e)=>{const n=e.rules&&"soft"!==e.rules?/\w+/gi:new RegExp(e.rules[0],"gi"),r=e.min??1;if(e.synonyms)for(const i in e.synonyms){const n=e.synonyms[i].join(" ");t=t.replaceAll(i,`${i} ${n}`)}return Vn(t).match(n)?.filter((t=>t.length>=r))??[]},Vn=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();class Bn{db=null;info;indexed=!1;constructor(t){this.info=t}isIndexed(){return this.indexed}async index(t){if(this.indexed)return Promise.resolve();const e=this.info.fields.map((({name:t})=>t));var n;this.db=new xn({fields:e,storeFields:t[0]?Object.keys(t[0]):e,tokenize:(n=this.info,(t,e)=>{const r=n.fields.find((t=>t.name===e));return r?Hn(t,r):jn(t,n.queryParser)})}),this.db.addAll(t),this.indexed=!0}async search(t){if(!this.db||!this.info.queryParser)return[];let e=this.db.search(t,{prefix:t=>t.length>2});return e=function(t,e){return e.sort(((e,n)=>en(n.label??e.id,t)-en(e.label??e.id,t)))}(t,e),e=e.slice(0,this.info.max),e}}const Wn=new Map;let Gn=t=>Promise.resolve([]);const qn="OTHER";function Yn({storeName:t,selectedOptions:e,allowArbitrary:n}){const[r,i]=(0,s.useState)(""),o=function(t){const e=Wn.get(t);return e?{error:null,search:e,index:()=>e?e.isIndexed()?Promise.resolve():Gn(t).then((t=>e.index(t))):Promise.reject()}:{error:"Cannot find search for store : "+t}}(t),a=J(o.index);let[c,l]=(0,s.useState)(e);const[u,p]=(0,s.useState)(null!==o.error?"error":o.search.isIndexed()?"success":"loading");(0,s.useEffect)((()=>{a.current&&a.current().then((()=>{p("success")})).catch((()=>{p("error")}))}),[a]),Ze((()=>{r&&o.search?.search(r).then((t=>{l(t),p("success")})).catch((()=>p("error")))}),[r],300),r&&n&&0===c.length&&"loading"!==u&&(c=[{id:qn,label:r,value:qn}]);const[h,f]=(0,s.useState)(!1);return{search:r,setSearch:t=>{t.length>0&&!h&&f(!0),i(t)},state:u,options:h?c:e,onBlur:()=>{f(!1),i(""),h&&l(e)},onFocus:()=>{h||(f(!0),i(e[0]?.label??""))}}}const Kn=u("SummaryTitle",(({label:t})=>(0,o.jsx)("div",{className:"lunatic-summary-label",children:t}))),$n=u("SummaryResponses",(({sections:t})=>(0,o.jsx)(o.Fragment,{children:t.map(((t,e)=>(0,o.jsxs)("div",{className:"lunatic-summary-responses-iteration",children:[t.title,t.values&&(0,o.jsx)("ul",{children:t.values.map((t=>(0,o.jsxs)("li",{children:[t.label," : ",t.value]},`response-${e}`)))})]},`${t.id}-${e}`)))})));function Xn(t,e,n){if(!t&&n)return`Valeur pour ${n+1}`;if(!t)return"Valeurs renseign\xe9s :";return e(t,n||0===n?{iteration:n}:{})}function Jn(t,e,n){if(!t)return[];const r=n||0===n?n:void 0;return t.map((t=>({label:e(t.label,{iteration:r}),value:e(t.value,{iteration:r}),id:t.id})))}const Qn={Sequence:y,Subsequence:g,RosterForLoop:t=>{const{value:e,lines:n,errors:r,handleChanges:i,declarations:a,header:c,iterations:l,id:u,getComponents:p,label:h,...f}=t,d=n?.min??1,y=n?.max??12,[g,k]=(0,s.useState)(Math.max(d,l)),T=(0,s.useCallback)((()=>{g<y&&k(g+1)}),[y,g]),w=(0,s.useCallback)((()=>{if(g<=d)return;const t=g-1;k(t);const n=Object.entries(e).map((([e,n])=>({name:e,value:n?.filter(((e,n)=>n<t))})));i(n)}),[g,d,e,i]);if(0===g)return null;let C=0;return(0,o.jsx)(ft,{...t,errors:_(r,t.id),addRow:g===y?void 0:T,removeRow:g===d?void 0:w,canControlRows:!(!d||!y||d===y),children:(0,o.jsxs)(v,{id:u,children:[c&&(0,o.jsx)(A,{header:c}),(0,o.jsx)(x,{children:R(g,(e=>{const n=p(e),i=_(t.errors,`${u}-${e}`),a=!!i?.length;return C=n.length,(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(b,{row:e,className:a?"lunatic-row-has-error":void 0,children:(0,o.jsx)(at,{blocklist:ht,components:n,memo:!0,componentProps:t=>({...f,...t,id:`${t.id}-${e}`,errors:r}),wrapper:t=>(0,o.jsx)(E,{...t})})},e),a&&(0,o.jsx)(b,{className:"lunatic-errors",children:(0,o.jsx)(E,{colSpan:C,children:(0,o.jsx)(m,{errors:i})})})]},e)}))})]})})},Loop:function({lines:t,iterations:e,value:n,handleChanges:r,getComponents:i,errors:a,...c}){const l=t?.min??0,u=t?.max??1/0,[p,h]=(0,s.useState)((()=>Math.max(e,l))),f=(0,s.useCallback)((()=>{p<u&&h(p+1)}),[u,p]),d=(0,s.useCallback)((()=>{if(p>1){const t=p-1;h(t);const e=Object.entries(n).map((([e,n])=>({name:e,value:n?.filter(((e,n)=>n<t))})));r(e)}}),[p,r,n]);return p<=0?null:(0,o.jsx)(ft,{...c,errors:_(a,c.id),addRow:p===u?void 0:f,removeRow:1===p?void 0:d,canControlRows:l!==u&&Number.isFinite(u),children:R(p,(t=>(0,o.jsx)(at,{blocklist:ht,components:i(t),componentProps:e=>({...c,...e,id:`${e.id}-${t}`,errors:a})},t)))})},Table:function(t){const{id:e,body:n,header:r,errors:i,declarations:s,label:a}=t;return(0,o.jsxs)(v,{id:e,errors:_(i,e),declarations:s,label:a,children:[(0,o.jsx)(A,{header:r}),(0,o.jsx)(x,{children:n.map(((t,e)=>(0,o.jsx)(b,{row:e,children:(0,o.jsx)(at,{components:t,wrapper:({colspan:t,rowspan:n,...r})=>(0,o.jsx)(E,{row:e,colSpan:t,rowSpan:n,...r})})},e)))})]})},InputNumber:function({handleChanges:t,response:e,errors:n,decimals:r,...i}){return(0,o.jsx)(he,{...i,decimals:r??0,onChange:n=>t([{name:e.name,value:n}]),errors:_(n,i.id)})},Datepicker:function({dateFormat:t="YYYY-MM-DD",response:e,handleChanges:n,errors:r,...i}){return(0,o.jsx)(yt,{...i,dateFormat:t??"YYYY-MM-DD",onChange:t=>n([{name:e.name,value:t}]),errors:_(r,i.id)})},CheckboxGroup:function({id:t,shortcut:e,readOnly:n,options:r,disabled:i,errors:s,label:a,description:c,declarations:l,orientation:u}){return(0,o.jsx)(Et,{id:t,description:c,options:r,label:a,errors:_(s,t),shortcut:e,disabled:i,readOnly:n,declarations:l,orientation:u})},CheckboxOne:function({options:t,value:e,id:n,label:r,description:i,errors:s,disabled:a,readOnly:c,shortcut:l,declarations:u,orientation:p}){return(0,o.jsx)(bt,{id:n,className:"lunatic-checkbox-one",options:t,value:e,disabled:a,readOnly:c,errors:_(s,n),label:r,description:i,checkboxStyle:!0,shortcut:l,declarations:u,orientation:p??"vertical",clearable:!0})},CheckboxBoolean:function({handleChanges:t,response:e,errors:n,value:r,...i}){const s=!!r;return(0,o.jsx)(Tt,{...i,checked:s,onChange:()=>t([{name:e.name,value:!s}]),errors:_(n,i.id)})},Radio:At,Text:function({label:t}){return t},Input:function({handleChanges:t,response:e,errors:n,...r}){return(0,o.jsx)(xt,{...r,onChange:n=>t([{name:e.name,value:n}]),errors:_(n,r.id)})},Duration:function({handleChanges:t,response:e,errors:n,...r}){return(0,o.jsx)(me,{...r,onChange:n=>t([{name:e.name,value:n}]),errors:_(n,r.id)})},Textarea:function({handleChanges:t,response:e,errors:n,...r}){return(0,o.jsx)(Ct,{...r,onChange:n=>t([{name:e.name,value:n}]),errors:_(n,r.id)})},Switch:Ot,Question:t=>{const{errors:e,disabled:n,readOnly:r,components:i}=t;return(0,o.jsx)(It,{...t,children:(0,o.jsx)(at,{components:i,componentProps:()=>({errors:e,disabled:n,readOnly:r})})})},FilterDescription:({id:t,label:e})=>(0,o.jsx)("div",{id:`filter-description-${t}`,"aria-label":"filter-description",className:"filter-description-lunatic",children:e}),Dropdown:function({handleChanges:t,response:e,errors:n,...r}){return(0,o.jsx)(We,{...r,onChange:n=>t([{name:e.name,value:n}]),errors:_(n,r.id)})},PairwiseLinks:({declarations:t,xAxisIterations:e,yAxisIterations:n,id:r,getComponents:i})=>{if(e*n<=1)return(0,o.jsx)("div",{children:"Nothing to display!"});const a=Xe(e,n);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{type:"AFTER_QUESTION_TEXT",declarations:t,id:r}),a.filter((([t,e])=>e<t)).map((([t,e])=>(0,o.jsx)(at,{components:i(t,e),componentProps:n=>({...n,id:`${n.id}-${t+1}-${e+1} `})},`${t}-${e}`))),a.filter((([t,e])=>t>e)).map((([t,e])=>{const n=i(e,t),r=n[0];return"Dropdown"!==r.componentType?(0,o.jsx)("div",{children:"First child component of a pairwise link must be a dropdown"}):(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)($e,{...r}),(0,o.jsx)(at,{components:n.slice(1),componentProps:n=>({...n,id:`${n.id}-${t+1}-${e+1} `})})]},`${t}-${e}`)}))]})},Roundabout:function(t){const e=t.items.map(((e,n)=>({...e,errors:_(t.errors,`${t.id}-${n}`)})));return(0,o.jsx)(qe,{...t,errors:_(t.errors,t.id),items:e,goToIteration:e=>{1!==t.items[e].progress&&0!==t.items[e].progress&&t.handleChanges([{name:t.progressVariable,value:0,iteration:[e]}]),t.goToPage({page:t.page,subPage:0,iteration:e,nbIterations:t.iterations})}})},Suggester:function({storeName:t,id:e,className:n,optionRenderer:r,labelRenderer:i,handleChanges:a,disabled:c,value:l,label:u,description:p,errors:h,readOnly:f,response:d,optionResponses:y=[],executeExpression:g,iteration:m,arbitrary:k,arbitraryValue:v}){const[x,E]=(0,s.useState)((()=>{if(v)return[{id:"OTHER",label:v,value:"OTHER"}];if(!l)return[];const t=y?.find((t=>"label"===t.attribute));if(!t)return[{id:l,label:l,value:l}];const e=g({value:t.name,type:"VTL"},{iteration:m});return"string"!=typeof e?[{id:l,label:l,value:l}]:[{id:l,label:e,value:l}]})),{state:T,options:w,search:b,setSearch:A,onFocus:R,onBlur:C}=Yn({storeName:t,allowArbitrary:!!k,selectedOptions:x}),S=t=>{if(E(t?.id?[t]:[]),t?.id&&t.id!==qn){const e=[{name:d.name,value:t.id}];k&&e.push({name:k.response.name,value:null});for(const n of y)n.attribute in t&&e.push({name:n.name,value:t[n.attribute]});return void a(e)}const e=[{name:d.name,value:null}];k&&k.response&&e.push({name:k.response.name,value:t?.id===qn?b:null});for(const n of y)e.push({name:n.name,value:null});a(e),C()},N=_(h,e)??[];return"error"===T&&N.push({id:"suggester",errorMessage:Y.SUGGESTER_ERROR,criticality:"ERROR",typeOfControl:"FORMAT"}),(0,o.jsx)(Je,{state:T,id:e,className:n,optionRenderer:r,labelRenderer:i,options:w,onSelect:S,onFocus:R,search:b,onSearch:t=>{""===t&&x.length>0&&S(null),A(t)},onClear:()=>{S(null),A("")},disabled:c,readOnly:f,value:x,label:u,onBlur:C,description:p,errors:N})},Summary:function(t){const{executeExpression:e,label:n,sections:r}=t,i=r.reduce(((t,n)=>{const{iterations:r,title:i,responses:o,id:s}=n;if(r){const n=e(r);if(o){const r=Array(n).fill(null).map((function(t,n){return{values:Jn(o,e,n),title:Xn(i,e,n),id:s}}));return[...t,...r]}}if(o){const n={title:Xn(i,e),values:Jn(o,e,void 0),id:s};return[...t,n]}return t}),[]);return(0,o.jsxs)("div",{className:"lunatic-summary-container",children:[n&&(0,o.jsx)(Kn,{label:n}),(0,o.jsx)($n,{sections:i})]})},Accordion:Rt};var Zn,tr=n(961);function er({criticality:t,errorMessage:e}){return(0,o.jsx)("li",{className:p(t),children:e})}function nr({errors:t}){const e=t.map((function(t,e){return(0,s.createElement)(er,{...t,key:e})}),[]);return(0,o.jsx)("ul",{className:p("errors"),children:e})}function rr(t){if("object"!=typeof t.errors)return null;const e=Object.values(t.errors).flat();return tr.createPortal((0,o.jsx)("div",{className:"lunatic-modal-controls",children:(0,o.jsxs)("div",{className:"modal-content",children:[(0,o.jsx)("div",{className:"body",children:(0,o.jsx)(nr,{errors:e})}),(0,o.jsx)(ir,{...t})]})}),document.body)}function ir({onClose:t,goNext:e,isCritical:n}){return n?(0,o.jsx)("div",{className:"modal-buttons",children:(0,o.jsx)(X,{className:"modal-button",onClick:t,children:Y.MODAL_CORRECT})}):(0,o.jsxs)("div",{className:"modal-buttons",children:[(0,o.jsx)(X,{className:"modal-button",onClick:t,children:Y.MODAL_CORRECT}),(0,o.jsx)(X,{className:"modal-button",onClick:e,children:Y.MODAL_IGNORE})]})}!function(t){t.GO_PREVIOUS_PAGE="use-lunatic/go-previous",t.GO_NEXT_PAGE="use-lunatic/go-next",t.GO_TO_PAGE="use-lunatic/go-to-page",t.HANDLE_CHANGES="use-lunatic/handle-changes"}(Zn||(Zn={}));const or=t=>e=>({type:t,payload:e}),sr=()=>({type:Zn.GO_PREVIOUS_PAGE,payload:{}}),ar=or(Zn.GO_NEXT_PAGE),cr=or(Zn.GO_TO_PAGE),lr=t=>({type:Zn.HANDLE_CHANGES,payload:{responses:t}});function ur(t){const{page:e,subPage:n,iteration:r}=t;return void 0!==n&&void 0!==r?`${e}.${n+1}#${r+1}`:`${e}`}function pr(t=1){if("number"==typeof t)return{page:t};const e=[...t?.toString().matchAll(/(?<page>\d+)\.?(?<subPagePlusUn>\d+)?#?(?<iterationPlusUn>\d+)?/g)];if(0===e.length)return null;const[{groups:{page:n,subPagePlusUn:r,iterationPlusUn:i}}]=e;return r?{page:parseInt(n,10),subPage:parseInt(r,10)-1,iteration:parseInt(i,10)-1}:{page:parseInt(n,10)}}function hr(t){return function(t){const{lastReachedPage:e}=t;return fr(ur(t),e??"0")>0}(t)?ur(t):t.lastReachedPage}function fr(t,e){const n=t.split(/\D/).map((t=>parseInt(t,10))),r=e.split(/\D/).map((t=>parseInt(t,10)));for(const i of[0,2,1])if(n[i]!==r[i])return(n[i]??-1)-(r[i]??-1);return 0}const dr=function(t){const{page:e,maxPage:n}=t;return{isFirstPage:1===e,isLastPage:e===n}},yr="COLLECTED";function gr(t){return"object"==typeof t&&null!==t}const mr=[["label",null],["unit",null],["options.label",null],["declarations.label",null],["description",null],["iterations",kr],["responses.label",null],["responses.description",null],["responses.detail.label",null],["options.description",null],["options.detail.label",null],["controls.iterations",kr],["items.label",null],["items.body",null],["lines.min",kr],["lines.max",kr],["xAxisIterations",kr],["yAxisIterations",kr],["conditionFilter",vr],["header.label",null],["disabled",vr],["readOnly",vr],["arbitrary.label",xr],["arbitrary.inputLabel",xr]],_r=new Set(["unit"]);function kr(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t,10);if(Array.isArray(t)&&t.length>0)return kr(t[0]);throw new Error(`Cannot cast "${t}" to number`)}function vr(t){return"boolean"==typeof t?t:Array.isArray(t)&&t.length>0?vr(t[0]):!Array.isArray(t)&&Boolean(t)}function xr(t){return"string"==typeof t?t:"number"==typeof t?t.toString():Array.isArray(t)?t.map(xr).join(", "):t?t.toString():""}function Er(t,e){let n=t;for(const r of mr){const t=r[0].split("."),i=r[1],o=n=>{if("string"==typeof n&&_r.has(t[0]))return n;if(!Tr(n))throw new Error(`Expression expected at "${r[0]}", got ${n}`);const o=e.executeExpression(n,{iteration:e.pager.linksIterations??e.pager.iteration});try{return i?i(o):o}catch(s){throw new Error(`Cannot fill property ${t.join(".")}, ${s}`)}};n=wr(n,t,o)}return n}function Tr(t){return Boolean(t&&"object"==typeof t&&"type"in t&&"value"in t)}function wr(t,e,n){if(Array.isArray(t))return t.map((t=>wr(t,e,n)));if(0===e.length)return n(t);const[r,...i]=e;return gr(t)&&r in t?{...t,[r]:wr(t[r],i,n)}:t}function br(t){const{pager:e,pages:n,isInLoop:r}=t,{page:i,subPage:o}=e;if(i&&n&&i in n){const t=n[i];if(!r||!t.subPages)return t.components;{const{subPages:e}=t,r=e[o??"0"];if(r in n)return n[r].components}}return[]}const Ar=t=>["Loop","RosterForLoop","Roundabout"].includes(t.componentType);function Rr(t,e,n){return t.map((t=>"roundabout"===t.type?function(t,e){const{criticality:n,errorMessage:r,id:i,typeOfControl:o,iterations:s}=t;if("number"!=typeof s||s<=0)return;const a=Array.from({length:s},((t,e)=>e)).filter((n=>t.control&&!e(t.control,{iteration:n}))).map((t=>e(r,{iteration:t})));return a.length?{criticality:n,errorMessage:a,id:i,typeOfControl:o}:void 0}(t,e):function(t,e,n){const{iteration:r,linksIterations:i}=n,{criticality:o,errorMessage:s,id:a,typeOfControl:c,control:l}=t;if(!l)return;const u=e(l,{iteration:i??r});try{if(u)return;return{criticality:o,errorMessage:e(s,{iteration:r}),id:a,typeOfControl:c}}catch{return void console.warn(`Error on validating control ${l.value}`)}}(t,e,n))).filter((t=>void 0!==t))}function Cr(t,e){if("iterations"in t&&t.iterations&&"object"==typeof t.iterations&&"value"in t.iterations)return e(t.iterations);if("response"in t){const n=e({type:"VTL",value:t.response.name});if(Array.isArray(n))return n.length}return"components"in t?Math.max(...t.components.map((t=>Cr(t,e)))):0}function Sr(t,e,n){if("controls"in e&&!Array.isArray(e.controls))return n;const r=Cr(e,t.executeExpression);for(let i=0;i<r;i++){const o={...t.pager,iteration:i,nbIterations:r};if(!("controls"in e)||!e.controls)continue;if("conditionFilter"in e&&e.conditionFilter&&"object"==typeof e.conditionFilter&&"value"in e.conditionFilter&&!t.executeExpression({value:e.conditionFilter.value,type:"VTL"},o)||!1===e.conditionFilter)continue;const s=Rr(e.controls,t.executeExpression,o);s.length>0&&(n[`${e.id}-${i}`]=s)}return n}function Nr(t){if(!t)return!1;return void 0!==Object.values(t).flat().find((t=>t.criticality.startsWith("ERROR")||"FORMAT"===t.typeOfControl))}function Or(t){const e=function(t){return t.reduce((function(t,e){const{componentType:n}=e;return"Question"===n?[...t,...e.components]:[...t,e]}),[])}(br(t)).map((e=>Er(e,t))).filter((t=>!("conditionFilter"in t)||(t.conditionFilter??!0))),n=function(t,e){let n={};for(const r of e){if(!("controls"in r)||!("id"in r))continue;const{controls:e,id:i}=r;if(Array.isArray(e)){const r=Rr(e.filter((t=>"ROW"!==t.type)),t.executeExpression,t.pager);r.length>0&&(n[i]=r)}if(Ar(r)){const e=r.controls?.filter((t=>"ROW"===t.type));e?.length&&(n=Sr(t,{...r,controls:e},n));for(const i of r.components)n=Sr(t,i,n)}}return n}(t,e),r=Object.keys(n).length>0?n:void 0;return{currentErrors:r,isCritical:Nr(r)}}function Ir(t,e){const{iteration:n,page:r}=t,i=void 0!==n;return(0,s.useMemo)((()=>{if(!i)return[];const t=e[r]?.components.find((t=>"Loop"===t.componentType));return t?.loopDependencies??[]}),[r,e,i])}function Lr(t,e){return(0,s.useCallback)((()=>{if(!Array.isArray(t)||0===t.length)return!0;for(const n of t){if(["PairwiseLinks","Roundabout","Sequence","Subsequence"].includes(n.componentType??""))return!0;if("missingResponse"in n&&n.missingResponse&&n.missingResponse.value)return!0;if("Table"===n.componentType){const t=n.body.reduce(((t,e)=>[...t,...e.filter((t=>gr(t)&&"componentType"in t))]),[]);return!Dr(t,e)}if("value"in n&&!Pr(n.value))return!0;if("components"in n&&Array.isArray(n.components)&&!Dr(n.components,e))return!0}return!1}),[t,e])}function Pr(t){return Array.isArray(t)?void 0===t.find((t=>!Pr(t))):"object"==typeof t&&null!==t?Pr(Object.values(t)):""===(t??"")||!1===t}function Dr(t,e){for(const n of t){if("responses"in n&&Array.isArray(n.responses))for(const t of n.responses)if(!Pr(e({type:"VTL",value:t.response?.name})))return!1;if("response"in n&&n.response&&"object"==typeof n.response&&"name"in n.response&&"string"==typeof n.response.name&&!Pr(e({type:"VTL",value:n.response.name})))return!1}return!0}const zr=({overview:t,executeExpression:e,pager:n},r)=>(0,s.useMemo)((()=>Mr(t,e,n)),[...r,t]),Mr=(t,e,n)=>{let r=t.reduce(((t,r)=>Fr(t,r,e,n)),[]);r=r.sort(((t,e)=>fr(t.page,e.page)));const i=[];let o=null;for(const s of r)"Sequence"===s.type?(i.push(s),o=s):o?.children.push(s);return n&&Ur(i,ur(n)),i},Fr=(t,e,n,r,i)=>{if(e.iterations&&void 0===i){const i=n(e.iterations)??0;return Array.from({length:i}).reduce(((t,i,o)=>Fr(t,e,n,r,o)),t)}if(!(!e.conditionFilter||Boolean(n(e.conditionFilter,{iteration:i}))))return t;const o=`${e.pageTag}${void 0!==i?`#${i+1}`:""}`;return[...t,{id:e.id,type:e.type,label:n(e.label,{iteration:i}),description:e.description?n(e.description,{iteration:i}):void 0,children:[],reached:fr(r?ur(r):"-1",o)>=0,page:o,current:!1}]},Ur=(t,e)=>{const n=t.findLast((t=>fr(t.page,e)<=0));return n?(n.current=!0,n.children.length>0&&Ur(n.children,e),t):t};var jr=n(6096),Hr=n(3403);function Vr(t){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(t)}function Br(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Wr(t){Br(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Vr(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Gr(t){if(Br(1,arguments),!function(t){return Br(1,arguments),t instanceof Date||"object"===Vr(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Wr(t);return!isNaN(Number(e))}function qr(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Yr(t,e){return Br(2,arguments),function(t,e){Br(2,arguments);var n=Wr(t).getTime(),r=qr(e);return new Date(n+r)}(t,-qr(e))}function Kr(t){Br(1,arguments);var e=Wr(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function $r(t){Br(1,arguments);var e=Wr(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Kr(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Kr(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Xr(t){Br(1,arguments);var e=Wr(t),n=Kr(e).getTime()-function(t){Br(1,arguments);var e=$r(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),Kr(n)}(e).getTime();return Math.round(n/6048e5)+1}var Jr={};function Qr(){return Jr}function Zr(t,e){var n,r,i,o,s,a,c,l;Br(1,arguments);var u=Qr(),p=qr(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Wr(t),f=h.getUTCDay(),d=(f<p?7:0)+f-p;return h.setUTCDate(h.getUTCDate()-d),h.setUTCHours(0,0,0,0),h}function ti(t,e){var n,r,i,o,s,a,c,l;Br(1,arguments);var u=Wr(t),p=u.getUTCFullYear(),h=Qr(),f=qr(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(c=h.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=new Date(0);d.setUTCFullYear(p+1,0,f),d.setUTCHours(0,0,0,0);var y=Zr(d,e),g=new Date(0);g.setUTCFullYear(p,0,f),g.setUTCHours(0,0,0,0);var m=Zr(g,e);return u.getTime()>=y.getTime()?p+1:u.getTime()>=m.getTime()?p:p-1}function ei(t,e){Br(1,arguments);var n=Wr(t),r=Zr(n,e).getTime()-function(t,e){var n,r,i,o,s,a,c,l;Br(1,arguments);var u=Qr(),p=qr(null!==(n=null!==(r=null!==(i=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==n?n:1),h=ti(t,e),f=new Date(0);return f.setUTCFullYear(h,0,p),f.setUTCHours(0,0,0,0),Zr(f,e)}(n,e).getTime();return Math.round(r/6048e5)+1}function ni(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}const ri={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return ni("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):ni(n+1,2)},d:function(t,e){return ni(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return ni(t.getUTCHours()%12||12,e.length)},H:function(t,e){return ni(t.getUTCHours(),e.length)},m:function(t,e){return ni(t.getUTCMinutes(),e.length)},s:function(t,e){return ni(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return ni(Math.floor(r*Math.pow(10,n-3)),e.length)}};var ii="midnight",oi="noon",si="morning",ai="afternoon",ci="evening",li="night",ui={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return ri.y(t,e)},Y:function(t,e,n,r){var i=ti(t,r),o=i>0?i:1-i;return"YY"===e?ni(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):ni(o,e.length)},R:function(t,e){return ni($r(t),e.length)},u:function(t,e){return ni(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ni(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ni(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return ri.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return ni(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=ei(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):ni(i,e.length)},I:function(t,e,n){var r=Xr(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):ni(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):ri.d(t,e)},D:function(t,e,n){var r=function(t){Br(1,arguments);var e=Wr(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=n-e.getTime();return Math.floor(r/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):ni(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return ni(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return ni(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return ni(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?oi:0===i?ii:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?ci:i>=12?ai:i>=4?si:li,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ri.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ri.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):ni(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):ni(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ri.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ri.s(t,e)},S:function(t,e){return ri.S(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return hi(i);case"XXXX":case"XX":return fi(i);default:return fi(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return hi(i);case"xxxx":case"xx":return fi(i);default:return fi(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+pi(i,":");default:return"GMT"+fi(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+pi(i,":");default:return"GMT"+fi(i,":")}},t:function(t,e,n,r){var i=r._originalDate||t;return ni(Math.floor(i.getTime()/1e3),e.length)},T:function(t,e,n,r){return ni((r._originalDate||t).getTime(),e.length)}};function pi(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=e||"";return n+String(i)+s+ni(o,2)}function hi(t,e){return t%60==0?(t>0?"-":"+")+ni(Math.abs(t)/60,2):fi(t,e)}function fi(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+ni(Math.floor(i/60),2)+n+ni(i%60,2)}const di=ui;var yi=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},gi=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},mi={p:gi,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return yi(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",yi(i,e)).replace("{{time}}",gi(o,e))}};const _i=mi;var ki=["D","DD"],vi=["YY","YYYY"];function xi(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ei={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Ti=function(t,e,n){var r,i=Ei[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function wi(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const bi={date:wi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:wi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:wi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ai={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const Ri=function(t,e,n,r){return Ai[t]};function Ci(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=t.formattingValues[o]||t.formattingValues[i]}else{var s=t.defaultWidth,a=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[a]||t.values[s]}return r[t.argumentCallback?t.argumentCallback(e):e]}}var Si={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Ci({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ci({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ci({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Ci({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Ci({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};const Ni=Si;function Oi(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var s,a=o[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(c)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return}(c,(function(t){return t.test(a)})):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n;return}(c,(function(t){return t.test(a)}));return s=t.valueCallback?t.valueCallback(l):l,{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(a.length)}}}var Ii,Li={ordinalNumber:(Ii={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Ii.matchPattern);if(!n)return null;var r=n[0],i=t.match(Ii.parsePattern);if(!i)return null;var o=Ii.valueCallback?Ii.valueCallback(i[0]):i[0];return{value:o=e.valueCallback?e.valueCallback(o):o,rest:t.slice(r.length)}}),era:Oi({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Oi({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Oi({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Oi({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Oi({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Pi={code:"en-US",formatDistance:Ti,formatLong:bi,formatRelative:Ri,localize:Ni,match:Li,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Di=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zi=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Mi=/^'([^]*?)'?$/,Fi=/''/g,Ui=/[a-zA-Z]/;function ji(t,e,n){var r,i,o,s,a,c,l,u,p,h,f,d,y,g,m,_,k,v;Br(2,arguments);var x=String(e),E=Qr(),T=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:E.locale)&&void 0!==r?r:Pi,w=qr(null!==(o=null!==(s=null!==(a=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(l=n.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:E.firstWeekContainsDate)&&void 0!==s?s:null===(p=E.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=qr(null!==(f=null!==(d=null!==(y=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(m=n.locale)||void 0===m||null===(_=m.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==y?y:E.weekStartsOn)&&void 0!==d?d:null===(k=E.locale)||void 0===k||null===(v=k.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==f?f:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var A=Wr(t);if(!Gr(A))throw new RangeError("Invalid time value");var R=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(A),C=Yr(A,R),S={firstWeekContainsDate:w,weekStartsOn:b,locale:T,_originalDate:A};return x.match(zi).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,_i[e])(t,T.formatLong):t})).join("").match(Di).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(t){var e=t.match(Mi);if(!e)return t;return e[1].replace(Fi,"'")}(r);var o,s=di[i];if(s)return null!=n&&n.useAdditionalWeekYearTokens||(o=r,-1===vi.indexOf(o))||xi(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!function(t){return-1!==ki.indexOf(t)}(r)||xi(r,e,String(t)),s(C,r,T.localize,S);if(i.match(Ui))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}function Hi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hi(Object(n),!0).forEach((function(e){Yi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bi(t){return Bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(t)}function Wi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ro(r.key),r)}}function qi(t,e,n){return e&&Gi(t.prototype,e),n&&Gi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yi(t,e,n){return(e=ro(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ki(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xi(t,e)}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$i(t)}function Xi(t,e){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xi(t,e)}function Ji(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$i(t);if(e){var i=$i(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ji(t)}(this,n)}}function Zi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(t,e)||to(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(t,e){if(t){if("string"==typeof t)return eo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(t,e):void 0}}function eo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function no(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=to(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ro(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}function io(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function oo(t,e,n,r,i){return io.call(this),this.source=void 0!==t?t:oo.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==n?n:io.DEFAULT_CHANNEL,this.start=void 0!==r?r:-1,this.stop=void 0!==i?i:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1,this}io.INVALID_TYPE=0,io.EPSILON=-2,io.MIN_USER_TOKEN_TYPE=1,io.EOF=-1,io.DEFAULT_CHANNEL=0,io.HIDDEN_CHANNEL=1,Object.defineProperty(io.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t}}),io.prototype.getTokenSource=function(){return this.source[0]},io.prototype.getInputStream=function(){return this.source[1]},oo.prototype=Object.create(io.prototype),oo.prototype.constructor=oo,oo.EMPTY_SOURCE=[null,null],oo.prototype.clone=function(){var t=new oo(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t},Object.defineProperty(oo.prototype,"text",{get:function(){if(null!==this._text)return this._text;var t=this.getInputStream();if(null===t)return null;var e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"},set:function(t){this._text=t}}),oo.prototype.toString=function(){var t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"};var so=io,ao=so;function co(t,e){return this.start=t,this.stop=e,this}function lo(){this.intervals=null,this.readOnly=!1}co.prototype.contains=function(t){return t>=this.start&&t<this.stop},co.prototype.toString=function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()},Object.defineProperty(co.prototype,"length",{get:function(){return this.stop-this.start}}),lo.prototype.first=function(t){return null===this.intervals||0===this.intervals.length?ao.INVALID_TYPE:this.intervals[0].start},lo.prototype.addOne=function(t){this.addInterval(new co(t,t+1))},lo.prototype.addRange=function(t,e){this.addInterval(new co(t,e+1))},lo.prototype.addInterval=function(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t);else{for(var e=0;e<this.intervals.length;e++){var n=this.intervals[e];if(t.stop<n.start)return void this.intervals.splice(e,0,t);if(t.stop===n.start)return void(this.intervals[e].start=t.start);if(t.start<=n.stop)return this.intervals[e]=new co(Math.min(n.start,t.start),Math.max(n.stop,t.stop)),void this.reduce(e)}this.intervals.push(t)}},lo.prototype.addSet=function(t){if(null!==t.intervals)for(var e=0;e<t.intervals.length;e++){var n=t.intervals[e];this.addInterval(new co(n.start,n.stop))}return this},lo.prototype.reduce=function(t){if(t<this.intervalslength-1){var e=this.intervals[t],n=this.intervals[t+1];e.stop>=n.stop?(this.intervals.pop(t+1),this.reduce(t)):e.stop>=n.start&&(this.intervals[t]=new co(e.start,n.stop),this.intervals.pop(t+1))}},lo.prototype.complement=function(t,e){var n=new lo;n.addInterval(new co(t,e+1));for(var r=0;r<this.intervals.length;r++)n.removeRange(this.intervals[r]);return n},lo.prototype.contains=function(t){if(null===this.intervals)return!1;for(var e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1},Object.defineProperty(lo.prototype,"length",{get:function(){var t=0;return this.intervals.map((function(e){t+=e.length})),t}}),lo.prototype.removeRange=function(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals)for(var e=0,n=0;n<this.intervals.length;n++){var r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new co(r.start,t.start);var i=new co(t.stop,r.stop);return void this.intervals.splice(e,0,i)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new co(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new co(t.stop,r.stop)),e+=1}},lo.prototype.removeOne=function(t){if(null!==this.intervals)for(var e=0;e<this.intervals.length;e++){var n=this.intervals[e];if(t<n.start)return;if(t===n.start&&t===n.stop-1)return void this.intervals.splice(e,1);if(t===n.start)return void(this.intervals[e]=new co(n.start+1,n.stop));if(t===n.stop-1)return void(this.intervals[e]=new co(n.start,n.stop-1));if(t<n.stop-1){var r=new co(n.start,t);return n.start=t+1,void this.intervals.splice(e,0,r)}}},lo.prototype.toString=function(t,e,n){return t=t||null,e=e||null,n=n||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):n?this.toCharString():this.toIndexString()},lo.prototype.toCharString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===ao.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(n.start)+"'"):t.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]},lo.prototype.toIndexString=function(){for(var t=[],e=0;e<this.intervals.length;e++){var n=this.intervals[e];n.stop===n.start+1?n.start===ao.EOF?t.push("<EOF>"):t.push(n.start.toString()):t.push(n.start.toString()+".."+(n.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]},lo.prototype.toTokenString=function(t,e){for(var n=[],r=0;r<this.intervals.length;r++)for(var i=this.intervals[r],o=i.start;o<i.stop;o++)n.push(this.elementName(t,e,o));return n.length>1?"{"+n.join(", ")+"}":n[0]},lo.prototype.elementName=function(t,e,n){return n===ao.EOF?"<EOF>":n===ao.EPSILON?"<EPSILON>":t[n]||e[n]};var uo=co,po=lo;function ho(t){return"["+t.join(", ")+"]"}function fo(t,e){return t.equals(e)}function yo(t){return t.hashCode()}function go(t,e){return this.data={},this.hashFunction=t||yo,this.equalsFunction=e||fo,this}function mo(){return this.data=[],this}function _o(t,e){return this.data={},this.hashFunction=t||yo,this.equalsFunction=e||fo,this}function ko(){return this.data={},this}function vo(t){return this.defaultMapCtor=t||_o,this.cacheMap=new this.defaultMapCtor,this}function xo(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var t,e,n,r,i,o,s,a,c=this.toString();for(t=3&c.length,e=c.length-t,n=String.prototype.seed,i=3432918353,o=461845907,a=0;a<e;)s=255&c.charCodeAt(a)|(255&c.charCodeAt(++a))<<8|(255&c.charCodeAt(++a))<<16|(255&c.charCodeAt(++a))<<24,++a,n=27492+(65535&(r=5*(65535&(n=(n^=s=(65535&(s=(s=(65535&s)*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*o+(((s>>>16)*o&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(s=0,t){case 3:s^=(255&c.charCodeAt(a+2))<<16;case 2:s^=(255&c.charCodeAt(a+1))<<8;case 1:n^=s=(65535&(s=(s=(65535&(s^=255&c.charCodeAt(a)))*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*o+(((s>>>16)*o&65535)<<16)&4294967295}return n^=c.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0},Object.defineProperty(go.prototype,"length",{get:function(){var t=0;for(var e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}}),go.prototype.add=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data){for(var n=this.data[e],r=0;r<n.length;r++)if(this.equalsFunction(t,n[r]))return n[r];return n.push(t),t}return this.data[e]=[t],t},go.prototype.contains=function(t){return null!=this.get(t)},go.prototype.get=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++)if(this.equalsFunction(t,n[r]))return n[r];return null},go.prototype.values=function(){var t=[];for(var e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t},go.prototype.toString=function(){return ho(this.values())},mo.prototype.add=function(t){this.data[t]=!0},mo.prototype.or=function(t){var e=this;Object.keys(t.data).map((function(t){e.add(t)}))},mo.prototype.remove=function(t){delete this.data[t]},mo.prototype.contains=function(t){return!0===this.data[t]},mo.prototype.values=function(){return Object.keys(this.data)},mo.prototype.minValue=function(){return Math.min.apply(null,this.values())},mo.prototype.hashCode=function(){var t=new xo;return t.update(this.values()),t.finish()},mo.prototype.equals=function(t){return t instanceof mo&&this.hashCode()===t.hashCode()},Object.defineProperty(mo.prototype,"length",{get:function(){return this.values().length}}),mo.prototype.toString=function(){return"{"+this.values().join(", ")+"}"},Object.defineProperty(_o.prototype,"length",{get:function(){var t=0;for(var e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}}),_o.prototype.put=function(t,e){var n="hash_"+this.hashFunction(t);if(n in this.data){for(var r=this.data[n],i=0;i<r.length;i++){var o=r[i];if(this.equalsFunction(t,o.key)){var s=o.value;return o.value=e,s}}return r.push({key:t,value:e}),e}return this.data[n]=[{key:t,value:e}],e},_o.prototype.containsKey=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(t,i.key))return!0}return!1},_o.prototype.get=function(t){var e="hash_"+this.hashFunction(t);if(e in this.data)for(var n=this.data[e],r=0;r<n.length;r++){var i=n[r];if(this.equalsFunction(t,i.key))return i.value}return null},_o.prototype.entries=function(){var t=[];for(var e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t},_o.prototype.getKeys=function(){return this.entries().map((function(t){return t.key}))},_o.prototype.getValues=function(){return this.entries().map((function(t){return t.value}))},_o.prototype.toString=function(){return"["+this.entries().map((function(t){return"{"+t.key+":"+t.value+"}"})).join(", ")+"]"},ko.prototype.get=function(t){return(t="k-"+t)in this.data?this.data[t]:null},ko.prototype.put=function(t,e){t="k-"+t,this.data[t]=e},ko.prototype.values=function(){var t=this.data;return Object.keys(this.data).map((function(e){return t[e]}))},xo.prototype.update=function(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{var n=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":n=e;break;case"string":n=e.hashCode();break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}n=(n*=3432918353)<<15|n>>>17,n*=461845907,this.count=this.count+1;var r=this.hash^n;r=5*(r=r<<13|r>>>19)+3864292196,this.hash=r}}},xo.prototype.finish=function(){var t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,(t*=3266489909)^t>>>16},vo.prototype.get=function(t,e){var n=this.cacheMap.get(t)||null;return null===n?null:n.get(e)||null},vo.prototype.set=function(t,e,n){var r=this.cacheMap.get(t)||null;null===r&&(r=new this.defaultMapCtor,this.cacheMap.put(t,r)),r.put(e,n)};var Eo=mo,To=go,wo=xo;function bo(){return this}function Ao(t,e,n){return bo.call(this),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==n&&n,this}function Ro(t){bo.call(this),this.precedence=void 0===t?0:t}function Co(t,e){bo.call(this);var n=new To;t instanceof Co?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof Co?e.opnds.map((function(t){n.add(t)})):n.add(e);var r=Ro.filterPrecedencePredicates(n);if(r.length>0){var i=null;r.map((function(t){(null===i||t.precedence<i.precedence)&&(i=t)})),n.add(i)}return this.opnds=n.values(),this}function So(t,e){bo.call(this);var n=new To;t instanceof So?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof So?e.opnds.map((function(t){n.add(t)})):n.add(e);var r=Ro.filterPrecedencePredicates(n);if(r.length>0){var i=r.sort((function(t,e){return t.compareTo(e)})),o=i[i.length-1];n.add(o)}return this.opnds=n.values(),this}bo.prototype.hashCode=function(){var t=new wo;return this.updateHashCode(t),t.finish()},bo.prototype.evaluate=function(t,e){},bo.prototype.evalPrecedence=function(t,e){return this},bo.andContext=function(t,e){if(null===t||t===bo.NONE)return e;if(null===e||e===bo.NONE)return t;var n=new Co(t,e);return 1===n.opnds.length?n.opnds[0]:n},bo.orContext=function(t,e){if(null===t)return e;if(null===e)return t;if(t===bo.NONE||e===bo.NONE)return bo.NONE;var n=new So(t,e);return 1===n.opnds.length?n.opnds[0]:n},Ao.prototype=Object.create(bo.prototype),Ao.prototype.constructor=Ao,bo.NONE=new Ao,Ao.prototype.evaluate=function(t,e){var n=this.isCtxDependent?e:null;return t.sempred(n,this.ruleIndex,this.predIndex)},Ao.prototype.updateHashCode=function(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},Ao.prototype.equals=function(t){return this===t||t instanceof Ao&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent},Ao.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},Ro.prototype=Object.create(bo.prototype),Ro.prototype.constructor=Ro,Ro.prototype.evaluate=function(t,e){return t.precpred(e,this.precedence)},Ro.prototype.evalPrecedence=function(t,e){return t.precpred(e,this.precedence)?bo.NONE:null},Ro.prototype.compareTo=function(t){return this.precedence-t.precedence},Ro.prototype.updateHashCode=function(t){t.update(31)},Ro.prototype.equals=function(t){return this===t||t instanceof Ro&&this.precedence===t.precedence},Ro.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},Ro.filterPrecedencePredicates=function(t){var e=[];return t.values().map((function(t){t instanceof Ro&&e.push(t)})),e},Co.prototype=Object.create(bo.prototype),Co.prototype.constructor=Co,Co.prototype.equals=function(t){return this===t||t instanceof Co&&this.opnds===t.opnds},Co.prototype.updateHashCode=function(t){t.update(this.opnds,"AND")},Co.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(t,e))return!1;return!0},Co.prototype.evalPrecedence=function(t,e){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var o=this.opnds[i],s=o.evalPrecedence(t,e);if(n|=s!==o,null===s)return null;s!==bo.NONE&&r.push(s)}if(!n)return this;if(0===r.length)return bo.NONE;var a=null;return r.map((function(t){a=null===a?t:bo.andContext(a,t)})),a},Co.prototype.toString=function(){var t="";return this.opnds.map((function(e){t+="&& "+e.toString()})),t.length>3?t.slice(3):t},So.prototype=Object.create(bo.prototype),So.prototype.constructor=So,So.prototype.constructor=function(t){return this===t||t instanceof So&&this.opnds===t.opnds},So.prototype.updateHashCode=function(t){t.update(this.opnds,"OR")},So.prototype.evaluate=function(t,e){for(var n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(t,e))return!0;return!1},So.prototype.evalPrecedence=function(t,e){for(var n=!1,r=[],i=0;i<this.opnds.length;i++){var o=this.opnds[i],s=o.evalPrecedence(t,e);if(n|=s!==o,s===bo.NONE)return bo.NONE;null!==s&&r.push(s)}return n?(r.length,null):this},So.prototype.toString=function(){var t="";return this.opnds.map((function(e){t+="|| "+e.toString()})),t.length>3?t.slice(3):t};var No=so,Oo=po,Io=Ao,Lo=Ro;function Po(t){if(null==t)throw"target cannot be null.";return this.target=t,this.isEpsilon=!1,this.label=null,this}function Do(t,e){return Po.call(this,t),this.label_=e,this.label=this.makeLabel(),this.serializationType=Po.ATOM,this}function zo(t,e,n,r){return Po.call(this,t),this.ruleIndex=e,this.precedence=n,this.followState=r,this.serializationType=Po.RULE,this.isEpsilon=!0,this}function Mo(t,e){return Po.call(this,t),this.serializationType=Po.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e,this}function Fo(t,e,n){return Po.call(this,t),this.serializationType=Po.RANGE,this.start=e,this.stop=n,this.label=this.makeLabel(),this}function Uo(t){return Po.call(this,t),this}function jo(t,e,n,r){return Uo.call(this,t),this.serializationType=Po.PREDICATE,this.ruleIndex=e,this.predIndex=n,this.isCtxDependent=r,this.isEpsilon=!0,this}function Ho(t,e,n,r){return Po.call(this,t),this.serializationType=Po.ACTION,this.ruleIndex=e,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==r&&r,this.isEpsilon=!0,this}function Vo(t,e){return Po.call(this,t),this.serializationType=Po.SET,null!=e?this.label=e:(this.label=new Oo,this.label.addOne(No.INVALID_TYPE)),this}function Bo(t,e){return Vo.call(this,t,e),this.serializationType=Po.NOT_SET,this}function Wo(t){return Po.call(this,t),this.serializationType=Po.WILDCARD,this}function Go(t,e){return Uo.call(this,t),this.serializationType=Po.PRECEDENCE,this.precedence=e,this.isEpsilon=!0,this}Po.EPSILON=1,Po.RANGE=2,Po.RULE=3,Po.PREDICATE=4,Po.ATOM=5,Po.ACTION=6,Po.SET=7,Po.NOT_SET=8,Po.WILDCARD=9,Po.PRECEDENCE=10,Po.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],Po.serializationTypes={EpsilonTransition:Po.EPSILON,RangeTransition:Po.RANGE,RuleTransition:Po.RULE,PredicateTransition:Po.PREDICATE,AtomTransition:Po.ATOM,ActionTransition:Po.ACTION,SetTransition:Po.SET,NotSetTransition:Po.NOT_SET,WildcardTransition:Po.WILDCARD,PrecedencePredicateTransition:Po.PRECEDENCE},Do.prototype=Object.create(Po.prototype),Do.prototype.constructor=Do,Do.prototype.makeLabel=function(){var t=new Oo;return t.addOne(this.label_),t},Do.prototype.matches=function(t,e,n){return this.label_===t},Do.prototype.toString=function(){return this.label_},zo.prototype=Object.create(Po.prototype),zo.prototype.constructor=zo,zo.prototype.matches=function(t,e,n){return!1},Mo.prototype=Object.create(Po.prototype),Mo.prototype.constructor=Mo,Mo.prototype.matches=function(t,e,n){return!1},Mo.prototype.toString=function(){return"epsilon"},Fo.prototype=Object.create(Po.prototype),Fo.prototype.constructor=Fo,Fo.prototype.makeLabel=function(){var t=new Oo;return t.addRange(this.start,this.stop),t},Fo.prototype.matches=function(t,e,n){return t>=this.start&&t<=this.stop},Fo.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},Uo.prototype=Object.create(Po.prototype),Uo.prototype.constructor=Uo,jo.prototype=Object.create(Uo.prototype),jo.prototype.constructor=jo,jo.prototype.matches=function(t,e,n){return!1},jo.prototype.getPredicate=function(){return new Io(this.ruleIndex,this.predIndex,this.isCtxDependent)},jo.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},Ho.prototype=Object.create(Po.prototype),Ho.prototype.constructor=Ho,Ho.prototype.matches=function(t,e,n){return!1},Ho.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},Vo.prototype=Object.create(Po.prototype),Vo.prototype.constructor=Vo,Vo.prototype.matches=function(t,e,n){return this.label.contains(t)},Vo.prototype.toString=function(){return this.label.toString()},Bo.prototype=Object.create(Vo.prototype),Bo.prototype.constructor=Bo,Bo.prototype.matches=function(t,e,n){return t>=e&&t<=n&&!Vo.prototype.matches.call(this,t,e,n)},Bo.prototype.toString=function(){return"~"+Vo.prototype.toString.call(this)},Wo.prototype=Object.create(Po.prototype),Wo.prototype.constructor=Wo,Wo.prototype.matches=function(t,e,n){return t>=e&&t<=n},Wo.prototype.toString=function(){return"."},Go.prototype=Object.create(Uo.prototype),Go.prototype.constructor=Go,Go.prototype.matches=function(t,e,n){return!1},Go.prototype.getPredicate=function(){return new Lo(this.precedence)},Go.prototype.toString=function(){return this.precedence+" >= _p"};var qo={Transition:Po,AtomTransition:Do,SetTransition:Vo,NotSetTransition:Bo,RuleTransition:zo,ActionTransition:Ho,EpsilonTransition:Mo,RangeTransition:Fo,WildcardTransition:Wo,PredicateTransition:jo,PrecedencePredicateTransition:Go,AbstractPredicateTransition:Uo}.PredicateTransition;function Yo(t){return Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,Yo):(new Error).stack,this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function Ko(t,e,n,r){return Yo.call(this,{message:"",recognizer:t,input:e,ctx:null}),this.startIndex=n,this.deadEndConfigs=r,this}function $o(t,e,n,r,i,o){o=o||t._ctx,r=r||t.getCurrentToken(),n=n||t.getCurrentToken(),e=e||t.getInputStream(),Yo.call(this,{message:"",recognizer:t,input:e,ctx:o}),this.deadEndConfigs=i,this.startToken=n,this.offendingToken=r}function Xo(t){Yo.call(this,{message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}function Jo(t,e,n){Yo.call(this,{message:this.formatMessage(e,n||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});var r=t._interp.atn.states[t.state].transitions[0];return r instanceof qo?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken(),this}function Qo(){return Error.call(this),Error.captureStackTrace(this,Qo),this}Yo.prototype=Object.create(Error.prototype),Yo.prototype.constructor=Yo,Yo.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},Yo.prototype.toString=function(){return this.message},Ko.prototype=Object.create(Yo.prototype),Ko.prototype.constructor=Ko,Ko.prototype.toString=function(){var t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText((this.startIndex,this.startIndex))),"LexerNoViableAltException"+t},$o.prototype=Object.create(Yo.prototype),$o.prototype.constructor=$o,Xo.prototype=Object.create(Yo.prototype),Xo.prototype.constructor=Xo,Jo.prototype=Object.create(Yo.prototype),Jo.prototype.constructor=Jo,Jo.prototype.formatMessage=function(t,e){return null!==e?e:"failed predicate: {"+t+"}?"},Qo.prototype=Object.create(Error.prototype),Qo.prototype.constructor=Qo;var Zo=Yo,ts=$o,es=Xo,ns=Jo,rs=Qo;function is(){return this}function os(){return is.call(this),this}function ss(t){if(is.call(this),null===t)throw"delegates";return this.delegates=t,this}is.prototype.syntaxError=function(t,e,n,r,i,o){},is.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){},is.prototype.reportAttemptingFullContext=function(t,e,n,r,i,o){},is.prototype.reportContextSensitivity=function(t,e,n,r,i,o){},os.prototype=Object.create(is.prototype),os.prototype.constructor=os,os.INSTANCE=new os,os.prototype.syntaxError=function(t,e,n,r,i,o){console.error("line "+n+":"+r+" "+i)},ss.prototype=Object.create(is.prototype),ss.prototype.constructor=ss,ss.prototype.syntaxError=function(t,e,n,r,i,o){this.delegates.map((function(s){s.syntaxError(t,e,n,r,i,o)}))},ss.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){this.delegates.map((function(a){a.reportAmbiguity(t,e,n,r,i,o,s)}))},ss.prototype.reportAttemptingFullContext=function(t,e,n,r,i,o){this.delegates.map((function(s){s.reportAttemptingFullContext(t,e,n,r,i,o)}))},ss.prototype.reportContextSensitivity=function(t,e,n,r,i,o){this.delegates.map((function(s){s.reportContextSensitivity(t,e,n,r,i,o)}))};var as=is,cs=Eo,ls=as,us=uo;function ps(t){return ls.call(this),t=t||!0,this.exactOnly=t,this}function hs(){return this.atn=null,this.stateNumber=hs.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function fs(){return hs.call(this),this.stateType=hs.BASIC,this}function ds(){return hs.call(this),this.decision=-1,this.nonGreedy=!1,this}function ys(){return ds.call(this),this.endState=null,this}function gs(){return ys.call(this),this.stateType=hs.BLOCK_START,this}function ms(){return hs.call(this),this.stateType=hs.BLOCK_END,this.startState=null,this}function _s(){return hs.call(this),this.stateType=hs.RULE_STOP,this}function ks(){return hs.call(this),this.stateType=hs.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function vs(){return ds.call(this),this.stateType=hs.PLUS_LOOP_BACK,this}function xs(){return ys.call(this),this.stateType=hs.PLUS_BLOCK_START,this.loopBackState=null,this}function Es(){return ys.call(this),this.stateType=hs.STAR_BLOCK_START,this}function Ts(){return hs.call(this),this.stateType=hs.STAR_LOOP_BACK,this}function ws(){return ds.call(this),this.stateType=hs.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function bs(){return hs.call(this),this.stateType=hs.LOOP_END,this.loopBackState=null,this}function As(){return ds.call(this),this.stateType=hs.TOKEN_START,this}ps.prototype=Object.create(ls.prototype),ps.prototype.constructor=ps,ps.prototype.reportAmbiguity=function(t,e,n,r,i,o,s){if(!this.exactOnly||i){var a="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(o,s)+", input='"+t.getTokenStream().getText(new us(n,r))+"'";t.notifyErrorListeners(a)}},ps.prototype.reportAttemptingFullContext=function(t,e,n,r,i,o){var s="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new us(n,r))+"'";t.notifyErrorListeners(s)},ps.prototype.reportContextSensitivity=function(t,e,n,r,i,o){var s="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new us(n,r))+"'";t.notifyErrorListeners(s)},ps.prototype.getDecisionDescription=function(t,e){var n=e.decision,r=e.atnStartState.ruleIndex,i=t.ruleNames;if(r<0||r>=i.length)return""+n;var o=i[r]||null;return null===o||0===o.length?""+n:n+" ("+o+")"},ps.prototype.getConflictingAlts=function(t,e){if(null!==t)return t;for(var n=new cs,r=0;r<e.items.length;r++)n.add(e.items[r].alt);return"{"+n.values().join(", ")+"}"},hs.INVALID_TYPE=0,hs.BASIC=1,hs.RULE_START=2,hs.BLOCK_START=3,hs.PLUS_BLOCK_START=4,hs.STAR_BLOCK_START=5,hs.TOKEN_START=6,hs.RULE_STOP=7,hs.BLOCK_END=8,hs.STAR_LOOP_BACK=9,hs.STAR_LOOP_ENTRY=10,hs.PLUS_LOOP_BACK=11,hs.LOOP_END=12,hs.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],hs.INVALID_STATE_NUMBER=-1,hs.prototype.toString=function(){return this.stateNumber},hs.prototype.equals=function(t){return t instanceof hs&&this.stateNumber===t.stateNumber},hs.prototype.isNonGreedyExitState=function(){return!1},hs.prototype.addTransition=function(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)},fs.prototype=Object.create(hs.prototype),fs.prototype.constructor=fs,ds.prototype=Object.create(hs.prototype),ds.prototype.constructor=ds,ys.prototype=Object.create(ds.prototype),ys.prototype.constructor=ys,gs.prototype=Object.create(ys.prototype),gs.prototype.constructor=gs,ms.prototype=Object.create(hs.prototype),ms.prototype.constructor=ms,_s.prototype=Object.create(hs.prototype),_s.prototype.constructor=_s,ks.prototype=Object.create(hs.prototype),ks.prototype.constructor=ks,vs.prototype=Object.create(ds.prototype),vs.prototype.constructor=vs,xs.prototype=Object.create(ys.prototype),xs.prototype.constructor=xs,Es.prototype=Object.create(ys.prototype),Es.prototype.constructor=Es,Ts.prototype=Object.create(hs.prototype),Ts.prototype.constructor=Ts,ws.prototype=Object.create(ds.prototype),ws.prototype.constructor=ws,bs.prototype=Object.create(hs.prototype),bs.prototype.constructor=bs,As.prototype=Object.create(ds.prototype),As.prototype.constructor=As;var Rs=so,Cs=ts,Ss=es,Ns=ns,Os=rs,Is={ATNState:hs,BasicState:fs,DecisionState:ds,BlockStartState:ys,BlockEndState:ms,LoopEndState:bs,RuleStartState:ks,RuleStopState:_s,TokensStartState:As,PlusLoopbackState:vs,StarLoopbackState:Ts,StarLoopEntryState:ws,PlusBlockStartState:xs,StarBlockStartState:Es,BasicBlockStartState:gs}.ATNState,Ls=uo,Ps=po;function Ds(){}function zs(){return Ds.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function Ms(){return zs.call(this),this}Ds.prototype.reset=function(t){},Ds.prototype.recoverInline=function(t){},Ds.prototype.recover=function(t,e){},Ds.prototype.sync=function(t){},Ds.prototype.inErrorRecoveryMode=function(t){},Ds.prototype.reportError=function(t){},zs.prototype=Object.create(Ds.prototype),zs.prototype.constructor=zs,zs.prototype.reset=function(t){this.endErrorCondition(t)},zs.prototype.beginErrorCondition=function(t){this.errorRecoveryMode=!0},zs.prototype.inErrorRecoveryMode=function(t){return this.errorRecoveryMode},zs.prototype.endErrorCondition=function(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},zs.prototype.reportMatch=function(t){this.endErrorCondition(t)},zs.prototype.reportError=function(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof Cs?this.reportNoViableAlternative(t,e):e instanceof Ss?this.reportInputMismatch(t,e):e instanceof Ns?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))},zs.prototype.recover=function(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);var n=this.getErrorRecoverySet(t);this.consumeUntil(t,n)},zs.prototype.sync=function(t){if(!this.inErrorRecoveryMode(t)){var e=t._interp.atn.states[t.state],n=t.getTokenStream().LA(1),r=t.atn.nextTokens(e);if(!r.contains(Rs.EPSILON)&&!r.contains(n))switch(e.stateType){case Is.BLOCK_START:case Is.STAR_BLOCK_START:case Is.PLUS_BLOCK_START:case Is.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new Ss(t);case Is.PLUS_LOOP_BACK:case Is.STAR_LOOP_BACK:this.reportUnwantedToken(t);var i=new Ps;i.addSet(t.getExpectedTokens());var o=i.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,o)}}},zs.prototype.reportNoViableAlternative=function(t,e){var n,r=t.getTokenStream();n=null!==r?e.startToken.type===Rs.EOF?"<EOF>":r.getText(new Ls(e.startToken.tokenIndex,e.offendingToken.tokenIndex)):"<unknown input>";var i="no viable alternative at input "+this.escapeWSAndQuote(n);t.notifyErrorListeners(i,e.offendingToken,e)},zs.prototype.reportInputMismatch=function(t,e){var n="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e.offendingToken,e)},zs.prototype.reportFailedPredicate=function(t,e){var n="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(n,e.offendingToken,e)},zs.prototype.reportUnwantedToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e,null)}},zs.prototype.reportMissingToken=function(t){if(!this.inErrorRecoveryMode(t)){this.beginErrorCondition(t);var e=t.getCurrentToken(),n="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(n,e,null)}},zs.prototype.recoverInline=function(t){var e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new Ss(t)},zs.prototype.singleTokenInsertion=function(t){var e=t.getTokenStream().LA(1),n=t._interp.atn,r=n.states[t.state].transitions[0].target;return!!n.nextTokens(r,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)},zs.prototype.singleTokenDeletion=function(t){var e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();var n=t.getCurrentToken();return this.reportMatch(t),n}return null},zs.prototype.getMissingSymbol=function(t){var e,n=t.getCurrentToken(),r=this.getExpectedTokens(t).first();e=r===Rs.EOF?"<missing EOF>":"<missing "+t.literalNames[r]+">";var i=n,o=t.getTokenStream().LT(-1);return i.type===Rs.EOF&&null!==o&&(i=o),t.getTokenFactory().create(i.source,r,e,Rs.DEFAULT_CHANNEL,-1,-1,i.line,i.column)},zs.prototype.getExpectedTokens=function(t){return t.getExpectedTokens()},zs.prototype.getTokenErrorDisplay=function(t){if(null===t)return"<no token>";var e=t.text;return null===e&&(e=t.type===Rs.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)},zs.prototype.escapeWSAndQuote=function(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},zs.prototype.getErrorRecoverySet=function(t){for(var e=t._interp.atn,n=t._ctx,r=new Ps;null!==n&&n.invokingState>=0;){var i=e.states[n.invokingState].transitions[0],o=e.nextTokens(i.followState);r.addSet(o),n=n.parentCtx}return r.removeOne(Rs.EPSILON),r},zs.prototype.consumeUntil=function(t,e){for(var n=t.getTokenStream().LA(1);n!==Rs.EOF&&!e.contains(n);)t.consume(),n=t.getTokenStream().LA(1)},Ms.prototype=Object.create(zs.prototype),Ms.prototype.constructor=Ms,Ms.prototype.recover=function(t,e){for(var n=t._ctx;null!==n;)n.exception=e,n=n.parentCtx;throw new Os(e)},Ms.prototype.recoverInline=function(t){this.recover(t,new Ss(t))},Ms.prototype.sync=function(t){};var Fs=Zo,Us=as,js=function(t){Ki(n,Fs);var e=Qi(n);function n(t,r,i){return Wi(this,n),e.call(this,{message:"Can not cast '".concat(r,"' into '").concat(i,"'"),input:t.parser.getInputStream(),recognizer:t.parser,ctx:t})}return qi(n)}(),Hs=function(t){switch(t){case Hr.kW.STRING_CONSTANT:return Hr.kW.STRING;case Hr.kW.INTEGER_CONSTANT:return Hr.kW.INTEGER;case Hr.kW.NUMBER_CONSTANT:return Hr.kW.NUMBER;case Hr.kW.BOOLEAN_CONSTANT:return Hr.kW.BOOLEAN;case Hr.kW.DATE_FORMAT:return Hr.kW.DATE;case Hr.kW.NULL_CONSTANT:return Hr.kW.NULL_CONSTANT;default:return t}},Vs=function(t){return t.start.type},Bs=function(t){return t.replace(/YYYY/g,"yyyy").replace(/YYYY/g,"yyyy").replace(/DD/g,"dd")},Ws=function(t,e){return e?ji(new Date(t),Bs(e)):new Date(t)},Gs=function(t){var e=Object.entries(Hr.kW).find((function(e){return e[1]===t}));return e?e[0]:"[unknown]"},qs=function(t){return function(e){return!Array.isArray(t)||t.includes(null)?null:e(t)}},Ys=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return qs(t)((function(t){if(t.length<=1)return 0;var n=t.reduce((function(t,e){return t+e}),0)/t.length;return Math.sqrt(t.reduce((function(t,e){return t.concat(Math.pow(e-n,2))}),[]).reduce((function(t,e){return t+e}),0)/(t.length-(e?0:1)))}))},Ks=function(t,e){var n=Ys(t,e);return null===n?null:Math.pow(n,2)},$s={dataStructure:{},dataPoints:{}},Xs=function(t){return function(e){var n=e.dataStructure,r=e.dataPoints,i=function(t){switch(t){case Hr.kW.INTEGER:return function(t){return parseInt(t,10)};case Hr.kW.NUMBER:return function(t){return parseFloat(t,10)};default:throw new Error("Can't cast dataset as ".concat(Gs(t)," for now"))}}(t);return Object.keys(n).reduce((function(t,e){var n=r[e].map((function(t){return(e=t,function(t){return null===e?null:t(e)})(i);var e}));return{dataStructure:Vi(Vi({},t.dataStructure),{},Yi({},e,{})),dataPoints:Vi(Vi({},t.dataPoints),{},Yi({},e,n))}}),$s)}},Js=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.dataStructure,i=t.dataPoints;return 0===!Object.keys(i).length?null:Object.keys(r).reduce((function(t,r){var o=function(t){return function(e){return function(n){return!n&&e.includes(null)?null:t(e)}}}(e)(i[r])(n);return{dataStructure:Vi(Vi({},t.dataStructure),{},Yi({},r,{})),dataPoints:Vi(Vi({},t.dataPoints),{},Yi({},r,o))}}),$s)}},Qs=function(t){return Js(t)((function(t){return qs(t)((function(t){var e=Math.floor(t.length/2),n=function(t){return function(t){if(Array.isArray(t))return eo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||to(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t).sort((function(t,e){return t-e}));return t.length%2!=0?n[e]:(n[e-1]+n[e])/2}))}))},Zs=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.includes(null)},ta=function(t){Ki(n,Fs);var e=Qi(n);function n(t,r,i){Wi(this,n);var o=Gs(r),s=Gs(i);return e.call(this,{message:"incompatible type, required '".concat(o,"' but found '").concat(s,"' for then operand"),input:t.parser.getInputStream(),recognizer:t.parser,ctx:t})}return qi(n)}(),ea=function(t){Ki(n,Fs);var e=Qi(n);function n(t,r,i,o){Wi(this,n);var s=Gs(i),a=Gs(o);return e.call(this,{message:"operator '".concat(r,"' cannot be applied to '").concat(s,"', '").concat(a,"'"),input:t.parser.getInputStream(),recognizer:t.parser,ctx:t})}return qi(n)}(),na=function(t){Ki(n,Fs);var e=Qi(n);function n(t,r,i){var o;Wi(this,n),o=Array.isArray(r)?r.map((function(t){return Gs(t)})).join(" or "):Gs(r);var s=Gs(i);return e.call(this,{message:"type mismatch, expected ".concat(o,", got ").concat(s),input:t.parser.getInputStream(),recognizer:t.parser,ctx:t})}return qi(n)}(),ra=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.map((function(t){return t.type}));return r.includes(Hr.kW.NULL_CONSTANT)?Hr.kW.NUMBER:r.includes(Hr.kW.DATE)?Hr.kW.INTEGER:r.includes(Hr.kW.NUMBER)?Hr.kW.NUMBER:Hr.kW.INTEGER};function ia(t){if(t.length<1)throw new Error("column list was empty");return function(e){return Object.entries(e).filter((function(e){var n=Zi(e,1)[0];return t.includes(n)})).map((function(t){var e=Zi(t,2);return e[0],e[1]})).reduce((function(t,e){return t+e}),"")}}var oa=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitUnaryExpr",(function(t){var e=t.op,n=t.right,i=r.exprVisitor.visit(n),o=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT];if(!o.includes(i.type))throw new na(n,o,i.type);return{resolve:function(t){var n=i.resolve(t);return null===n?null:e.type===Hr.kW.PLUS?n:-n},type:ra(i)}})),Yi(Ji(r),"visitArithmeticExprOrConcat",(function(t){if(t.op.type===Hr.kW.CONCAT)throw new Error("Arithmetic visitor got CONCAT context");return r.visitArithmeticExpr(t)})),Yi(Ji(r),"visitArithmeticExpr",(function(t){var e,n=t.left,i=t.right,o=t.op,s=r.exprVisitor.visit(n),a=r.exprVisitor.visit(i),c=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.DATASET,Hr.kW.NULL_CONSTANT,Hr.kW.DATE];if(!c.includes(s.type))throw new na(n,c,s.type);if(!c.includes(a.type))throw new na(i,c,a.type);var l,u,p=ra(s,a);switch(o.type){case Hr.kW.PLUS:e=function(t,e){return t+e};break;case Hr.kW.MINUS:e=function(t,e){return t-e};break;case Hr.kW.MUL:e=function(t,e){return t*e};break;case Hr.kW.DIV:e=function(t,e){return t/e},p=Hr.kW.NUMBER;break;default:throw new Error("unknown operator ".concat(o.getText()))}if(s.type===Hr.kW.DATASET&&a.type===Hr.kW.DATASET){var h=(l=s.columns,u=a.columns,Object.fromEntries(Object.entries(l).filter((function(t){return Object.entries(u).some((function(e){return t.name===e.name&&t.role===e.role&&t.type===e.type}))})))),f=Object.entries(h).filter((function(t){var e=Zi(t,2);return e[0],e[1].role===Hr.kW.DIMENSION})).map((function(t){return Zi(t,1)[0]})),d=Object.entries(h).filter((function(t){var e=Zi(t,2);return e[0],e[1].role===Hr.kW.MEASURE})).map((function(t){return Zi(t,1)[0]}));return{type:Hr.kW.DATASET,columns:s.columns,resolve:function(t){var n,r,i,o=s.resolve(t),c=a.resolve(t);return o.join(c,ia(f),ia(f),(n=f,r=d,i=e,function(t,e){var o,s={},a=no(n);try{for(a.s();!(o=a.n()).done;){var c=o.value;s[c]=t[c]}}catch(t){a.e(t)}finally{a.f()}var l,u=no(r);try{for(u.s();!(l=u.n()).done;){var p=l.value;s[p]=i(t[p],e[p])}}catch(t){u.e(t)}finally{u.f()}return s}))}}}return{resolve:function(t){var n=s.resolve(t),r=a.resolve(t);return Zs(n,r)?null:s.type===Hr.kW.DATE&&a.type===Hr.kW.DATE?e(new Date(n),new Date(r)):e(n,r)},type:p}})),r.exprVisitor=t,r}return qi(n)}(),sa=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitUnaryExpr",(function(t){var e=t.right,n=r.exprVisitor.visit(e);if(![Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT].includes(n.type))throw new Error("Operand should be a boolean constant");return{resolve:function(t){var e=n.resolve(t);return null===e?null:!e},type:Hr.kW.BOOLEAN}})),Yi(Ji(r),"visitBooleanExpr",(function(t){var e=t.left,n=t.right,i=t.op,o=r.exprVisitor.visit(e),s=r.exprVisitor.visit(n);if(![Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT].includes(o.type))throw new na(e,Hr.kW.BOOLEAN,o.type);if(![Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT].includes(s.type))throw new na(n,Hr.kW.BOOLEAN,s.type);if(i.type===Hr.kW.AND)return function(t,e){return{resolve:function(n){var r=t.resolve(n);if(null!==r&&!r)return!1;var i=e.resolve(n);return!(null!==i&&!i)&&(!Zs(r,i)||null)},type:Hr.kW.BOOLEAN}}(o,s);if(i.type===Hr.kW.OR)return function(t,e){return{resolve:function(n){var r=t.resolve(n);if(null!==r&&r)return!0;var i=e.resolve(n);return!(null===i||!i)||!!Zs(r,i)&&null},type:Hr.kW.BOOLEAN}}(o,s);if(i.type===Hr.kW.XOR)return function(t,e){return{resolve:function(n){return null===t.resolve(n)||null===e.resolve(n)?null:t.resolve(n)!==e.resolve(n)},type:Hr.kW.BOOLEAN}}(o,s);throw new Error("unknown operator ".concat(i.getText()))})),r.exprVisitor=t,r}return qi(n)}(),aa=function(t,e){return!([Hr.kW.INTEGER,Hr.kW.NUMBER].includes(t)&&[Hr.kW.INTEGER,Hr.kW.NUMBER].includes(e)||t===e)},ca=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitIfExpr",(function(t){var e=t.conditionalExpr,n=t.thenExpr,i=t.elseExpr,o=r.exprVisitor.visit(e);if(![Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT].includes(o.type))throw new na(e,Hr.kW.BOOLEAN,o.type);var s,a,c=r.exprVisitor.visit(n),l=r.exprVisitor.visit(i);if(![c.type,l.type].includes(Hr.kW.NULL_CONSTANT)&&aa(c.type,l.type))throw new ta(t,c.type,l.type);return{resolve:function(t){var e=o.resolve(t);return Zs(e)||!e?l.resolve(t):c.resolve(t)},type:(s=c.type,a=l.type,s===a?s:[s,a].includes(Hr.kW.NULL_CONSTANT)?c.type===Hr.kW.NULL_CONSTANT?l.type:c.type:[s,a].includes(Hr.kW.INTEGER)&&[s,a].includes(Hr.kW.NUMBER)?Hr.kW.NUMBER:void 0)}})),Yi(Ji(r),"visitNvlAtom",(function(t){var e=t.left,n=t.right,i=r.exprVisitor.visit(e),o=r.exprVisitor.visit(n);if(![i.type,o.type].includes(Hr.kW.NULL_CONSTANT)&&aa(i.type,o.type))throw new ta(t,i.type,o.type);return{resolve:function(t){return null!==i.resolve(t)?i.resolve(t):o.resolve(t)},type:o.type}})),r.exprVisitor=t,r}return qi(n)}(),la={string:Hr.kW.STRING,number:Hr.kW.NUMBER,boolean:Hr.kW.BOOLEAN},ua=function(t,e){var n=e[t];if(null===n)return Hr.kW.NULL_CONSTANT;var r=Bi(n);if(["string","number","boolean"].includes(r))return la[r];if("object"===r){if(Object.keys(n).includes("dataStructure","dataPoints"))return Hr.kW.DATASET;throw new Error("The dataset shape is not good.")}throw new Error("Unrecognized variable type.")},pa=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitVarIdExpr",(function(t){var e=t.getText();return r.bindings[e]&&r.bindings[e].type?r.bindings[e]:{resolve:function(t){return function(t,e){var n=ua(t,e);if([Hr.kW.NUMBER,Hr.kW.STRING,Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT].includes(n))return e[t];if(n===Hr.kW.DATASET)return e[t];throw new Error("Cannot transform variable of type ".concat(n))}(e,t)},type:ua(e,r.bindings)}})),r.bindings=t,r}return qi(n)}(),ha=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(){var t;Wi(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Yi(Ji(t=e.call.apply(e,[this].concat(i))),"visitConstant",(function(t){var e;switch(Vs(t)){case Hr.kW.STRING_CONSTANT:var n=t.getText();e=n.substring(1,n.length-1);break;case Hr.kW.INTEGER_CONSTANT:e=parseInt(t.getText(),10);break;case Hr.kW.NUMBER_CONSTANT:e=parseFloat(t.getText());break;case Hr.kW.BOOLEAN_CONSTANT:e=JSON.parse(t.getText());break;case Hr.kW.DATE_FORMAT:e=t.getText();break;case Hr.kW.NULL_CONSTANT:e=null;break;default:throw new Error("Bad type")}return{resolve:function(){return e},type:Hs(Vs(t))}})),Yi(Ji(t),"visitConstantExpr",(function(t){var e;switch(Vs(t)){case Hr.kW.STRING_CONSTANT:var n=t.getText();e=n.substring(1,n.length-1);break;case Hr.kW.INTEGER_CONSTANT:e=parseInt(t.getText(),10);break;case Hr.kW.NUMBER_CONSTANT:e=parseFloat(t.getText());break;case Hr.kW.BOOLEAN_CONSTANT:e=JSON.parse(t.getText());break;case Hr.kW.DATE_FORMAT:e=t.getText();break;case Hr.kW.NULL_CONSTANT:e=null;break;default:throw new Error("Bad type")}return{resolve:function(){return e},type:Hs(Vs(t))}})),t}return qi(n)}(),fa=function(t,e,n){var r;switch(t.children[0].symbol.type){case Hr.kW.MT:r=function(t,e){return t>e};break;case Hr.kW.LT:r=function(t,e){return t<e};break;case Hr.kW.ME:r=function(t,e){return t>=e};break;case Hr.kW.LE:r=function(t,e){return t<=e};break;case Hr.kW.EQ:r=function(t,e){return t===e};break;case Hr.kW.NEQ:r=function(t,e){return t!==e};break;default:throw new Error("Unsupported operator ' + ".concat(t.getText()))}return function(t){var i=e.resolve(t),o=n.resolve(t);return[i,o].includes(null)?null:r(i,o)}},da=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitComparisonExpr",(function(t){var e,n,i=t.left,o=t.right,s=t.op,a=r.exprVisitor.visit(i),c=r.exprVisitor.visit(o),l=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.STRING,Hr.kW.BOOLEAN,Hr.kW.NULL_CONSTANT,Hr.kW.DATE];if(!l.includes(a.type))throw new na(i,l,a.type);if(!l.includes(c.type))throw new na(o,l,c.type);if(!([a.type,c.type].includes(Hr.kW.NULL_CONSTANT)||(e=a.type,n=c.type,[Hr.kW.INTEGER,Hr.kW.NUMBER].includes(e)&&[Hr.kW.INTEGER,Hr.kW.NUMBER].includes(n)||e===n)))throw new na(i,l,c.type);return{resolve:fa(s,a,c),type:Hr.kW.BOOLEAN}})),r.exprVisitor=t,r}return qi(n)}(),ya=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitInNotInExpr",(function(t){var e=t.left,n=t.op,i=r.exprVisitor.visit(e),o=t.lists()?r.exprVisitor.visit(t.lists().constant()):null,s=t.valueDomainID()?t.valueDomainID().children[0].getText():null;return{resolve:function(t){var e;if(o)e=o.map((function(e){return e.resolve(t)}));else{if(!s||!t[s])return null;e=Object.values(t[s].dataPoints)[0]}var r=i.resolve(t);if(null===r)return null;if(n.type===Hr.kW.IN)return e.includes(r);if(n.type===Hr.kW.NOT_IN)return!e.includes(r);throw new Error("unknown operator ".concat(n.getText()))},type:Hr.kW.BOOLEAN}})),r.exprVisitor=t,r}return qi(n)}(),ga=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitCastExprDataset",(function(t){var e=r.exprVisitor.visit(t.expr()),n=t.basicScalarType()||t.valueDomainName(),i=t.STRING_CONSTANT(),o=i?i.getText().substring(1,i.getText().length-1):void 0,s=n.children[0].symbol.type,a=[[Hr.kW.DATASET,[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.STRING],function(t){return Xs(s)(t)}],[Hr.kW.INTEGER,Hr.kW.INTEGER,function(t){return t}],[Hr.kW.INTEGER,Hr.kW.NUMBER,function(t){return t}],[Hr.kW.INTEGER,Hr.kW.BOOLEAN,function(t){return 0!==t}],[Hr.kW.INTEGER,Hr.kW.TIME,"ERROR"],[Hr.kW.INTEGER,Hr.kW.DATE,"ERROR"],[Hr.kW.INTEGER,Hr.kW.TIME_PERIOD,"ERROR"],[Hr.kW.INTEGER,Hr.kW.STRING,function(t){return"".concat(t)}],[Hr.kW.INTEGER,Hr.kW.DURATION,"ERROR"],[Hr.kW.NUMBER,Hr.kW.INTEGER,function(e){if(!Number.isInteger(e))throw new js(t,e,Hr.kW.NUMBER);return parseInt(e,10)}],[Hr.kW.NUMBER,Hr.kW.NUMBER,function(t){return t}],[Hr.kW.NUMBER,Hr.kW.BOOLEAN,function(t){return 0!==t}],[Hr.kW.NUMBER,Hr.kW.TIME,"ERROR"],[Hr.kW.NUMBER,Hr.kW.DATE,"ERROR"],[Hr.kW.NUMBER,Hr.kW.TIME_PERIOD,"ERROR"],[Hr.kW.NUMBER,Hr.kW.STRING,function(t){return"".concat(t)}],[Hr.kW.NUMBER,Hr.kW.DURATION,"ERROR"],[Hr.kW.BOOLEAN,Hr.kW.INTEGER,function(t){return t?1:0}],[Hr.kW.BOOLEAN,Hr.kW.NUMBER,function(t){return t?1:0}],[Hr.kW.BOOLEAN,Hr.kW.BOOLEAN,function(t){return t}],[Hr.kW.BOOLEAN,Hr.kW.TIME,"ERROR"],[Hr.kW.BOOLEAN,Hr.kW.DATE,"ERROR"],[Hr.kW.BOOLEAN,Hr.kW.TIME_PERIOD,"ERROR"],[Hr.kW.BOOLEAN,Hr.kW.STRING,function(t){return"".concat(t)}],[Hr.kW.BOOLEAN,Hr.kW.DURATION,"ERROR"],[Hr.kW.TIME,Hr.kW.INTEGER,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.NUMBER,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.BOOLEAN,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.TIME,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.DATE,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.TIME_PERIOD,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.STRING,function(){return"TODO"}],[Hr.kW.TIME,Hr.kW.DURATION,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.INTEGER,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.NUMBER,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.BOOLEAN,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.TIME,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.DATE,function(t,e){return Ws("".concat(t),e)}],[Hr.kW.DATE,Hr.kW.TIME_PERIOD,function(){return"TODO"}],[Hr.kW.DATE,Hr.kW.STRING,function(t,e){return function(t,e){return e?ji(new Date("".concat(t)),Bs(e)):new Date("".concat(t))}(t,e)}],[Hr.kW.DATE,Hr.kW.DURATION,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.INTEGER,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.NUMBER,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.BOOLEAN,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.TIME,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.DATE,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.TIME_PERIOD,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.STRING,function(){return"TODO"}],[Hr.kW.TIME_PERIOD,Hr.kW.DURATION,function(){return"TODO"}],[Hr.kW.STRING,Hr.kW.INTEGER,function(e){if(!Number.isInteger(Number(e)))throw new js(t,e,Hr.kW.INTEGER);return parseInt(e,10)}],[Hr.kW.STRING,Hr.kW.NUMBER,function(e){if(!Number.isInteger(parseInt(e,10)))throw new js(t,e,Hr.kW.NUMBER);return parseFloat(e)}],[Hr.kW.STRING,Hr.kW.BOOLEAN,"ERROR"],[Hr.kW.STRING,Hr.kW.TIME,function(){return"TODO"}],[Hr.kW.STRING,Hr.kW.DATE,function(t,e){return Ws(t,e)}],[Hr.kW.STRING,Hr.kW.TIME_PERIOD,function(){return"TODO"}],[Hr.kW.STRING,Hr.kW.STRING,function(t){return t}],[Hr.kW.STRING,Hr.kW.DURATION,function(){return"TODO"}],[Hr.kW.DURATION,Hr.kW.INTEGER,"ERROR"],[Hr.kW.DURATION,Hr.kW.NUMBER,"ERROR"],[Hr.kW.DURATION,Hr.kW.BOOLEAN,"ERROR"],[Hr.kW.DURATION,Hr.kW.TIME,"ERROR"],[Hr.kW.DURATION,Hr.kW.DATE,"ERROR"],[Hr.kW.DURATION,Hr.kW.TIME_PERIOD,"ERROR"],[Hr.kW.DURATION,Hr.kW.STRING,function(t){return"".concat(t)}],[Hr.kW.DURATION,Hr.kW.DURATION,function(t){return t}]],c=a.filter((function(t){var n=Zi(t,2),r=n[0],i=n[1];return Array.isArray(i)?r===e.type&&i.includes(s):r===e.type&&i===s})),l=[];if(e.type!==Hr.kW.NULL_CONSTANT){if(1!==c.length)throw new ea(t,"Cast",e.type,s);if("function"!=typeof(l=c[0][2]))throw new js(t,e.type,s)}return{resolve:function(t){var n=e.resolve(t);return Zs(n)?null:l(n,o)},type:c[0]&&c[0][0]===Hr.kW.DATASET?Hr.kW.DATASET:s}})),r.exprVisitor=t,r}return qi(n)}(),ma=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitIsNullAtom",(function(t){var e=r.exprVisitor.visit(t.expr());return{resolve:function(t){return null===e.resolve(t)},type:Hr.kW.BOOLEAN}})),Yi(Ji(r),"visitBetweenAtom",(function(t){var e=t.op,n=t.from_,i=t.to_,o=r.exprVisitor.visit(e),s=r.exprVisitor.visit(n),a=r.exprVisitor.visit(i);return[[o,e],[s,n],[a,i]].forEach((function(t){var e=Zi(t,2),n=e[0],r=e[1];if(![Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT].includes(n.type))throw new na(r,[Hr.kW.INTEGER,Hr.kW.NUMBER],n.type)})),{resolve:function(t){var e=s.resolve(t),n=a.resolve(t),r=o.resolve(t);return Zs(e,n,r)?null:e<=r&&r<=n},type:Hr.kW.BOOLEAN}})),Yi(Ji(r),"visitCharsetMatchAtom",(function(t){var e=t.op,n=t.pattern,i=r.exprVisitor.visit(e),o=r.exprVisitor.visit(n);return[[i,e],[o,n]].forEach((function(t){var e=Zi(t,2),n=e[0],r=e[1];if(![Hr.kW.STRING,Hr.kW.NULL_CONSTANT].includes(n.type))throw new na(r,Hr.kW.STRING,n.type)})),{resolve:function(t){var e=i.resolve(t),n=o.resolve(t);if(Zs(e,n))return null;var r=new RegExp(n),s=e.match(r);return!!s&&s&&e===s[0]},type:Hr.kW.BOOLEAN}})),r.exprVisitor=t,r}return qi(n)}(),_a=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitArithmeticExprOrConcat",(function(t){if(t.op.type!==Hr.kW.CONCAT)throw new Error("Concat visitor got arithmetic context");var e=t.left,n=t.right,i=r.exprVisitor.visit(e),o=r.exprVisitor.visit(n);if(![Hr.kW.STRING,Hr.kW.NULL_CONSTANT].includes(i.type)||![Hr.kW.STRING,Hr.kW.NULL_CONSTANT].includes(o.type))throw new Error("cannot concat ".concat(e.getText()," with ").concat(n.getText()));return{resolve:function(t){return"".concat(i.resolve(t)).concat(o.resolve(t))},type:Hr.kW.STRING}})),r.exprVisitor=t,r}return qi(n)}(),ka=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitOptionalNumeric",(function(t){var e,n=t.op,i=t.optionalExpr()?r.exprVisitor.visit(t.optionalExpr()):{resolve:function(){return 0},type:Hr.kW.INTEGER},o=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT];if(t.optionalExpr()&&!o.includes(i.type))throw new na(t.optionalExpr(),o,n.type);if(n.type!==Hr.kW.RANDOM)throw new Error("unknown operator ".concat(n.getText()));return e=function(){return Math.random()},{resolve:function(t){var n=i.resolve(t);return Zs(n)?null:e()},type:i.type}})),Yi(Ji(r),"visitUnaryNumeric",(function(t){var e,n,i=t.op,o=r.exprVisitor.visit(t.expr()),s=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT];if(!s.includes(o.type))throw new na(t.expr(),s,i.type);switch(i.type){case Hr.kW.ABS:e=function(t){return Math.abs(t)},n=o.type;break;case Hr.kW.CEIL:e=function(t){return Math.ceil(t)},n=Hr.kW.INTEGER;break;case Hr.kW.EXP:e=function(t){return Math.exp(t)},n=Hr.kW.NUMBER;break;case Hr.kW.FLOOR:e=function(t){return Math.floor(t)},n=Hr.kW.INTEGER;break;case Hr.kW.LN:e=function(t){return Math.log(t)},n=Hr.kW.NUMBER;break;case Hr.kW.SQRT:e=function(t){return Math.sqrt(t)},n=Hr.kW.NUMBER;break;default:throw new Error("unknown operator ".concat(i.getText()))}return{resolve:function(t){var n=o.resolve(t);return Zs(n)?null:e(n)},type:n}})),Yi(Ji(r),"visitUnaryWithOptionalNumeric",(function(t){var e,n,i=t.op,o=r.exprVisitor.visit(t.expr()),s=t.optionalExpr()&&t.optionalExpr().expr()?r.exprVisitor.visit(t.optionalExpr().expr()):void 0,a=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT];if(!a.includes(o.type))throw new na(t.expr(),a,i.type);if(s&&s.type!==Hr.kW.INTEGER)throw new Error("The second operand should be an integer");switch(i.type){case Hr.kW.ROUND:e=function(t,e){return e&&e!==Hr.kW.OPTIONAL?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Math.round(t)},n=Hr.kW.NUMBER;break;case Hr.kW.TRUNC:e=function(t,e){return e&&e!==Hr.kW.OPTIONAL?Math.trunc(t*Math.pow(10,e))/Math.pow(10,e):Math.trunc(t)},n=Hr.kW.NUMBER;break;default:throw new Error("unknown operator ".concat(i.getText()))}return{resolve:function(t){var n=o.resolve(t),r=s?s.resolve(t):void 0;return Zs(n,r)?null:e(n,r)},type:n}})),Yi(Ji(r),"visitBinaryNumeric",(function(t){var e,n=t.left,i=t.right,o=t.op,s=r.exprVisitor.visit(n),a=r.exprVisitor.visit(i),c=[Hr.kW.INTEGER,Hr.kW.NUMBER,Hr.kW.NULL_CONSTANT];if(!c.includes(s.type))throw new na(n,c,s.type);if(!c.includes(a.type))throw new na(i,c,a.type);var l=Hr.kW.NUMBER;switch(o.type){case Hr.kW.LOG:e=function(t,e){return Math.log(t)/Math.log(e)},l=Hr.kW.NUMBER;break;case Hr.kW.MOD:e=function(t,e){return 0===e?t:t%e},l=s.type===Hr.kW.INTEGER&&a.type===Hr.kW.INTEGER?Hr.kW.INTEGER:Hr.kW.NUMBER;break;case Hr.kW.POWER:e=function(t,e){return Math.pow(t,e)},l=s.type===Hr.kW.INTEGER&&a.type===Hr.kW.INTEGER?Hr.kW.INTEGER:Hr.kW.NUMBER;break;default:throw new Error("unknown operator ".concat(o.getText()))}return{resolve:function(t){var n=s.resolve(t),r=a.resolve(t);return Zs(n,r)?null:e(n,r)},type:l}})),r.exprVisitor=t,r}return qi(n)}(),va=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitUnaryStringFunction",(function(t){var e,n=t.op,i=r.exprVisitor.visit(t.expr());if(![Hr.kW.STRING,Hr.kW.NULL_CONSTANT].includes(i.type))throw new na(t.expr(),Hr.kW.STRING,n.type);var o=Hr.kW.STRING;switch(n.type){case Hr.kW.TRIM:e=function(t){return t.trim()};break;case Hr.kW.LTRIM:e=function(t){return t.trimLeft()};break;case Hr.kW.RTRIM:e=function(t){return t.trimRight()};break;case Hr.kW.UCASE:e=function(t){return t.toUpperCase()};break;case Hr.kW.LCASE:e=function(t){return t.toLowerCase()};break;case Hr.kW.LEN:e=function(t){return t.length},o=Hr.kW.INTEGER;break;default:throw new Error("unknown operator ".concat(n.getText()))}return{resolve:function(t){var n=i.resolve(t);return Zs(n)?null:e(n)},type:o}})),Yi(Ji(r),"checkTypes",(function(t,e){var n=r.exprVisitor.visit(t);if(!e.includes(n.type))throw new na(t,e,n.type);return n})),Yi(Ji(r),"visitReplaceAtom",(function(t){var e=Zi(t.expr(),2),n=e[0],i=e[1],o=r.checkTypes(n,[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]),s=r.checkTypes(i,[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]),a=t.optionalExpr()?t.optionalExpr():{resolve:function(){return""},type:Hr.kW.STRING},c=r.checkTypes(a,[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]);return{resolve:function(t){var e=o.resolve(t),n=s.resolve(t),r=c.resolve();if(Zs(e,n,r))return null;var i=new RegExp(n,"g");return e.replace(i,r)},type:Hr.kW.STRING}})),Yi(Ji(r),"visitInstrAtom",(function(t){var e=Zi(t.expr(),2),n=e[0],i=e[1],o=Zi(t.optionalExpr(),2),s=o[0],a=o[1],c=r.checkTypes(n,[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]),l=r.checkTypes(i,[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]),u=s&&s.expr()?r.checkTypes(s,[Hr.kW.INTEGER,Hr.kW.NULL_CONSTANT]):{resolve:function(){return 0},type:Hr.kW.INTEGER},p=a&&a.expr()?r.checkTypes(a,[Hr.kW.INTEGER,Hr.kW.NULL_CONSTANT]):{resolve:function(){return 1},type:Hr.kW.INTEGER};return{resolve:function(t){var e=c.resolve(t),n=l.resolve(t),r=u.resolve(t);if(r<0)throw new Error("start cannot be negative");var i=p.resolve(t);if(i<0)throw new Error("occurrence cannot be negative");if(Zs(e,n,r,i))return null;for(var o=0;i>0;){if(i-=1,-1===(o=e.indexOf(n,r)))return 0;r=o+1}return o+1},type:Hr.kW.INTEGER}})),Yi(Ji(r),"visitSubstrAtom",(function(t){if(4===t.children.length)throw new Error("Invalid number of operands for function substr");var e=Zi(t.optionalExpr(),2),n=e[0],i=e[1],o=r.checkTypes(t.expr(),[Hr.kW.STRING,Hr.kW.NULL_CONSTANT]),s=r.checkTypes(n,[Hr.kW.INTEGER,Hr.kW.NULL_CONSTANT]),a=r.checkTypes(i,[Hr.kW.INTEGER,Hr.kW.NULL_CONSTANT]);return{resolve:function(t){var e=o.resolve(t),n=s.resolve(t),r=a.resolve(t);return Zs(e,n,r)?null:e.substring(n-1,n-1+r)},type:Hr.kW.STRING}})),r.exprVisitor=t,r}return qi(n)}(),xa=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitAggrDataset",(function(t){var e,n=t.op,i=r.exprVisitor.visit(t.expr());if(i.type!==Hr.kW.DATASET)throw new na(t.expr(),Hr.kW.DATASET,n.type);switch(n.type){case Hr.kW.COUNT:e=function(t){return function(t){return Js(t)((function(t){return t.length}),!0)}(t)};break;case Hr.kW.SUM:e=function(t){return function(t){return Js(t)((function(t){return qs(t)((function(t){return t.reduce((function(t,e){return t+e}),0)}))}))}(t)};break;case Hr.kW.MIN:e=function(t){return function(t){return Js(t)((function(t){return qs(e=t)((function(t){return t.reduce((function(t,e){return t<e?t:e}),e[0])}));var e}))}(t)};break;case Hr.kW.MAX:e=function(t){return function(t){return Js(t)((function(t){return qs(e=t)((function(t){return t.reduce((function(t,e){return t>e?t:e}),e[0])}));var e}))}(t)};break;case Hr.kW.MEDIAN:e=function(t){return Qs(t)};break;case Hr.kW.AVG:e=function(t){return function(t){return Js(t)((function(t){return qs(e=t)((function(t){return t.reduce((function(t,e){return t+e}),0)/e.length}));var e}))}(t)};break;case Hr.kW.STDDEV_POP:e=function(t){return function(t){return Js(t)((function(t){return Ys(t)}))}(t)};break;case Hr.kW.STDDEV_SAMP:e=function(t){return function(t){return Js(t)((function(t){return Ys(t,!1)}))}(t)};break;case Hr.kW.VAR_POP:e=function(t){return function(t){return Js(t)((function(t){return Ks(t)}))}(t)};break;case Hr.kW.VAR_SAMP:e=function(t){return function(t){return Js(t)((function(t){return Ks(t,!1)}))}(t)};break;default:throw new Error("unknown operator ".concat(n.getText()))}return{resolve:function(t){return e(i.resolve(t))},type:Hr.kW.DATASET}})),Yi(Ji(r),"visitAnSimpleFunction",(function(t){var e,n=t.op,i=r.exprVisitor.visit(t.expr());if(i.type!==Hr.kW.DATASET)throw new na(t.expr(),Hr.kW.DATASET,n.type);switch(n.type){case Hr.kW.FIRST_VALUE:e=function(t){return function(t){return Js(t)((function(t){return t[0]}),!0)}(t)};break;case Hr.kW.LAST_VALUE:e=function(t){return function(t){return Js(t)((function(t){return t[t.length-1]}),!0)}(t)};break;default:throw new Error("unknown operator ".concat(n.getText()))}return{resolve:function(t){return e(i.resolve(t))},type:Hr.kW.DATASET}})),r.exprVisitor=t,r}return qi(n)}(),Ea=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(){var t;Wi(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Yi(Ji(t=e.call.apply(e,[this].concat(i))),"visitCurrentDateAtom",(function(){return{resolve:function(){return new Date},type:Hr.kW.DATE}})),t}return qi(n)}(),Ta=function(t){Ki(n,Hr.fl);var e=Qi(n);function n(t){var r;return Wi(this,n),Yi(Ji(r=e.call(this)),"visitComparisonExpr",(function(t){return r.comparisonVisitor.visit(t)})),Yi(Ji(r),"visitArithmeticExpr",(function(t){return r.arithmeticVisitor.visit(t)})),Yi(Ji(r),"visitArithmeticExprOrConcat",(function(t){return t.op.type===Hr.kW.CONCAT?new _a(Ji(r)).visit(t):r.arithmeticVisitor.visit(t)})),Yi(Ji(r),"visitUnaryExpr",(function(t){return t.op.type===Hr.kW.NOT?r.booleanAlgebraVisitor.visit(t):r.arithmeticVisitor.visit(t)})),Yi(Ji(r),"visitBooleanExpr",(function(t){return r.booleanAlgebraVisitor.visit(t)})),Yi(Ji(r),"visitParenthesisExpr",(function(t){return r.visit(t.expr())})),Yi(Ji(r),"visitIfExpr",(function(t){return r.ifThenElseVisitor.visit(t)})),Yi(Ji(r),"visitConditionalFunctions",(function(t){return r.visit(t.conditionalOperators())})),Yi(Ji(r),"visitNvlAtom",(function(t){return r.ifThenElseVisitor.visit(t)})),Yi(Ji(r),"visitOptionalExpr",(function(t){return null===t.expr()?null:r.visit(t.expr())})),Yi(Ji(r),"visitFunctionsExpression",(function(t){return r.visit(t.functions())})),Yi(Ji(r),"visitGenericFunctions",(function(t){return r.visit(t.genericOperators())})),Yi(Ji(r),"visitTimeFunctions",(function(t){return r.visit(t.timeOperators())})),Yi(Ji(r),"visitVarIdExpr",(function(t){return r.variableVisitor.visit(t)})),Yi(Ji(r),"visitConstant",(function(t){return r.literalVisitor.visit(t)})),Yi(Ji(r),"visitConstantExpr",(function(t){return r.literalVisitor.visit(t)})),Yi(Ji(r),"visitInNotInExpr",(function(t){return r.inNotInVisitor.visit(t)})),Yi(Ji(r),"visitCastExprDataset",(function(t){return r.castFunctionVisitor.visit(t)})),Yi(Ji(r),"visitCurrentDateAtom",(function(t){return r.dateFunctionVisitor.visit(t)})),Yi(Ji(r),"visitConcatExpr",(function(t){return r.concatenationVisitor.visit(t)})),Yi(Ji(r),"visitStringFunctions",(function(t){return r.stringFunctionVisitor.visit(t.stringOperators())})),Yi(Ji(r),"visitComparisonFunctions",(function(t){return r.comparisonFunctionVisitor.visit(t.comparisonOperators())})),Yi(Ji(r),"visitNumericFunctions",(function(t){return r.numericFunctionsVisitor.visit(t.numericOperators())})),Yi(Ji(r),"visitAggregateFunctions",(function(t){return r.datasetFunctionsVisitor.visit(t.aggrOperatorsGrouping())})),Yi(Ji(r),"visitAnalyticFunctions",(function(t){return r.datasetFunctionsVisitor.visit(t.anFunction())})),r.bindings=t,r.arithmeticVisitor=new oa(Ji(r)),r.booleanAlgebraVisitor=new sa(Ji(r)),r.castFunctionVisitor=new ga(Ji(r)),r.comparisonVisitor=new da(Ji(r)),r.concatenationVisitor=new _a(Ji(r)),r.dateFunctionVisitor=new Ea(Ji(r)),r.ifThenElseVisitor=new ca(Ji(r)),r.literalVisitor=new ha,r.comparisonFunctionVisitor=new ma(Ji(r)),r.numericFunctionsVisitor=new ka(Ji(r)),r.stringFunctionVisitor=new va(Ji(r)),r.variableVisitor=new pa(r.bindings),r.inNotInVisitor=new ya(Ji(r)),r.datasetFunctionsVisitor=new xa(Ji(r)),r}return qi(n)}(),wa=function(t){Ki(n,Us);var e=Qi(n);function n(){var t;return Wi(this,n),(t=e.call(this)).errors=[],t}return qi(n,[{key:"syntaxError",value:function(t,e,n,r,i,o){null===o?this.errors.push(new Error(i)):this.errors.push(o)}},{key:"reportAmbiguity",value:function(t,e,n,r,i,o,s){console.warn("ambiguity ".concat(n,":").concat(r))}},{key:"reportAttemptingFullContext",value:function(t,e,n,r,i,o){console.warn("full context ".concat(n,":").concat(r))}},{key:"reportContextSensitivity",value:function(t,e,n,r,i,o){console.debug("context sensitivity ".concat(n,":").concat(r))}}]),n}(),ba=function(t,e){var n=new Hr.PT(t);n.removeErrorListeners(),n.addErrorListener(e);var r=new jr.CommonTokenStream(n),i=new Hr.kW(r);return i.removeErrorListeners(),i.addErrorListener(e),i.buildParseTrees=!0,i},Aa={763:()=>{}},Ra={};function Ca(t){var e=Ra[t];if(void 0!==e)return e.exports;var n=Ra[t]={exports:{}};return Aa[t](n,n.exports,Ca),n.exports}Ca.d=(t,e)=>{for(var n in e)Ca.o(e,n)&&!Ca.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Ca.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Sa={};Ca.d(Sa,{MG:()=>xc,fr:()=>tl,sR:()=>$l,Zo:()=>Jl,iH:()=>nu,rt:()=>ol,jB:()=>su,M8:()=>Pl,$t:()=>Kl,aq:()=>Gl,pG:()=>el,eP:()=>Bl,KU:()=>Vl,zW:()=>Ql,IX:()=>qa,mY:()=>Ya,a7:()=>vc,JG:()=>ul,ay:()=>El,X2:()=>Rl,WU:()=>Fl,Uw:()=>Ul,gw:()=>jl,iX:()=>cu,re:()=>Sl,Pg:()=>pu,tD:()=>Nl,R$:()=>Al,Dj:()=>cl,m7:()=>uc,NZ:()=>oc,xo:()=>sc,ou:()=>Na,qC:()=>hu,mD:()=>Fa,Ay:()=>mu});class Na{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function Oa(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!(t[n]===e[n]||t[n].equals&&t[n].equals(e[n])))return!1;return!0}Na.INVALID_TYPE=0,Na.EPSILON=-2,Na.MIN_USER_TOKEN_TYPE=1,Na.EOF=-1,Na.DEFAULT_CHANNEL=0,Na.HIDDEN_CHANNEL=1;const Ia=Math.round(Math.random()*Math.pow(2,32));function La(t){if(!t)return 0;const e=typeof t,n="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!n)return 0;let r,i;const o=3&n.length,s=n.length-o;let a=Ia;const c=3432918353,l=461845907;let u=0;for(;u<s;)i=255&n.charCodeAt(u)|(255&n.charCodeAt(++u))<<8|(255&n.charCodeAt(++u))<<16|(255&n.charCodeAt(++u))<<24,++u,i=(65535&i)*c+(((i>>>16)*c&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*l+(((i>>>16)*l&65535)<<16)&4294967295,a^=i,a=a<<13|a>>>19,r=5*(65535&a)+((5*(a>>>16)&65535)<<16)&4294967295,a=27492+(65535&r)+((58964+(r>>>16)&65535)<<16);switch(i=0,o){case 3:i^=(255&n.charCodeAt(u+2))<<16;case 2:i^=(255&n.charCodeAt(u+1))<<8;case 1:i^=255&n.charCodeAt(u),i=(65535&i)*c+(((i>>>16)*c&65535)<<16)&4294967295,i=i<<15|i>>>17,i=(65535&i)*l+(((i>>>16)*l&65535)<<16)&4294967295,a^=i}return a^=n.length,a^=a>>>16,a=2246822507*(65535&a)+((2246822507*(a>>>16)&65535)<<16)&4294967295,a^=a>>>13,a=3266489909*(65535&a)+((3266489909*(a>>>16)&65535)<<16)&4294967295,a^=a>>>16,a>>>0}class Pa{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=La(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let n=this.hash^t;n=n<<13|n>>>19,n=5*n+3864292196,this.hash=n}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new Pa;return t.update.apply(t,arguments),t.finish()}}function Da(t){return t?"string"==typeof t?La(t):t.hashCode():-1}function za(t,e){return t&&t.equals?t.equals(e):t===e}function Ma(t){return null===t?"null":t}function Fa(t){return Array.isArray(t)?"["+t.map(Ma).join(", ")+"]":"null"}class Ua{constructor(t,e){this.buckets=new Array(16),this.threshold=Math.floor(12),this.itemCount=0,this.hashFunction=t||Da,this.equalsFunction=e||za}get(t){if(null==t)return t;const e=this._getBucket(t);if(!e)return null;for(const n of e)if(this.equalsFunction(n,t))return n;return null}add(t){return this.getOrAdd(t)===t}getOrAdd(t){this._expand();const e=this._getSlot(t);let n=this.buckets[e];if(!n)return n=[t],this.buckets[e]=n,this.itemCount++,t;for(const r of n)if(this.equalsFunction(r,t))return r;return n.push(t),this.itemCount++,t}has(t){return null!=this.get(t)}values(){return this.buckets.filter((t=>null!=t)).flat(1)}toString(){return Fa(this.values())}get length(){return this.itemCount}_getSlot(t){return this.hashFunction(t)&this.buckets.length-1}_getBucket(t){return this.buckets[this._getSlot(t)]}_expand(){if(this.itemCount<=this.threshold)return;const t=this.buckets,e=2*this.buckets.length;this.buckets=new Array(e),this.threshold=Math.floor(.75*e);for(const n of t)if(n)for(const t of n){const e=this._getSlot(t);let n=this.buckets[e];n||(n=[],this.buckets[e]=n),n.push(t)}}}class ja{hashCode(){const t=new Pa;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===ja.NONE)return e;if(null===e||e===ja.NONE)return t;const n=new Ha(t,e);return 1===n.opnds.length?n.opnds[0]:n}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===ja.NONE||e===ja.NONE)return ja.NONE;const n=new Va(t,e);return 1===n.opnds.length?n.opnds[0]:n}}class Ha extends ja{constructor(t,e){super();const n=new Ua;t instanceof Ha?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof Ha?e.opnds.map((function(t){n.add(t)})):n.add(e);const r=Ba(n);if(r.length>0){let t=null;r.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),n.add(t)}this.opnds=Array.from(n.values())}equals(t){return this===t||t instanceof Ha&&Oa(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let n=0;n<this.opnds.length;n++)if(!this.opnds[n].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let n=!1;const r=[];for(let o=0;o<this.opnds.length;o++){const i=this.opnds[o],s=i.evalPrecedence(t,e);if(n|=s!==i,null===s)return null;s!==ja.NONE&&r.push(s)}if(!n)return this;if(0===r.length)return ja.NONE;let i=null;return r.map((function(t){i=null===i?t:ja.andContext(i,t)})),i}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}}class Va extends ja{constructor(t,e){super();const n=new Ua;t instanceof Va?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof Va?e.opnds.map((function(t){n.add(t)})):n.add(e);const r=Ba(n);if(r.length>0){const t=r.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];n.add(e)}this.opnds=Array.from(n.values())}equals(t){return this===t||t instanceof Va&&Oa(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let n=0;n<this.opnds.length;n++)if(this.opnds[n].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let n=!1;const r=[];for(let i=0;i<this.opnds.length;i++){const o=this.opnds[i],s=o.evalPrecedence(t,e);if(n|=s!==o,s===ja.NONE)return ja.NONE;null!==s&&r.push(s)}return n?(0===r.length||r.map((function(t){return t})),null):this}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}}function Ba(t){const e=[];return t.values().map((function(t){t instanceof ja.PrecedencePredicate&&e.push(t)})),e}function Wa(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const n={};return n.state=t.state||null,n.alt=void 0===t.alt?null:t.alt,n.context=t.context||null,n.semanticContext=t.semanticContext||null,e&&(n.reachesIntoOuterContext=t.reachesIntoOuterContext||0,n.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),n}}class Ga{constructor(t,e){this.checkContext(t,e),t=Wa(t),e=Wa(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:ja.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new Pa;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof Ga&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new Pa;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof Ga&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==ja.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class qa{constructor(t,e){this.start=t,this.stop=e}clone(){return new qa(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}qa.INVALID_INTERVAL=new qa(-1,-2);class Ya{constructor(){this.intervals=null,this.readOnly=!1}first(t){return null===this.intervals||0===this.intervals.length?Na.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new qa(t,t+1))}addRange(t,e){this.addInterval(new qa(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const n=this.intervals[e];if(t.stop<n.start)return void this.intervals.splice(e,0,t);if(t.stop===n.start)return void(this.intervals[e]=new qa(t.start,n.stop));if(t.start<=n.stop)return this.intervals[e]=new qa(Math.min(n.start,t.start),Math.max(n.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach((t=>this.addInterval(t)),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],n=this.intervals[t+1];e.stop>=n.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=n.start&&(this.intervals[t]=new qa(e.start,n.stop),this.intervals.splice(t+1,1))}}complement(t,e){const n=new Ya;return n.addInterval(new qa(t,e+1)),null!==this.intervals&&this.intervals.forEach((t=>n.removeRange(t))),n}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let n=0;n<this.intervals.length;n++){const n=this.intervals[e];if(t.stop<=n.start)return;if(t.start>n.start&&t.stop<n.stop){this.intervals[e]=new qa(n.start,t.start);const r=new qa(t.stop,n.stop);return void this.intervals.splice(e,0,r)}t.start<=n.start&&t.stop>=n.stop?(this.intervals.splice(e,1),e-=1):t.start<n.stop?this.intervals[e]=new qa(n.start,t.start):t.stop<n.stop&&(this.intervals[e]=new qa(t.stop,n.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const n=this.intervals[e];if(t<n.start)return;if(t===n.start&&t===n.stop-1)return void this.intervals.splice(e,1);if(t===n.start)return void(this.intervals[e]=new qa(n.start+1,n.stop));if(t===n.stop-1)return void(this.intervals[e]=new qa(n.start,n.stop-1));if(t<n.stop-1){const r=new qa(n.start,t);return n.start=t+1,void this.intervals.splice(e,0,r)}}}toString(t,e,n){return t=t||null,e=e||null,n=n||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):n?this.toCharString():this.toIndexString()}toCharString(){const t=[];for(let e=0;e<this.intervals.length;e++){const n=this.intervals[e];n.stop===n.start+1?n.start===Na.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(n.start)+"'"):t.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]}toIndexString(){const t=[];for(let e=0;e<this.intervals.length;e++){const n=this.intervals[e];n.stop===n.start+1?n.start===Na.EOF?t.push("<EOF>"):t.push(n.start.toString()):t.push(n.start.toString()+".."+(n.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]}toTokenString(t,e){const n=[];for(let r=0;r<this.intervals.length;r++){const i=this.intervals[r];for(let r=i.start;r<i.stop;r++)n.push(this.elementName(t,e,r))}return n.length>1?"{"+n.join(", ")+"}":n[0]}elementName(t,e,n){return n===Na.EOF?"<EOF>":n===Na.EPSILON?"<EPSILON>":t[n]||e[n]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}}class Ka{constructor(){this.atn=null,this.stateNumber=Ka.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof Ka&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}Ka.INVALID_TYPE=0,Ka.BASIC=1,Ka.RULE_START=2,Ka.BLOCK_START=3,Ka.PLUS_BLOCK_START=4,Ka.STAR_BLOCK_START=5,Ka.TOKEN_START=6,Ka.RULE_STOP=7,Ka.BLOCK_END=8,Ka.STAR_LOOP_BACK=9,Ka.STAR_LOOP_ENTRY=10,Ka.PLUS_LOOP_BACK=11,Ka.LOOP_END=12,Ka.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],Ka.INVALID_STATE_NUMBER=-1;class $a extends Ka{constructor(){return super(),this.stateType=Ka.RULE_STOP,this}}class Xa{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}Xa.EPSILON=1,Xa.RANGE=2,Xa.RULE=3,Xa.PREDICATE=4,Xa.ATOM=5,Xa.ACTION=6,Xa.SET=7,Xa.NOT_SET=8,Xa.WILDCARD=9,Xa.PRECEDENCE=10,Xa.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],Xa.serializationTypes={EpsilonTransition:Xa.EPSILON,RangeTransition:Xa.RANGE,RuleTransition:Xa.RULE,PredicateTransition:Xa.PREDICATE,AtomTransition:Xa.ATOM,ActionTransition:Xa.ACTION,SetTransition:Xa.SET,NotSetTransition:Xa.NOT_SET,WildcardTransition:Xa.WILDCARD,PrecedencePredicateTransition:Xa.PRECEDENCE};class Ja extends Xa{constructor(t,e,n,r){super(t),this.ruleIndex=e,this.precedence=n,this.followState=r,this.serializationType=Xa.RULE,this.isEpsilon=!0}matches(t,e,n){return!1}}class Qa extends Xa{constructor(t,e){super(t),this.serializationType=Xa.SET,null!=e?this.label=e:(this.label=new Ya,this.label.addOne(Na.INVALID_TYPE))}matches(t,e,n){return this.label.contains(t)}toString(){return this.label.toString()}}class Za extends Qa{constructor(t,e){super(t,e),this.serializationType=Xa.NOT_SET}matches(t,e,n){return t>=e&&t<=n&&!super.matches(t,e,n)}toString(){return"~"+super.toString()}}class tc extends Xa{constructor(t){super(t),this.serializationType=Xa.WILDCARD}matches(t,e,n){return t>=e&&t<=n}toString(){return"."}}class ec extends Xa{constructor(t){super(t)}}class nc{}class rc extends nc{}class ic extends rc{}class oc extends ic{get ruleContext(){throw new Error("missing interface implementation")}}class sc extends ic{}class ac extends sc{}const cc={toStringTree:function(t,e,n){e=e||null,null!==(n=n||null)&&(e=n.ruleNames);let r=cc.getNodeText(t,e);r=function(t){return t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(r);const i=t.getChildCount();if(0===i)return r;let o="("+r+" ";i>0&&(r=cc.toStringTree(t.getChild(0),e),o=o.concat(r));for(let s=1;s<i;s++)r=cc.toStringTree(t.getChild(s),e),o=o.concat(" "+r);return o=o.concat(")"),o},getNodeText:function(t,e,n){if(e=e||null,null!==(n=n||null)&&(e=n.ruleNames),null!==e){if(t instanceof oc){const n=t.ruleContext.getAltNumber();return 0!=n?e[t.ruleIndex]+":"+n:e[t.ruleIndex]}if(t instanceof ac)return t.toString();if(t instanceof sc&&null!==t.symbol)return t.symbol.text}const r=t.getPayload();return r instanceof Na?r.text:t.getPayload().toString()},getChildren:function(t){const e=[];for(let n=0;n<t.getChildCount();n++)e.push(t.getChild(n));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return cc.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return cc.findAllNodes(t,e,!1)},findAllNodes:function(t,e,n){const r=[];return cc._findAllNodes(t,e,n,r),r},_findAllNodes:function(t,e,n,r){n&&t instanceof sc?t.symbol.type===e&&r.push(t):!n&&t instanceof oc&&t.ruleIndex===e&&r.push(t);for(let i=0;i<t.getChildCount();i++)cc._findAllNodes(t.getChild(i),e,n,r)},descendants:function(t){let e=[t];for(let n=0;n<t.getChildCount();n++)e=e.concat(cc.descendants(t.getChild(n)));return e}},lc=cc;class uc extends oc{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return qa.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return lc.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let n=this,r="[";for(;null!==n&&n!==e;){if(null===t)n.isEmpty()||(r+=n.invokingState);else{const e=n.ruleIndex;r+=e>=0&&e<t.length?t[e]:""+e}null===n.parentCtx||null===t&&n.parentCtx.isEmpty()||(r+=" "),n=n.parentCtx}return r+="]",r}}class pc{constructor(t){this.cachedHashCode=t}isEmpty(){return this===pc.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===pc.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}pc.EMPTY=null,pc.EMPTY_RETURN_STATE=2147483647,pc.globalNodeCount=1,pc.id=pc.globalNodeCount,pc.trace_atn_sim=!1;class hc extends pc{constructor(t,e){const n=new Pa;return n.update(t,e),super(n.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===pc.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof hc&&this.hashCode()===t.hashCode()&&Oa(this.returnStates,t.returnStates)&&Oa(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==pc.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class fc extends pc{constructor(t,e){let n=0;const r=new Pa;null!==t?r.update(t,e):r.update(1),n=r.finish(),super(n),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof fc&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===pc.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===pc.EMPTY_RETURN_STATE&&null===t?pc.EMPTY:new fc(t,e)}}class dc extends fc{constructor(){super(null,pc.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}pc.EMPTY=new dc;class yc{constructor(t,e){this.buckets=new Array(16),this.threshold=Math.floor(12),this.itemCount=0,this.hashFunction=t||Da,this.equalsFunction=e||za}set(t,e){this._expand();const n=this._getSlot(t);let r=this.buckets[n];if(!r)return r=[[t,e]],this.buckets[n]=r,this.itemCount++,e;const i=r.find((e=>this.equalsFunction(e[0],t)),this);if(i){const t=i[1];return i[1]=e,t}return r.push([t,e]),this.itemCount++,e}containsKey(t){const e=this._getBucket(t);return!!e&&!!e.find((e=>this.equalsFunction(e[0],t)),this)}get(t){const e=this._getBucket(t);if(!e)return null;const n=e.find((e=>this.equalsFunction(e[0],t)),this);return n?n[1]:null}entries(){return this.buckets.filter((t=>null!=t)).flat(1)}getKeys(){return this.entries().map((t=>t[0]))}getValues(){return this.entries().map((t=>t[1]))}toString(){return"["+this.entries().map((t=>"{"+t[0]+":"+t[1]+"}")).join(", ")+"]"}get length(){return this.itemCount}_getSlot(t){return this.hashFunction(t)&this.buckets.length-1}_getBucket(t){return this.buckets[this._getSlot(t)]}_expand(){if(this.itemCount<=this.threshold)return;const t=this.buckets,e=2*this.buckets.length;this.buckets=new Array(e),this.threshold=Math.floor(.75*e);for(const n of t)if(n)for(const t of n){const e=this._getSlot(t[0]);let n=this.buckets[e];n||(n=[],this.buckets[e]=n),n.push(t)}}}function gc(t,e){if(null==e&&(e=uc.EMPTY),null===e.parentCtx||e===uc.EMPTY)return pc.EMPTY;const n=gc(t,e.parentCtx),r=t.states[e.invokingState].transitions[0];return fc.create(n,r.followState.stateNumber)}function mc(t,e,n){if(t.isEmpty())return t;let r=n.get(t)||null;if(null!==r)return r;if(r=e.get(t),null!==r)return n.set(t,r),r;let i=!1,o=[];for(let a=0;a<o.length;a++){const r=mc(t.getParent(a),e,n);if(i||r!==t.getParent(a)){if(!i){o=[];for(let e=0;e<t.length;e++)o[e]=t.getParent(e);i=!0}o[a]=r}}if(!i)return e.add(t),n.set(t,t),t;let s=null;return s=0===o.length?pc.EMPTY:1===o.length?fc.create(o[0],t.getReturnState(0)):new hc(o,t.returnStates),e.add(s),n.set(s,s),n.set(t,s),s}function _c(t,e,n,r){if(t===e)return t;if(t instanceof fc&&e instanceof fc)return function(t,e,n,r){if(null!==r){let n=r.get(t,e);if(null!==n)return n;if(n=r.get(e,t),null!==n)return n}const i=function(t,e,n){if(n){if(t===pc.EMPTY)return pc.EMPTY;if(e===pc.EMPTY)return pc.EMPTY}else{if(t===pc.EMPTY&&e===pc.EMPTY)return pc.EMPTY;if(t===pc.EMPTY){const t=[e.returnState,pc.EMPTY_RETURN_STATE],n=[e.parentCtx,null];return new hc(n,t)}if(e===pc.EMPTY){const e=[t.returnState,pc.EMPTY_RETURN_STATE],n=[t.parentCtx,null];return new hc(n,e)}}return null}(t,e,n);if(null!==i)return null!==r&&r.set(t,e,i),i;if(t.returnState===e.returnState){const i=_c(t.parentCtx,e.parentCtx,n,r);if(i===t.parentCtx)return t;if(i===e.parentCtx)return e;const o=fc.create(i,t.returnState);return null!==r&&r.set(t,e,o),o}{let n=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(n=t.parentCtx),null!==n){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const o=new hc([n,n],i);return null!==r&&r.set(t,e,o),o}const i=[t.returnState,e.returnState];let o=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,o=[e.parentCtx,t.parentCtx]);const s=new hc(o,i);return null!==r&&r.set(t,e,s),s}}(t,e,n,r);if(n){if(t instanceof dc)return t;if(e instanceof dc)return e}return t instanceof fc&&(t=new hc([t.getParent()],[t.returnState])),e instanceof fc&&(e=new hc([e.getParent()],[e.returnState])),function(t,e,n,r){if(null!==r){let n=r.get(t,e);if(null!==n)return pc.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),n;if(n=r.get(e,t),null!==n)return pc.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),n}let i=0,o=0,s=0,a=new Array(t.returnStates.length+e.returnStates.length).fill(0),c=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&o<e.returnStates.length;){const l=t.parents[i],u=e.parents[o];if(t.returnStates[i]===e.returnStates[o]){const e=t.returnStates[i];e===pc.EMPTY_RETURN_STATE&&null===l&&null===u||null!==l&&null!==u&&l===u?(c[s]=l,a[s]=e):(c[s]=_c(l,u,n,r),a[s]=e),i+=1,o+=1}else t.returnStates[i]<e.returnStates[o]?(c[s]=l,a[s]=t.returnStates[i],i+=1):(c[s]=u,a[s]=e.returnStates[o],o+=1);s+=1}if(i<t.returnStates.length)for(let u=i;u<t.returnStates.length;u++)c[s]=t.parents[u],a[s]=t.returnStates[u],s+=1;else for(let u=o;u<e.returnStates.length;u++)c[s]=e.parents[u],a[s]=e.returnStates[u],s+=1;if(s<c.length){if(1===s){const n=fc.create(c[0],a[0]);return null!==r&&r.set(t,e,n),n}c=c.slice(0,s),a=a.slice(0,s)}const l=new hc(c,a);return l.equals(t)?(null!==r&&r.set(t,e,t),pc.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==r&&r.set(t,e,e),pc.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new yc;for(let n=0;n<t.length;n++){const r=t[n];e.containsKey(r)||e.set(r,r)}for(let n=0;n<t.length;n++)t[n]=e.get(t[n])}(c),null!==r&&r.set(t,e,l),pc.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+l),l)}(t,e,n,r)}class kc{constructor(){this.data=new Uint32Array(1)}set(t){kc._checkIndex(t),this._resize(t),this.data[t>>>5]|=1<<t%32}get(t){kc._checkIndex(t);const e=t>>>5;return!(e>=this.data.length||!(this.data[e]&1<<t%32))}clear(t){kc._checkIndex(t);const e=t>>>5;e<this.data.length&&(this.data[e]&=~(1<<t))}or(t){const e=Math.min(this.data.length,t.data.length);for(let n=0;n<e;++n)this.data[n]|=t.data[n];if(this.data.length<t.data.length){this._resize((t.data.length<<5)-1);const n=t.data.length;for(let r=e;r<n;++r)this.data[r]=t.data[r]}}values(){const t=new Array(this.length);let e=0;const n=this.data.length;for(let r=0;r<n;++r){let n=this.data[r];for(;0!==n;){const i=n&-n;t[e++]=(r<<5)+kc._bitCount(i-1),n^=i}}return t}minValue(){for(let t=0;t<this.data.length;++t){let e=this.data[t];if(0!==e){let n=0;for(;!(1&e);)n++,e>>=1;return n+32*t}}return 0}hashCode(){return Pa.hashStuff(this.values())}equals(t){return t instanceof kc&&Oa(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.data.map((t=>kc._bitCount(t))).reduce(((t,e)=>t+e),0)}_resize(t){const e=t+32>>>5;if(e<=this.data.length)return;const n=new Uint32Array(e);n.set(this.data),n.fill(0,this.data.length),this.data=n}static _checkIndex(t){if(t<0)throw new RangeError("index cannot be negative")}static _bitCount(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,0+(t+=t>>16)&63}}class vc{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,n=[];for(let r=0;r<e;r++){n[r]=new Ya;const e=new Ua,i=!1;this._LOOK(t.transition(r).target,null,pc.EMPTY,n[r],e,new kc,i,!1),(0===n[r].length||n[r].contains(vc.HIT_PRED))&&(n[r]=null)}return n}LOOK(t,e,n){const r=new Ya,i=null!==(n=n||null)?gc(t.atn,n):null;return this._LOOK(t,e,i,r,new Ua,new kc,!0,!0),r}_LOOK(t,e,n,r,i,o,s,a){const c=new Ga({state:t,alt:0,context:n},null);if(!i.has(c)){if(i.add(c),t===e){if(null===n)return void r.addOne(Na.EPSILON);if(n.isEmpty()&&a)return void r.addOne(Na.EOF)}if(t instanceof $a){if(null===n)return void r.addOne(Na.EPSILON);if(n.isEmpty()&&a)return void r.addOne(Na.EOF);if(n!==pc.EMPTY){const c=o.get(t.ruleIndex);try{o.clear(t.ruleIndex);for(let t=0;t<n.length;t++){const c=this.atn.states[n.getReturnState(t)];this._LOOK(c,e,n.getParent(t),r,i,o,s,a)}}finally{c&&o.set(t.ruleIndex)}return}}for(let c=0;c<t.transitions.length;c++){const l=t.transitions[c];if(l.constructor===Ja){if(o.get(l.target.ruleIndex))continue;const t=fc.create(n,l.followState.stateNumber);try{o.set(l.target.ruleIndex),this._LOOK(l.target,e,t,r,i,o,s,a)}finally{o.clear(l.target.ruleIndex)}}else if(l instanceof ec)s?this._LOOK(l.target,e,n,r,i,o,s,a):r.addOne(vc.HIT_PRED);else if(l.isEpsilon)this._LOOK(l.target,e,n,r,i,o,s,a);else if(l.constructor===tc)r.addRange(Na.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let t=l.label;null!==t&&(l instanceof Za&&(t=t.complement(Na.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),r.addSet(t))}}}}}vc.HIT_PRED=Na.INVALID_TYPE;class xc{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new vc(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw"Invalid state number.";const n=this.states[t];let r=this.nextTokens(n);if(!r.contains(Na.EPSILON))return r;const i=new Ya;for(i.addSet(r),i.removeOne(Na.EPSILON);null!==e&&e.invokingState>=0&&r.contains(Na.EPSILON);){const t=this.states[e.invokingState].transitions[0];r=this.nextTokens(t.followState),i.addSet(r),i.removeOne(Na.EPSILON),e=e.parentCtx}return r.contains(Na.EPSILON)&&i.addOne(Na.EOF),i}}xc.INVALID_ALT_NUMBER=0;class Ec extends Ka{constructor(){super(),this.stateType=Ka.BASIC}}class Tc extends Ka{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class wc extends Tc{constructor(){return super(),this.endState=null,this}}class bc extends Ka{constructor(){return super(),this.stateType=Ka.BLOCK_END,this.startState=null,this}}class Ac extends Ka{constructor(){return super(),this.stateType=Ka.LOOP_END,this.loopBackState=null,this}}class Rc extends Ka{constructor(){return super(),this.stateType=Ka.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class Cc extends Tc{constructor(){return super(),this.stateType=Ka.TOKEN_START,this}}class Sc extends Tc{constructor(){return super(),this.stateType=Ka.PLUS_LOOP_BACK,this}}class Nc extends Ka{constructor(){return super(),this.stateType=Ka.STAR_LOOP_BACK,this}}class Oc extends Tc{constructor(){return super(),this.stateType=Ka.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class Ic extends wc{constructor(){return super(),this.stateType=Ka.PLUS_BLOCK_START,this.loopBackState=null,this}}class Lc extends wc{constructor(){return super(),this.stateType=Ka.STAR_BLOCK_START,this}}class Pc extends wc{constructor(){return super(),this.stateType=Ka.BLOCK_START,this}}class Dc extends Xa{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=Xa.ATOM}makeLabel(){const t=new Ya;return t.addOne(this.label_),t}matches(t,e,n){return this.label_===t}toString(){return this.label_}}class zc extends Xa{constructor(t,e,n){super(t),this.serializationType=Xa.RANGE,this.start=e,this.stop=n,this.label=this.makeLabel()}makeLabel(){const t=new Ya;return t.addRange(this.start,this.stop),t}matches(t,e,n){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class Mc extends Xa{constructor(t,e,n,r){super(t),this.serializationType=Xa.ACTION,this.ruleIndex=e,this.actionIndex=void 0===n?-1:n,this.isCtxDependent=void 0!==r&&r,this.isEpsilon=!0}matches(t,e,n){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class Fc extends Xa{constructor(t,e){super(t),this.serializationType=Xa.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,n){return!1}toString(){return"epsilon"}}class Uc extends ja{constructor(t,e,n){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==n&&n}evaluate(t,e){const n=this.isCtxDependent?e:null;return t.sempred(n,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof Uc&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}ja.NONE=new Uc;class jc extends ec{constructor(t,e,n,r){super(t),this.serializationType=Xa.PREDICATE,this.ruleIndex=e,this.predIndex=n,this.isCtxDependent=r,this.isEpsilon=!0}matches(t,e,n){return!1}getPredicate(){return new Uc(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class Hc extends ja{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?ja.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof Hc&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}ja.PrecedencePredicate=Hc;class Vc extends ec{constructor(t,e){super(t),this.serializationType=Xa.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,n){return!1}getPredicate(){return new Hc(this.precedence)}toString(){return this.precedence+" >= _p"}}class Bc{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}Bc.defaultOptions=new Bc,Bc.defaultOptions.readOnly=!0;class Wc{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new Pa;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class Gc extends Wc{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}Gc.INSTANCE=new Gc;class qc extends Wc{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof qc&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class Yc extends Wc{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof Yc&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class Kc extends Wc{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}Kc.INSTANCE=new Kc;class $c extends Wc{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof $c&&this.type===t.type}toString(){return"type("+this.type+")"}}class Xc extends Wc{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Xc&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class Jc extends Wc{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}Jc.INSTANCE=new Jc;class Qc extends Wc{constructor(t){super(2),this.mode=t}execute(t){t.setMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Qc&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function Zc(t,e){const n=[];return n[t-1]=e,n.map((function(t){return e}))}class tl{constructor(t){null==t&&(t=Bc.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const n=this.readATN();this.readStates(n,e),this.readRules(n,e),this.readModes(n);const r=[];return this.readSets(n,r,this.readInt.bind(this)),e&&this.readSets(n,r,this.readInt32.bind(this)),this.readEdges(n,r),this.readDecisions(n),this.readLexerActions(n,e),this.markPrecedenceDecisions(n),this.verifyATN(n),this.deserializationOptions.generateRuleBypassTransitions&&1===n.grammarType&&(this.generateRuleBypassTransitions(n),this.verifyATN(n)),n}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},n=t.split("").map(e);return n[0]=t.charCodeAt(0),this.data=n,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new xc(t,e)}readStates(t,e){let n,r,i;const o=[],s=[],a=this.readInt();for(let u=0;u<a;u++){const n=this.readInt();if(n===Ka.INVALID_TYPE){t.addState(null);continue}let r=this.readInt();e&&65535===r&&(r=-1);const i=this.stateFactory(n,r);if(n===Ka.LOOP_END){const t=this.readInt();o.push([i,t])}else if(i instanceof wc){const t=this.readInt();s.push([i,t])}t.addState(i)}for(n=0;n<o.length;n++)r=o[n],r[0].loopBackState=t.states[r[1]];for(n=0;n<s.length;n++)r=s[n],r[0].endState=t.states[r[1]];let c=this.readInt();for(n=0;n<c;n++)i=this.readInt(),t.states[i].nonGreedy=!0;let l=this.readInt();for(n=0;n<l;n++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(t,e){let n;const r=this.readInt();for(0===t.grammarType&&(t.ruleToTokenType=Zc(r,0)),t.ruleToStartState=Zc(r,0),n=0;n<r;n++){const r=this.readInt();if(t.ruleToStartState[n]=t.states[r],0===t.grammarType){let r=this.readInt();e&&65535===r&&(r=Na.EOF),t.ruleToTokenType[n]=r}}for(t.ruleToStopState=Zc(r,0),n=0;n<t.states.length;n++){const e=t.states[n];e instanceof $a&&(t.ruleToStopState[e.ruleIndex]=e,t.ruleToStartState[e.ruleIndex].stopState=e)}}readModes(t){const e=this.readInt();for(let n=0;n<e;n++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,n){const r=this.readInt();for(let i=0;i<r;i++){const t=new Ya;e.push(t);const r=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<r;e++){const e=n(),r=n();t.addRange(e,r)}}}readEdges(t,e){let n,r,i,o,s;const a=this.readInt();for(n=0;n<a;n++){const n=this.readInt(),r=this.readInt(),i=this.readInt(),s=this.readInt(),a=this.readInt(),c=this.readInt();o=this.edgeFactory(t,i,n,r,s,a,c,e),t.states[n].addTransition(o)}for(n=0;n<t.states.length;n++)for(i=t.states[n],r=0;r<i.transitions.length;r++){const e=i.transitions[r];if(!(e instanceof Ja))continue;let n=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(n=e.target.ruleIndex),o=new Fc(e.followState,n),t.ruleToStopState[e.target.ruleIndex].addTransition(o)}for(n=0;n<t.states.length;n++){if(i=t.states[n],i instanceof wc){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof Sc)for(r=0;r<i.transitions.length;r++)s=i.transitions[r].target,s instanceof Ic&&(s.loopBackState=i);else if(i instanceof Nc)for(r=0;r<i.transitions.length;r++)s=i.transitions[r].target,s instanceof Oc&&(s.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let n=0;n<e;n++){const e=this.readInt(),r=t.states[e];t.decisionToState.push(r),r.decision=n}}readLexerActions(t,e){if(0===t.grammarType){const n=this.readInt();t.lexerActions=Zc(n,null);for(let r=0;r<n;r++){const n=this.readInt();let i=this.readInt();e&&65535===i&&(i=-1);let o=this.readInt();e&&65535===o&&(o=-1),t.lexerActions[r]=this.lexerActionFactory(n,i,o)}}}generateRuleBypassTransitions(t){let e;const n=t.ruleToStartState.length;for(e=0;e<n;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<n;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let n,r;const i=new Pc;i.ruleIndex=e,t.addState(i);const o=new bc;o.ruleIndex=e,t.addState(o),i.endState=o,t.defineDecisionState(i),o.startState=i;let s=null,a=null;if(t.ruleToStartState[e].isPrecedenceRule){for(a=null,n=0;n<t.states.length;n++)if(r=t.states[n],this.stateIsEndStateFor(r,e)){a=r,s=r.loopBackState.transitions[0];break}if(null===s)throw"Couldn't identify final state of the precedence rule prefix section."}else a=t.ruleToStopState[e];for(n=0;n<t.states.length;n++){r=t.states[n];for(let t=0;t<r.transitions.length;t++){const e=r.transitions[t];e!==s&&e.target===a&&(e.target=o)}}const c=t.ruleToStartState[e],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);t.ruleToStartState[e].addTransition(new Fc(i)),o.addTransition(new Fc(a));const u=new Ec;t.addState(u),u.addTransition(new Dc(o,t.ruleToTokenType[e])),i.addTransition(new Fc(u))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof Oc))return null;const n=t.transitions[t.transitions.length-1].target;return n instanceof Ac&&n.epsilonOnlyTransitions&&n.transitions[0].target instanceof $a?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const n=t.states[e];if(n instanceof Oc&&t.ruleToStartState[n.ruleIndex].isPrecedenceRule){const t=n.transitions[n.transitions.length-1].target;t instanceof Ac&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof $a&&(n.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const n=t.states[e];if(null!==n)if(this.checkCondition(n.epsilonOnlyTransitions||n.transitions.length<=1),n instanceof Ic)this.checkCondition(null!==n.loopBackState);else if(n instanceof Oc)if(this.checkCondition(null!==n.loopBackState),this.checkCondition(2===n.transitions.length),n.transitions[0].target instanceof Lc)this.checkCondition(n.transitions[1].target instanceof Ac),this.checkCondition(!n.nonGreedy);else{if(!(n.transitions[0].target instanceof Ac))throw"IllegalState";this.checkCondition(n.transitions[1].target instanceof Lc),this.checkCondition(n.nonGreedy)}else n instanceof Nc?(this.checkCondition(1===n.transitions.length),this.checkCondition(n.transitions[0].target instanceof Oc)):n instanceof Ac?this.checkCondition(null!==n.loopBackState):n instanceof Rc?this.checkCondition(null!==n.stopState):n instanceof wc?this.checkCondition(null!==n.endState):n instanceof bc?this.checkCondition(null!==n.startState):n instanceof Tc?this.checkCondition(n.transitions.length<=1||n.decision>=0):this.checkCondition(n.transitions.length<=1||n instanceof $a)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(t,e,n,r,i,o,s,a){const c=t.states[r];switch(e){case Xa.EPSILON:return new Fc(c);case Xa.RANGE:return new zc(c,0!==s?Na.EOF:i,o);case Xa.RULE:return new Ja(t.states[i],o,s,c);case Xa.PREDICATE:return new jc(c,i,o,0!==s);case Xa.PRECEDENCE:return new Vc(c,i);case Xa.ATOM:return new Dc(c,0!==s?Na.EOF:i);case Xa.ACTION:return new Mc(c,i,o,0!==s);case Xa.SET:return new Qa(c,a[i]);case Xa.NOT_SET:return new Za(c,a[i]);case Xa.WILDCARD:return new tc(c);default:throw"The specified transition type: "+e+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[Ka.INVALID_TYPE]=null,t[Ka.BASIC]=()=>new Ec,t[Ka.RULE_START]=()=>new Rc,t[Ka.BLOCK_START]=()=>new Pc,t[Ka.PLUS_BLOCK_START]=()=>new Ic,t[Ka.STAR_BLOCK_START]=()=>new Lc,t[Ka.TOKEN_START]=()=>new Cc,t[Ka.RULE_STOP]=()=>new $a,t[Ka.BLOCK_END]=()=>new bc,t[Ka.STAR_LOOP_BACK]=()=>new Nc,t[Ka.STAR_LOOP_ENTRY]=()=>new Oc,t[Ka.PLUS_LOOP_BACK]=()=>new Sc,t[Ka.LOOP_END]=()=>new Ac,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const n=this.stateFactories[t]();if(null!==n)return n.ruleIndex=e,n}}lexerActionFactory(t,e,n){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new qc(t),t[1]=(t,e)=>new Yc(t,e),t[2]=(t,e)=>new Qc(t),t[3]=(t,e)=>Kc.INSTANCE,t[4]=(t,e)=>Jc.INSTANCE,t[5]=(t,e)=>new Xc(t),t[6]=(t,e)=>Gc.INSTANCE,t[7]=(t,e)=>new $c(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,n)}}class el{syntaxError(t,e,n,r,i,o){}reportAmbiguity(t,e,n,r,i,o,s){}reportAttemptingFullContext(t,e,n,r,i,o){}reportContextSensitivity(t,e,n,r,i,o){}}class nl extends el{constructor(){super()}syntaxError(t,e,n,r,i,o){console.error("line "+n+":"+r+" "+i)}}nl.INSTANCE=new nl;class rl extends el{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,n,r,i,o){this.delegates.map((s=>s.syntaxError(t,e,n,r,i,o)))}reportAmbiguity(t,e,n,r,i,o,s){this.delegates.map((a=>a.reportAmbiguity(t,e,n,r,i,o,s)))}reportAttemptingFullContext(t,e,n,r,i,o){this.delegates.map((s=>s.reportAttemptingFullContext(t,e,n,r,i,o)))}reportContextSensitivity(t,e,n,r,i,o){this.delegates.map((s=>s.reportContextSensitivity(t,e,n,r,i,o)))}}class il{constructor(){this._listeners=[nl.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.2";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),n=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let r=0;r<n;r++)this.tokenNames[r]=t[r]||e[r]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const t=this.getTokenNames();if(null===t)throw"The current recognizer does not provide a list of token names.";let e=this.tokenTypeMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,n){t[e]=n})),e.EOF=Na.EOF,this.tokenTypeMapCache[t]=e),e}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,n){t[e]=n})),this.ruleIndexMapCache[t]=e),e}getTokenType(t){const e=this.getTokenTypeMap()[t];return void 0!==e?e:Na.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return null===e&&(e=t.type===Na.EOF?"<EOF>":"<"+t.type+">"),e=e.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+e+"'"}getErrorListenerDispatch(){return console.warn("Calling deprecated method in Recognizer class: getErrorListenerDispatch()"),this.getErrorListener()}getErrorListener(){return new rl(this._listeners)}sempred(t,e,n){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}il.tokenTypeMapCache={},il.ruleIndexMapCache={};class ol extends Na{constructor(t,e,n,r,i){super(),this.source=void 0!==t?t:ol.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==n?n:Na.DEFAULT_CHANNEL,this.start=void 0!==r?r:-1,this.stop=void 0!==i?i:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1}clone(){const t=new ol(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(t){const e=new ol(this.source,t,this.channel,this.start,this.stop);return e.tokenIndex=this.tokenIndex,e.line=this.line,e.column=this.column,t===Na.EOF&&(e.text=""),e}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}ol.EMPTY_SOURCE=[null,null];class sl{}class al extends sl{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,n,r,i,o,s,a){const c=new ol(t,e,r,i,o);return c.line=s,c.column=a,null!==n?c.text=n:this.copyText&&null!==t[1]&&(c.text=t[1].getText(i,o)),c}createThin(t,e){const n=new ol(null,t);return n.text=e,n}}al.DEFAULT=new al;class cl extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,cl),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class ll extends cl{constructor(t,e,n,r){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=n,this.deadEndConfigs=r}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new qa(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class ul extends il{constructor(t){super(),this._input=t,this._factory=al.DEFAULT,this._tokenFactorySourcePair=[this,t],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=Na.DEFAULT_CHANNEL,this._type=Na.INVALID_TYPE,this._modeStack=[],this._mode=ul.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=Na.INVALID_TYPE,this._channel=Na.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=ul.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const t=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=Na.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=Na.INVALID_TYPE;let n=ul.SKIP;try{n=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof cl))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===Na.EOF&&(this._hitEOF=!0),this._type===Na.INVALID_TYPE&&(this._type=n),this._type===ul.SKIP){e=!0;break}if(this._type!==ul.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(t)}}skip(){this._type=ul.SKIP}more(){this._type=ul.MORE}mode(t){console.warn("Calling deprecated method in Lexer class: mode(...)"),this.setMode(t)}setMode(t){this._mode=t}getMode(){return this._mode}getModeStack(){return this._modeStack}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.setMode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.setMode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const t=this.column,e=this.line,n=this._factory.create(this._tokenFactorySourcePair,Na.EOF,null,Na.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emitToken(n),n}getCharIndex(){return this._input.index}getAllTokens(){const t=[];let e=this.nextToken();for(;e.type!==Na.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){const e=this._tokenStartCharIndex,n=this._input.index,r=this._input.getText(e,n),i="token recognition error at: '"+this.getErrorDisplay(r)+"'";this.getErrorListener().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)}getErrorDisplay(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n]);return e.join("")}getErrorDisplayForChar(t){return t.charCodeAt(0)===Na.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(t){this._input.LA(1)!==Na.EOF&&(t instanceof ll?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function pl(t){return t.hashCodeForConfigSet()}function hl(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}ul.DEFAULT_MODE=0,ul.MORE=-2,ul.SKIP=-3,ul.DEFAULT_TOKEN_CHANNEL=Na.DEFAULT_CHANNEL,ul.HIDDEN=Na.HIDDEN_CHANNEL,ul.MIN_CHAR_VALUE=0,ul.MAX_CHAR_VALUE=1114111;class fl{constructor(t){this.configLookup=new Ua(pl,hl),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==ja.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const n=this.configLookup.getOrAdd(t);if(n===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const r=!this.fullCtx,i=_c(n.context,t.context,r,e);return n.reachesIntoOuterContext=Math.max(n.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(n.precedenceFilterSuppressed=!0),n.context=i,!0}getStates(){const t=new Ua;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const n=this.configs[e].semanticContext;n!==ja.NONE&&t.push(n.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const n=this.configs[e];n.context=t.getCachedContext(n.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof fl&&Oa(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new Pa;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new Ua}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return Fa(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==xc.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class dl{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new fl),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new Ua;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const n=this.configs[e];t.add(n.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof dl&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new Pa;return t.update(this.configs),t.finish()}}class yl{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new yc;return mc(t,this.sharedContextCache,e)}}yl.ERROR=new dl(2147483647,new fl);class gl extends fl{constructor(){super(),this.configLookup=new Ua}}class ml extends Ga{constructor(t,e){super(t,e);const n=t.lexerActionExecutor||null;return this.lexerActionExecutor=n||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=ml.prototype.hashCode,this.equalsForConfigSet=ml.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof ml&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof Tc&&e.nonGreedy}}class _l extends Wc{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof _l&&this.offset===t.offset&&this.action===t.action}}class kl{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=Pa.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let n=0;n<this.lexerActions.length;n++)!this.lexerActions[n].isPositionDependent||this.lexerActions[n]instanceof _l||(null===e&&(e=this.lexerActions.concat([])),e[n]=new _l(t,this.lexerActions[n]));return null===e?this:new kl(e)}execute(t,e,n){let r=!1;const i=e.index;try{for(let o=0;o<this.lexerActions.length;o++){let s=this.lexerActions[o];if(s instanceof _l){const t=s.offset;e.seek(n+t),s=s.action,r=n+t!==i}else s.isPositionDependent&&(e.seek(i),r=!1);s.execute(t)}}finally{r&&e.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof kl){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let n=0;n<e;++n)if(!this.lexerActions[n].equals(t.lexerActions[n]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new kl([e]);const n=t.lexerActions.concat([e]);return new kl(n)}}function vl(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class xl{constructor(){vl(this)}reset(){vl(this)}}class El extends yl{constructor(t,e,n,r){super(e,r),this.decisionToDFA=n,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=ul.DEFAULT_MODE,this.prevAccept=new xl}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const n=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const n=this.decisionToDFA[e];return null===n.s0?this.matchATN(t):this.execATN(t,n.s0)}finally{t.release(n)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=ul.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];El.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const n=this.mode,r=this.computeStartState(t,e),i=r.hasSemanticContext;r.hasSemanticContext=!1;const o=this.addDFAState(r);i||(this.decisionToDFA[this.mode].s0=o);const s=this.execATN(t,o);return El.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[n].toLexerString()),s}execATN(t,e){El.debug&&console.log("start state closure="+e.configs),e.isAcceptState&&this.captureSimState(this.prevAccept,t,e);let n=t.LA(1),r=e;for(;;){El.debug&&console.log("execATN loop starting closure: "+r.configs);let e=this.getExistingTargetState(r,n);if(null===e&&(e=this.computeTargetState(t,r,n)),e===yl.ERROR)break;if(n!==Na.EOF&&this.consume(t),e.isAcceptState&&(this.captureSimState(this.prevAccept,t,e),n===Na.EOF))break;n=t.LA(1),r=e}return this.failOrAccept(this.prevAccept,t,r.configs,n)}getExistingTargetState(t,e){if(null===t.edges||e<El.MIN_DFA_EDGE||e>El.MAX_DFA_EDGE)return null;let n=t.edges[e-El.MIN_DFA_EDGE];return void 0===n&&(n=null),El.debug&&null!==n&&console.log("reuse state "+t.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,n){const r=new gl;return this.getReachableConfigSet(t,e.configs,r,n),0===r.items.length?(r.hasSemanticContext||this.addDFAEdge(e,n,yl.ERROR),yl.ERROR):this.addDFAEdge(e,n,null,r)}failOrAccept(t,e,n,r){if(null!==this.prevAccept.dfaState){const n=t.dfaState.lexerActionExecutor;return this.accept(e,n,this.startIndex,t.index,t.line,t.column),t.dfaState.prediction}if(r===Na.EOF&&e.index===this.startIndex)return Na.EOF;throw new ll(this.recog,e,this.startIndex,n)}getReachableConfigSet(t,e,n,r){let i=xc.INVALID_ALT_NUMBER;for(let o=0;o<e.items.length;o++){const s=e.items[o],a=s.alt===i;if(!a||!s.passedThroughNonGreedyDecision){El.debug&&console.log("testing %s at %s\n",this.getTokenName(r),s.toString(this.recog,!0));for(let e=0;e<s.state.transitions.length;e++){const o=s.state.transitions[e],c=this.getReachableTarget(o,r);if(null!==c){let e=s.lexerActionExecutor;null!==e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const o=r===Na.EOF,l=new ml({state:c,lexerActionExecutor:e},s);this.closure(t,l,n,a,!0,o)&&(i=s.alt)}}}}}accept(t,e,n,r,i,o){El.debug&&console.log("ACTION %s\n",e),t.seek(r),this.line=i,this.column=o,null!==e&&null!==this.recog&&e.execute(this.recog,t,n)}getReachableTarget(t,e){return t.matches(e,0,ul.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const n=pc.EMPTY,r=new gl;for(let i=0;i<e.transitions.length;i++){const o=e.transitions[i].target,s=new ml({state:o,alt:i+1,context:n},null);this.closure(t,s,r,!1,!1,!1)}return r}closure(t,e,n,r,i,o){let s=null;if(El.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof $a){if(El.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return n.add(e),!0;n.add(new ml({state:e.state,context:pc.EMPTY},e)),r=!0}if(null!==e.context&&!e.context.isEmpty())for(let a=0;a<e.context.length;a++)if(e.context.getReturnState(a)!==pc.EMPTY_RETURN_STATE){const c=e.context.getParent(a),l=this.atn.states[e.context.getReturnState(a)];s=new ml({state:l,context:c},e),r=this.closure(t,s,n,r,i,o)}return r}e.state.epsilonOnlyTransitions||r&&e.passedThroughNonGreedyDecision||n.add(e);for(let a=0;a<e.state.transitions.length;a++){const c=e.state.transitions[a];s=this.getEpsilonTarget(t,e,c,n,i,o),null!==s&&(r=this.closure(t,s,n,r,i,o))}return r}getEpsilonTarget(t,e,n,r,i,o){let s=null;if(n.serializationType===Xa.RULE){const t=fc.create(e.context,n.followState.stateNumber);s=new ml({state:n.target,context:t},e)}else{if(n.serializationType===Xa.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===Xa.PREDICATE)El.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),r.hasSemanticContext=!0,this.evaluatePredicate(t,n.ruleIndex,n.predIndex,i)&&(s=new ml({state:n.target},e));else if(n.serializationType===Xa.ACTION)if(null===e.context||e.context.hasEmptyPath()){const t=kl.append(e.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);s=new ml({state:n.target,lexerActionExecutor:t},e)}else s=new ml({state:n.target},e);else n.serializationType===Xa.EPSILON?s=new ml({state:n.target},e):n.serializationType!==Xa.ATOM&&n.serializationType!==Xa.RANGE&&n.serializationType!==Xa.SET||o&&n.matches(Na.EOF,0,ul.MAX_CHAR_VALUE)&&(s=new ml({state:n.target},e))}return s}evaluatePredicate(t,e,n,r){if(null===this.recog)return!0;if(!r)return this.recog.sempred(null,e,n);const i=this.column,o=this.line,s=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(null,e,n)}finally{this.column=i,this.line=o,t.seek(s),t.release(a)}}captureSimState(t,e,n){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=n}addDFAEdge(t,e,n,r){if(void 0===n&&(n=null),void 0===r&&(r=null),null===n&&null!==r){const t=r.hasSemanticContext;if(r.hasSemanticContext=!1,n=this.addDFAState(r),t)return n}return e<El.MIN_DFA_EDGE||e>El.MAX_DFA_EDGE||(El.debug&&console.log("EDGE "+t+" -> "+n+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-El.MIN_DFA_EDGE]=n),n}addDFAState(t){const e=new dl(null,t);let n=null;for(let s=0;s<t.items.length;s++){const e=t.items[s];if(e.state instanceof $a){n=e;break}}null!==n&&(e.isAcceptState=!0,e.lexerActionExecutor=n.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[n.state.ruleIndex]);const r=this.decisionToDFA[this.mode],i=r.states.get(e);if(null!==i)return i;const o=e;return o.stateNumber=r.states.length,t.setReadonly(!0),o.configs=t,r.states.add(o),o}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}El.debug=!1,El.dfa_debug=!1,El.MIN_DFA_EDGE=0,El.MAX_DFA_EDGE=127;class Tl{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class wl{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter((t=>t.startsWith("k-"))).map((t=>this.data[t]),this)}}const bl={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(bl.allConfigsInRuleStopStates(e))return!0;if(t===bl.SLL&&e.hasSemanticContext){const t=new fl;for(let n=0;n<e.items.length;n++){let r=e.items[n];r=new Ga({semanticContext:ja.NONE},r),t.add(r)}e=t}const n=bl.getConflictingAltSubsets(e);return bl.hasConflictingAltSet(n)&&!bl.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof $a)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof $a))return!1;return!0},resolvesToJustOneViableAlt:function(t){return bl.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!bl.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let n=0;n<t.length;n++){const r=t[n];if(null===e)e=r;else if(r!==e)return!1}return!0},getUniqueAlt:function(t){const e=bl.getAlts(t);return 1===e.length?e.minValue():xc.INVALID_ALT_NUMBER},getAlts:function(t){const e=new kc;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new yc;return e.hashFunction=function(t){Pa.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){let n=e.get(t);null===n&&(n=new kc,e.set(t,n)),n.set(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new wl;return t.items.map((function(t){let n=e.get(t.state);null===n&&(n=new kc,e.set(t.state,n)),n.set(t.alt)})),e},hasStateAssociatedWithOneAlt:function(t){const e=bl.getStateToAltMap(t).values();for(let n=0;n<e.length;n++)if(1===e[n].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let n=0;n<t.length;n++){const r=t[n].minValue();if(null===e)e=r;else if(e!==r)return xc.INVALID_ALT_NUMBER}return e}},Al=bl;class Rl extends cl{constructor(t,e,n,r,i,o){o=o||t._ctx,r=r||t.getCurrentToken(),n=n||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:o}),this.deadEndConfigs=i,this.startToken=n,this.offendingToken=r}}class Cl{constructor(t){this.defaultMapCtor=t||yc,this.cacheMap=new this.defaultMapCtor}get(t,e){const n=this.cacheMap.get(t)||null;return null===n?null:n.get(e)||null}set(t,e,n){let r=this.cacheMap.get(t)||null;null===r&&(r=new this.defaultMapCtor,this.cacheMap.set(t,r)),r.set(e,n)}}class Sl extends yl{constructor(t,e,n,r){super(e,r),this.parser=t,this.decisionToDFA=n,this.predictionMode=Al.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,n){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=n;const r=this.decisionToDFA[e];this._dfa=r;const i=t.mark(),o=t.index;try{let e;if(e=r.precedenceDfa?r.getPrecedenceStartState(this.parser.getPrecedence()):r.s0,null===e){null===n&&(n=uc.EMPTY),this.debug&&console.log("predictATN decision "+r.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+n.toString(this.parser.ruleNames));const i=!1;let o=this.computeStartState(r.atnStartState,uc.EMPTY,i);r.precedenceDfa?(r.s0.configs=o,o=this.applyPrecedenceFilter(o),e=this.addDFAState(r,new dl(null,o)),r.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(r,new dl(null,o)),r.s0=e)}const i=this.execATN(r,e,t,o,n);return this.debug&&console.log("DFA after predictATN: "+r.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,t.seek(o),t.release(i)}}execATN(t,e,n,r,i){let o;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+t.decision+", DFA state "+e+", LA(1)=="+this.getLookaheadName(n)+" line "+n.LT(1).line+":"+n.LT(1).column);let s=e;this.debug&&console.log("s0 = "+e);let a=n.LA(1);for(;;){let e=this.getExistingTargetState(s,a);if(null===e&&(e=this.computeTargetState(t,s,a)),e===yl.ERROR){const t=this.noViableAlt(n,i,s.configs,r);if(n.seek(r),o=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s.configs,i),o!==xc.INVALID_ALT_NUMBER)return o;throw t}if(e.requiresFullContext&&this.predictionMode!==Al.SLL){let s=null;if(null!==e.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=n.index;if(t!==r&&n.seek(r),s=this.evalSemanticContext(e.predicates,i,!0),1===s.length)return this.debug&&console.log("Full LL avoided"),s.minValue();t!==r&&n.seek(t)}this.dfa_debug&&console.log("ctx sensitive state "+i+" in "+e);const a=!0,c=this.computeStartState(t.atnStartState,i,a);return this.reportAttemptingFullContext(t,s,e.configs,r,n.index),o=this.execATNWithFullContext(t,e,c,n,r,i),o}if(e.isAcceptState){if(null===e.predicates)return e.prediction;const o=n.index;n.seek(r);const s=this.evalSemanticContext(e.predicates,i,!0);if(0===s.length)throw this.noViableAlt(n,i,e.configs,r);return 1===s.length||this.reportAmbiguity(t,e,r,o,!1,s,e.configs),s.minValue()}s=e,a!==Na.EOF&&(n.consume(),a=n.LA(1))}}getExistingTargetState(t,e){const n=t.edges;return null===n?null:n[e+1]||null}computeTargetState(t,e,n){const r=this.computeReachSet(e.configs,n,!1);if(null===r)return this.addDFAEdge(t,e,n,yl.ERROR),yl.ERROR;let i=new dl(null,r);const o=this.getUniqueAlt(r);if(this.debug){const t=Al.getConflictingAltSubsets(r);console.log("SLL altSubSets="+Fa(t)+", configs="+r+", predict="+o+", allSubsetsConflict="+Al.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(r))}return o!==xc.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=o,i.prediction=o):Al.hasSLLConflictTerminatingPrediction(this.predictionMode,r)&&(i.configs.conflictingAlts=this.getConflictingAlts(r),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=xc.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,n,i),i}predicateDFAState(t,e){const n=e.transitions.length,r=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(r,t.configs,n);null!==i?(t.predicates=this.getPredicatePredictions(r,i),t.prediction=xc.INVALID_ALT_NUMBER):t.prediction=r.minValue()}execATNWithFullContext(t,e,n,r,i,o){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+n);let s,a=!1,c=n;r.seek(i);let l=r.LA(1),u=-1;for(;;){if(s=this.computeReachSet(c,l,!0),null===s){const t=this.noViableAlt(r,o,c,i);r.seek(i);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c,o);if(e!==xc.INVALID_ALT_NUMBER)return e;throw t}const t=Al.getConflictingAltSubsets(s);if(this.debug&&console.log("LL altSubSets="+t+", predict="+Al.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+Al.resolvesToJustOneViableAlt(t)),s.uniqueAlt=this.getUniqueAlt(s),s.uniqueAlt!==xc.INVALID_ALT_NUMBER){u=s.uniqueAlt;break}if(this.predictionMode!==Al.LL_EXACT_AMBIG_DETECTION){if(u=Al.resolvesToJustOneViableAlt(t),u!==xc.INVALID_ALT_NUMBER)break}else if(Al.allSubsetsConflict(t)&&Al.allSubsetsEqual(t)){a=!0,u=Al.getSingleViableAlt(t);break}c=s,l!==Na.EOF&&(r.consume(),l=r.LA(1))}return s.uniqueAlt!==xc.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,s,i,r.index),u):(this.reportAmbiguity(t,e,i,r.index,a,null,s),u)}computeReachSet(t,e,n){this.debug&&console.log("in computeReachSet, starting closure: "+t),null===this.mergeCache&&(this.mergeCache=new Cl);const r=new fl(n);let i=null;for(let s=0;s<t.items.length;s++){const o=t.items[s];if(this.debug&&console.log("testing "+this.getTokenName(e)+" at "+o),o.state instanceof $a)(n||e===Na.EOF)&&(null===i&&(i=[]),i.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const n=o.state.transitions[t],i=this.getReachableTarget(n,e);if(null!==i){const t=new Ga({state:i},o);r.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let o=null;if(null===i&&e!==Na.EOF&&(1===r.items.length||this.getUniqueAlt(r)!==xc.INVALID_ALT_NUMBER)&&(o=r),null===o){o=new fl(n);const t=new Ua,i=e===Na.EOF;for(let e=0;e<r.items.length;e++)this.closure(r.items[e],o,t,!1,n,i)}if(e===Na.EOF&&(o=this.removeAllConfigsNotInRuleStopState(o,o===r)),!(null===i||n&&Al.hasConfigInRuleStopState(o)))for(let s=0;s<i.length;s++)o.add(i[s],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+t+" -> "+o),0===o.items.length?null:o}removeAllConfigsNotInRuleStopState(t,e){if(Al.allConfigsInRuleStopStates(t))return t;const n=new fl(t.fullCtx);for(let r=0;r<t.items.length;r++){const i=t.items[r];if(i.state instanceof $a)n.add(i,this.mergeCache);else if(e&&i.state.epsilonOnlyTransitions&&this.atn.nextTokens(i.state).contains(Na.EPSILON)){const t=this.atn.ruleToStopState[i.state.ruleIndex];n.add(new Ga({state:t},i),this.mergeCache)}}return n}computeStartState(t,e,n){const r=gc(this.atn,e),i=new fl(n);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+r.toString(this.parser));for(let o=0;o<t.transitions.length;o++){const e=t.transitions[o].target,s=new Ga({state:e,alt:o+1,context:r},null),a=new Ua;this.closure(s,i,a,!0,n,!1)}return i}applyPrecedenceFilter(t){let e;const n=[],r=new fl(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const o=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==o&&(n[e.state.stateNumber]=e.context,o!==e.semanticContext?r.add(new Ga({semanticContext:o},e),this.mergeCache):r.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=n[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}r.add(e,this.mergeCache)}return r}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,n){let r=[];for(let o=0;o<e.items.length;o++){const n=e.items[o];t.get(n.alt)&&(r[n.alt]=ja.orContext(r[n.alt]||null,n.semanticContext))}let i=0;for(let o=1;o<n+1;o++){const t=r[o]||null;null===t?r[o]=ja.NONE:t!==ja.NONE&&(i+=1)}return 0===i&&(r=null),this.debug&&console.log("getPredsForAmbigAlts result "+Fa(r)),r}getPredicatePredictions(t,e){const n=[];let r=!1;for(let i=1;i<e.length;i++){const o=e[i];null!==t&&t.get(i)&&n.push(new Tl(o,i)),o!==ja.NONE&&(r=!0)}return r?n:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const n=this.splitAccordingToSemanticValidity(t,e),r=n[0],i=n[1];let o=this.getAltThatFinishedDecisionEntryRule(r);return o!==xc.INVALID_ALT_NUMBER||i.items.length>0&&(o=this.getAltThatFinishedDecisionEntryRule(i),o!==xc.INVALID_ALT_NUMBER)?o:xc.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.reachesIntoOuterContext>0||r.state instanceof $a&&r.context.hasEmptyPath())&&e.indexOf(r.alt)<0&&e.push(r.alt)}return 0===e.length?xc.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const n=new fl(t.fullCtx),r=new fl(t.fullCtx);for(let i=0;i<t.items.length;i++){const o=t.items[i];o.semanticContext!==ja.NONE?o.semanticContext.evaluate(this.parser,e)?n.add(o):r.add(o):n.add(o)}return[n,r]}evalSemanticContext(t,e,n){const r=new kc;for(let i=0;i<t.length;i++){const o=t[i];if(o.pred===ja.NONE){if(r.set(o.alt),!n)break;continue}const s=o.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+o+"="+s),s&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+o.alt),r.set(o.alt),!n))break}return r}closure(t,e,n,r,i,o){this.closureCheckingStopState(t,e,n,r,i,0,o)}closureCheckingStopState(t,e,n,r,i,o,s){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof $a){if(!t.context.isEmpty()){for(let a=0;a<t.context.length;a++){if(t.context.getReturnState(a)===pc.EMPTY_RETURN_STATE){if(i){e.add(new Ga({state:t.state,context:pc.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,n,r,i,o,s);continue}const c=this.atn.states[t.context.getReturnState(a)],l=t.context.getParent(a),u={state:c,alt:t.alt,context:l,semanticContext:t.semanticContext},p=new Ga(u,null);p.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(p,e,n,r,i,o-1,s)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,n,r,i,o,s)}closure_(t,e,n,r,i,o,s){const a=t.state;a.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<a.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const l=a.transitions[c],u=r&&!(l instanceof Mc),p=this.getEpsilonTarget(t,l,u,0===o,i,s);if(null!==p){let r=o;if(t.state instanceof $a){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(p.precedenceFilterSuppressed=!0),p.reachesIntoOuterContext+=1,n.getOrAdd(p)!==p)continue;e.dipsIntoOuterContext=!0,r-=1,this.debug&&console.log("dips into outer ctx: "+p)}else{if(!l.isEpsilon&&n.getOrAdd(p)!==p)continue;l instanceof Ja&&r>=0&&(r+=1)}this.closureCheckingStopState(p,e,n,u,i,r,s)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==Ka.STAR_LOOP_ENTRY)return!1;if(e.stateType!==Ka.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const n=t.context.length;for(let o=0;o<n;o++)if(this.atn.states[t.context.getReturnState(o)].ruleIndex!==e.ruleIndex)return!1;const r=e.transitions[0].target.endState.stateNumber,i=this.atn.states[r];for(let o=0;o<n;o++){const n=t.context.getReturnState(o),r=this.atn.states[n];if(1!==r.transitions.length||!r.transitions[0].isEpsilon)return!1;const s=r.transitions[0].target;if(!(r.stateType===Ka.BLOCK_END&&s===e||r===i||s===i||s.stateType===Ka.BLOCK_END&&1===s.transitions.length&&s.transitions[0].isEpsilon&&s.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,n,r,i,o){switch(e.serializationType){case Xa.RULE:return this.ruleTransition(t,e);case Xa.PRECEDENCE:return this.precedenceTransition(t,e,n,r,i);case Xa.PREDICATE:return this.predTransition(t,e,n,r,i);case Xa.ACTION:return this.actionTransition(t,e);case Xa.EPSILON:return new Ga({state:e.target},t);case Xa.ATOM:case Xa.RANGE:case Xa.SET:return o&&e.matches(Na.EOF,0,1)?new Ga({state:e.target},t):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new Ga({state:e.target},t)}precedenceTransition(t,e,n,r,i){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+Fa(this.parser.getRuleInvocationStack())));let o=null;if(n&&r)if(i){const n=this._input.index;this._input.seek(this._startIndex);const r=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(n),r&&(o=new Ga({state:e.target},t))}else{const n=ja.andContext(t.semanticContext,e.getPredicate());o=new Ga({state:e.target,semanticContext:n},t)}else o=new Ga({state:e.target},t);return this.debug&&console.log("config from pred transition="+o),o}predTransition(t,e,n,r,i){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+Fa(this.parser.getRuleInvocationStack())));let o=null;if(n&&(e.isCtxDependent&&r||!e.isCtxDependent))if(i){const n=this._input.index;this._input.seek(this._startIndex);const r=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(n),r&&(o=new Ga({state:e.target},t))}else{const n=ja.andContext(t.semanticContext,e.getPredicate());o=new Ga({state:e.target,semanticContext:n},t)}else o=new Ga({state:e.target},t);return this.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const n=e.followState,r=fc.create(t.context,n.stateNumber);return new Ga({state:e.target,context:r},t)}getConflictingAlts(t){const e=Al.getConflictingAltSubsets(t);return Al.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==xc.INVALID_ALT_NUMBER?(e=new kc,e.set(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(t){if(t===Na.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(t>=this.parser.literalNames.length&&t>=this.parser.symbolicNames.length))return(this.parser.literalNames[t]||this.parser.symbolicNames[t])+"<"+t+">";console.log(t+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+t}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let n=0;n<e.length;n++){const t=e[n];let r="no edges";if(t.state.transitions.length>0){const e=t.state.transitions[0];e instanceof Dc?r="Atom "+this.getTokenName(e.label):e instanceof Qa&&(r=(e instanceof Za?"~":"")+"Set "+e.set)}console.error(t.toString(this.parser,!0)+":"+r)}}noViableAlt(t,e,n,r){return new Rl(this.parser,t,t.get(r),t.LT(1),n,e)}getUniqueAlt(t){let e=xc.INVALID_ALT_NUMBER;for(let n=0;n<t.items.length;n++){const r=t.items[n];if(e===xc.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return xc.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,n,r){if(this.debug&&console.log("EDGE "+e+" -> "+r+" upon "+this.getTokenName(n)),null===r)return null;if(r=this.addDFAState(t,r),null===e||n<-1||n>this.atn.maxTokenType)return r;if(null===e.edges&&(e.edges=[]),e.edges[n+1]=r,this.debug){const e=null===this.parser?null:this.parser.literalNames,n=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,n))}return r}addDFAState(t,e){if(e===yl.ERROR)return e;const n=t.states.get(e);return null!==n?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),n):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,n,r,i){if(this.debug||this.retry_debug){const e=new qa(r,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListener().reportAttemptingFullContext(this.parser,t,r,i,e,n)}reportContextSensitivity(t,e,n,r,i){if(this.debug||this.retry_debug){const e=new qa(r,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+n+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListener().reportContextSensitivity(this.parser,t,r,i,e,n)}reportAmbiguity(t,e,n,r,i,o,s){if(this.debug||this.retry_debug){const t=new qa(n,r+1);console.log("reportAmbiguity "+o+":"+s+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListener().reportAmbiguity(this.parser,t,n,r,i,o,s)}}class Nl{constructor(){this.cache=new yc}add(t){if(t===pc.EMPTY)return pc.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const Ol={ATN:xc,ATNDeserializer:tl,LexerATNSimulator:El,ParserATNSimulator:Sl,PredictionMode:Al,PredictionContextCache:Nl};class Il{constructor(t,e,n){this.dfa=t,this.literalNames=e||[],this.symbolicNames=n||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let n=0;n<e.length;n++){const r=e[n];if(null!==r.edges){const e=r.edges.length;for(let n=0;n<e;n++){const e=r.edges[n]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(r)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(n)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+Fa(t.predicates):e+"=>"+t.prediction.toString():e}}class Ll extends Il{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class Pl{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new Ua,this.s0=null,this.precedenceDfa=!1,t instanceof Oc&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new dl(null,new fl);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new Ua,t){const t=new dl(null,new fl);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new Il(this,t,e).toString()}toLexerString(){return null===this.s0?"":new Ll(this).toString()}get states(){return this._states}}const Dl={DFA:Pl,DFASerializer:Il,LexerDFASerializer:Ll,PredPrediction:Tl},zl={PredictionContext:pc},Ml={Interval:qa,IntervalSet:Ya};class Fl{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class Ul{visit(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class jl{walk(t,e){if(e instanceof ac||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof sc)t.visitTerminal(e);else{this.enterRule(t,e);for(let n=0;n<e.getChildCount();n++){const r=e.getChild(n);this.walk(t,r)}this.exitRule(t,e)}}enterRule(t,e){const n=e.ruleContext;t.enterEveryRule(n),n.enterRule(t)}exitRule(t,e){const n=e.ruleContext;n.exitRule(t),t.exitEveryRule(n)}}jl.DEFAULT=new jl;const Hl={Trees:lc,RuleNode:oc,ErrorNode:ac,TerminalNode:sc,ParseTreeListener:Fl,ParseTreeVisitor:Ul,ParseTreeWalker:jl};class Vl extends cl{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class Bl extends cl{constructor(t,e,n){super({message:Wl(e,n||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const r=t._interp.atn.states[t.state].transitions[0];r instanceof jc?(this.ruleIndex=r.ruleIndex,this.predicateIndex=r.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function Wl(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class Gl extends el{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,n,r,i,o,s){if(this.exactOnly&&!i)return;const a="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(o,s)+", input='"+t.getTokenStream().getText(new qa(n,r))+"'";t.notifyErrorListeners(a)}reportAttemptingFullContext(t,e,n,r,i,o){const s="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new qa(n,r))+"'";t.notifyErrorListeners(s)}reportContextSensitivity(t,e,n,r,i,o){const s="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new qa(n,r))+"'";t.notifyErrorListeners(s)}getDecisionDescription(t,e){const n=e.decision,r=e.atnStartState.ruleIndex,i=t.ruleNames;if(r<0||r>=i.length)return""+n;const o=i[r]||null;return null===o||0===o.length?""+n:`${n} (${o})`}getConflictingAlts(t,e){if(null!==t)return t;const n=new kc;for(let r=0;r<e.items.length;r++)n.set(e.items[r].alt);return`{${n.values().join(", ")}}`}}class ql extends Error{constructor(){super(),Error.captureStackTrace(this,ql)}}class Yl{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class Kl extends Yl{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof Rl?this.reportNoViableAlternative(t,e):e instanceof Vl?this.reportInputMismatch(t,e):e instanceof Bl?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const n=this.getErrorRecoverySet(t);this.consumeUntil(t,n)}sync(t){if(this.inErrorRecoveryMode(t))return;const e=t._interp.atn.states[t.state],n=t.getTokenStream().LA(1),r=t.atn.nextTokens(e);if(r.contains(n))return this.nextTokensContext=null,void(this.nextTokenState=Ka.INVALID_STATE_NUMBER);if(r.contains(Na.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t._ctx,this.nextTokensState=t._stateNumber);else switch(e.stateType){case Ka.BLOCK_START:case Ka.STAR_BLOCK_START:case Ka.PLUS_BLOCK_START:case Ka.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new Vl(t);case Ka.PLUS_LOOP_BACK:case Ka.STAR_LOOP_BACK:{this.reportUnwantedToken(t);const e=new Ya;e.addSet(t.getExpectedTokens());const n=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,n)}}}reportNoViableAlternative(t,e){const n=t.getTokenStream();let r;r=null!==n?e.startToken.type===Na.EOF?"<EOF>":n.getText(new qa(e.startToken.tokenIndex,e.offendingToken.tokenIndex)):"<unknown input>";const i="no viable alternative at input "+this.escapeWSAndQuote(r);t.notifyErrorListeners(i,e.offendingToken,e)}reportInputMismatch(t,e){const n="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e.offendingToken,e)}reportFailedPredicate(t,e){const n="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(n,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),n="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(n,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),n="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(n,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new Vl(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),n=t._interp.atn,r=n.states[t.state].transitions[0].target;return!!n.nextTokens(r,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(t){const e=t.getCurrentToken(),n=this.getExpectedTokens(t).first();let r;r=n===Na.EOF?"<missing EOF>":"<missing "+t.literalNames[n]+">";let i=e;const o=t.getTokenStream().LT(-1);return i.type===Na.EOF&&null!==o&&(i=o),t.getTokenFactory().create(i.source,n,r,Na.DEFAULT_CHANNEL,-1,-1,i.line,i.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return null===e&&(e=t.type===Na.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const e=t._interp.atn;let n=t._ctx;const r=new Ya;for(;null!==n&&n.invokingState>=0;){const t=e.states[n.invokingState].transitions[0],i=e.nextTokens(t.followState);r.addSet(i),n=n.parentCtx}return r.removeOne(Na.EPSILON),r}consumeUntil(t,e){let n=t.getTokenStream().LA(1);for(;n!==Na.EOF&&!e.contains(n);)t.consume(),n=t.getTokenStream().LA(1)}}class $l extends Kl{constructor(){super()}recover(t,e){let n=t._ctx;for(;null!==n;)n.exception=e,n=n.parentCtx;throw new ql(e)}recoverInline(t){this.recover(t,new Vl(t))}sync(t){}}const Xl={RecognitionException:cl,NoViableAltException:Rl,LexerNoViableAltException:ll,InputMismatchException:Vl,FailedPredicateException:Bl,DiagnosticErrorListener:Gl,BailErrorStrategy:$l,DefaultErrorStrategy:Kl,ErrorListener:el};class Jl{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let n=0;n<this.strdata.length;){const t=this.strdata.codePointAt(n);this.data.push(t),n+=t<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(t){if(0===t)return 0;t<0&&(t+=1);const e=this._index+t-1;return e<0||e>=this._size?Na.EOF:this.data[e]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let n="";for(let r=t;r<=e;r++)n+=String.fromCodePoint(this.data[r]);return n}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class Ql extends Jl{constructor(t,e){super(t,e)}}var Zl=Ca(763);const tu="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class eu extends Ql{static fromPath(t,e,n){if(!tu)throw new Error("FileStream is only available when running in Node!");Zl.readFile(t,e,(function(t,e){let r=null;null!==e&&(r=new Jl(e,!0)),n(t,r)}))}constructor(t,e,n){if(!tu)throw new Error("FileStream is only available when running in Node!");super(Zl.readFileSync(t,e||"utf-8"),n),this.fileName=t}}const nu={fromString:function(t){return new Jl(t,!0)},fromBlob:function(t,e,n,r){const i=new window.FileReader;i.onload=function(t){const e=new Jl(t.target.result,!0);n(e)},i.onerror=r,i.readAsText(t,e)},fromBuffer:function(t,e){return new Jl(t.toString(e),!0)},fromPath:function(t,e,n){eu.fromPath(t,e,n)},fromPathSync:function(t,e){return new eu(t,e)}},ru={arrayToString:Fa,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}};class iu{}class ou extends iu{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let t=!1;if(t=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!t&&this.LA(1)===Na.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===Na.EOF)return this.fetchedEOF=!0,e+1}return t}getTokens(t,e,n){if(void 0===n&&(n=null),t<0||e<0)return null;this.lazyInit();const r=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(let i=t;i<e;i++){const t=this.tokens[i];if(t.type===Na.EOF)break;(null===n||n.contains(t.type))&&r.push(t)}return r}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.tokens.length)return-1;let n=this.tokens[t];for(;n.channel!==e;){if(n.type===Na.EOF)return-1;t+=1,this.sync(t),n=this.tokens[t]}return t}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const n=this.nextTokenOnChannel(t+1,ul.DEFAULT_TOKEN_CHANNEL),r=t+1,i=-1===n?this.tokens.length-1:n;return this.filterForChannel(r,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const n=this.previousTokenOnChannel(t-1,ul.DEFAULT_TOKEN_CHANNEL);if(n===t-1)return null;const r=n+1,i=t-1;return this.filterForChannel(r,i,e)}filterForChannel(t,e,n){const r=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===n?t.channel!==ul.DEFAULT_TOKEN_CHANNEL&&r.push(t):t.channel===n&&r.push(t)}return 0===r.length?null:r}getSourceName(){return this.tokenSource.getSourceName()}getText(t){this.lazyInit(),this.fill(),t||(t=new qa(0,this.tokens.length-1));let e=t.start;e instanceof Na&&(e=e.tokenIndex);let n=t.stop;if(n instanceof Na&&(n=n.tokenIndex),null===e||null===n||e<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);let r="";for(let i=e;i<n+1;i++){const t=this.tokens[i];if(t.type===Na.EOF)break;r+=t.text}return r}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(ou,"size",{get:function(){return this.tokens.length}});class su extends ou{constructor(t,e){super(t),this.channel=void 0===e?Na.DEFAULT_CHANNEL:e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,n=1;for(;n<=t;)e=this.previousTokenOnChannel(e-1,this.channel),n+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,n=1;for(;n<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),n+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e=0;e<this.tokens.length;e++){const n=this.tokens[e];if(n.channel===this.channel&&(t+=1),n.type===Na.EOF)break}return t}}class au extends Fl{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class cu extends il{constructor(t){super(),this._input=null,this._errHandler=new Kl,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach((function(e){e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach((function(e){t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const n=new Bc;n.generateRuleBypassTransitions=!0,e=new tl(n).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,n){n=n||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const r=e.line,i=e.column;this.getErrorListener().syntaxError(this,e,r,i,t,n)}consume(){const t=this.getCurrentToken();t.type!==Na.EOF&&this.getInputStream().consume();const e=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||e){let n;n=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(t):this._ctx.addTokenNode(t),n.invokingState=this.state,e&&this._parseListeners.forEach((function(t){n instanceof ac||void 0!==n.isErrorNode&&n.isErrorNode()?t.visitErrorNode(n):n instanceof sc&&t.visitTerminal(n)}))}return t}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(t,e,n){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,n,r){this.state=e,this._precedenceStack.push(r),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,n){const r=this._ctx;r.parentCtx=t,r.invokingState=e,r.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=r.start,this.buildParseTrees&&this._ctx.addChild(r),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,n=this.getParseListeners();if(null!==n&&n.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(t){const e=this._interp.atn;let n=this._ctx;const r=e.states[this.state];let i=e.nextTokens(r);if(i.contains(t))return!0;if(!i.contains(Na.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&i.contains(Na.EPSILON);){const r=e.states[n.invokingState].transitions[0];if(i=e.nextTokens(r.followState),i.contains(t))return!0;n=n.parentCtx}return!(!i.contains(Na.EPSILON)||t!==Na.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const n=t.ruleIndex;n<0?e.push("n/a"):e.push(this.ruleNames[n]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const n=this._interp.decisionToDFA[e];n.states.length>0&&(t&&console.log(),this.printer.println("Decision "+n.decision+":"),this.printer.print(n.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.getSourceName()}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new au(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}cu.bypassAltsAtnCache={};class lu extends sc{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return qa.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new qa(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===Na.EOF?"<EOF>":this.symbol.text}}class uu extends lu{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class pu extends uc{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof uu&&(this.children.push(t),t.parentCtx=this)}),this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new lu(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new uu(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let n=0;n<this.children.length;n++){const r=this.children[n];if(r instanceof e){if(0===t)return r;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let n=0;n<this.children.length;n++){const r=this.children[n];if(r instanceof sc&&r.symbol.type===t){if(0===e)return r;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let n=0;n<this.children.length;n++){const r=this.children[n];r instanceof sc&&r.symbol.type===t&&e.push(r)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let n=0;n<this.children.length;n++){const r=this.children[n];r instanceof t&&e.push(r)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?qa.INVALID_INTERVAL:new qa(this.start.tokenIndex,this.stop.tokenIndex)}}uc.EMPTY=new pu;class hu{static DEFAULT_PROGRAM_NAME="default";constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hu.DEFAULT_PROGRAM_NAME;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new yu(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hu.DEFAULT_PROGRAM_NAME;n="number"==typeof t?t:t.tokenIndex;const i=this.getProgram(r),o=new du(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hu.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,n)}replace(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hu.DEFAULT_PROGRAM_NAME;if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(r),o=new gu(this.tokens,t,e,i.length,n);i.push(o)}delete(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hu.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,n)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hu.DEFAULT_PROGRAM_NAME;e=t instanceof qa?t:new qa(0,this.tokens.size-1),"string"==typeof t&&(n=t);const r=this.programs.get(n);let i=e.start,o=e.stop;if(o>this.tokens.size-1&&(o=this.tokens.size-1),i<0&&(i=0),null==r||0===r.length)return this.tokens.getText(new qa(i,o));let s=[],a=this.reduceToSingleOperationPerIndex(r),c=i;for(;c<=o&&c<this.tokens.size;){let t=a.get(c);a.delete(c);let e=this.tokens.get(c);null==t?(e.type!==Na.EOF&&s.push(String(e.text)),c++):c=t.execute(s)}if(o===this.tokens.size-1)for(const l of a.values())l.index>=this.tokens.size-1&&s.push(l.text.toString());return s.join("")}reduceToSingleOperationPerIndex(t){for(let n=0;n<t.length;n++){let e=t[n];if(null==e)continue;if(!(e instanceof gu))continue;let r=e,i=this.getKindOfOps(t,du,n);for(let n of i)n.index===r.index?(t[n.instructionIndex]=void 0,r.text=n.text.toString()+(null!=r.text?r.text.toString():"")):n.index>r.index&&n.index<=r.lastIndex&&(t[n.instructionIndex]=void 0);let o=this.getKindOfOps(t,gu,n);for(let n of o){if(n.index>=r.index&&n.lastIndex<=r.lastIndex){t[n.instructionIndex]=void 0;continue}let e=n.lastIndex<r.index||n.index>r.lastIndex;if(null!=n.text||null!=r.text||e){if(!e)throw new Error(`replace op boundaries of ${r} overlap with previous ${n}`)}else t[n.instructionIndex]=void 0,r.index=Math.min(n.index,r.index),r.lastIndex=Math.max(n.lastIndex,r.lastIndex)}}for(let n=0;n<t.length;n++){let e=t[n];if(null==e)continue;if(!(e instanceof du))continue;let r=e,i=this.getKindOfOps(t,du,n);for(let n of i)n.index===r.index&&(n instanceof yu?(r.text=this.catOpText(n.text,r.text),t[n.instructionIndex]=void 0):n instanceof du&&(r.text=this.catOpText(r.text,n.text),t[n.instructionIndex]=void 0));let o=this.getKindOfOps(t,gu,n);for(let s of o)if(r.index!==s.index){if(r.index>=s.index&&r.index<=s.lastIndex)throw new Error(`insert op ${r} within boundaries of previous ${s}`)}else s.text=this.catOpText(r.text,s.text),t[n]=void 0}let e=new Map;for(let n of t)if(null!=n){if(null!=e.get(n.index))throw new Error("should only be one op per index");e.set(n.index,n)}return e}catOpText(t,e){let n="",r="";return null!=t&&(n=t.toString()),null!=e&&(r=e.toString()),n+r}getKindOfOps(t,e,n){return t.slice(0,n).filter((t=>t&&t instanceof e))}}class fu{constructor(t,e,n,r){this.tokens=t,this.instructionIndex=n,this.index=e,this.text=void 0===r?"":r}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class du extends fu{constructor(t,e,n,r){super(t,e,n,r)}execute(t){return this.text&&t.push(this.text.toString()),this.tokens.get(this.index).type!==Na.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}class yu extends du{constructor(t,e,n,r){super(t,e+1,n,r)}}class gu extends fu{constructor(t,e,n,r,i){super(t,e,r,i),this.lastIndex=n}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}const mu={atn:Ol,dfa:Dl,context:zl,misc:Ml,tree:Hl,error:Xl,Token:Na,CommonToken:ol,CharStreams:nu,CharStream:Jl,InputStream:Ql,CommonTokenStream:su,Lexer:ul,Parser:cu,ParserRuleContext:pu,Interval:qa,IntervalSet:Ya,LL1Analyzer:vc,Utils:ru,TokenStreamRewriter:hu};var _u=Sa.Ay;function ku(t,e){const n=function(t,e){return function(t,e){var n=new jr.InputStream(t),r=new wa;if(ba(n,r),r.errors.length>0)throw new Error("Syntax errors: ".concat(r.errors));n.reset();var i=new wa,o=ba(n,i),s=new Ta(e).visit(o.expr());if(i.errors.length>0)throw new Error("Type errors:\n\t ".concat(i.errors));return{type:s.type,resolve:function(){return s.resolve(e)}}}(t,e).resolve()}(t,ge(e,((t,e)=>[t,vu(e)])));return function(t){return"object"==typeof t&&null!==t&&"dataPoints"in t&&null!==t.dataPoints&&"object"==typeof t.dataPoints&&"result"in t.dataPoints}(n)?function(t){const{dataPoints:e}=t;if(e){const{result:t}=e;return t}return}(n):n}function vu(t){return void 0===t?null:Array.isArray(t)?{dataStructure:{result:{}},dataPoints:{result:t}}:t}function xu(t){return"string"==typeof t||"number"==typeof t?t.toString():t&&"object"==typeof t&&"value"in t&&("string"==typeof t.value||"number"==typeof t.value)?t.value.toString():""}function Eu(t,e={}){switch(t.variableType){case"EXTERNAL":case"CALCULATED":return e[t.variableType]?.[t.name];case"COLLECTED":{const n=e.COLLECTED?.[t.name]?.COLLECTED;return"values"in t&&t.values?n??t.values.COLLECTED:n}default:return null}}const Tu=function(t,e,n){return Array.isArray(t)?t.length!==e?new Array(e).fill(n).reduce((function(e,n,r){return r<t.length?[...e,t[r]]:[...e,n]}),[]):t:new Array(e).fill(n)};function wu(t,e){if(!e)return;const n=new Map(Object.entries(e));t.on("change",(e=>{const r=n.get(e.detail.name);if(!r)return;if("sizeForLinksVariables"in r&&(function(t,e,n){const r=Array.isArray(e.sizeForLinksVariables)?e.sizeForLinksVariables:[e.sizeForLinksVariables.xAxisSize,e.sizeForLinksVariables.yAxisSize],[i,o]=r.map((e=>je(t.run(xu(e)))));e.linksVariables.forEach((e=>{const r=t.get(e,n.iteration),s=S(Array.isArray(r)?r.map((t=>S(t,o,null))):[],i,new Array(o).fill(null));t.set(e,s)}))}(t,r,e.detail),!("size"in r)))return;if(!r.size)throw new Error(`Cannot resize ${e.detail.name} missing "size" property`);const i=je(t.run(r.size));for(const n of r.variables){const e=t.get(n);Array.isArray(e)&&e.length===i||t.set(n,Tu(e,i,null),{cause:"resizing"})}}))}function bu(t,e){return e&&0!==e.length?Array.isArray(t)?bu(t[e[0]],e.slice(1)):null:t??null}class Au extends Error{expression;constructor(t,e){super(`Cannot interpret expression "${t}" ${e}`),this.expression=t}}class Ru extends Au{expression;bindings;constructor(t,e){super(t,`with bindings ${JSON.stringify(e)}`),this.expression=t,this.bindings=e}}class Cu extends Au{expression;variableName;constructor(t,e){super(t,`unknown variable ${e}`),this.expression=t,this.variableName=e}}class Su extends Au{expression;dependencies;constructor(t,e){super(t,`unknown dependencies ${JSON.stringify(e)}`),this.expression=t,this.dependencies=e}}let Nu=0;class Ou{dictionary=new Map;eventTarget=new EventTarget;constructor(){Nu=0}static makeFromSource(t,e,n){const r=new Ou;if(!t.variables)return r;const i={},o={};for(const a of t.variables)i[a.name]=Eu(a),o[a.name]=Eu(a,e);r.set("1",1);for(const a of t.variables)switch(a.variableType){case"CALCULATED":r.setCalculated(a.name,a.expression.value,{dependencies:a.bindingDependencies,iterationDepth:(s=a.name,"xAxis"===s?0:"yAxis"===s?1:void 0),shapeFrom:a.shapeFrom??"1"});break;case"COLLECTED":case"EXTERNAL":r.set(a.name,o[a.name??null])}var s;return r.on("change",(t=>n?.current?.(t.detail))),function(t,e,n={}){if(!e)return;const r=new Map(Object.entries(e));t.on("change",(e=>{const i=r.get(e.detail.name),o=e.detail.iteration;if(i)for(const r in i)try{if(t.run(i[r],{iteration:o}))continue;const e=0===N(n[r])?void 0:o?.slice(0,N(n[r]));t.set(r,bu(n[r],e),{iteration:e,cause:"cleaning"})}catch(e){console.error(e)}}))}(r,t.cleaning,i),wu(r,t.resizing),function(t,e){if(!e)return;const n=new Map(Object.entries(e));t.on("change",(e=>{if(null===e.detail.value||void 0===e.detail.value)return;const r=n.get(e.detail.name);if(r)for(const n of r)t.set(n,null,{iteration:e.detail.iteration})}))}(r,t.missingBlock),r}static makeFromObject(t={}){const e=new Ou;for(const n of Object.keys(t))e.set(n,t[n]);return e}get(t,e){return this.dictionary.has(t)?this.dictionary.get(t).getValue(e):null}set(t,e,n={}){this.dictionary.has(t)||(this.dictionary.set(t,new Iu({name:t})),this.eventTarget.dispatchEvent(new CustomEvent("change",{detail:{...n,name:t,value:e}})));const r=this.dictionary.get(t);return r.setValue(e,n.iteration)&&this.eventTarget.dispatchEvent(new CustomEvent("change",{detail:{...n,name:t,value:e}})),r}setCalculated(t,e,{dependencies:n,iterationDepth:r,shapeFrom:i}={}){if(this.dictionary.has(t))return this.dictionary.get(t);const o=new Iu({expression:e,dictionary:this.dictionary,shapeFrom:i,dependencies:n,iterationDepth:r,name:t});return this.dictionary.set(t,o),o}run(t,e={}){return this.setCalculated(t,t,{dependencies:e.deps}).getValue(e.iteration)}on(t,e){this.eventTarget.addEventListener(t,e)}off(t,e){this.eventTarget.removeEventListener(t,e)}get interpretCount(){return Nu}debug(){console.table(Array.from(this.dictionary.values()).sort(((t,e)=>e.calculatedCount-t.calculatedCount)).slice(0,25).map((t=>({name:t.name,calculations:t.calculatedCount,expression:t.expression})))),console.log("Total calculations : "+Array.from(this.dictionary.values()).reduce(((t,e)=>t+e.calculatedCount),0)),Array.from(this.dictionary.values()).map((t=>t.calculatedCount=0))}}class Iu{updatedAt=new Map;calculatedAt=new Map;value;dependencies;expression;dictionary;iterationDepth;shapeFrom;name;calculatedCount=0;constructor(t={}){if(t.expression&&!t.dictionary)throw new Error("A calculated variable needs a dictionary to retrieve his deps");this.expression=t.expression,this.dictionary=t.dictionary,this.dependencies=t.dependencies,this.iterationDepth=t.iterationDepth,this.shapeFrom="string"==typeof t.shapeFrom?[t.shapeFrom]:t.shapeFrom,this.name=t.name??t.expression}getValue(t){if(!this.expression)return this.getSavedValue(t);const e=this.shapeFrom?function(t){let e=t[0],n=-1;for(const r of t)Array.isArray(r)&&r.length>n&&(n=r.length,e=r),!Array.isArray(r)&&n<0&&(e=r);return e}(this.shapeFrom.map((t=>this.dictionary?.get(t)?.getValue()))):null;if(!t&&Array.isArray(e))return e.map(((t,e)=>this.getValue([e])));this.name===this.expression||Array.isArray(e)||(t=void 0);const n=this.getDependenciesValues(t);if(0===Object.keys(n).length&&(t=void 0),this.shapeFrom&&!this.isOutdated(t))return this.getSavedValue(t);(function(){try{return"true"==`${process.env.VITEST}`}catch{return!1}})()&&Nu++;const r=Lu(e);Array.isArray(t)&&Array.isArray(e)&&r<t.length&&(t=t.slice(0,r));try{this.setValue(ku(this.expression,n),t)}catch{throw new Ru(this.expression,n)}return this.updateTimestamps(t,"calculatedAt"),this.getSavedValue(t)}setValue(t,e){return t!==this.getSavedValue(e)&&(Array.isArray(t)&&!Array.isArray(e)?this.setValueForArray(t):(void 0===e||Array.isArray(this.value)||(this.value=[]),this.value=Array.isArray(e)?C(this.value,e,t):t,this.updateTimestamps(e,"updatedAt"),!0))}updateTimestamps(t,e){for(const n of function(t){if(!Array.isArray(t))return[];if(1===t.length)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(t.slice(0,n));return e}(t))this[e].set(n.join("."),performance.now());this[e].set(void 0,performance.now())}setValueForArray(t){const e=this.getSavedValue(),n=Array.isArray(e)?e.length:-1,r=t.length;if(0===r)return this.value=[],n!==r;const i=void 0!==R(Math.max(n,r),(e=>this.setValue(t[e],[e]))).find((t=>t));return n>r&&Array.isArray(this.value)&&(this.value=this.value.slice(0,r)),i}getSavedValue(t){if(!Array.isArray(t))return this.value;let e=this.value;for(const n of t){if(!Array.isArray(e))return e;e=e[n]}return e}getDependencies(){return void 0===this.dependencies&&(this.dependencies=function(t){try{const e=new _u.InputStream(t),n=new Hr.PT(e).getAllTokens().reduce((function(e,{start:n,stop:r,type:i}){return i===Hr.PT.IDENTIFIER&&e.add(t.substring(n,r+1)),e}),new Set);return n.delete(t),Array.from(n)}catch{return[]}}(this.expression)),this.dependencies}getDependenciesValues(t){try{return Object.fromEntries(this.getDependencies().map((e=>{if("GLOBAL_ITERATION_INDEX"===e&&t)return[e,t[0]+1];const n=He(this.iterationDepth)&&Array.isArray(t)?[t[this.iterationDepth]]:t;if(!this.dictionary||!this.dictionary?.has(e))throw new Cu(this.expression,e);return[e,this.dictionary.get(e)?.getValue(n)]})))}catch(e){if(e instanceof RangeError)throw new Su(this.expression,this.getDependencies());throw e}}isOutdated(t){return Math.max(0,...this.getDependencies().map((e=>this.dictionary?.get(e)?.updatedAt.get(t?.join("."))??this.dictionary?.get(e)?.updatedAt.get(void 0)??0)))>(this.calculatedAt.get(t?.join("."))??-1)}}function Lu(t){return Array.isArray(t)?1+Lu(t[0]):0}const Pu=function(t){return"Loop"===t.componentType&&t.paginatedLoop};function Du(t){const{componentType:e}=t;return"Roundabout"===e}function zu(t,e=[]){if(!("components"in t))return[];const{components:n}=t;return n.reduce(((t,e)=>{const{page:n}=e;return n&&-1===t.indexOf(n)?[...t,n]:t}),e)}const Mu=function(t){return Object.entries(t).reduce(((t,e)=>{const[n,r]=e;if("unpaged"===n)return t;const{components:i}=r,{isLoop:o,subPages:s,iterations:a,loopDependencies:c}=function(t=[]){return t.reduce((function({isLoop:t,subPages:e,iterations:n,loopDependencies:r,roundabout:i},o){const s=Pu(o),a=Du(o);return s||a?{isLoop:t||s,roundabout:i||a,subPages:zu(o,e),iterations:n||o.iterations,loopDependencies:r||void 0}:{isLoop:t,subPages:e,iterations:n,roundabout:i}}),{isLoop:!1,subPages:void 0,iterations:void 0,loopDependencies:void 0,roundabout:void 0})}(i);return{...t,[n]:{...r,isLoop:o,subPages:s,iterations:a,loopDependencies:c}}}),{})};function Fu(t,e,n){if(e||(e="unpaged"),e in n){const r=n[e],{components:i}=r;return{...n,[e]:{...r,components:[...i,t]}}}return{...n,[e]:{components:[t]}}}const Uu=function(t){const{components:e}=t;return function(t){const{maxPage:e}=t;return void 0===e}(t)?{1:{components:e,isLoop:!1}}:e.reduce(((t,e)=>Pu(e)||Du(e)?Fu(e,e.page,function(t,e){return t.reduce((function(t,e){return"page"in e&&e.page?Fu(e,e.page,t):t}),e)}(e.components,t)):"page"in e&&e.page?Fu(e,e.page,t):t),{})},ju="VTL",Hu="MD";const Vu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wu={};function Gu(t,e){return((e||Wu).jsx?Bu:Vu).test(t)}const qu=/[ \t\n\f\r]/g;function Yu(t){return""===t.replace(qu,"")}class Ku{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}function $u(t,e){const n={},r={};let i=-1;for(;++i<t.length;)Object.assign(n,t[i].property),Object.assign(r,t[i].normal);return new Ku(n,r,e)}function Xu(t){return t.toLowerCase()}Ku.prototype.property={},Ku.prototype.normal={},Ku.prototype.space=null;class Ju{constructor(t,e){this.property=t,this.attribute=e}}Ju.prototype.space=null,Ju.prototype.boolean=!1,Ju.prototype.booleanish=!1,Ju.prototype.overloadedBoolean=!1,Ju.prototype.number=!1,Ju.prototype.commaSeparated=!1,Ju.prototype.spaceSeparated=!1,Ju.prototype.commaOrSpaceSeparated=!1,Ju.prototype.mustUseProperty=!1,Ju.prototype.defined=!1;let Qu=0;const Zu=sp(),tp=sp(),ep=sp(),np=sp(),rp=sp(),ip=sp(),op=sp();function sp(){return 2**++Qu}const ap=Object.keys(r);class cp extends Ju{constructor(t,e,n,i){let o=-1;if(super(t,e),lp(this,"space",i),"number"==typeof n)for(;++o<ap.length;){const t=ap[o];lp(this,ap[o],(n&r[t])===r[t])}}}function lp(t,e,n){n&&(t[e]=n)}cp.prototype.defined=!0;const up={}.hasOwnProperty;function pp(t){const e={},n={};let r;for(r in t.properties)if(up.call(t.properties,r)){const i=t.properties[r],o=new cp(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[Xu(r)]=r,n[Xu(o.attribute)]=r}return new Ku(e,n,t.space)}const hp=pp({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fp=pp({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dp(t,e){return e in t?t[e]:e}function yp(t,e){return dp(t,e.toLowerCase())}const gp=pp({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yp,properties:{xmlns:null,xmlnsXLink:null}}),mp=pp({transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tp,ariaAutoComplete:null,ariaBusy:tp,ariaChecked:tp,ariaColCount:np,ariaColIndex:np,ariaColSpan:np,ariaControls:rp,ariaCurrent:null,ariaDescribedBy:rp,ariaDetails:null,ariaDisabled:tp,ariaDropEffect:rp,ariaErrorMessage:null,ariaExpanded:tp,ariaFlowTo:rp,ariaGrabbed:tp,ariaHasPopup:null,ariaHidden:tp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rp,ariaLevel:np,ariaLive:null,ariaModal:tp,ariaMultiLine:tp,ariaMultiSelectable:tp,ariaOrientation:null,ariaOwns:rp,ariaPlaceholder:null,ariaPosInSet:np,ariaPressed:tp,ariaReadOnly:tp,ariaRelevant:null,ariaRequired:tp,ariaRoleDescription:rp,ariaRowCount:np,ariaRowIndex:np,ariaRowSpan:np,ariaSelected:tp,ariaSetSize:np,ariaSort:null,ariaValueMax:np,ariaValueMin:np,ariaValueNow:np,ariaValueText:null,role:null}}),_p=pp({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yp,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ip,acceptCharset:rp,accessKey:rp,action:null,allow:null,allowFullScreen:Zu,allowPaymentRequest:Zu,allowUserMedia:Zu,alt:null,as:null,async:Zu,autoCapitalize:null,autoComplete:rp,autoFocus:Zu,autoPlay:Zu,blocking:rp,capture:null,charSet:null,checked:Zu,cite:null,className:rp,cols:np,colSpan:null,content:null,contentEditable:tp,controls:Zu,controlsList:rp,coords:np|ip,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Zu,defer:Zu,dir:null,dirName:null,disabled:Zu,download:ep,draggable:tp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Zu,formTarget:null,headers:rp,height:np,hidden:Zu,high:np,href:null,hrefLang:null,htmlFor:rp,httpEquiv:rp,id:null,imageSizes:null,imageSrcSet:null,inert:Zu,inputMode:null,integrity:null,is:null,isMap:Zu,itemId:null,itemProp:rp,itemRef:rp,itemScope:Zu,itemType:rp,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Zu,low:np,manifest:null,max:null,maxLength:np,media:null,method:null,min:null,minLength:np,multiple:Zu,muted:Zu,name:null,nonce:null,noModule:Zu,noValidate:Zu,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Zu,optimum:np,pattern:null,ping:rp,placeholder:null,playsInline:Zu,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Zu,referrerPolicy:null,rel:rp,required:Zu,reversed:Zu,rows:np,rowSpan:np,sandbox:rp,scope:null,scoped:Zu,seamless:Zu,selected:Zu,shadowRootClonable:Zu,shadowRootDelegatesFocus:Zu,shadowRootMode:null,shape:null,size:np,sizes:null,slot:null,span:np,spellCheck:tp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:np,step:null,style:null,tabIndex:np,target:null,title:null,translate:null,type:null,typeMustMatch:Zu,useMap:null,value:tp,width:np,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:rp,axis:null,background:null,bgColor:null,border:np,borderColor:null,bottomMargin:np,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Zu,declare:Zu,event:null,face:null,frame:null,frameBorder:null,hSpace:np,leftMargin:np,link:null,longDesc:null,lowSrc:null,marginHeight:np,marginWidth:np,noResize:Zu,noHref:Zu,noShade:Zu,noWrap:Zu,object:null,profile:null,prompt:null,rev:null,rightMargin:np,rules:null,scheme:null,scrolling:tp,standby:null,summary:null,text:null,topMargin:np,valueType:null,version:null,vAlign:null,vLink:null,vSpace:np,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Zu,disableRemotePlayback:Zu,prefix:null,property:null,results:np,security:null,unselectable:null}}),kp=pp({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:dp,properties:{about:op,accentHeight:np,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:np,amplitude:np,arabicForm:null,ascent:np,attributeName:null,attributeType:null,azimuth:np,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:np,by:null,calcMode:null,capHeight:np,className:rp,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:np,diffuseConstant:np,direction:null,display:null,dur:null,divisor:np,dominantBaseline:null,download:Zu,dx:null,dy:null,edgeMode:null,editable:null,elevation:np,enableBackground:null,end:null,event:null,exponent:np,externalResourcesRequired:null,fill:null,fillOpacity:np,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ip,g2:ip,glyphName:ip,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:np,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:np,horizOriginX:np,horizOriginY:np,id:null,ideographic:np,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:np,k:np,k1:np,k2:np,k3:np,k4:np,kernelMatrix:op,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:np,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:np,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:np,overlineThickness:np,paintOrder:null,panose1:null,path:null,pathLength:np,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rp,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:np,pointsAtY:np,pointsAtZ:np,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:op,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:op,rev:op,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:op,requiredFeatures:op,requiredFonts:op,requiredFormats:op,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:np,specularExponent:np,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:np,strikethroughThickness:np,string:null,stroke:null,strokeDashArray:op,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:np,strokeOpacity:np,strokeWidth:null,style:null,surfaceScale:np,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:op,tabIndex:np,tableValues:null,target:null,targetX:np,targetY:np,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:op,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:np,underlineThickness:np,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:np,values:null,vAlphabetic:np,vMathematical:np,vectorEffect:null,vHanging:np,vIdeographic:np,version:null,vertAdvY:np,vertOriginX:np,vertOriginY:np,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:np,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),vp=$u([fp,hp,gp,mp,_p],"html"),xp=$u([fp,hp,gp,mp,kp],"svg"),Ep=/^data[-\w.:]+$/i,Tp=/-[a-z]/g,wp=/[A-Z]/g;function bp(t){return"-"+t.toLowerCase()}function Ap(t){return t.charAt(1).toUpperCase()}const Rp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Cp=n(5671);const Sp=Cp.default||Cp,Np=Ip("end"),Op=Ip("start");function Ip(t){return function(e){const n=e&&e.position&&e.position[t]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Lp(t){return t&&"object"==typeof t?"position"in t||"type"in t?Dp(t.position):"start"in t||"end"in t?Dp(t):"line"in t||"column"in t?Pp(t):"":""}function Pp(t){return zp(t&&t.line)+":"+zp(t&&t.column)}function Dp(t){return Pp(t&&t.start)+"-"+Pp(t&&t.end)}function zp(t){return t&&"number"==typeof t?t:1}class Mp extends Error{constructor(t,e,n){super(),"string"==typeof e&&(n=e,e=void 0);let r="",i={},o=!1;if(e&&(i="line"in e&&"column"in e||"start"in e&&"end"in e?{place:e}:"type"in e?{ancestors:[e],place:e.position}:{...e}),"string"==typeof t?r=t:!i.cause&&t&&(o=!0,r=t.message,i.cause=t),!i.ruleId&&!i.source&&"string"==typeof n){const t=n.indexOf(":");-1===t?i.ruleId=n:(i.source=n.slice(0,t),i.ruleId=n.slice(t+1))}if(!i.place&&i.ancestors&&i.ancestors){const t=i.ancestors[i.ancestors.length-1];t&&(i.place=t.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=r,this.line=s?s.line:void 0,this.name=Lp(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=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Mp.prototype.file="",Mp.prototype.name="",Mp.prototype.reason="",Mp.prototype.message="",Mp.prototype.stack="",Mp.prototype.column=void 0,Mp.prototype.line=void 0,Mp.prototype.ancestors=void 0,Mp.prototype.cause=void 0,Mp.prototype.fatal=void 0,Mp.prototype.place=void 0,Mp.prototype.ruleId=void 0,Mp.prototype.source=void 0;const Fp={}.hasOwnProperty,Up=new Map,jp=/[A-Z]/g,Hp=/-([a-z])/g,Vp=new Set(["table","tbody","thead","tfoot","tr"]),Bp=new Set(["td","th"]),Wp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gp(t,e){if(!e||void 0===e.Fragment)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if("function"!=typeof e.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(t,e){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=Op(n);return e(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:t,lineNumber:a?a.line:void 0},void 0)}}(n,e.jsxDEV)}else{if("function"!=typeof e.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof e.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(t,e,n){return r;function r(t,r,i,o){const s=Array.isArray(i.children)?n:e;return o?s(r,i,o):s(r,i)}}(0,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:!1!==e.passKeys,passNode:e.passNode||!1,schema:"svg"===e.space?xp:vp,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==e.tableCellAlignToStyle},o=qp(i,t,void 0);return o&&"string"!=typeof o?o:i.create(t,i.Fragment,{children:o||void 0},void 0)}function qp(t,e,n){return"element"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.tagName.toLowerCase()&&"html"===r.space&&(i=xp,t.schema=i);t.ancestors.push(e);const o=Jp(t,e.tagName,!1),s=function(t,e){const n={};let r,i;for(i in e.properties)if("children"!==i&&Fp.call(e.properties,i)){const o=Xp(t,i,e.properties[i]);if(o){const[i,s]=o;t.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&Bp.has(e.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===t.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(t,e);let a=$p(t,e);Vp.has(e.tagName)&&(a=a.filter((function(t){return"string"!=typeof t||!("object"==typeof(e=t)?"text"===e.type&&Yu(e.value):Yu(e));var e})));return Yp(t,s,o,e),Kp(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}(t,e,n):"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return n.type,t.evaluater.evaluateExpression(n.expression)}Qp(t,e.position)}(t,e):"mdxJsxFlowElement"===e.type||"mdxJsxTextElement"===e.type?function(t,e,n){const r=t.schema;let i=r;"svg"===e.name&&"html"===r.space&&(i=xp,t.schema=i);t.ancestors.push(e);const o=null===e.name?t.Fragment:Jp(t,e.name,!0),s=function(t,e){const n={};for(const r of e.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&t.evaluater){const e=r.data.estree.body[0];e.type;const i=e.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else Qp(t,e.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&t.evaluater){const e=r.value.data.estree.body[0];e.type,o=t.evaluater.evaluateExpression(e.expression)}else Qp(t,e.position);else o=null===r.value||r.value;n[i]=o}return n}(t,e),a=$p(t,e);return Yp(t,s,o,e),Kp(s,a),t.ancestors.pop(),t.schema=r,t.create(e,o,s,n)}(t,e,n):"mdxjsEsm"===e.type?function(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Qp(t,e.position)}(t,e):"root"===e.type?function(t,e,n){const r={};return Kp(r,$p(t,e)),t.create(e,t.Fragment,r,n)}(t,e,n):"text"===e.type?function(t,e){return e.value}(0,e):void 0}function Yp(t,e,n,r){"string"!=typeof n&&n!==t.Fragment&&t.passNode&&(e.node=r)}function Kp(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function $p(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:Up;for(;++r<e.children.length;){const o=e.children[r];let s;if(t.passKeys){const t="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(t){const e=i.get(t)||0;s=t+"-"+e,i.set(t,e+1)}}const a=qp(t,o,s);void 0!==a&&n.push(a)}return n}function Xp(t,e,n){const r=function(t,e){const n=Xu(e);let r=e,i=Ju;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Ep.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(Tp,Ap);r="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!Tp.test(t)){let n=t.replace(wp,bp);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}i=cp}return new i(r,e)}(t.schema,e);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(t,e){const n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let e="object"==typeof n?n:function(t,e){const n={};try{Sp(e,r)}catch(i){if(!t.ignoreInvalidStyle){const e=i,n=new Mp("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:e,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=Wp+"#cannot-parse-style-attribute",n}}return n;function r(t,e){let r=t;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(Hp,th)),n[r]=e}}(t,String(n));return"css"===t.stylePropertyNameCase&&(e=function(t){const e={};let n;for(n in t)Fp.call(t,n)&&(e[Zp(n)]=t[n]);return e}(e)),["style",e]}return["react"===t.elementAttributeNameCase&&r.space?Rp[r.property]||r.property:r.attribute,n]}}function Jp(t,e,n){let r;if(n)if(e.includes(".")){const t=e.split(".");let n,i=-1;for(;++i<t.length;){const e=Gu(t[i])?{type:"Identifier",name:t[i]}:{type:"Literal",value:t[i]};n=n?{type:"MemberExpression",object:n,property:e,computed:Boolean(i&&"Literal"===e.type),optional:!1}:e}r=n}else r=Gu(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if("Literal"===r.type){const e=r.value;return Fp.call(t.components,e)?t.components[e]:e}if(t.evaluater)return t.evaluater.evaluateExpression(r);Qp(t)}function Qp(t,e){const n=new Mp("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=Wp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Zp(t){let e=t.replace(jp,eh);return"ms-"===e.slice(0,3)&&(e="-"+e),e}function th(t,e){return e.toUpperCase()}function eh(t){return"-"+t.toLowerCase()}const nh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},rh={};function ih(t,e,n){if(function(t){return Boolean(t&&"object"==typeof t)}(t)){if("value"in t)return"html"!==t.type||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return oh(t.children,e,n)}return Array.isArray(t)?oh(t,e,n):""}function oh(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=ih(t[i],e,n);return r.join("")}function sh(t,e,n,r){const i=t.length;let o,s=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function ah(t,e){return t.length>0?(sh(t,t.length,0,e),t):e}class ch{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,e){const n=null==e?Number.POSITIVE_INFINITY:e;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,e,n){const r=e||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&lh(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),lh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),lh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&0===this.right.length||t<0&&0===this.left.length))if(t<this.left.length){const e=this.left.splice(t,Number.POSITIVE_INFINITY);lh(this.right,e.reverse())}else{const e=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);lh(this.left,e.reverse())}}}function lh(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function uh(t){const e={};let n,r,i,o,s,a,c,l=-1;const u=new ch(t);for(;++l<u.length;){for(;l in e;)l=e[l];if(n=u.get(l),l&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(l-1)[1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(e,ph(u,l)),l=e[l],c=!0);else if(n[1]._container){for(i=l,r=void 0;i--&&(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},u.get(r)[1].start),s=u.slice(r,l),s.unshift(n),u.splice(r,l-r+1,s))}}return sh(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function ph(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const o=[],s=n._tokenizer||r.parser[n.contentType](n.start),a=s.events,c=[],l={};let u,p,h=-1,f=n,d=0,y=0;const g=[y];for(;f;){for(;t.get(++i)[1]!==f;);o.push(i),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),p&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++h<a.length;)"exit"===a[h][0]&&"enter"===a[h-1][0]&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(y=h+1,g.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),h=g.length;h--;){const e=a.slice(g[h],g[h+1]),n=o.pop();c.push([n,n+e.length-1]),t.splice(n,2,e)}for(c.reverse(),h=-1;++h<c.length;)l[d+c[h][0]]=d+c[h][1],d+=c[h][1]-c[h][0]-1;return l}const hh={}.hasOwnProperty;function fh(t,e){let n;for(n in e){const r=(hh.call(t,n)?t[n]:void 0)||(t[n]={}),i=e[n];let o;if(i)for(o in i){hh.call(r,o)||(r[o]=[]);const t=i[o];dh(r[o],Array.isArray(t)?t:t?[t]:[])}}}function dh(t,e){let n=-1;const r=[];for(;++n<e.length;)("after"===e[n].add?t:r).push(e[n]);sh(t,0,0,r)}const yh=Rh(/[A-Za-z]/),gh=Rh(/[\dA-Za-z]/),mh=Rh(/[#-'*+\--9=?A-Z^-~]/);function _h(t){return null!==t&&(t<32||127===t)}const kh=Rh(/\d/),vh=Rh(/[\dA-Fa-f]/),xh=Rh(/[!-/:-@[-`{-~]/);function Eh(t){return null!==t&&t<-2}function Th(t){return null!==t&&(t<0||32===t)}function wh(t){return-2===t||-1===t||32===t}const bh=Rh(/\p{P}|\p{S}/u),Ah=Rh(/\s/);function Rh(t){return function(e){return null!==e&&e>-1&&t.test(String.fromCharCode(e))}}function Ch(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(wh(r))return t.enter(n),s(r);return e(r)};function s(r){return wh(r)&&o++<i?(t.consume(r),s):(t.exit(n),e(r))}}const Sh={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void t.consume(n);return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ch(t,e,"linePrefix")}),(function(e){return t.enter("paragraph"),r(e)}));let n;return e;function r(e){const r=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(e)}function i(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):Eh(e)?(t.consume(e),t.exit("chunkText"),r):(t.consume(e),i)}}};const Nh={tokenize:function(t){const e=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return e.containerState=i[1],t.attempt(i[0].continuation,c,l)(r)}return l(r)}function c(t){if(s++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&_();const n=e.events.length;let i,o=n;for(;o--;)if("exit"===e.events[o][0]&&"chunkFlow"===e.events[o][1].type){i=e.events[o][1].end;break}m(s);let a=n;for(;a<e.events.length;)e.events[a][1].end=Object.assign({},i),a++;return sh(e.events,o+1,0,e.events.slice(n)),e.events.length=a,l(t)}return a(t)}function l(i){if(s===n.length){if(!r)return h(i);if(r.currentConstruct&&r.currentConstruct.concrete)return d(i);e.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Oh,u,p)(i)}function u(t){return r&&_(),m(s),h(t)}function p(t){return e.parser.lazy[e.now().line]=s!==n.length,o=e.now().offset,d(t)}function h(n){return e.containerState={},t.attempt(Oh,f,d)(n)}function f(t){return s++,n.push([e.currentConstruct,e.containerState]),h(t)}function d(n){return null===n?(r&&_(),m(0),void t.consume(n)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),y(n))}function y(n){return null===n?(g(t.exit("chunkFlow"),!0),m(0),void t.consume(n)):Eh(n)?(t.consume(n),g(t.exit("chunkFlow")),s=0,e.interrupt=void 0,a):(t.consume(n),y)}function g(t,n){const a=e.sliceStream(t);if(n&&a.push(null),t.previous=i,i&&(i.next=t),i=t,r.defineSkip(t.start),r.write(a),e.parser.lazy[t.start.line]){let t=r.events.length;for(;t--;)if(r.events[t][1].start.offset<o&&(!r.events[t][1].end||r.events[t][1].end.offset>o))return;const n=e.events.length;let i,a,c=n;for(;c--;)if("exit"===e.events[c][0]&&"chunkFlow"===e.events[c][1].type){if(i){a=e.events[c][1].end;break}i=!0}for(m(s),t=n;t<e.events.length;)e.events[t][1].end=Object.assign({},a),t++;sh(e.events,c+1,0,e.events.slice(n)),e.events.length=t}}function m(r){let i=n.length;for(;i-- >r;){const r=n[i];e.containerState=r[1],r[0].exit.call(e,t)}n.length=r}function _(){r.write([null]),i=void 0,r=void 0,e.containerState._closeFlow=void 0}}},Oh={tokenize:function(t,e,n){return Ch(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ih={tokenize:function(t,e,n){return function(e){return wh(e)?Ch(t,r,"linePrefix")(e):r(e)};function r(t){return null===t||Eh(t)?e(t):n(t)}},partial:!0};const Lh={tokenize:function(t,e){let n;return function(e){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(e)};function r(e){return null===e?i(e):Eh(e)?t.check(Ph,o,i)(e):(t.consume(e),r)}function i(n){return t.exit("chunkContent"),t.exit("content"),e(n)}function o(e){return t.consume(e),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(t){return uh(t),t}},Ph={tokenize:function(t,e,n){const r=this;return function(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Ch(t,i,"linePrefix")};function i(i){if(null===i||Eh(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}},partial:!0};const Dh={tokenize:function(t){const e=this,n=t.attempt(Ih,(function(r){if(null===r)return void t.consume(r);return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}),t.attempt(this.parser.constructs.flowInitial,r,Ch(t,t.attempt(this.parser.constructs.flow,r,t.attempt(Lh,r)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}};const zh={resolveAll:jh()},Mh=Uh("string"),Fh=Uh("text");function Uh(t){return{tokenize:function(e){const n=this,r=this.parser.constructs[t],i=e.attempt(r,o,s);return o;function o(t){return c(t)?i(t):s(t)}function s(t){if(null!==t)return e.enter("data"),e.consume(t),a;e.consume(t)}function a(t){return c(t)?(e.exit("data"),i(t)):(e.consume(t),a)}function c(t){if(null===t)return!0;const e=r[t];let i=-1;if(e)for(;++i<e.length;){const t=e[i];if(!t.previous||t.previous.call(n,n.previous))return!0}return!1}},resolveAll:jh("text"===t?Hh:void 0)}}function jh(t){return function(e,n){let r,i=-1;for(;++i<=e.length;)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(e,n):e}}function Hh(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||"lineEnding"===t[n][1].type)&&"data"===t[n-1][1].type){const r=t[n-1][1],i=e.sliceStream(r);let o,s=i.length,a=-1,c=0;for(;s--;){const t=i[s];if("string"==typeof t){for(a=t.length;32===t.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===t)o=!0,c++;else if(-1!==t){s++;break}}if(c){const i={type:n===t.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-c,offset:r.end.offset-c,_index:r.start._index+s,_bufferIndex:s?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(t.splice(n,0,["enter",i,e],["exit",i,e]),n+=2)}n++}return t}function Vh(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}function Bh(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let s=[],a=[],c=!0;const l={consume:function(t){Eh(t)?(r.line++,r.column=1,r.offset+=-3===t?2:1,v()):-1!==t&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=t,c=!0},enter:function(t,e){const n=e||{};return n.type=t,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(t){const e=a.pop();return e.end=d(),u.events.push(["exit",e,u]),e},attempt:_((function(t,e){k(t,e.from)})),check:_(m),interrupt:_(m,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:f,sliceSerialize:function(t,e){return function(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const o=t[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=e?" ":"\t";break;case-1:if(!e&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(f(t),e)},now:d,defineSkip:function(t){i[t.line]=t.column,v()},write:function(t){if(s=ah(s,t),y(),null!==s[s.length-1])return[];return k(e,0),u.events=Vh(o,u.events,u),u.events}};let p,h=e.tokenize.call(u,l);return e.resolveAll&&o.push(e),u;function f(t){return function(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex;let s;if(n===i)s=[t[n].slice(r,o)];else{if(s=t.slice(n,i),r>-1){const t=s[0];"string"==typeof t?s[0]=t.slice(r):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}(s,t)}function d(){const{line:t,column:e,offset:n,_index:i,_bufferIndex:o}=r;return{line:t,column:e,offset:n,_index:i,_bufferIndex:o}}function y(){let t;for(;r._index<s.length;){const e=s[r._index];if("string"==typeof e)for(t=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)g(e.charCodeAt(r._bufferIndex));else g(e)}}function g(t){c=void 0,p=t,h=h(t)}function m(t,e){e.restore()}function _(t,e){return function(n,i,o){let s,p,h,f;return Array.isArray(n)?y(n):"tokenize"in n?y([n]):function(t){return e;function e(e){const n=null!==e&&t[e],r=null!==e&&t.null;return y([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(e)}}(n);function y(t){return s=t,p=0,0===t.length?o:g(t[p])}function g(t){return function(n){f=function(){const t=d(),e=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{restore:s,from:i};function s(){r=t,u.previous=e,u.currentConstruct=n,u.events.length=i,a=o,v()}}(),h=t,t.partial||(u.currentConstruct=t);if(t.name&&u.parser.constructs.disable.null.includes(t.name))return _(n);return t.tokenize.call(e?Object.assign(Object.create(u),e):u,l,m,_)(n)}}function m(e){return c=!0,t(h,f),i}function _(t){return c=!0,f.restore(),++p<s.length?g(s[p]):o}}}function k(t,e){t.resolveAll&&!o.includes(t)&&o.push(t),t.resolve&&sh(u.events,e,u.events.length-e,t.resolve(u.events.slice(e),u)),t.resolveTo&&(u.events=t.resolveTo(u.events,u))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Wh={name:"thematicBreak",tokenize:function(t,e,n){let r,i=0;return function(e){return t.enter("thematicBreak"),function(t){return r=t,o(t)}(e)};function o(o){return o===r?(t.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Eh(o))?(t.exit("thematicBreak"),e(o)):n(o)}function s(e){return e===r?(t.consume(e),i++,s):(t.exit("thematicBreakSequence"),wh(e)?Ch(t,o,"whitespace")(e):o(e))}}};const Gh={name:"list",tokenize:function(t,e,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(e){const i=r.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||e===r.containerState.marker:kh(e)){if(r.containerState.type||(r.containerState.type=i,t.enter(i,{_container:!0})),"listUnordered"===i)return t.enter("listItemPrefix"),42===e||45===e?t.check(Wh,n,c)(e):c(e);if(!r.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(e)}return n(e)};function a(e){return kh(e)&&++s<10?(t.consume(e),a):(!r.interrupt||s<2)&&(r.containerState.marker?e===r.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),c(e)):n(e)}function c(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||e,t.check(Ih,r.interrupt?n:l,t.attempt(qh,p,u))}function l(t){return r.containerState.initialBlankLine=!0,o++,p(t)}function u(e){return wh(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),p):n(e)}function p(n){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}},continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Ih,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ch(t,e,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!wh(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(Yh,e,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ch(t,t.attempt(Gh,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)}},qh={tokenize:function(t,e,n){const r=this;return Ch(t,(function(t){const i=r.events[r.events.length-1];return!wh(t)&&i&&"listItemPrefixWhitespace"===i[1].type?e(t):n(t)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Yh={tokenize:function(t,e,n){const r=this;return Ch(t,(function(t){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(t):n(t)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Kh={name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(e){if(62===e){const n=r.containerState;return n.open||(t.enter("blockQuote",{_container:!0}),n.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),i}return n(e)};function i(n){return wh(n)?(t.enter("blockQuotePrefixWhitespace"),t.consume(n),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(n))}},continuation:{tokenize:function(t,e,n){const r=this;return function(e){if(wh(e))return Ch(t,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e);return i(e)};function i(r){return t.attempt(Kh,e,n)(r)}}},exit:function(t){t.exit("blockQuote")}};function $h(t,e,n,r,i,o,s,a,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return function(e){if(60===e)return t.enter(r),t.enter(i),t.enter(o),t.consume(e),t.exit(o),p;if(null===e||32===e||41===e||_h(e))return n(e);return t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),d(e)};function p(n){return 62===n?(t.enter(o),t.consume(n),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),h(n))}function h(e){return 62===e?(t.exit("chunkString"),t.exit(a),p(e)):null===e||60===e||Eh(e)?n(e):(t.consume(e),92===e?f:h)}function f(e){return 60===e||62===e||92===e?(t.consume(e),h):h(e)}function d(i){return u||null!==i&&41!==i&&!Th(i)?u<l&&40===i?(t.consume(i),u++,d):41===i?(t.consume(i),u--,d):null===i||32===i||40===i||_h(i)?n(i):(t.consume(i),92===i?y:d):(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(i))}function y(e){return 40===e||41===e||92===e?(t.consume(e),d):d(e)}}function Xh(t,e,n,r,i,o){const s=this;let a,c=0;return function(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(o),l};function l(p){return c>999||null===p||91===p||93===p&&!a||94===p&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):93===p?(t.exit(o),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):Eh(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),l):(t.enter("chunkString",{contentType:"string"}),u(p))}function u(e){return null===e||91===e||93===e||Eh(e)||c++>999?(t.exit("chunkString"),l(e)):(t.consume(e),a||(a=!wh(e)),92===e?p:u)}function p(e){return 91===e||92===e||93===e?(t.consume(e),c++,u):u(e)}}function Jh(t,e,n,r,i,o){let s;return function(e){if(34===e||39===e||40===e)return t.enter(r),t.enter(i),t.consume(e),t.exit(i),s=40===e?41:e,a;return n(e)};function a(n){return n===s?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(o),c(n))}function c(e){return e===s?(t.exit(o),a(s)):null===e?n(e):Eh(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Ch(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),l(e))}function l(e){return e===s||null===e||Eh(e)?(t.exit("chunkString"),c(e)):(t.consume(e),92===e?u:l)}function u(e){return e===s||92===e?(t.consume(e),l):l(e)}}function Qh(t,e){let n;return function r(i){if(Eh(i))return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r;if(wh(i))return Ch(t,r,n?"linePrefix":"lineSuffix")(i);return e(i)}}function Zh(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const tf={name:"definition",tokenize:function(t,e,n){const r=this;let i;return function(e){return t.enter("definition"),function(e){return Xh.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}(e)};function o(e){return i=Zh(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),s):n(e)}function s(e){return Th(e)?Qh(t,a)(e):a(e)}function a(e){return $h(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(e)}function c(e){return t.attempt(ef,l,l)(e)}function l(e){return wh(e)?Ch(t,u,"whitespace")(e):u(e)}function u(o){return null===o||Eh(o)?(t.exit("definition"),r.parser.defined.push(i),e(o)):n(o)}}},ef={tokenize:function(t,e,n){return function(e){return Th(e)?Qh(t,r)(e):n(e)};function r(e){return Jh(t,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e)}function i(e){return wh(e)?Ch(t,o,"whitespace")(e):o(e)}function o(t){return null===t||Eh(t)?e(t):n(t)}},partial:!0};const nf={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("codeIndented"),Ch(t,i,"linePrefix",5)(e)};function i(t){const e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?a(e):Eh(e)?t.attempt(rf,o,a)(e):(t.enter("codeFlowValue"),s(e))}function s(e){return null===e||Eh(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),s)}function a(n){return t.exit("codeIndented"),e(n)}}},rf={tokenize:function(t,e,n){const r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):Eh(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):Ch(t,o,"linePrefix",5)(e)}function o(t){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?e(t):Eh(t)?i(t):n(t)}},partial:!0};const of={name:"headingAtx",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("atxHeading"),function(e){return t.enter("atxHeadingSequence"),i(e)}(e)};function i(e){return 35===e&&r++<6?(t.consume(e),i):null===e||Th(e)?(t.exit("atxHeadingSequence"),o(e)):n(e)}function o(n){return 35===n?(t.enter("atxHeadingSequence"),s(n)):null===n||Eh(n)?(t.exit("atxHeading"),e(n)):wh(n)?Ch(t,o,"whitespace")(n):(t.enter("atxHeadingText"),a(n))}function s(e){return 35===e?(t.consume(e),s):(t.exit("atxHeadingSequence"),o(e))}function a(e){return null===e||35===e||Th(e)?(t.exit("atxHeadingText"),o(e)):(t.consume(e),a)}},resolve:function(t,e){let n,r,i=t.length-2,o=3;"whitespace"===t[o][1].type&&(o+=2);i-2>o&&"whitespace"===t[i][1].type&&(i-=2);"atxHeadingSequence"===t[i][1].type&&(o===i-1||i-4>o&&"whitespace"===t[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:t[o][1].start,end:t[i][1].end},r={type:"chunkText",start:t[o][1].start,end:t[i][1].end,contentType:"text"},sh(t,o,i-o+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]]));return t}};const sf={name:"setextUnderline",tokenize:function(t,e,n){const r=this;let i;return function(e){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return t.enter("setextHeadingLine"),i=e,function(e){return t.enter("setextHeadingLineSequence"),o(e)}(e);return n(e)};function o(e){return e===i?(t.consume(e),o):(t.exit("setextHeadingLineSequence"),wh(e)?Ch(t,s,"lineSuffix")(e):s(e))}function s(r){return null===r||Eh(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}},resolveTo:function(t,e){let n,r,i,o=t.length;for(;o--;)if("enter"===t[o][0]){if("content"===t[o][1].type){n=o;break}"paragraph"===t[o][1].type&&(r=o)}else"content"===t[o][1].type&&t.splice(o,1),i||"definition"!==t[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",s,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=s;return t.push(["exit",s,e]),t}};const af=["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"],cf=["pre","script","style","textarea"],lf={name:"htmlFlow",tokenize:function(t,e,n){const r=this;let i,o,s,a,c;return function(e){return function(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),l}(e)};function l(a){return 33===a?(t.consume(a),u):47===a?(t.consume(a),o=!0,f):63===a?(t.consume(a),i=3,r.interrupt?e:P):yh(a)?(t.consume(a),s=String.fromCharCode(a),d):n(a)}function u(o){return 45===o?(t.consume(o),i=2,p):91===o?(t.consume(o),i=5,a=0,h):yh(o)?(t.consume(o),i=4,r.interrupt?e:P):n(o)}function p(i){return 45===i?(t.consume(i),r.interrupt?e:P):n(i)}function h(i){const o="CDATA[";return i===o.charCodeAt(a++)?(t.consume(i),6===a?r.interrupt?e:A:h):n(i)}function f(e){return yh(e)?(t.consume(e),s=String.fromCharCode(e),d):n(e)}function d(a){if(null===a||47===a||62===a||Th(a)){const c=47===a,l=s.toLowerCase();return c||o||!cf.includes(l)?af.includes(s.toLowerCase())?(i=6,c?(t.consume(a),y):r.interrupt?e(a):A(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):m(a)):(i=1,r.interrupt?e(a):A(a))}return 45===a||gh(a)?(t.consume(a),s+=String.fromCharCode(a),d):n(a)}function y(i){return 62===i?(t.consume(i),r.interrupt?e:A):n(i)}function g(e){return wh(e)?(t.consume(e),g):w(e)}function m(e){return 47===e?(t.consume(e),w):58===e||95===e||yh(e)?(t.consume(e),_):wh(e)?(t.consume(e),m):w(e)}function _(e){return 45===e||46===e||58===e||95===e||gh(e)?(t.consume(e),_):k(e)}function k(e){return 61===e?(t.consume(e),v):wh(e)?(t.consume(e),k):m(e)}function v(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),c=e,x):wh(e)?(t.consume(e),v):E(e)}function x(e){return e===c?(t.consume(e),c=null,T):null===e||Eh(e)?n(e):(t.consume(e),x)}function E(e){return null===e||34===e||39===e||47===e||60===e||61===e||62===e||96===e||Th(e)?k(e):(t.consume(e),E)}function T(t){return 47===t||62===t||wh(t)?m(t):n(t)}function w(e){return 62===e?(t.consume(e),b):n(e)}function b(e){return null===e||Eh(e)?A(e):wh(e)?(t.consume(e),b):n(e)}function A(e){return 45===e&&2===i?(t.consume(e),N):60===e&&1===i?(t.consume(e),O):62===e&&4===i?(t.consume(e),D):63===e&&3===i?(t.consume(e),P):93===e&&5===i?(t.consume(e),L):!Eh(e)||6!==i&&7!==i?null===e||Eh(e)?(t.exit("htmlFlowData"),R(e)):(t.consume(e),A):(t.exit("htmlFlowData"),t.check(uf,z,R)(e))}function R(e){return t.check(pf,C,z)(e)}function C(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),S}function S(e){return null===e||Eh(e)?R(e):(t.enter("htmlFlowData"),A(e))}function N(e){return 45===e?(t.consume(e),P):A(e)}function O(e){return 47===e?(t.consume(e),s="",I):A(e)}function I(e){if(62===e){const n=s.toLowerCase();return cf.includes(n)?(t.consume(e),D):A(e)}return yh(e)&&s.length<8?(t.consume(e),s+=String.fromCharCode(e),I):A(e)}function L(e){return 93===e?(t.consume(e),P):A(e)}function P(e){return 62===e?(t.consume(e),D):45===e&&2===i?(t.consume(e),P):A(e)}function D(e){return null===e||Eh(e)?(t.exit("htmlFlowData"),z(e)):(t.consume(e),D)}function z(n){return t.exit("htmlFlow"),e(n)}},resolveTo:function(t){let e=t.length;for(;e--&&("enter"!==t[e][0]||"htmlFlow"!==t[e][1].type););e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2));return t},concrete:!0},uf={tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(Ih,e,n)}},partial:!0},pf={tokenize:function(t,e,n){const r=this;return function(e){if(Eh(e))return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i;return n(e)};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0};const hf={tokenize:function(t,e,n){const r=this;return function(e){if(null===e)return n(e);return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i};function i(t){return r.parser.lazy[r.now().line]?n(t):e(t)}},partial:!0},ff={name:"codeFenced",tokenize:function(t,e,n){const r=this,i={tokenize:function(t,e,n){let i=0;return s;function s(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),c}function c(e){return t.enter("codeFencedFence"),wh(e)?Ch(t,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):l(e)}function l(e){return e===o?(t.enter("codeFencedFenceSequence"),u(e)):n(e)}function u(e){return e===o?(i++,t.consume(e),u):i>=a?(t.exit("codeFencedFenceSequence"),wh(e)?Ch(t,p,"whitespace")(e):p(e)):n(e)}function p(r){return null===r||Eh(r)?(t.exit("codeFencedFence"),e(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(e){return function(e){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=e,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(e)}(e)};function c(e){return e===o?(a++,t.consume(e),c):a<3?n(e):(t.exit("codeFencedFenceSequence"),wh(e)?Ch(t,l,"whitespace")(e):l(e))}function l(n){return null===n||Eh(n)?(t.exit("codeFencedFence"),r.interrupt?e(n):t.check(hf,f,_)(n)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(n))}function u(e){return null===e||Eh(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),l(e)):wh(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ch(t,p,"whitespace")(e)):96===e&&e===o?n(e):(t.consume(e),u)}function p(e){return null===e||Eh(e)?l(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),h(e))}function h(e){return null===e||Eh(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),l(e)):96===e&&e===o?n(e):(t.consume(e),h)}function f(e){return t.attempt(i,_,d)(e)}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),y}function y(e){return s>0&&wh(e)?Ch(t,g,"linePrefix",s+1)(e):g(e)}function g(e){return null===e||Eh(e)?t.check(hf,f,_)(e):(t.enter("codeFlowValue"),m(e))}function m(e){return null===e||Eh(e)?(t.exit("codeFlowValue"),g(e)):(t.consume(e),m)}function _(n){return t.exit("codeFenced"),e(n)}},concrete:!0};const df=document.createElement("i");function yf(t){const e="&"+t+";";df.innerHTML=e;const n=df.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===t)&&(n!==e&&n)}const gf={name:"characterReference",tokenize:function(t,e,n){const r=this;let i,o,s=0;return function(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),a};function a(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),i=31,o=gh,l(e))}function c(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,o=vh,l):(t.enter("characterReferenceValue"),i=7,o=kh,l(e))}function l(a){if(59===a&&s){const i=t.exit("characterReferenceValue");return o!==gh||yf(r.sliceSerialize(i))?(t.enter("characterReferenceMarker"),t.consume(a),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(a)}return o(a)&&s++<i?(t.consume(a),l):n(a)}}};const mf={name:"characterEscape",tokenize:function(t,e,n){return function(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),r};function r(r){return xh(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}};const _f={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Ch(t,e,"linePrefix")}}};const kf={name:"labelEnd",tokenize:function(t,e,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(e){if(!i)return n(e);if(i._inactive)return u(e);return o=r.parser.defined.includes(Zh(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),a};function a(e){return 40===e?t.attempt(vf,l,o?l:u)(e):91===e?t.attempt(xf,l,o?c:u)(e):o?l(e):u(e)}function c(e){return t.attempt(Ef,l,u)(e)}function l(t){return e(t)}function u(t){return i._balanced=!0,n(t)}},resolveTo:function(t,e){let n,r,i,o,s=t.length,a=0;for(;s--;)if(n=t[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===t[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const c={type:"labelLink"===t[r][1].type?"link":"image",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)},l={type:"label",start:Object.assign({},t[r][1].start),end:Object.assign({},t[i][1].end)},u={type:"labelText",start:Object.assign({},t[r+a+2][1].end),end:Object.assign({},t[i-2][1].start)};return o=[["enter",c,e],["enter",l,e]],o=ah(o,t.slice(r+1,r+a+3)),o=ah(o,[["enter",u,e]]),o=ah(o,Vh(e.parser.constructs.insideSpan.null,t.slice(r+a+4,i-3),e)),o=ah(o,[["exit",u,e],t[i-2],t[i-1],["exit",l,e]]),o=ah(o,t.slice(i+1)),o=ah(o,[["exit",c,e]]),sh(t,r,t.length,o),t},resolveAll:function(t){let e=-1;for(;++e<t.length;){const n=t[e][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(t.splice(e+1,"labelImage"===n.type?4:2),n.type="data",e++)}return t}},vf={tokenize:function(t,e,n){return function(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),r};function r(e){return Th(e)?Qh(t,i)(e):i(e)}function i(e){return 41===e?l(e):$h(t,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function o(e){return Th(e)?Qh(t,a)(e):l(e)}function s(t){return n(t)}function a(e){return 34===e||39===e||40===e?Jh(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):l(e)}function c(e){return Th(e)?Qh(t,l)(e):l(e)}function l(r){return 41===r?(t.enter("resourceMarker"),t.consume(r),t.exit("resourceMarker"),t.exit("resource"),e):n(r)}}},xf={tokenize:function(t,e,n){const r=this;return function(e){return Xh.call(r,t,i,o,"reference","referenceMarker","referenceString")(e)};function i(t){return r.parser.defined.includes(Zh(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(t):n(t)}function o(t){return n(t)}}},Ef={tokenize:function(t,e,n){return function(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),r};function r(r){return 93===r?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}};const Tf={name:"labelStartImage",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),i};function i(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):n(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:kf.resolveAll};function wf(t){return null===t||Th(t)||Ah(t)?1:bh(t)?2:void 0}const bf={name:"attention",tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wf(r);let o;return function(e){return o=e,t.enter("attentionSequence"),s(e)};function s(a){if(a===o)return t.consume(a),s;const c=t.exit("attentionSequence"),l=wf(a),u=!l||2===l&&i||n.includes(a),p=!i||2===i&&l||n.includes(r);return c._open=Boolean(42===o?u:u&&(i||!p)),c._close=Boolean(42===o?p:p&&(l||!u)),e(a)}},resolveAll:function(t,e){let n,r,i,o,s,a,c,l,u=-1;for(;++u<t.length;)if("enter"===t[u][0]&&"attentionSequence"===t[u][1].type&&t[u][1]._close)for(n=u;n--;)if("exit"===t[n][0]&&"attentionSequence"===t[n][1].type&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[u][1]).charCodeAt(0)){if((t[n][1]._close||t[u][1]._open)&&(t[u][1].end.offset-t[u][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[u][1].end.offset-t[u][1].start.offset)%3))continue;a=t[n][1].end.offset-t[n][1].start.offset>1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const p=Object.assign({},t[n][1].end),h=Object.assign({},t[u][1].start);Af(p,-a),Af(h,a),o={type:a>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},t[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[u][1].start),end:h},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},t[n][1].end=Object.assign({},o.start),t[u][1].start=Object.assign({},s.end),c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=ah(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=ah(c,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",i,e]]),c=ah(c,Vh(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),c=ah(c,[["exit",i,e],["enter",s,e],["exit",s,e],["exit",r,e]]),t[u][1].end.offset-t[u][1].start.offset?(l=2,c=ah(c,[["enter",t[u][1],e],["exit",t[u][1],e]])):l=0,sh(t,n-1,u-n+3,c),u=n+c.length-l-2;break}u=-1;for(;++u<t.length;)"attentionSequence"===t[u][1].type&&(t[u][1].type="data");return t}};function Af(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Rf={name:"autolink",tokenize:function(t,e,n){let r=0;return function(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),i};function i(e){return yh(e)?(t.consume(e),o):c(e)}function o(t){return 43===t||45===t||46===t||gh(t)?(r=1,s(t)):c(t)}function s(e){return 58===e?(t.consume(e),r=0,a):(43===e||45===e||46===e||gh(e))&&r++<32?(t.consume(e),s):(r=0,c(e))}function a(r){return 62===r?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(r),t.exit("autolinkMarker"),t.exit("autolink"),e):null===r||32===r||60===r||_h(r)?n(r):(t.consume(r),a)}function c(e){return 64===e?(t.consume(e),l):mh(e)?(t.consume(e),c):n(e)}function l(t){return gh(t)?u(t):n(t)}function u(n){return 46===n?(t.consume(n),r=0,l):62===n?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e):p(n)}function p(e){if((45===e||gh(e))&&r++<63){const n=45===e?p:u;return t.consume(e),n}return n(e)}}};const Cf={name:"htmlText",tokenize:function(t,e,n){const r=this;let i,o,s;return function(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),a};function a(e){return 33===e?(t.consume(e),c):47===e?(t.consume(e),v):63===e?(t.consume(e),_):yh(e)?(t.consume(e),T):n(e)}function c(e){return 45===e?(t.consume(e),l):91===e?(t.consume(e),o=0,f):yh(e)?(t.consume(e),m):n(e)}function l(e){return 45===e?(t.consume(e),h):n(e)}function u(e){return null===e?n(e):45===e?(t.consume(e),p):Eh(e)?(s=u,I(e)):(t.consume(e),u)}function p(e){return 45===e?(t.consume(e),h):u(e)}function h(t){return 62===t?O(t):45===t?p(t):u(t)}function f(e){const r="CDATA[";return e===r.charCodeAt(o++)?(t.consume(e),6===o?d:f):n(e)}function d(e){return null===e?n(e):93===e?(t.consume(e),y):Eh(e)?(s=d,I(e)):(t.consume(e),d)}function y(e){return 93===e?(t.consume(e),g):d(e)}function g(e){return 62===e?O(e):93===e?(t.consume(e),g):d(e)}function m(e){return null===e||62===e?O(e):Eh(e)?(s=m,I(e)):(t.consume(e),m)}function _(e){return null===e?n(e):63===e?(t.consume(e),k):Eh(e)?(s=_,I(e)):(t.consume(e),_)}function k(t){return 62===t?O(t):_(t)}function v(e){return yh(e)?(t.consume(e),x):n(e)}function x(e){return 45===e||gh(e)?(t.consume(e),x):E(e)}function E(e){return Eh(e)?(s=E,I(e)):wh(e)?(t.consume(e),E):O(e)}function T(e){return 45===e||gh(e)?(t.consume(e),T):47===e||62===e||Th(e)?w(e):n(e)}function w(e){return 47===e?(t.consume(e),O):58===e||95===e||yh(e)?(t.consume(e),b):Eh(e)?(s=w,I(e)):wh(e)?(t.consume(e),w):O(e)}function b(e){return 45===e||46===e||58===e||95===e||gh(e)?(t.consume(e),b):A(e)}function A(e){return 61===e?(t.consume(e),R):Eh(e)?(s=A,I(e)):wh(e)?(t.consume(e),A):w(e)}function R(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),i=e,C):Eh(e)?(s=R,I(e)):wh(e)?(t.consume(e),R):(t.consume(e),S)}function C(e){return e===i?(t.consume(e),i=void 0,N):null===e?n(e):Eh(e)?(s=C,I(e)):(t.consume(e),C)}function S(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):47===e||62===e||Th(e)?w(e):(t.consume(e),S)}function N(t){return 47===t||62===t||Th(t)?w(t):n(t)}function O(r){return 62===r?(t.consume(r),t.exit("htmlTextData"),t.exit("htmlText"),e):n(r)}function I(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),L}function L(e){return wh(e)?Ch(t,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e):P(e)}function P(e){return t.enter("htmlTextData"),s(e)}}};const Sf={name:"labelStartLink",tokenize:function(t,e,n){const r=this;return function(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),i};function i(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}},resolveAll:kf.resolveAll};const Nf={name:"hardBreakEscape",tokenize:function(t,e,n){return function(e){return t.enter("hardBreakEscape"),t.consume(e),r};function r(r){return Eh(r)?(t.exit("hardBreakEscape"),e(r)):n(r)}}};const Of={name:"codeText",tokenize:function(t,e,n){let r,i,o=0;return function(e){return t.enter("codeText"),t.enter("codeTextSequence"),s(e)};function s(e){return 96===e?(t.consume(e),o++,s):(t.exit("codeTextSequence"),a(e))}function a(e){return null===e?n(e):32===e?(t.enter("space"),t.consume(e),t.exit("space"),a):96===e?(i=t.enter("codeTextSequence"),r=0,l(e)):Eh(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a):(t.enter("codeTextData"),c(e))}function c(e){return null===e||32===e||96===e||Eh(e)?(t.exit("codeTextData"),a(e)):(t.consume(e),c)}function l(n){return 96===n?(t.consume(n),r++,l):r===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(i.type="codeTextData",c(n))}},resolve:function(t){let e,n,r=t.length-4,i=3;if(!("lineEnding"!==t[i][1].type&&"space"!==t[i][1].type||"lineEnding"!==t[r][1].type&&"space"!==t[r][1].type))for(e=i;++e<r;)if("codeTextData"===t[e][1].type){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}e=i-1,r++;for(;++e<=r;)void 0===n?e!==r&&"lineEnding"!==t[e][1].type&&(n=e):e!==r&&"lineEnding"!==t[e][1].type||(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},previous:function(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}};const If={42:Gh,43:Gh,45:Gh,48:Gh,49:Gh,50:Gh,51:Gh,52:Gh,53:Gh,54:Gh,55:Gh,56:Gh,57:Gh,62:Kh},Lf={91:tf},Pf={[-2]:nf,[-1]:nf,32:nf},Df={35:of,42:Wh,45:[sf,Wh],60:lf,61:sf,95:Wh,96:ff,126:ff},zf={38:gf,92:mf},Mf={[-5]:_f,[-4]:_f,[-3]:_f,33:Tf,38:gf,42:bf,60:[Rf,Cf],91:Sf,92:[Nf,mf],93:kf,95:bf,96:Of},Ff={null:[bf,zh]},Uf={null:[42,95]},jf={null:[]};function Hf(t){const e=function(t){const e={};let n=-1;for(;++n<t.length;)fh(e,t[n]);return e}([i,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:e,content:r(Sh),document:r(Nh),flow:r(Dh),string:r(Mh),text:r(Fh)};return n;function r(t){return function(e){return Bh(n,t,e)}}}const Vf=/[\0\t\n\r]/g;function Bf(t,e){const n=Number.parseInt(t,e);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const Wf=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Gf(t,e,n){if(e)return e;if(35===n.charCodeAt(0)){const t=n.charCodeAt(1),e=120===t||88===t;return Bf(n.slice(e?2:1),e?16:10)}return yf(n)||t}const qf={}.hasOwnProperty;function Yf(t,e,n){return"string"!=typeof e&&(n=e,e=void 0),function(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(tt),autolinkProtocol:b,autolinkEmail:b,atxHeading:o(X),blockQuote:o(G),characterEscape:b,characterReference:b,codeFenced:o(q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(q,s),codeText:o(Y,s),codeTextData:b,data:b,codeFlowValue:b,definition:o(K),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o($),hardBreakEscape:o(J),hardBreakTrailing:o(J),htmlFlow:o(Q,s),htmlFlowData:b,htmlText:o(Q,s),htmlTextData:b,image:o(Z),label:s,link:o(tt),listItem:o(nt),listItemValue:h,listOrdered:o(et,p),listUnordered:o(et),paragraph:o(rt),reference:U,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(X),strong:o(it),thematicBreak:o(st)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:W,autolinkProtocol:B,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:V,codeFenced:c(g),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:d,codeFlowValue:A,codeIndented:c(m),codeText:c(O),codeTextData:A,data:A,definition:c(),definitionDestinationString:v,definitionLabelString:_,definitionTitleString:k,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(S),htmlFlowData:A,htmlText:c(N),htmlTextData:A,image:c(L),label:D,labelText:P,lineEnding:R,link:c(I),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:j,resourceDestinationString:z,resourceTitleString:M,resource:F,setextHeading:c(w),setextHeadingLineSequence:T,setextHeadingText:E,strong:c(),thematicBreak:c()}};$f(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(t){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:e,enter:a,exit:l,buffer:s,resume:u,data:n},c=[];let p=-1;for(;++p<t.length;)if("listOrdered"===t[p][1].type||"listUnordered"===t[p][1].type)if("enter"===t[p][0])c.push(p);else{p=i(t,c.pop(),p)}for(p=-1;++p<t.length;){const n=e[t[p][0]];qf.call(n,t[p][1].type)&&n[t[p][1].type].call(Object.assign({sliceSerialize:t[p][2].sliceSerialize},o),t[p][1])}if(o.tokenStack.length>0){const t=o.tokenStack[o.tokenStack.length-1];(t[1]||Jf).call(o,void 0,t[0])}for(r.position={start:Kf(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:Kf(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<e.transforms.length;)r=e.transforms[p](r)||r;return r}function i(t,e,n){let r,i,o,s,a=e-1,c=-1,l=!1;for(;++a<=n;){const e=t[a];switch(e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===e[0]?c++:c--,s=void 0;break;case"lineEndingBlank":"enter"===e[0]&&(!r||s||c||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!c&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===c&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(r){let s=a;for(i=void 0;s--;){const e=t[s];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;i&&(t[i][1].type="lineEndingBlank",l=!0),e[1].type="lineEnding",i=s}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?t[i][1].start:e[1].end),t.splice(i||a,0,["exit",r,e[2]]),a++,n++}if("listItemPrefix"===e[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},e[1].start),end:void 0};r=i,t.splice(a,0,["enter",i,e[2]]),a++,n++,o=void 0,s=!0}}}return t[e][1]._spread=l,n}function o(t,e){return n;function n(n){a.call(this,t(n),n),e&&e.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(t,e,n){this.stack[this.stack.length-1].children.push(t),this.stack.push(t),this.tokenStack.push([e,n]),t.position={start:Kf(e.start),end:void 0}}function c(t){return e;function e(e){t&&t.call(this,e),l.call(this,e)}}function l(t,e){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+t.type+"` ("+Lp({start:t.start,end:t.end})+"): it\u2019s not open");if(r[0].type!==t.type)if(e)e.call(this,t,r[0]);else{(r[1]||Jf).call(this,t,r[0])}n.position.end=Kf(t.end)}function u(){return function(t,e){const n=e||rh;return ih(t,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(t){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(t),10),this.data.expectingFirstListItemValue=void 0}}function f(){const t=this.resume();this.stack[this.stack.length-1].lang=t}function d(){const t=this.resume();this.stack[this.stack.length-1].meta=t}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const t=this.resume();this.stack[this.stack.length-1].value=t.replace(/(\r?\n|\r)$/g,"")}function _(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=Zh(this.sliceSerialize(t)).toLowerCase()}function k(){const t=this.resume();this.stack[this.stack.length-1].title=t}function v(){const t=this.resume();this.stack[this.stack.length-1].url=t}function x(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function T(t){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(t).codePointAt(0)?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function b(t){const e=this.stack[this.stack.length-1].children;let n=e[e.length-1];n&&"text"===n.type||(n=ot(),n.position={start:Kf(t.start),end:void 0},e.push(n)),this.stack.push(n)}function A(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=Kf(t.end)}function R(t){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Kf(t.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(n.type)&&(b.call(this,t),A.call(this,t))}function C(){this.data.atHardBreak=!0}function S(){const t=this.resume();this.stack[this.stack.length-1].value=t}function N(){const t=this.resume();this.stack[this.stack.length-1].value=t}function O(){const t=this.resume();this.stack[this.stack.length-1].value=t}function I(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0}function L(){const t=this.stack[this.stack.length-1];if(this.data.inReference){const e=this.data.referenceType||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;this.data.referenceType=void 0}function P(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=function(t){return t.replace(Wf,Gf)}(e),n.identifier=Zh(e).toLowerCase()}function D(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const e=t.children;n.children=e}else n.alt=e}function z(){const t=this.resume();this.stack[this.stack.length-1].url=t}function M(){const t=this.resume();this.stack[this.stack.length-1].title=t}function F(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function j(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=Zh(this.sliceSerialize(t)).toLowerCase(),this.data.referenceType="full"}function H(t){this.data.characterReferenceType=t.type}function V(t){const e=this.sliceSerialize(t),n=this.data.characterReferenceType;let r;if(n)r=Bf(e,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=yf(e)}const i=this.stack.pop();i.value+=r,i.position.end=Kf(t.end)}function B(t){A.call(this,t);this.stack[this.stack.length-1].url=this.sliceSerialize(t)}function W(t){A.call(this,t);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(t)}function G(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $(){return{type:"emphasis",children:[]}}function X(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function Q(){return{type:"html",value:""}}function Z(){return{type:"image",title:null,url:"",alt:null}}function tt(){return{type:"link",title:null,url:"",children:[]}}function et(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}function nt(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}}function rt(){return{type:"paragraph",children:[]}}function it(){return{type:"strong",children:[]}}function ot(){return{type:"text",value:""}}function st(){return{type:"thematicBreak"}}}(n)(function(t){for(;!uh(t););return t}(Hf(n).document().write(function(){let t,e=1,n="",r=!0;return function(i,o,s){const a=[];let c,l,u,p,h;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Vf.lastIndex=u,c=Vf.exec(i),p=c&&void 0!==c.index?c.index:i.length,h=i.charCodeAt(p),!c){n=i.slice(u);break}if(10===h&&u===p&&t)a.push(-3),t=void 0;else switch(t&&(a.push(-5),t=void 0),u<p&&(a.push(i.slice(u,p)),e+=p-u),h){case 0:a.push(65533),e++;break;case 9:for(l=4*Math.ceil(e/4),a.push(-2);e++<l;)a.push(-1);break;case 10:a.push(-4),e=1;break;default:t=!0,e=1}u=p+1}return s&&(t&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(t,e,!0))))}function Kf(t){return{line:t.line,column:t.column,offset:t.offset}}function $f(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?$f(t,r):Xf(t,r)}}function Xf(t,e){let n;for(n in e)if(qf.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function Jf(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Lp({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Lp({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Lp({start:e.start,end:e.end})+") is still open")}function Qf(t){const e=this;e.parser=function(n){return Yf(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}const Zf="object"==typeof self?self:globalThis,td=t=>((t,e)=>{const n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);const[o,s]=e[i];switch(o){case 0:case-1:return n(s,i);case 1:{const t=n([],i);for(const e of s)t.push(r(e));return t}case 2:{const t=n({},i);for(const[e,n]of s)t[r(e)]=r(n);return t}case 3:return n(new Date(s),i);case 4:{const{source:t,flags:e}=s;return n(new RegExp(t,e),i)}case 5:{const t=n(new Map,i);for(const[e,n]of s)t.set(r(e),r(n));return t}case 6:{const t=n(new Set,i);for(const e of s)t.add(r(e));return t}case 7:{const{name:t,message:e}=s;return n(new Zf[t](e),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Zf[o](s),i)};return r})(new Map,t)(0),ed="",{toString:nd}={},{keys:rd}=Object,id=t=>{const e=typeof t;if("object"!==e||!t)return[0,e];const n=nd.call(t).slice(8,-1);switch(n){case"Array":return[1,ed];case"Object":return[2,ed];case"Date":return[3,ed];case"RegExp":return[4,ed];case"Map":return[5,ed];case"Set":return[6,ed]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},od=([t,e])=>0===t&&("function"===e||"symbol"===e),sd=(t,{json:e,lossy:n}={})=>{const r=[];return((t,e,n,r)=>{const i=(t,e)=>{const i=r.push(t)-1;return n.set(e,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=id(r);switch(s){case 0:{let e=r;switch(a){case"bigint":s=8,e=r.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+a);e=null;break;case"undefined":return i([-1],r)}return i([s,e],r)}case 1:{if(a)return i([a,[...r]],r);const t=[],e=i([s,t],r);for(const n of r)t.push(o(n));return e}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(e&&"toJSON"in r)return o(r.toJSON());const n=[],c=i([s,n],r);for(const e of rd(r))!t&&od(id(r[e]))||n.push([o(e),o(r[e])]);return c}case 3:return i([s,r.toISOString()],r);case 4:{const{source:t,flags:e}=r;return i([s,{source:t,flags:e}],r)}case 5:{const e=[],n=i([s,e],r);for(const[i,s]of r)(t||!od(id(i))&&!od(id(s)))&&e.push([o(i),o(s)]);return n}case 6:{const e=[],n=i([s,e],r);for(const i of r)!t&&od(id(i))||e.push(o(i));return n}}const{message:c}=r;return i([s,{name:a,message:c}],r)};return o})(!(e||n),!!e,new Map,r)(t),r},ad="function"==typeof structuredClone?(t,e)=>e&&("json"in e||"lossy"in e)?td(sd(t,e)):structuredClone(t):(t,e)=>td(sd(t,e));function cd(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const o=t.charCodeAt(n);let s="";if(37===o&&gh(t.charCodeAt(n+1))&&gh(t.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(s=String.fromCharCode(o,e),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(e.push(t.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function ld(t,e){const n=[{type:"text",value:"\u21a9"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function ud(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}const pd=function(t){if(null==t)return fd;if("function"==typeof t)return hd(t);if("object"==typeof t)return Array.isArray(t)?function(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=pd(t[n]);return hd(r);function r(...t){let n=-1;for(;++n<e.length;)if(e[n].apply(this,t))return!0;return!1}}(t):function(t){const e=t;return hd(n);function n(n){const r=n;let i;for(i in t)if(r[i]!==e[i])return!1;return!0}}(t);if("string"==typeof t)return function(t){return hd(e);function e(e){return e&&e.type===t}}(t);throw new Error("Expected function, string, or object as test")};function hd(t){return function(e,n,r){return Boolean(dd(e)&&t.call(this,e,"number"==typeof n?n:void 0,r||void 0))}}function fd(){return!0}function dd(t){return null!==t&&"object"==typeof t&&"type"in t}const yd=[],gd=!0,md=!1,_d="skip";function kd(t,e,n,r){let i;"function"==typeof e&&"function"!=typeof n?(r=n,n=e):i=e;const o=pd(i),s=r?-1:1;!function t(i,a,c){const l=i&&"object"==typeof i?i:{};if("string"==typeof l.type){const t="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(t?"<"+t+">":"")+")"})}return u;function u(){let l,u,p,h=yd;if((!e||o(i,a,c[c.length-1]||void 0))&&(h=function(t){if(Array.isArray(t))return t;if("number"==typeof t)return[gd,t];return null==t?yd:[t]}(n(i,c)),h[0]===md))return h;if("children"in i&&i.children){const e=i;if(e.children&&h[0]!==_d)for(u=(r?e.children.length:-1)+s,p=c.concat(e);u>-1&&u<e.children.length;){const n=e.children[u];if(l=t(n,u,p)(),l[0]===md)return l;u="number"==typeof l[1]?l[1]:u+s}}return h}}(t,void 0,[])()}function vd(t,e,n,r){let i,o,s;"function"==typeof e&&"function"!=typeof n?(o=void 0,s=e,i=n):(o=e,s=n,i=r),kd(t,o,(function(t,e){const n=e[e.length-1],r=n?n.children.indexOf(t):void 0;return s(t,r,n)}),i)}function xd(t,e){const n=e.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(e.label||e.identifier)+"]"),"imageReference"===e.type)return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function Ed(t){const e=t.spread;return null==e?t.children.length>1:e}const Td=9,wd=32;function bd(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const o=[];for(;r;)o.push(Ad(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return o.push(Ad(e.slice(i),i>0,!1)),o.join("")}function Ad(t,e,n){let r=0,i=t.length;if(e){let e=t.codePointAt(r);for(;e===Td||e===wd;)r++,e=t.codePointAt(r)}if(n){let e=t.codePointAt(i-1);for(;e===Td||e===wd;)i--,e=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}const Rd={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:"\n"}]},code:function(t,e){const n=e.value?e.value+"\n":"",r={};e.lang&&(r.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=cd(r.toLowerCase()),o=t.footnoteOrder.indexOf(r);let s,a=t.footnoteCounts.get(r);void 0===a?(a=0,t.footnoteOrder.push(r),s=t.footnoteOrder.length):s=o+1,a+=1,t.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return t.patch(e,l),t.applyData(e,l)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return xd(t,e);const i={src:cd(r.url||""),alt:e.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,o),t.applyData(e,o)},image:function(t,e){const n={src:cd(e.url)};null!==e.alt&&void 0!==e.alt&&(n.alt=e.alt),null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return xd(t,e);const i={href:cd(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,o),t.applyData(e,o)},link:function(t,e){const n={href:cd(e.url)};null!==e.title&&void 0!==e.title&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),i=n?function(t){let e=!1;if("list"===t.type){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Ed(n[r])}return e}(n):Ed(e),o={},s=[];if("boolean"==typeof e.checked){const t=r[0];let n;t&&"element"===t.type&&"p"===t.tagName?n=t:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const t=r[a];(i||0!==a||"element"!==t.type||"p"!==t.tagName)&&s.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||i?s.push(t):s.push(...t.children)}const c=r[r.length-1];c&&(i||"element"!==c.type||"p"!==c.tagName)&&s.push({type:"text",value:"\n"});const l={type:"element",tagName:"li",properties:o,children:s};return t.patch(e,l),t.applyData(e,l)},list:function(t,e){const n={},r=t.all(e);let i=-1;for("number"==typeof e.start&&1!==e.start&&(n.start=e.start);++i<r.length;){const t=r[i];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,o),t.applyData(e,o)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Op(e.children[1]),s=Np(e.children[e.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,o),t.applyData(e,o)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(e):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:e.children.length;let a=-1;const c=[];for(;++a<s;){const n=e.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let l={type:"element",tagName:i,properties:r,children:[]};n&&(l.children=t.all(n),t.patch(n,l),l=t.applyData(n,l)),c.push(l)}const l={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,l),t.applyData(e,l)},text:function(t,e){const n={type:"text",value:bd(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:Cd,yaml:Cd,definition:Cd,footnoteDefinition:Cd};function Cd(){}const Sd={}.hasOwnProperty,Nd={};function Od(t,e){t.position&&(e.position=function(t){const e=Op(t),n=Np(t);if(e&&n)return{start:e,end:n}}(t))}function Id(t,e){let n=e;if(t&&t.data){const e=t.data.hName,r=t.data.hChildren,i=t.data.hProperties;if("string"==typeof e)if("element"===n.type)n.tagName=e;else{n={type:"element",tagName:e,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,ad(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ld(t,e){const n=e.data||{},r=!("value"in e)||Sd.call(n,"hProperties")||Sd.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function Pd(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:"\n"});++r<t.length;)r&&n.push({type:"text",value:"\n"}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:"\n"}),n}function Dd(t){let e=0,n=t.charCodeAt(e);for(;9===n||32===n;)e++,n=t.charCodeAt(e);return t.slice(e)}function zd(t,e){const n=function(t,e){const n=e||Nd,r=new Map,i=new Map,o=new Map,s={...Rd,...n.handlers},a={all:function(t){const e=[];if("children"in t){const n=t.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],t);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Dd(i.value)),!Array.isArray(i)&&"element"===i.type)){const t=i.children[0];t&&"text"===t.type&&(t.value=Dd(t.value))}Array.isArray(i)?e.push(...i):e.push(i)}}}return e},applyData:Id,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(t,e){const n=t.type,r=a.handlers[n];if(Sd.call(a.handlers,n)&&r)return r(a,t,e);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in t){const{children:e,...n}=t,r=ad(n);return r.children=a.all(t),r}return ad(t)}return(a.options.unknownHandler||Ld)(a,t,e)},options:n,patch:Od,wrap:Pd};return vd(t,(function(t){if("definition"===t.type||"footnoteDefinition"===t.type){const e="definition"===t.type?r:i,n=String(t.identifier).toUpperCase();e.has(n)||e.set(n,t)}})),a}(t,e),r=n.one(t,void 0),i=function(t){const e="string"==typeof t.options.clobberPrefix?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||ld,r=t.options.footnoteBackLabel||ud,i=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<t.footnoteOrder.length;){const i=t.footnoteById.get(t.footnoteOrder[c]);if(!i)continue;const o=t.all(i),s=String(i.identifier).toUpperCase(),l=cd(s.toLowerCase());let u=0;const p=[],h=t.footnoteCounts.get(s);for(;void 0!==h&&++u<=h;){p.length>0&&p.push({type:"text",value:" "});let t="string"==typeof n?n:n(c,u);"string"==typeof t&&(t={type:"text",value:t}),p.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+l+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,u),className:["data-footnote-backref"]},children:Array.isArray(t)?t:[t]})}const f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const t=f.children[f.children.length-1];t&&"text"===t.type?t.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...p)}else o.push(...p);const d={type:"element",tagName:"li",properties:{id:e+"fn-"+l},children:t.wrap(o,!0)};t.patch(i,d),a.push(d)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ad(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function Md(t,e){return t&&"run"in t?async function(n,r){const i=zd(n,{file:r,...e});await t.run(i,r)}:function(n,r){return zd(n,{file:r,...e||t})}}function Fd(t){if(t)throw t}var Ud=n(2849);function jd(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function Hd(){const t=[],e={run:function(...e){let n=-1;const r=e.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=t[++n];let c=-1;if(o)r(o);else{for(;++c<e.length;)null!==s[c]&&void 0!==s[c]||(s[c]=e[c]);e=s,a?function(t,e){let n;return r;function r(...e){const r=t.length>e.length;let a;r&&e.push(i);try{a=t.apply(this,e)}catch(o){if(r&&n)throw o;return i(o)}r||(a&&a.then&&"function"==typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(t,...r){n||(n=!0,e(t,...r))}function s(t){i(null,t)}}(a,i)(...s):r(null,...s)}}(null,...e)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}const Vd={basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');Bd(t);let n,r=0,i=-1,o=t.length;if(void 0===e||0===e.length||e.length>t.length){for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":t.slice(r,i)}if(e===t)return"";let s=-1,a=e.length-1;for(;o--;)if(47===t.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(t.codePointAt(o)===e.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=t.length);return t.slice(r,i)},dirname:function(t){if(Bd(t),0===t.length)return".";let e,n=-1,r=t.length;for(;--r;)if(47===t.codePointAt(r)){if(e){n=r;break}}else e||(e=!0);return n<0?47===t.codePointAt(0)?"/":".":1===n&&47===t.codePointAt(0)?"//":t.slice(0,n)},extname:function(t){Bd(t);let e,n=t.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=t.codePointAt(n);if(47!==a)r<0&&(e=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(e){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return t.slice(o,r)},join:function(...t){let e,n=-1;for(;++n<t.length;)Bd(t[n]),t[n]&&(e=void 0===e?t[n]:e+"/"+t[n]);return void 0===e?".":function(t){Bd(t);const e=47===t.codePointAt(0);let n=function(t,e){let n,r,i="",o=0,s=-1,a=0,c=-1;for(;++c<=t.length;){if(c<t.length)n=t.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(s===c-1||1===a);else if(s!==c-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",o=0,s=c,a=0;continue}e&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+t.slice(s+1,c):i=t.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!e);0!==n.length||e||(n=".");n.length>0&&47===t.codePointAt(t.length-1)&&(n+="/");return e?"/"+n:n}(e)},sep:"/"};function Bd(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Wd={cwd:function(){return"/"}};function Gd(t){return Boolean(null!==t&&"object"==typeof t&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&void 0===t.auth)}function qd(t){if("string"==typeof t)t=new URL(t);else if(!Gd(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const e=t.pathname;let n=-1;for(;++n<e.length;)if(37===e.codePointAt(n)&&50===e.codePointAt(n+1)){const t=e.codePointAt(n+2);if(70===t||102===t){const t=new TypeError("File URL path must not include encoded / characters");throw t.code="ERR_INVALID_FILE_URL_PATH",t}}return decodeURIComponent(e)}(t)}const Yd=["history","path","basename","stem","extname","dirname"];class Kd{constructor(t){let e;e=t?Gd(t)?{path:t}:"string"==typeof t||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(t)?{value:t}:t:{},this.cwd=Wd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Yd.length;){const t=Yd[r];t in e&&void 0!==e[t]&&null!==e[t]&&(this[t]="history"===t?[...e[t]]:e[t])}for(n in e)Yd.includes(n)||(this[n]=e[n])}get basename(){return"string"==typeof this.path?Vd.basename(this.path):void 0}set basename(t){Xd(t,"basename"),$d(t,"basename"),this.path=Vd.join(this.dirname||"",t)}get dirname(){return"string"==typeof this.path?Vd.dirname(this.path):void 0}set dirname(t){Jd(this.basename,"dirname"),this.path=Vd.join(t||"",this.basename)}get extname(){return"string"==typeof this.path?Vd.extname(this.path):void 0}set extname(t){if($d(t,"extname"),Jd(this.dirname,"extname"),t){if(46!==t.codePointAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Vd.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gd(t)&&(t=qd(t)),Xd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return"string"==typeof this.path?Vd.basename(this.path,this.extname):void 0}set stem(t){Xd(t,"stem"),$d(t,"stem"),this.path=Vd.join(this.dirname||"",t+(this.extname||""))}fail(t,e,n){const r=this.message(t,e,n);throw r.fatal=!0,r}info(t,e,n){const r=this.message(t,e,n);return r.fatal=void 0,r}message(t,e,n){const r=new Mp(t,e,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(t||void 0).decode(this.value)}}function $d(t,e){if(t&&t.includes(Vd.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Vd.sep+"`")}function Xd(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function Jd(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const Qd=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};Object.setPrototypeOf(r,e);const i=Object.getOwnPropertyNames(n);for(const o of i){const t=Object.getOwnPropertyDescriptor(n,o);t&&Object.defineProperty(r,o,t)}return r},Zd={}.hasOwnProperty;class ty extends Qd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Hd()}copy(){const t=new ty;let e=-1;for(;++e<this.attachers.length;){const n=this.attachers[e];t.use(...n)}return t.data(Ud(!0,{},this.namespace)),t}data(t,e){return"string"==typeof t?2===arguments.length?(iy("data",this.frozen),this.namespace[t]=e,this):Zd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(iy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[e,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=e.call(t,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const e=ay(t),n=this.parser||this.Parser;return ny("parse",n),n(String(e),e)}process(t,e){const n=this;return this.freeze(),ny("process",this.parser||this.Parser),ry("process",this.compiler||this.Compiler),e?r(void 0,e):new Promise(r);function r(r,i){const o=ay(t),s=n.parse(o);function a(t,n){t||!n?i(t):r?r(n):e(void 0,n)}n.run(s,o,(function(t,e,r){if(t||!e||!r)return a(t);const i=e,o=n.stringify(i,r);var s;"string"==typeof(s=o)||function(t){return Boolean(t&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t)}(s)?r.value=o:r.result=o,a(t,r)}))}}processSync(t){let e,n=!1;return this.freeze(),ny("processSync",this.parser||this.Parser),ry("processSync",this.compiler||this.Compiler),this.process(t,(function(t,r){n=!0,Fd(t),e=r})),sy("processSync","process",n),e}run(t,e,n){oy(t),this.freeze();const r=this.transformers;return n||"function"!=typeof e||(n=e,e=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=ay(e);r.run(t,s,(function(e,r,s){const a=r||t;e?o(e):i?i(a):n(void 0,a,s)}))}}runSync(t,e){let n,r=!1;return this.run(t,e,(function(t,e){Fd(t),n=e,r=!0})),sy("runSync","run",r),n}stringify(t,e){this.freeze();const n=ay(e),r=this.compiler||this.Compiler;return ry("stringify",r),oy(t),r(t,n)}use(t,...e){const n=this.attachers,r=this.namespace;if(iy("use",this.frozen),null==t);else if("function"==typeof t)a(t,e);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?s(t):o(t)}return this;function i(t){if("function"==typeof t)a(t,[]);else{if("object"!=typeof t)throw new TypeError("Expected usable value, not `"+t+"`");if(Array.isArray(t)){const[e,...n]=t;a(e,n)}else o(t)}}function o(t){if(!("plugins"in t)&&!("settings"in t))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(t.plugins),t.settings&&(r.settings=Ud(!0,r.settings,t.settings))}function s(t){let e=-1;if(null==t);else{if(!Array.isArray(t))throw new TypeError("Expected a list of plugins, not `"+t+"`");for(;++e<t.length;){i(t[e])}}}function a(t,e){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===t){i=r;break}if(-1===i)n.push([t,...e]);else if(e.length>0){let[r,...o]=e;const s=n[i][1];jd(s)&&jd(r)&&(r=Ud(!0,s,r)),n[i]=[t,r,...o]}}}}const ey=(new ty).freeze();function ny(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `parser`")}function ry(t,e){if("function"!=typeof e)throw new TypeError("Cannot `"+t+"` without `compiler`")}function iy(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function oy(t){if(!jd(t)||"string"!=typeof t.type)throw new TypeError("Expected node, got `"+t+"`")}function sy(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function ay(t){return function(t){return Boolean(t&&"object"==typeof t&&"message"in t&&"messages"in t)}(t)?t:new Kd(t)}const cy=[],ly={allowDangerousHtml:!0},uy=/^(https?|ircs?|mailto|xmpp)$/i,py=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function hy(t){const e=t.allowedElements,n=t.allowElement,r=t.children||"",i=t.className,s=t.components,a=t.disallowedElements,c=t.rehypePlugins||cy,l=t.remarkPlugins||cy,u=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...ly}:ly,p=t.skipHtml,h=t.unwrapDisallowed,f=t.urlTransform||fy,d=ey().use(Qf).use(l).use(Md,u).use(c),y=new Kd;"string"==typeof r&&(y.value=r);for(const o of py)Object.hasOwn(t,o.from)&&(o.from,o.to&&o.to,o.id);const g=d.parse(y);let m=d.runSync(g,y);return i&&(m={type:"element",tagName:"div",properties:{className:i},children:"root"===m.type?m.children:[m]}),vd(m,(function(t,r,i){if("raw"===t.type&&i&&"number"==typeof r)return p?i.children.splice(r,1):i.children[r]={type:"text",value:t.value},r;if("element"===t.type){let e;for(e in nh)if(Object.hasOwn(nh,e)&&Object.hasOwn(t.properties,e)){const n=t.properties[e],r=nh[e];(null===r||r.includes(t.tagName))&&(t.properties[e]=f(String(n||""),e,t))}}if("element"===t.type){let o=e?!e.includes(t.tagName):!!a&&a.includes(t.tagName);if(!o&&n&&"number"==typeof r&&(o=!n(t,r,i)),o&&i&&"number"==typeof r)return h&&t.children?i.children.splice(r,1,...t.children):i.children.splice(r,1),r}})),Gp(m,{Fragment:o.Fragment,components:s,ignoreInvalidStyle:!0,jsx:o.jsx,jsxs:o.jsxs,passKeys:!0,passNode:!0})}function fy(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e<0||i>-1&&e>i||n>-1&&e>n||r>-1&&e>r||uy.test(t.slice(0,e))?t:""}const dy=Math.min,yy=Math.max,gy=Math.round,my=Math.floor,_y=t=>({x:t,y:t}),ky={left:"right",right:"left",bottom:"top",top:"bottom"},vy={start:"end",end:"start"};function xy(t,e,n){return yy(t,dy(e,n))}function Ey(t,e){return"function"==typeof t?t(e):t}function Ty(t){return t.split("-")[0]}function wy(t){return t.split("-")[1]}function by(t){return"x"===t?"y":"x"}function Ay(t){return"y"===t?"height":"width"}function Ry(t){return["top","bottom"].includes(Ty(t))?"y":"x"}function Cy(t){return by(Ry(t))}function Sy(t){return t.replace(/start|end/g,(t=>vy[t]))}function Ny(t){return t.replace(/left|right|bottom|top/g,(t=>ky[t]))}function Oy(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Iy(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ly(t,e,n){let{reference:r,floating:i}=t;const o=Ry(e),s=Cy(e),a=Ay(s),c=Ty(e),l="y"===o,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let f;switch(c){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(wy(e)){case"start":f[s]-=h*(n&&l?-1:1);break;case"end":f[s]+=h*(n&&l?-1:1)}return f}async function Py(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:f=0}=Ey(e,t),d=Oy(f),y=a[h?"floating"===p?"reference":"floating":p],g=Iy(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),m="floating"===p?{...s.floating,x:r,y:i}:s.reference,_=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),k=await(null==o.isElement?void 0:o.isElement(_))&&await(null==o.getScale?void 0:o.getScale(_))||{x:1,y:1},v=Iy(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:_,strategy:c}):m);return{top:(g.top-v.top+d.top)/k.y,bottom:(v.bottom-g.bottom+d.bottom)/k.y,left:(g.left-v.left+d.left)/k.x,right:(v.right-g.right+d.right)/k.x}}const Dy=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Ty(n),a=wy(n),c="y"===Ry(n),l=["left","top"].includes(s)?-1:1,u=o&&c?-1:1,p=Ey(e,t);let{mainAxis:h,crossAxis:f,alignmentAxis:d}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return a&&"number"==typeof d&&(f="end"===a?-1*d:d),c?{x:f*u,y:h*l}:{x:h*l,y:f*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:s}}}}};function zy(t){return Uy(t)?(t.nodeName||"").toLowerCase():"#document"}function My(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Fy(t){var e;return null==(e=(Uy(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Uy(t){return t instanceof Node||t instanceof My(t).Node}function jy(t){return t instanceof Element||t instanceof My(t).Element}function Hy(t){return t instanceof HTMLElement||t instanceof My(t).HTMLElement}function Vy(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof My(t).ShadowRoot)}function By(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Ky(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function Wy(t){return["table","td","th"].includes(zy(t))}function Gy(t){const e=qy(),n=Ky(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function qy(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yy(t){return["html","body","#document"].includes(zy(t))}function Ky(t){return My(t).getComputedStyle(t)}function $y(t){return jy(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xy(t){if("html"===zy(t))return t;const e=t.assignedSlot||t.parentNode||Vy(t)&&t.host||Fy(t);return Vy(e)?e.host:e}function Jy(t){const e=Xy(t);return Yy(e)?t.ownerDocument?t.ownerDocument.body:t.body:Hy(e)&&By(e)?e:Jy(e)}function Qy(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Jy(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=My(i);return o?e.concat(s,s.visualViewport||[],By(i)?i:[],s.frameElement&&n?Qy(s.frameElement):[]):e.concat(i,Qy(i,[],n))}function Zy(t){const e=Ky(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Hy(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=gy(n)!==o||gy(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function tg(t){return jy(t)?t:t.contextElement}function eg(t){const e=tg(t);if(!Hy(e))return _y(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Zy(e);let s=(o?gy(n.width):n.width)/r,a=(o?gy(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ng=_y(0);function rg(t){const e=My(t);return qy()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ng}function ig(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=tg(t);let s=_y(1);e&&(r?jy(r)&&(s=eg(r)):s=eg(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==My(t))&&e}(o,n,r)?rg(o):_y(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,p=i.height/s.y;if(o){const t=My(o),e=r&&jy(r)?My(r):r;let n=t,i=n.frameElement;for(;i&&r&&e!==n;){const t=eg(i),e=i.getBoundingClientRect(),r=Ky(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,u*=t.x,p*=t.y,c+=o,l+=s,n=My(i),i=n.frameElement}}return Iy({width:u,height:p,x:c,y:l})}const og=[":popover-open",":modal"];function sg(t){return og.some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function ag(t){return ig(Fy(t)).left+$y(t).scrollLeft}function cg(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=My(t),r=Fy(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const t=qy();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a,y:c}}(t,n);else if("document"===e)r=function(t){const e=Fy(t),n=$y(t),r=t.ownerDocument.body,i=yy(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=yy(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ag(t);const a=-n.scrollTop;return"rtl"===Ky(r).direction&&(s+=yy(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(Fy(t));else if(jy(e))r=function(t,e){const n=ig(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=Hy(t)?eg(t):_y(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=rg(t);r={...e,x:e.x-n.x,y:e.y-n.y}}return Iy(r)}function lg(t,e){const n=Xy(t);return!(n===e||!jy(n)||Yy(n))&&("fixed"===Ky(n).position||lg(n,e))}function ug(t,e,n){const r=Hy(e),i=Fy(e),o="fixed"===n,s=ig(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const c=_y(0);if(r||!r&&!o)if(("body"!==zy(e)||By(i))&&(a=$y(e)),r){const t=ig(e,!0,o,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=ag(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function pg(t,e){return Hy(t)&&"fixed"!==Ky(t).position?e?e(t):t.offsetParent:null}function hg(t,e){const n=My(t);if(!Hy(t)||sg(t))return n;let r=pg(t,e);for(;r&&Wy(r)&&"static"===Ky(r).position;)r=pg(r,e);return r&&("html"===zy(r)||"body"===zy(r)&&"static"===Ky(r).position&&!Gy(r))?n:r||function(t){let e=Xy(t);for(;Hy(e)&&!Yy(e);){if(Gy(e))return e;e=Xy(e)}return null}(t)||n}const fg={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,s=Fy(r),a=!!e&&sg(e.floating);if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=_y(1);const u=_y(0),p=Hy(r);if((p||!p&&!o)&&(("body"!==zy(r)||By(s))&&(c=$y(r)),Hy(r))){const t=ig(r);l=eg(r),u.x=t.x+r.clientLeft,u.y=t.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:Fy,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let r=Qy(t,[],!1).filter((t=>jy(t)&&"body"!==zy(t))),i=null;const o="fixed"===Ky(t).position;let s=o?Xy(t):t;for(;jy(s)&&!Yy(s);){const e=Ky(s),n=Gy(s);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||By(s)&&!n&&lg(t,s))?r=r.filter((t=>t!==s)):i=e,s=Xy(s)}return e.set(t,r),r}(e,this._c):[].concat(n),r],s=o[0],a=o.reduce(((t,n)=>{const r=cg(e,n,i);return t.top=yy(r.top,t.top),t.right=dy(r.right,t.right),t.bottom=dy(r.bottom,t.bottom),t.left=yy(r.left,t.left),t}),cg(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:hg,getElementRects:async function(t){const e=this.getOffsetParent||hg,n=this.getDimensions;return{reference:ug(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Zy(t);return{width:e,height:n}},getScale:eg,isElement:jy,isRTL:function(t){return"rtl"===Ky(t).direction}};function dg(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=tg(t),u=i||o?[...l?Qy(l):[],...Qy(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const p=l&&a?function(t,e){let n,r=null;const i=Fy(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),o();const{left:l,top:u,width:p,height:h}=t.getBoundingClientRect();if(a||e(),!p||!h)return;const f={rootMargin:-my(u)+"px "+-my(i.clientWidth-(l+p))+"px "+-my(i.clientHeight-(u+h))+"px "+-my(l)+"px",threshold:yy(0,dy(1,c))||1};let d=!0;function y(t){const e=t[0].intersectionRatio;if(e!==c){if(!d)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),100)}d=!1}try{r=new IntersectionObserver(y,{...f,root:i.ownerDocument})}catch(g){r=new IntersectionObserver(y,f)}r.observe(t)}(!0),o}(l,n):null;let h,f=-1,d=null;s&&(d=new ResizeObserver((t=>{let[r]=t;r&&r.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),l&&!c&&d.observe(l),d.observe(e));let y=c?ig(t):null;return c&&function e(){const r=ig(t);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n();y=r,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=d)||t.disconnect(),d=null,c&&cancelAnimationFrame(h)}}const yg=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=Ey(t,e),l={x:n,y:r},u=await Py(e,c),p=Ry(Ty(i)),h=by(p);let f=l[h],d=l[p];if(o){const t="y"===h?"bottom":"right";f=xy(f+u["y"===h?"top":"left"],f,f-u[t])}if(s){const t="y"===p?"bottom":"right";d=xy(d+u["y"===p?"top":"left"],d,d-u[t])}const y=a.fn({...e,[h]:f,[p]:d});return{...y,data:{x:y.x-n,y:y.y-r}}}}},gg=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:y=!0,...g}=Ey(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const m=Ty(i),_=Ty(a)===a,k=await(null==c.isRTL?void 0:c.isRTL(l.floating)),v=h||(_||!y?[Ny(a)]:function(t){const e=Ny(t);return[Sy(t),e,Sy(e)]}(a));h||"none"===d||v.push(...function(t,e,n,r){const i=wy(t);let o=function(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:s;default:return[]}}(Ty(t),"start"===n,r);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(Sy)))),o}(a,y,d,k));const x=[a,...v],E=await Py(e,g),T=[];let w=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&T.push(E[m]),p){const t=function(t,e,n){void 0===n&&(n=!1);const r=wy(t),i=Cy(t),o=Ay(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Ny(s)),[s,Ny(s)]}(i,s,k);T.push(E[t[0]],E[t[1]])}if(w=[...w,{placement:i,overflows:T}],!T.every((t=>t<=0))){var b,A;const t=((null==(b=o.flip)?void 0:b.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:w},reset:{placement:e}};let n=null==(A=w.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var R;const t=null==(R=w.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:R[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},mg=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Ey(t,e)||{};if(null==l)return{};const p=Oy(u),h={x:n,y:r},f=Cy(i),d=Ay(f),y=await s.getDimensions(l),g="y"===f,m=g?"top":"left",_=g?"bottom":"right",k=g?"clientHeight":"clientWidth",v=o.reference[d]+o.reference[f]-h[f]-o.floating[d],x=h[f]-o.reference[f],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let T=E?E[k]:0;T&&await(null==s.isElement?void 0:s.isElement(E))||(T=a.floating[k]||o.floating[d]);const w=v/2-x/2,b=T/2-y[d]/2-1,A=dy(p[m],b),R=dy(p[_],b),C=A,S=T-y[d]-R,N=T/2-y[d]/2+w,O=xy(C,N,S),I=!c.arrow&&null!=wy(i)&&N!==O&&o.reference[d]/2-(N<C?A:R)-y[d]/2<0,L=I?N<C?N-C:N-S:0;return{[f]:h[f]+L,data:{[f]:O,centerOffset:N-O-L,...I&&{alignmentOffset:L}},reset:I}}}),_g=(t,e,n)=>{const r=new Map,i={platform:fg,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:p}=Ly(l,r,c),h=r,f={},d=0;for(let y=0;y<a.length;y++){const{name:n,fn:o}=a[y],{x:g,y:m,data:_,reset:k}=await o({x:u,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:l,platform:s,elements:{reference:t,floating:e}});u=null!=g?g:u,p=null!=m?m:p,f={...f,[n]:{...f[n],..._}},k&&d<=50&&(d++,"object"==typeof k&&(k.placement&&(h=k.placement),k.rects&&(l=!0===k.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):k.rects),({x:u,y:p}=Ly(l,h,c))),y=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:f}})(t,e,{...i,platform:o})},kg="react-tooltip-core-styles",vg="react-tooltip-base-styles",xg={core:!1,base:!1};function Eg({css:t,id:e=vg,type:n="base",ref:r}){var i,o;if(!t||"undefined"==typeof document||xg[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(e=kg),r||(r={});const{insertAt:s}=r;if(document.getElementById(e))return;const a=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=e,c.type="text/css","top"===s&&a.firstChild?a.insertBefore(c,a.firstChild):a.appendChild(c),c.styleSheet?c.styleSheet.cssText=t:c.appendChild(document.createTextNode(t)),xg[n]=!0}const Tg=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[Dy(Number(i)),gg({fallbackAxisSideDirection:"start"}),yg({padding:5})],border:a})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=s;return n?(c.push(mg({element:n,padding:5})),_g(t,e,{placement:r,strategy:o,middleware:c}).then((({x:t,y:e,placement:n,middlewareData:r})=>{var i,o;const s={left:`${t}px`,top:`${e}px`,border:a},{x:c,y:l}=null!==(i=r.arrow)&&void 0!==i?i:{x:0,y:0},u=null!==(o={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==o?o:"bottom",p=a&&{borderBottom:a,borderRight:a};let h=0;if(a){const t=`${a}`.match(/(\d+)px/);h=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=l?`${l}px`:"",right:"",bottom:"",...p,[u]:`-${4+h}px`},place:n}}))):_g(t,e,{placement:"bottom",strategy:o,middleware:c}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))},wg=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),bg=(t,e,n)=>{let r=null;const i=function(...i){const o=()=>{r=null,n||t.apply(this,i)};n&&!r&&(t.apply(this,i),r=setTimeout(o,e)),n||(r&&clearTimeout(r),r=setTimeout(o,e))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},Ag=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,Rg=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>Rg(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!Ag(t)||!Ag(e))return t===e;const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((n=>Rg(t[n],e[n])))},Cg=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},Sg=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(Cg(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},Ng="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,Og=t=>{t.current&&(clearTimeout(t.current),t.current=null)},Ig="DEFAULT_TOOLTIP_ID",Lg={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Pg=(0,s.createContext)({getTooltipData:()=>Lg});function Dg(t=Ig){return(0,s.useContext)(Pg).getTooltipData(t)}var zg={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Mg={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Fg=({forwardRef:t,id:e,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:c="top",offset:l=10,events:u=["hover"],openOnClick:h=!1,positionStrategy:f="absolute",middlewares:d,wrapper:y,delayShow:g=0,delayHide:m=0,float:_=!1,hidden:k=!1,noArrow:v=!1,clickable:x=!1,closeOnEsc:E=!1,closeOnScroll:T=!1,closeOnResize:w=!1,openEvents:b,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:C,style:S,position:N,afterShow:O,afterHide:I,disableTooltip:L,content:P,contentWrapperRef:D,isOpen:z,defaultIsOpen:M=!1,setIsOpen:F,activeAnchor:U,setActiveAnchor:j,border:H,opacity:V,arrowColor:B,role:W="tooltip"})=>{var G;const q=(0,s.useRef)(null),Y=(0,s.useRef)(null),K=(0,s.useRef)(null),$=(0,s.useRef)(null),X=(0,s.useRef)(null),[J,Q]=(0,s.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:c}),[Z,tt]=(0,s.useState)(!1),[et,nt]=(0,s.useState)(!1),[rt,it]=(0,s.useState)(null),ot=(0,s.useRef)(!1),st=(0,s.useRef)(null),{anchorRefs:at,setActiveAnchor:ct}=Dg(e),lt=(0,s.useRef)(!1),[ut,pt]=(0,s.useState)([]),ht=(0,s.useRef)(!1),ft=h||u.includes("click"),dt=ft||(null==b?void 0:b.click)||(null==b?void 0:b.dblclick)||(null==b?void 0:b.mousedown),yt=b?{...b}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!b&&ft&&Object.assign(yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const gt=A?{...A}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!A&&ft&&Object.assign(gt,{mouseleave:!1,blur:!1,mouseout:!1});const mt=R?{...R}:{escape:E||!1,scroll:T||!1,resize:w||!1,clickOutsideAnchor:dt||!1};C&&(Object.assign(yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(gt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(mt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Ng((()=>(ht.current=!0,()=>{ht.current=!1})),[]);const _t=t=>{ht.current&&(t&&nt(!0),setTimeout((()=>{ht.current&&(null==F||F(t),void 0===z&&tt(t))}),10))};(0,s.useEffect)((()=>{if(void 0===z)return()=>null;z&&nt(!0);const t=setTimeout((()=>{tt(z)}),10);return()=>{clearTimeout(t)}}),[z]),(0,s.useEffect)((()=>{if(Z!==ot.current)if(Og(X),ot.current=Z,Z)null==O||O();else{const t=(t=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,n,r]=e;return Number(n)*("ms"===r?1:1e3)})();X.current=setTimeout((()=>{nt(!1),it(null),null==I||I()}),t+25)}}),[Z]);const kt=t=>{Q((e=>Rg(e,t)?e:t))},vt=(t=g)=>{Og(K),et?_t(!0):K.current=setTimeout((()=>{_t(!0)}),t)},xt=(t=m)=>{Og($),$.current=setTimeout((()=>{lt.current||_t(!1)}),t)},Et=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return j(null),void ct({current:null});g?vt():_t(!0),j(n),ct({current:n}),Og($)},Tt=()=>{x?xt(m||100):m?xt():_t(!1),Og(K)},wt=({x:t,y:e})=>{var n;const r={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};Tg({place:null!==(n=null==rt?void 0:rt.place)&&void 0!==n?n:c,offset:l,elementReference:r,tooltipReference:q.current,tooltipArrowReference:Y.current,strategy:f,middlewares:d,border:H}).then((t=>{kt(t)}))},bt=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};wt(n),st.current=n},At=t=>{var e;if(!Z)return;const n=t.target;n.isConnected&&((null===(e=q.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${o}']`),...ut].some((t=>null==t?void 0:t.contains(n)))||(_t(!1),Og(K)))},Rt=bg(Et,50,!0),Ct=bg(Tt,50,!0),St=t=>{Ct.cancel(),Rt(t)},Nt=()=>{Rt.cancel(),Ct()},Ot=(0,s.useCallback)((()=>{var t,e;const n=null!==(t=null==rt?void 0:rt.position)&&void 0!==t?t:N;n?wt(n):_?st.current&&wt(st.current):(null==U?void 0:U.isConnected)&&Tg({place:null!==(e=null==rt?void 0:rt.place)&&void 0!==e?e:c,offset:l,elementReference:U,tooltipReference:q.current,tooltipArrowReference:Y.current,strategy:f,middlewares:d,border:H}).then((t=>{ht.current&&kt(t)}))}),[Z,U,P,S,c,null==rt?void 0:rt.place,l,f,N,null==rt?void 0:rt.position,_]);(0,s.useEffect)((()=>{var t,e;const n=new Set(at);ut.forEach((t=>{(null==L?void 0:L(t))||n.add({current:t})}));const r=document.querySelector(`[id='${o}']`);r&&!(null==L?void 0:L(r))&&n.add({current:r});const i=()=>{_t(!1)},s=Sg(U),a=Sg(q.current);mt.scroll&&(window.addEventListener("scroll",i),null==s||s.addEventListener("scroll",i),null==a||a.addEventListener("scroll",i));let c=null;mt.resize?window.addEventListener("resize",i):U&&q.current&&(c=dg(U,q.current,Ot,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const l=t=>{"Escape"===t.key&&_t(!1)};mt.escape&&window.addEventListener("keydown",l),mt.clickOutsideAnchor&&window.addEventListener("click",At);const u=[],p=t=>{Z&&(null==t?void 0:t.target)===U||Et(t)},h=t=>{Z&&(null==t?void 0:t.target)===U&&Tt()},f=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],d=["click","dblclick","mousedown","mouseup"];Object.entries(yt).forEach((([t,e])=>{e&&(f.includes(t)?u.push({event:t,listener:St}):d.includes(t)&&u.push({event:t,listener:p}))})),Object.entries(gt).forEach((([t,e])=>{e&&(f.includes(t)?u.push({event:t,listener:Nt}):d.includes(t)&&u.push({event:t,listener:h}))})),_&&u.push({event:"pointermove",listener:bt});const y=()=>{lt.current=!0},g=()=>{lt.current=!1,Tt()};return x&&!dt&&(null===(t=q.current)||void 0===t||t.addEventListener("mouseenter",y),null===(e=q.current)||void 0===e||e.addEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(t,e)}))})),()=>{var t,e;mt.scroll&&(window.removeEventListener("scroll",i),null==s||s.removeEventListener("scroll",i),null==a||a.removeEventListener("scroll",i)),mt.resize?window.removeEventListener("resize",i):null==c||c(),mt.clickOutsideAnchor&&window.removeEventListener("click",At),mt.escape&&window.removeEventListener("keydown",l),x&&!dt&&(null===(t=q.current)||void 0===t||t.removeEventListener("mouseenter",y),null===(e=q.current)||void 0===e||e.removeEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(t,e)}))}))}}),[U,Ot,et,at,ut,b,A,R,ft,g,m]),(0,s.useEffect)((()=>{var t,n;let r=null!==(n=null!==(t=null==rt?void 0:rt.anchorSelect)&&void 0!==t?t:a)&&void 0!==n?n:"";!r&&e&&(r=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`);const i=new MutationObserver((t=>{const n=[],i=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===e?n.push(t.target):t.oldValue===e&&i.push(t.target)),"childList"===t.type){if(U){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(r)try{i.push(...e.filter((t=>t.matches(r)))),i.push(...e.flatMap((t=>[...t.querySelectorAll(r)])))}catch(t){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,U))&&(nt(!1),_t(!1),j(null),Og(K),Og($),!0)}))}if(r)try{const e=[...t.addedNodes].filter((t=>1===t.nodeType));n.push(...e.filter((t=>t.matches(r)))),n.push(...e.flatMap((t=>[...t.querySelectorAll(r)])))}catch(t){}}})),(n.length||i.length)&&pt((t=>[...t.filter((t=>!i.includes(t))),...n]))}));return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}}),[e,a,null==rt?void 0:rt.anchorSelect,U]),(0,s.useEffect)((()=>{Ot()}),[Ot]),(0,s.useEffect)((()=>{if(!(null==D?void 0:D.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>Ot()))}));return t.observe(D.current),()=>{t.disconnect()}}),[P,null==D?void 0:D.current]),(0,s.useEffect)((()=>{var t;const e=document.querySelector(`[id='${o}']`),n=[...ut,e];U&&n.includes(U)||j(null!==(t=ut[0])&&void 0!==t?t:e)}),[o,ut,U]),(0,s.useEffect)((()=>(M&&_t(!0),()=>{Og(K),Og($)})),[]),(0,s.useEffect)((()=>{var t;let n=null!==(t=null==rt?void 0:rt.anchorSelect)&&void 0!==t?t:a;if(!n&&e&&(n=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),n)try{const t=Array.from(document.querySelectorAll(n));pt(t)}catch(t){pt([])}}),[e,a,null==rt?void 0:rt.anchorSelect]),(0,s.useEffect)((()=>{K.current&&(Og(K),vt(g))}),[g]);const It=null!==(G=null==rt?void 0:rt.content)&&void 0!==G?G:P,Lt=Z&&Object.keys(J.tooltipStyles).length>0;return(0,s.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}it(null!=e?e:null),(null==e?void 0:e.delay)?vt(e.delay):_t(!0)},close:t=>{(null==t?void 0:t.delay)?xt(t.delay):_t(!1)},activeAnchor:U,place:J.place,isOpen:Boolean(et&&!k&&It&&Lt)}))),et&&!k&&It?s.createElement(y,{id:e,role:W,className:p("react-tooltip",zg.tooltip,Mg.tooltip,Mg[i],n,`react-tooltip__place-${J.place}`,zg[Lt?"show":"closing"],Lt?"react-tooltip__show":"react-tooltip__closing","fixed"===f&&zg.fixed,x&&zg.clickable),onTransitionEnd:t=>{Og(X),Z||"opacity"!==t.propertyName||(nt(!1),it(null),null==I||I())},style:{...S,...J.tooltipStyles,opacity:void 0!==V&&Lt?V:void 0},ref:q},It,s.createElement(y,{className:p("react-tooltip-arrow",zg.arrow,Mg.arrow,r,v&&zg.noArrow),style:{...J.tooltipArrowStyles,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:Y})):null},Ug=({content:t})=>s.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),jg=s.forwardRef((({id:t,anchorId:e,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:c,variant:l="dark",place:u="top",offset:h=10,wrapper:f="div",children:d=null,events:y=["hover"],openOnClick:g=!1,positionStrategy:m="absolute",middlewares:_,delayShow:k=0,delayHide:v=0,float:x=!1,hidden:E=!1,noArrow:T=!1,clickable:w=!1,closeOnEsc:b=!1,closeOnScroll:A=!1,closeOnResize:R=!1,openEvents:C,closeEvents:S,globalCloseEvents:N,imperativeModeOnly:O=!1,style:I,position:L,isOpen:P,defaultIsOpen:D=!1,disableStyleInjection:z=!1,border:M,opacity:F,arrowColor:U,setIsOpen:j,afterShow:H,afterHide:V,disableTooltip:B,role:W="tooltip"},G)=>{const[q,Y]=(0,s.useState)(r),[K,$]=(0,s.useState)(i),[X,J]=(0,s.useState)(u),[Q,Z]=(0,s.useState)(l),[tt,et]=(0,s.useState)(h),[nt,rt]=(0,s.useState)(k),[it,ot]=(0,s.useState)(v),[st,at]=(0,s.useState)(x),[ct,lt]=(0,s.useState)(E),[ut,pt]=(0,s.useState)(f),[ht,ft]=(0,s.useState)(y),[dt,yt]=(0,s.useState)(m),[gt,mt]=(0,s.useState)(null),[_t,kt]=(0,s.useState)(null),vt=(0,s.useRef)(z),{anchorRefs:xt,activeAnchor:Et}=Dg(t),Tt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var r;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(r=null==t?void 0:t.getAttribute(n))&&void 0!==r?r:null),e}),{}),wt=t=>{const e={place:t=>{var e;J(null!==(e=t)&&void 0!==e?e:u)},content:t=>{Y(null!=t?t:r)},html:t=>{$(null!=t?t:i)},variant:t=>{var e;Z(null!==(e=t)&&void 0!==e?e:l)},offset:t=>{et(null===t?h:Number(t))},wrapper:t=>{var e;pt(null!==(e=t)&&void 0!==e?e:f)},events:t=>{const e=null==t?void 0:t.split(" ");ft(null!=e?e:y)},"position-strategy":t=>{var e;yt(null!==(e=t)&&void 0!==e?e:m)},"delay-show":t=>{rt(null===t?k:Number(t))},"delay-hide":t=>{ot(null===t?v:Number(t))},float:t=>{at(null===t?x:"true"===t)},hidden:t=>{lt(null===t?E:"true"===t)},"class-name":t=>{mt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var r;null===(r=e[t])||void 0===r||r.call(e,n)}))};(0,s.useEffect)((()=>{Y(r)}),[r]),(0,s.useEffect)((()=>{$(i)}),[i]),(0,s.useEffect)((()=>{J(u)}),[u]),(0,s.useEffect)((()=>{Z(l)}),[l]),(0,s.useEffect)((()=>{et(h)}),[h]),(0,s.useEffect)((()=>{rt(k)}),[k]),(0,s.useEffect)((()=>{ot(v)}),[v]),(0,s.useEffect)((()=>{at(x)}),[x]),(0,s.useEffect)((()=>{lt(E)}),[E]),(0,s.useEffect)((()=>{yt(m)}),[m]),(0,s.useEffect)((()=>{vt.current!==z&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[z]),(0,s.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===z,disableBase:z}}))}),[]),(0,s.useEffect)((()=>{var r;const i=new Set(xt);let o=n;if(!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach((t=>{i.add({current:t})}))}catch(r){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${e}']`);if(s&&i.add({current:s}),!i.size)return()=>null;const a=null!==(r=null!=_t?_t:s)&&void 0!==r?r:Et.current,c=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=Tt(a);wt(n)}))})),l={attributes:!0,childList:!1,subtree:!1};if(a){const t=Tt(a);wt(t),c.observe(a,l)}return()=>{c.disconnect()}}),[xt,Et,_t,e,n]),(0,s.useEffect)((()=>{(null==I?void 0:I.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!wg("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==I?void 0:I.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!wg("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let bt=d;const At=(0,s.useRef)(null);if(o){const t=o({content:(null==_t?void 0:_t.getAttribute("data-tooltip-content"))||q||null,activeAnchor:_t});bt=t?s.createElement("div",{ref:At,className:"react-tooltip-content-wrapper"},t):null}else q&&(bt=q);K&&(bt=s.createElement(Ug,{content:K}));const Rt={forwardRef:G,id:t,anchorId:e,anchorSelect:n,className:p(a,gt),classNameArrow:c,content:bt,contentWrapperRef:At,place:X,variant:Q,offset:tt,wrapper:ut,events:ht,openOnClick:g,positionStrategy:dt,middlewares:_,delayShow:nt,delayHide:it,float:st,hidden:ct,noArrow:T,clickable:w,closeOnEsc:b,closeOnScroll:A,closeOnResize:R,openEvents:C,closeEvents:S,globalCloseEvents:N,imperativeModeOnly:O,style:I,position:L,isOpen:P,defaultIsOpen:D,border:M,opacity:F,arrowColor:U,setIsOpen:j,afterShow:H,afterHide:V,disableTooltip:B,activeAnchor:_t,setActiveAnchor:t=>kt(t),role:W};return s.createElement(Fg,{...Rt})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||Eg({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||Eg({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Hg=u("RouterLink",(t=>{const{to:e,children:n,...r}=t;return(0,o.jsx)("a",{href:e,...r,children:n})})),Vg=u("MarkdownLink",(({href:t,children:e,tooltip:n})=>{const r=(0,s.useId)(),i=n?{"data-tooltip-id":`tooltip-${r}`,className:"link-md"}:{},a=t.trim().startsWith("/");return(0,o.jsxs)(o.Fragment,{children:[a?(0,o.jsx)(Hg,{to:t,id:r,...i,children:e}):(0,o.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",id:r,...i,children:e}),n&&(0,o.jsx)(jg,{className:"tooltip-content",id:`tooltip-${r}`,children:n})]})}));function Bg(t,e,n){const r=pd((n||{}).ignore||[]),i=function(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const t=n[r];e.push([Wg(t[0]),Gg(t[1])])}return e}(e);let o=-1;for(;++o<i.length;)kd(t,"text",s);function s(t,e){let n,s=-1;for(;++s<e.length;){const t=e[s],i=n?n.children:void 0;if(r(t,i?i.indexOf(t):void 0,n))return;n=t}if(n)return function(t,e){const n=e[e.length-1],r=i[o][0],s=i[o][1];let a=0;const c=n.children.indexOf(t);let l=!1,u=[];r.lastIndex=0;let p=r.exec(t.value);for(;p;){const n=p.index,i={index:p.index,input:p.input,stack:[...e,t]};let o=s(...p,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:t.value.slice(a,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),a=n+p[0].length,l=!0),!r.global)break;p=r.exec(t.value)}l?(a<t.value.length&&u.push({type:"text",value:t.value.slice(a)}),n.children.splice(c,1,...u)):u=[t];return c+u.length}(t,e)}}function Wg(t){return"string"==typeof t?new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t),"g"):t}function Gg(t){return"function"==typeof t?t:function(){return t}}function qg(){return{type:"break"}}function Yg(){return function(t){!function(t){Bg(t,[/\r?\n|\r/g,qg])}(t)}}var Kg=n(9756),$g=n(9947),Xg=n(8890);n(4983),$g();var Jg=String.fromCharCode(65039),Qg=new RegExp(Jg,"g");function Zg(t){return t.replace(Qg,"")}function tm(t){return/:.+:/.test(t)?t.slice(1,-1):t}var em=Object.entries(Kg.lib).map((([t,{char:e}])=>[t,e])),nm=new Map(em);new Map(em.map((([t,e])=>[Zg(e),t])));const rm=[{name:"angry",emoji:"\ud83d\ude20",tags:["mad","annoyed"],description:"angry face",emoticons:[">:(",">:[",">:-(",">:-[",">=(",">=[",">=-(",">=-["]},{name:"blush",emoji:"\ud83d\ude0a",tags:["proud"],description:"smiling face with smiling eyes",emoticons:[':")',':"]',':"D',':-")',':-"]',':-"D','=")','="]','="D','=-")','=-"]','=-"D']},{name:"broken_heart",emoji:"\ud83d\udc94",tags:[],description:"broken heart",emoticons:["<\\3","</3"]},{name:"confused",emoji:"\ud83d\ude15",tags:[],description:"confused face",emoticons:[":/",":\\",":-/",":-\\","=/","=\\","=-/","=-\\"]},{name:"cry",emoji:"\ud83d\ude22",tags:["sad","tear"],description:"crying face",emoticons:[":,(",":,[",":,|",":,-(",":,-[",":,-|",":'(",":'[",":'|",":'-(",":'-[",":'-|","=,(","=,[","=,|","=,-(","=,-[","=,-|","='(","='[","='|","='-(","='-[","='-|"]},{name:"frowning",emoji:"\ud83d\ude26",tags:[],description:"frowning face with open mouth",emoticons:[":(",":[",":-(",":-[","=(","=[","=-(","=-["]},{name:"heart",emoji:"\u2764\ufe0f",tags:["love"],description:"red heart",emoticons:["<3"]},{name:"imp",emoji:"\ud83d\udc7f",tags:["angry","devil","evil","horns"],description:"angry face with horns",emoticons:["]:(","]:[","]:-(","]:-[","]=(","]=[","]=-(","]=-["]},{name:"innocent",emoji:"\ud83d\ude07",tags:["angel"],description:"smiling face with halo",emoticons:["o:)","o:]","o:D","o:-)","o:-]","o:-D","o=)","o=]","o=D","o=-)","o=-]","o=-D","O:)","O:]","O:D","O:-)","O:-]","O:-D","O=)","O=]","O=D","O=-)","O=-]","O=-D","0:)","0:]","0:D","0:-)","0:-]","0:-D","0=)","0=]","0=D","0=-)","0=-]","0=-D"]},{name:"joy",emoji:"\ud83d\ude02",tags:["tears"],description:"face with tears of joy",emoticons:[":,)",":,]",":,D",":,-)",":,-]",":,-D",":')",":']",":'D",":'-)",":'-]",":'-D","=,)","=,]","=,D","=,-)","=,-]","=,-D","=')","=']","='D","='-)","='-]","='-D"]},{name:"kissing",emoji:"\ud83d\ude17",tags:[],description:"kissing face",emoticons:[":*",":-*","=*","=-*"]},{name:"laughing",emoji:"\ud83d\ude06",tags:["happy","haha"],description:"grinning squinting face",emoticons:["x)","x]","xD","x-)","x-]","x-D","X)","X]","X-)","X-]","X-D"]},{name:"man",emoji:"\ud83d\udc68",tags:["mustache","father","dad"],description:"man",emoticons:[":3",":-3","=3","=-3",";3",";-3","x3","x-3","X3","X-3"]},{name:"neutral_face",emoji:"\ud83d\ude10",tags:["meh"],description:"neutral face",emoticons:[":|",":-|","=|","=-|"]},{name:"no_mouth",emoji:"\ud83d\ude36",tags:["mute","silence"],description:"face without mouth",emoticons:[":-"]},{name:"open_mouth",emoji:"\ud83d\ude2e",tags:["surprise","impressed","wow"],description:"face with open mouth",emoticons:[":o",":O",":0",":-o",":-O",":-0","=o","=O","=0","=-o","=-O","=-0"]},{name:"rage",emoji:"\ud83d\ude21",tags:["angry"],description:"pouting face",emoticons:[":@",":-@","=@","=-@"]},{name:"smile",emoji:"\ud83d\ude04",tags:["happy","joy","laugh","pleased"],description:"grinning face with smiling eyes",emoticons:[":D",":-D","=D","=-D"]},{name:"smiley",emoji:"\ud83d\ude03",tags:["happy","joy","haha"],description:"grinning face with big eyes",emoticons:[":)",":]",":-)",":-]","=)","=]","=-)","=-]"]},{name:"smiling_imp",emoji:"\ud83d\ude08",tags:["devil","evil","horns"],description:"smiling face with horns",emoticons:["]:)","]:]","]:D","]:-)","]:-]","]:-D","]=)","]=]","]=D","]=-)","]=-]","]=-D"]},{name:"sob",emoji:"\ud83d\ude2d",tags:["sad","cry","bawling"],description:"loudly crying face",emoticons:[":,'(",":,'[",":,'-(",":,'-[",":',(",":',[",":',-(",":',-[","=,'(","=,'[","=,'-(","=,'-[","=',(","=',[","=',-(","=',-["]},{name:"stuck_out_tongue",emoji:"\ud83d\ude1b",tags:[],description:"face with tongue",emoticons:[":p",":P",":d",":-p",":-P",":-d","=p","=P","=d","=-p","=-P","=-d"]},{name:"stuck_out_tongue_closed_eyes",emoji:"\ud83d\ude1d",tags:["prank"],description:"squinting face with tongue",emoticons:["xP","x-p","x-P","x-d","Xp","Xd","X-p","X-P","X-d"]},{name:"stuck_out_tongue_winking_eye",emoji:"\ud83d\ude1c",tags:["prank","silly"],description:"winking face with tongue",emoticons:[";p",";P",";d",";-p",";-P",";-d"]},{name:"sunglasses",emoji:"\ud83d\ude0e",tags:["cool"],description:"smiling face with sunglasses",emoticons:["8)","8]","8D","8-)","8-]","8-D","B)","B]","B-)","B-]","B-D"]},{name:"sweat",emoji:"\ud83d\ude13",tags:[],description:"downcast face with sweat",emoticons:[",:(",",:[",",:-(",",:-[",",=(",",=[",",=-(",",=-[","':(","':[","':-(","':-[","'=(","'=[","'=-(","'=-["]},{name:"sweat_smile",emoji:"\ud83d\ude05",tags:["hot"],description:"grinning face with sweat",emoticons:[",:)",",:]",",:D",",:-)",",:-]",",:-D",",=)",",=]",",=D",",=-)",",=-]",",=-D","':)","':]","':D","':-)","':-]","':-D","'=)","'=]","'=D","'=-)","'=-]","'=-D"]},{name:"unamused",emoji:"\ud83d\ude12",tags:["meh"],description:"unamused face",emoticons:[":$",":s",":z",":S",":Z",":-$",":-s",":-z",":-S",":-Z","=$","=s","=z","=S","=Z","=-$","=-s","=-z","=-S","=-Z"]},{name:"wink",emoji:"\ud83d\ude09",tags:["flirt"],description:"winking face",emoticons:[";)",";]",";D",";-)",";-]",";-D"]}],im=/:\+1:|:-1:|:[\w-]+:/g,om=/[$@|*'",;.=:\-)([\]\\/<>038BOopPsSdDxXzZ]{2,5}/g,sm=/(?:_|-(?!1))/g,am={padSpaceAfter:!1,emoticon:!1,accessible:!1},cm=t=>{const e=Object.assign({},am,t),n=!!e.padSpaceAfter,r=!!e.emoticon,i=!!e.accessible;function o(t,e){return{type:"text",value:t,data:{hName:"span",hProperties:{role:"img",ariaLabel:e},hChildren:[{type:"text",value:t}]}}}const s=[[im,function(t){let e=(r=t,Xg.assert.string(r),nm.get(tm(r)));var r;if(void 0===e)return!1;if(n&&(e+=" "),i){return o(e,t.slice(1,-1).replace(sm," ")+" emoji")}return e}]];return r&&s.push([om,function(t){const e=rm.find((e=>e.emoticons.includes(t))),r=rm.find((e=>e.emoticons.includes(t.slice(0,-1)))),s=e||r;if(!s)return!1;const a=!e&&r?t.slice(-1):"",c=n?" ":"",l=s.emoji+c+a;return i?o(l,s.name+" emoticon"):l}]),function(t){Bg(t,s)}};function lm({expression:t}){const e={p:/\n\n/.test(t)?"p":s.Fragment,br:"br",a:um};return(0,o.jsx)(hy,{components:e,remarkPlugins:[[cm,{accessible:!0}],Yg],children:t})}const um=({title:t,href:e,children:n})=>{const r=t?(0,o.jsx)(lm,{expression:t}):null;return(0,o.jsx)(Vg,{href:e,tooltip:r,children:n})};function pm(t,e,n={}){if("Loop"===e.componentType||"Roundabout"===e.componentType)return function(t,e){if(!("iterations"in e))return t;for(const n of e.components)t=pm(t,n,{iterations:e.iterations});return t}(t,e);if(("Subsequence"===e.componentType||"Sequence"===e.componentType)&&e.label){const r="page"in e?e.page:e.goToPage,i=r.split(".");t.push({id:e.id,type:e.componentType,pageTag:r,page:parseInt(i[0],10),label:e.label,description:e.description,conditionFilter:e.conditionFilter,...n})}return t}function hm(t){return t.components.reduce(((t,e)=>pm(t,e)),[])}const fm={page:1,maxPage:1,subPage:void 0,nbSubPages:void 0,iteration:void 0,shallowIteration:void 0,nbIterations:void 0},dm={variables:new Ou,pager:fm,previousPager:fm,pages:{},isInLoop:!1,updatedAt:Date.now(),overview:[],updateBindings:()=>{},executeExpression:()=>null};function ym({source:t,data:e,features:n=["VTL"],initialPage:r="1",lastReachedPage:i,withOverview:s=!1,getReferentiel:a,onVariableChange:c,logger:l}){const u=Ou.makeFromSource(t,e,c),p=Mu(Uu(t));if(!t||!e)return dm;a&&t.suggesters&&function(t,e){if(t){Gn=e;for(const e of t)Wn.set(e.name,new Bn(e))}}(t.suggesters,a);const h=pr(r),f={page:h?.page??1,maxPage:t.maxPage?parseInt(t.maxPage,10):1,subPage:void 0,nbSubPages:void 0,iteration:void 0,nbIterations:void 0,lastReachedPage:i??r};return function(t){const{pager:e,pages:n}=t;if(!(e.page in n))return t;const{isLoop:r,subPages:i,iterations:o,loopDependencies:s}=n[e.page];if(!r)return t;return{...t,isInLoop:!0,pager:{...e,subPage:e?.subPage??0,nbSubPages:(i??[]).length,iteration:e?.iteration??0,nbIterations:je(t.executeExpression(o,{deps:s}))}}}({variables:u,pager:f,previousPager:f,pages:p,isInLoop:!1,updatedAt:Date.now(),overview:s?hm(t):[],updateBindings:(t,e,n)=>{u.set(t,e,n)},executeExpression:(t,e={})=>{e?.bindingDependencies&&(e.deps=e.bindingDependencies);const r=function(t){return"string"==typeof t?"TXT":t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type?t.type:""}(t),i=xu(t);if(!n?.includes(ju)||!r.includes(ju))return i;try{const t=u.run(i,{...e,iteration:"number"==typeof e.iteration?[e.iteration]:e.iteration});return n.includes(Hu)&&r.includes(Hu)&&"string"==typeof t&&""!==t?(0,o.jsx)(lm,{expression:t}):t}catch(s){return l({type:"ERROR",error:s}),i}}})}let gm=null;const mm=new Map;function _m(t,e){t!==gm&&(gm=t,mm.clear());let n=mm.get(e);return n||(n=n=>{t(n.map((t=>({...t,iteration:[e]}))))},mm.set(e,n),n)}function km(t,e){switch(t.componentType){case"Roundabout":return function(t,e){const n=R(t.iterations,(n=>({progress:e.variables.get(t.progressVariable,[n]),...Object.fromEntries(Object.entries(t.item).map((([t,r])=>[t,e.executeExpression(r,{iteration:n})])))})));return{items:n,page:parseInt(t.page??"1",10)}}(t,e);case"Question":return function(t,e){return{components:wm(t.components,e)}}(t,e);case"Loop":case"RosterForLoop":return function(t,e){return{getComponents:n=>wm(t.components,{...e,handleChanges:_m(e.handleChanges,n),pager:{...e.pager,iteration:n,subPage:0}})}}(t,e);case"PairwiseLinks":return function(t,e){return{getComponents:(n,r)=>n===r?[]:wm(t.components,{...e,handleChanges:i=>{e.handleChanges(i.reduce(((e,i)=>i.name in t.symLinks&&i.value in t.symLinks[i.name]?[...e,{...i,iteration:[n,r]},{name:i.name,value:t.symLinks[i.name][i.value],iteration:[r,n]}]:[...e,{...i,iteration:[n,r]}]),[]))},pager:{...e.pager,linksIterations:[n,r],subPage:0}})}}(t,e);case"Table":return function(t,e){return{body:t.body.map((t=>t.map((t=>I(t)?Tm(t,e):{...t,label:e.executeExpression(t.label,{iteration:e.pager.iteration})}))))}}(t,e);case"Suggester":return function(t,e){return t.arbitrary?{arbitraryValue:e.executeExpression({type:"VTL",value:t.arbitrary.response.name},{iteration:e.pager.iteration})}:{}}(t,e);default:return{}}}function vm(t,{pager:e,variables:n}){if(!("missingResponse"in t)||!t.missingResponse)return;const r=t.missingResponse;return{...r,value:n.get(r.name,He(e.iteration)?[e.iteration]:void 0)}}function xm(t,e){return"iterations"in t&&t.iterations?je(e.executeExpression(t.iterations,{iteration:e.pager.iteration})):"RosterForLoop"===t.componentType||"Loop"===t.componentType?t.components.reduce(((t,n)=>{if(!O(n))return t;const r=e.variables.get(n.response.name,He(e.pager.iteration)?[e.pager.iteration]:void 0);return Array.isArray(r)&&r.length>t?r.length:t}),0):void 0}function Em(t,e,n,r,i){const o=He(r)?[r]:void 0;return"CheckboxGroup"===t.componentType?t.responses.filter((t=>!t.conditionFilter||e.run(t.conditionFilter.value,{iteration:o}))).map((t=>({label:t.label,name:t.response.name,id:t.id,checked:!!e.get(t.response.name,o),description:t.description,detailLabel:t.detail?.label,detailValue:t.detail?.response?e.get(t.detail.response.name,o):void 0,onCheck:e=>{n([{name:t.response.name,value:e}])},onDetailChange:t.detail?.response?e=>{n([{name:t.detail.response.name,value:e}])}:void 0}))):"options"in t?t.options.filter((t=>!("conditionFilter"in t)||!t.conditionFilter||e.run(t.conditionFilter.value,{iteration:o}))).map((r=>({label:r.label,description:r.description,value:r.value,checked:i===r.value,detailLabel:"detail"in r?r.detail?.label:void 0,onCheck:()=>{n([{name:t.response.name,value:r.value}])},detailValue:"detail"in r&&r.detail?e.get(r.detail.response.name,o):null,onDetailChange:"detail"in r&&r.detail?t=>{n([{name:r.detail.response.name,value:t}])}:null}))):[]}const Tm=(t,e)=>{const n=Er(t,e),r=function(t,e){let n=He(e.pager.iteration)?[e.pager.iteration]:void 0;return e.pager.linksIterations&&(n=e.pager.linksIterations),function(t){return!!t&&"object"==typeof t&&"responses"in t}(t)?Object.fromEntries(t.responses?.map((({response:t})=>[t.name,e.variables.get(t.name,n)]))??[]):O(t)?e.variables.get(t.response.name,n):"components"in t?Object.fromEntries(t.components.map((t=>"response"in t?t.response.name:null)).filter((t=>null!==t)).map((t=>[t,e.variables.get(t)]))):null}(t,e);return{...n,handleChanges:e.handleChanges,executeExpression:e.executeExpression,preferences:e.preferences,goToPage:e.goToPage,shortcut:e.shortcut,goNextPage:e.goNextPage,goPreviousPage:e.goPreviousPage,iteration:e.pager.iteration,required:"mandatory"in t&&t.mandatory,value:r,missingResponse:vm(t,e),management:e.management,iterations:xm(t,e),options:Em(n,e.variables,e.handleChanges,e.pager.iteration,r),...km(n,e)}};function wm(t,e){return t.map((t=>Tm(t,e))).filter((({conditionFilter:t})=>t??!0))}const bm=function(t,e,n){if(t&&"function"==typeof e){const i=e(t,{iteration:n});return Array.isArray(i)?(r=i,Array.isArray(r)?r.find((t=>null!=t)):r):i}var r};function Am({subPage:t,page:e}){return void 0===t?e:`${e}.${t+1}`}function Rm(t){const{executeExpression:e,pager:n}=t,{iteration:r}=n;return 0===br(t).filter((t=>!("conditionFilter"in t)||!t.conditionFilter||bm(t.conditionFilter,e,r))).length}const Cm={subPage:void 0,nbSubPages:void 0,iteration:void 0,nbIterations:void 0};function Sm(t,e){let[n,r]=void 0!==t.subPage?[t.page,t.subPage+1]:[t.page+1,void 0],i=t.iteration;if(n>t.maxPage)return t;const o=!(!r||!t.nbSubPages)&&r>=t.nbSubPages,s="Roundabout"===e&&t.nbIterations&&t.nbIterations>1;return o&&s?{...t,page:n,...Cm}:(o&&void 0!==i&&(r=0,i++),void 0!==i&&t.nbIterations&&i>=t.nbIterations?Sm({...t,page:n,...Cm},e):{...t,page:n,subPage:r,iteration:i})}function Nm(t,e){let[n,r]=void 0!==t.subPage?[t.page,t.subPage-1]:[t.page-1,void 0],i=t.iteration;const o="Roundabout"===e&&t.nbIterations&&t.nbIterations>1;if(n<=0)return t;if(void 0!==r&&void 0!==t.nbSubPages&&r<0){if(o)return{...t,page:n,...Cm};r=t.nbSubPages-1,i=(i??0)-1}return void 0!==i&&i<0?Nm({...t,page:n,...Cm},e):{...t,page:n,subPage:r,iteration:i}}function Om(t,e="forward"){const n={...t.pager},r=Am(n),i=t.pages[r];let o=!1;const s="forward"===e,a=(t,e)=>{if(0===e)return n.page+=s?1:-1,void(o=!0);const r=t.length,i=function(t){return t.split(".").map((t=>parseInt(t,10)))}(t[s?0:r-1]);n.page=i[0],n.subPage=i[1]-1,n.nbSubPages=r,n.nbIterations=e,n.iteration=s?0:n.nbIterations-1,o=!0};if(i.isLoop&&i.subPages&&i.subPages.length>0&&a(i.subPages,t.executeExpression(i.iterations)),"Roundabout"===i.components[0].componentType&&i.subPages&&i.subPages.length>0){1===t.executeExpression(i.iterations)&&a(i.subPages,1)}return o?{...t,isInLoop:void 0!==n.nbIterations,pager:n}:t}function Im(t,e){const n=e=>!e&&He(t.pager.iteration)?[t.pager.iteration]:e;for(const r of e.payload.responses){const{name:e,value:i,iteration:o,...s}=r;t.updateBindings(e,i,{...s,iteration:n(o)})}return{...t,updatedAt:Date.now()}}function Lm(t){const{pages:e,pager:n}=t,r=e[n.page]?.components[0].componentType,i=Sm(n,r),o=Am(i);if(!e[o])throw new Error(`Cannot reach next page ${o}`);let s={...t,pager:i};if(Rm(s))return Lm(s);if(s=Om(s,"forward"),s.pager!==i&&Rm(s))return Lm(s);if(s.pager.page===s.previousPager.page&&void 0===s.pager.subPage&&void 0!==s.previousPager.iteration&&s.pages[s.pager.page].components.length>0){const t=s.pages[s.pager.page].components[0];"Roundabout"===t.componentType&&(s=Im(s,{type:Zn.HANDLE_CHANGES,payload:{responses:[{name:t.progressVariable,value:1,iteration:[s.previousPager.iteration]}]}}))}return{...s,isInLoop:void 0!==s.pager.iteration,previousPager:t.pager,pager:{...s.pager,lastReachedPage:hr(s.pager)}}}function Pm(t){const{pages:e,pager:n}=t,r=e[n.page]?.components[0].componentType,i=Nm(n,r),o=Am(i);if(!e[o])throw new Error(`Cannot reach previous page ${o}`);let s={...t,pager:i};return Rm(s)?Pm(s):(s=Om(s,"backward"),s.pager!==i&&Rm(s)?Pm(s):{...s,previousPager:t.pager,isInLoop:void 0!==s.pager.iteration})}function Dm(t,e){switch(e.type){case Zn.GO_PREVIOUS_PAGE:return Pm(t);case Zn.GO_NEXT_PAGE:return Lm(t);case Zn.GO_TO_PAGE:return function(t,e){if("string"==typeof e.payload.page){const n=pr(e.payload.page);if(!n)return console.error(`Cannot reach page "${e.payload.page}", not a number`),t;e.payload.iteration=n.iteration,e.payload.subPage=n.subPage,e.payload.page=n.page}const n={...t.pager,page:e.payload.page,subPage:e.payload.subPage,iteration:e.payload.iteration,nbIterations:void 0,nbSubPages:void 0},r=Am(n);if(!(r in t.pages))return console.error(`Page "${r}" does not exists in this questionnaire`),t;const i=t.pages[e.payload.page];void 0!==e.payload.subPage&&i.iterations&&(n.nbSubPages=i.subPages?.length,n.nbIterations=t.executeExpression(i.iterations)),void 0!==n.iteration&&void 0!==n.nbIterations&&n.iteration>=n.nbIterations&&(n.iteration=n.nbIterations-1);const o={...t,previousPager:t.pager,isInLoop:void 0!==n.nbIterations,pager:n};return Rm(o)?Lm(o):o}(t,e);case Zn.HANDLE_CHANGES:return Im(t,e);default:return t}}const zm={},Mm=zm,Fm={features:["VTL","MD"],preferences:[yr],savingType:yr,onChange:()=>{},onVariableChange:()=>{},management:!1,shortcut:!1,initialPage:"1",lastReachedPage:void 0,autoSuggesterLoading:!1,activeControls:!1,withOverview:!1,missing:!1,missingStrategy:()=>{},missingShortcut:{dontKnow:"",refused:""},dontKnowButton:Y.DK,refusedButton:Y.RF,trackChanges:!1,logger:t=>{"ERROR"===t.type&&console.error(t.error),"WARNING"===t.type&&console.warn(t.message)}};function Um(t,e=Mm,n=zm){const r=(i=n,a=Fm,ge({...i,...a},(t=>[t,i[t]??a[t]])));var i,a;const{management:c,missing:l,missingStrategy:u,shortcut:p,missingShortcut:h,dontKnowButton:f,refusedButton:d,onChange:y,trackChanges:g,preferences:m,logger:_}=r;!function(t,e,n){const r=(0,s.useRef)(!0),i=J(n);(0,s.useEffect)((()=>{r.current||i.current({type:"WARNING",message:e}),r.current=!1}),[t,i,e])}(_,"'logger' option should not change between render",_);const[k,v]=(0,s.useReducer)(Dm,{...r,source:t,data:e,onVariableChange:J(r.onVariableChange)},ym),x=(0,s.useMemo)((()=>function({management:t,missing:e,missingStrategy:n,shortcut:r,missingShortcut:i,dontKnowButton:s,refusedButton:a}){const c={management:t,missing:e,missingStrategy:n,shortcut:r,missingShortcut:i,dontKnowButton:s,refusedButton:a};return function({children:t}){return(0,o.jsx)(K.Provider,{value:c,children:t})}}({management:c,missing:l,missingStrategy:u,shortcut:p,missingShortcut:h,dontKnowButton:f,refusedButton:d})),[c,l,u,p,h,f,d]),E=(0,s.useCallback)((function(){v(sr())}),[v]),T=(0,s.useCallback)((function(t={}){v(ar(t))}),[v]),w=(0,s.useCallback)((function(t){v(cr(t))}),[v]),b=(0,s.useCallback)((t=>{v(lr(t)),y(t)}),[v,y]),A=(e,n)=>function(t,e,n=!1,r){const i={EXTERNAL:{},CALCULATED:{},COLLECTED:{}};if(!e)return i;if(r)return{...i,COLLECTED:Object.fromEntries(r.map((e=>[e,{EDITED:null,FORCED:null,INPUTTED:null,PREVIOUS:null,COLLECTED:t.get(e)}])))};for(const o of e)if("CALCULATED"!==o.variableType||n)if("COLLECTED"===o.variableType)i.COLLECTED[o.name]={PREVIOUS:null,FORCED:null,EDITED:null,INPUTTED:null,...o.values,COLLECTED:t.get(o.name)};else try{i[o.variableType][o.name]=t.get(o.name)}catch{i[o.variableType][o.name]=null}return i}(k.variables,t.variables,e,n),{resetChangedData:R,getChangedData:C}=function(t,e,n){const r=(0,s.useRef)(new Set),i=J(t),o=J(n);(0,s.useEffect)((()=>{if(!t||!e)return;const n=t=>{r.current.add(t.detail.name)};return e.on("change",n),()=>e.off("change",n)}),[t,e]);const a=(0,s.useCallback)((()=>{r.current.clear()}),[r]);return{getChangedData:(0,s.useCallback)(((t=!1)=>{if(!i.current)throw new Error('getChangedData() cannot be used without enabling tracking mode, add "trackChanges: true" to useLunatic options');const e=o.current(Array.from(r.current));return t&&a(),e}),[i,o,a]),resetChangedData:a}}(g,k.variables,(t=>A(!1,t))),S=ur(k.pager),{isFirstPage:N,isLastPage:O}=dr(k.pager),I=wm(br(k),{handleChanges:b,preferences:m,goToPage:w,shortcut:p,goNextPage:T,goPreviousPage:E,management:c,...k});return{pageTag:S,isFirstPage:N,isLastPage:O,updatedAt:k.updatedAt,pager:k.pager,isInLoop:k.isInLoop,overview:zr(k,[S]),loopVariables:Ir(k.pager,k.pages),getComponents:()=>I,goPreviousPage:E,goNextPage:T,goToPage:w,compileControls:()=>Or(k),getData:A,getChangedData:C,resetChangedData:R,hasPageResponse:Lr(I,k.executeExpression),Provider:x,testing:{handleChanges:b}}}},8802:t=>{"use strict";t.exports=JSON.parse('{"100":{"keywords":["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],"char":"\ud83d\udcaf","fitzpatrick_scale":false,"category":"symbols"},"1234":{"keywords":["numbers","blue-square"],"char":"\ud83d\udd22","fitzpatrick_scale":false,"category":"symbols"},"grinning":{"keywords":["face","smile","happy","joy",":D","grin"],"char":"\ud83d\ude00","fitzpatrick_scale":false,"category":"people"},"grimacing":{"keywords":["face","grimace","teeth"],"char":"\ud83d\ude2c","fitzpatrick_scale":false,"category":"people"},"grin":{"keywords":["face","happy","smile","joy","kawaii"],"char":"\ud83d\ude01","fitzpatrick_scale":false,"category":"people"},"joy":{"keywords":["face","cry","tears","weep","happy","happytears","haha"],"char":"\ud83d\ude02","fitzpatrick_scale":false,"category":"people"},"rofl":{"keywords":["face","rolling","floor","laughing","lol","haha"],"char":"\ud83e\udd23","fitzpatrick_scale":false,"category":"people"},"partying":{"keywords":["face","celebration","woohoo"],"char":"\ud83e\udd73","fitzpatrick_scale":false,"category":"people"},"smiley":{"keywords":["face","happy","joy","haha",":D",":)","smile","funny"],"char":"\ud83d\ude03","fitzpatrick_scale":false,"category":"people"},"smile":{"keywords":["face","happy","joy","funny","haha","laugh","like",":D",":)"],"char":"\ud83d\ude04","fitzpatrick_scale":false,"category":"people"},"sweat_smile":{"keywords":["face","hot","happy","laugh","sweat","smile","relief"],"char":"\ud83d\ude05","fitzpatrick_scale":false,"category":"people"},"laughing":{"keywords":["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],"char":"\ud83d\ude06","fitzpatrick_scale":false,"category":"people"},"innocent":{"keywords":["face","angel","heaven","halo"],"char":"\ud83d\ude07","fitzpatrick_scale":false,"category":"people"},"wink":{"keywords":["face","happy","mischievous","secret",";)","smile","eye"],"char":"\ud83d\ude09","fitzpatrick_scale":false,"category":"people"},"blush":{"keywords":["face","smile","happy","flushed","crush","embarrassed","shy","joy"],"char":"\ud83d\ude0a","fitzpatrick_scale":false,"category":"people"},"slightly_smiling_face":{"keywords":["face","smile"],"char":"\ud83d\ude42","fitzpatrick_scale":false,"category":"people"},"upside_down_face":{"keywords":["face","flipped","silly","smile"],"char":"\ud83d\ude43","fitzpatrick_scale":false,"category":"people"},"relaxed":{"keywords":["face","blush","massage","happiness"],"char":"\u263a\ufe0f","fitzpatrick_scale":false,"category":"people"},"yum":{"keywords":["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],"char":"\ud83d\ude0b","fitzpatrick_scale":false,"category":"people"},"relieved":{"keywords":["face","relaxed","phew","massage","happiness"],"char":"\ud83d\ude0c","fitzpatrick_scale":false,"category":"people"},"heart_eyes":{"keywords":["face","love","like","affection","valentines","infatuation","crush","heart"],"char":"\ud83d\ude0d","fitzpatrick_scale":false,"category":"people"},"smiling_face_with_three_hearts":{"keywords":["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],"char":"\ud83e\udd70","fitzpatrick_scale":false,"category":"people"},"kissing_heart":{"keywords":["face","love","like","affection","valentines","infatuation","kiss"],"char":"\ud83d\ude18","fitzpatrick_scale":false,"category":"people"},"kissing":{"keywords":["love","like","face","3","valentines","infatuation","kiss"],"char":"\ud83d\ude17","fitzpatrick_scale":false,"category":"people"},"kissing_smiling_eyes":{"keywords":["face","affection","valentines","infatuation","kiss"],"char":"\ud83d\ude19","fitzpatrick_scale":false,"category":"people"},"kissing_closed_eyes":{"keywords":["face","love","like","affection","valentines","infatuation","kiss"],"char":"\ud83d\ude1a","fitzpatrick_scale":false,"category":"people"},"stuck_out_tongue_winking_eye":{"keywords":["face","prank","childish","playful","mischievous","smile","wink","tongue"],"char":"\ud83d\ude1c","fitzpatrick_scale":false,"category":"people"},"zany":{"keywords":["face","goofy","crazy"],"char":"\ud83e\udd2a","fitzpatrick_scale":false,"category":"people"},"raised_eyebrow":{"keywords":["face","distrust","scepticism","disapproval","disbelief","surprise"],"char":"\ud83e\udd28","fitzpatrick_scale":false,"category":"people"},"monocle":{"keywords":["face","stuffy","wealthy"],"char":"\ud83e\uddd0","fitzpatrick_scale":false,"category":"people"},"stuck_out_tongue_closed_eyes":{"keywords":["face","prank","playful","mischievous","smile","tongue"],"char":"\ud83d\ude1d","fitzpatrick_scale":false,"category":"people"},"stuck_out_tongue":{"keywords":["face","prank","childish","playful","mischievous","smile","tongue"],"char":"\ud83d\ude1b","fitzpatrick_scale":false,"category":"people"},"money_mouth_face":{"keywords":["face","rich","dollar","money"],"char":"\ud83e\udd11","fitzpatrick_scale":false,"category":"people"},"nerd_face":{"keywords":["face","nerdy","geek","dork"],"char":"\ud83e\udd13","fitzpatrick_scale":false,"category":"people"},"sunglasses":{"keywords":["face","cool","smile","summer","beach","sunglass"],"char":"\ud83d\ude0e","fitzpatrick_scale":false,"category":"people"},"star_struck":{"keywords":["face","smile","starry","eyes","grinning"],"char":"\ud83e\udd29","fitzpatrick_scale":false,"category":"people"},"clown_face":{"keywords":["face"],"char":"\ud83e\udd21","fitzpatrick_scale":false,"category":"people"},"cowboy_hat_face":{"keywords":["face","cowgirl","hat"],"char":"\ud83e\udd20","fitzpatrick_scale":false,"category":"people"},"hugs":{"keywords":["face","smile","hug"],"char":"\ud83e\udd17","fitzpatrick_scale":false,"category":"people"},"smirk":{"keywords":["face","smile","mean","prank","smug","sarcasm"],"char":"\ud83d\ude0f","fitzpatrick_scale":false,"category":"people"},"no_mouth":{"keywords":["face","hellokitty"],"char":"\ud83d\ude36","fitzpatrick_scale":false,"category":"people"},"neutral_face":{"keywords":["indifference","meh",":|","neutral"],"char":"\ud83d\ude10","fitzpatrick_scale":false,"category":"people"},"expressionless":{"keywords":["face","indifferent","-_-","meh","deadpan"],"char":"\ud83d\ude11","fitzpatrick_scale":false,"category":"people"},"unamused":{"keywords":["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],"char":"\ud83d\ude12","fitzpatrick_scale":false,"category":"people"},"roll_eyes":{"keywords":["face","eyeroll","frustrated"],"char":"\ud83d\ude44","fitzpatrick_scale":false,"category":"people"},"thinking":{"keywords":["face","hmmm","think","consider"],"char":"\ud83e\udd14","fitzpatrick_scale":false,"category":"people"},"lying_face":{"keywords":["face","lie","pinocchio"],"char":"\ud83e\udd25","fitzpatrick_scale":false,"category":"people"},"hand_over_mouth":{"keywords":["face","whoops","shock","surprise"],"char":"\ud83e\udd2d","fitzpatrick_scale":false,"category":"people"},"shushing":{"keywords":["face","quiet","shhh"],"char":"\ud83e\udd2b","fitzpatrick_scale":false,"category":"people"},"symbols_over_mouth":{"keywords":["face","swearing","cursing","cussing","profanity","expletive"],"char":"\ud83e\udd2c","fitzpatrick_scale":false,"category":"people"},"exploding_head":{"keywords":["face","shocked","mind","blown"],"char":"\ud83e\udd2f","fitzpatrick_scale":false,"category":"people"},"flushed":{"keywords":["face","blush","shy","flattered"],"char":"\ud83d\ude33","fitzpatrick_scale":false,"category":"people"},"disappointed":{"keywords":["face","sad","upset","depressed",":("],"char":"\ud83d\ude1e","fitzpatrick_scale":false,"category":"people"},"worried":{"keywords":["face","concern","nervous",":("],"char":"\ud83d\ude1f","fitzpatrick_scale":false,"category":"people"},"angry":{"keywords":["mad","face","annoyed","frustrated"],"char":"\ud83d\ude20","fitzpatrick_scale":false,"category":"people"},"rage":{"keywords":["angry","mad","hate","despise"],"char":"\ud83d\ude21","fitzpatrick_scale":false,"category":"people"},"pensive":{"keywords":["face","sad","depressed","upset"],"char":"\ud83d\ude14","fitzpatrick_scale":false,"category":"people"},"confused":{"keywords":["face","indifference","huh","weird","hmmm",":/"],"char":"\ud83d\ude15","fitzpatrick_scale":false,"category":"people"},"slightly_frowning_face":{"keywords":["face","frowning","disappointed","sad","upset"],"char":"\ud83d\ude41","fitzpatrick_scale":false,"category":"people"},"frowning_face":{"keywords":["face","sad","upset","frown"],"char":"\u2639","fitzpatrick_scale":false,"category":"people"},"persevere":{"keywords":["face","sick","no","upset","oops"],"char":"\ud83d\ude23","fitzpatrick_scale":false,"category":"people"},"confounded":{"keywords":["face","confused","sick","unwell","oops",":S"],"char":"\ud83d\ude16","fitzpatrick_scale":false,"category":"people"},"tired_face":{"keywords":["sick","whine","upset","frustrated"],"char":"\ud83d\ude2b","fitzpatrick_scale":false,"category":"people"},"weary":{"keywords":["face","tired","sleepy","sad","frustrated","upset"],"char":"\ud83d\ude29","fitzpatrick_scale":false,"category":"people"},"pleading":{"keywords":["face","begging","mercy"],"char":"\ud83e\udd7a","fitzpatrick_scale":false,"category":"people"},"triumph":{"keywords":["face","gas","phew","proud","pride"],"char":"\ud83d\ude24","fitzpatrick_scale":false,"category":"people"},"open_mouth":{"keywords":["face","surprise","impressed","wow","whoa",":O"],"char":"\ud83d\ude2e","fitzpatrick_scale":false,"category":"people"},"scream":{"keywords":["face","munch","scared","omg"],"char":"\ud83d\ude31","fitzpatrick_scale":false,"category":"people"},"fearful":{"keywords":["face","scared","terrified","nervous","oops","huh"],"char":"\ud83d\ude28","fitzpatrick_scale":false,"category":"people"},"cold_sweat":{"keywords":["face","nervous","sweat"],"char":"\ud83d\ude30","fitzpatrick_scale":false,"category":"people"},"hushed":{"keywords":["face","woo","shh"],"char":"\ud83d\ude2f","fitzpatrick_scale":false,"category":"people"},"frowning":{"keywords":["face","aw","what"],"char":"\ud83d\ude26","fitzpatrick_scale":false,"category":"people"},"anguished":{"keywords":["face","stunned","nervous"],"char":"\ud83d\ude27","fitzpatrick_scale":false,"category":"people"},"cry":{"keywords":["face","tears","sad","depressed","upset",":\'("],"char":"\ud83d\ude22","fitzpatrick_scale":false,"category":"people"},"disappointed_relieved":{"keywords":["face","phew","sweat","nervous"],"char":"\ud83d\ude25","fitzpatrick_scale":false,"category":"people"},"drooling_face":{"keywords":["face"],"char":"\ud83e\udd24","fitzpatrick_scale":false,"category":"people"},"sleepy":{"keywords":["face","tired","rest","nap"],"char":"\ud83d\ude2a","fitzpatrick_scale":false,"category":"people"},"sweat":{"keywords":["face","hot","sad","tired","exercise"],"char":"\ud83d\ude13","fitzpatrick_scale":false,"category":"people"},"hot":{"keywords":["face","feverish","heat","red","sweating"],"char":"\ud83e\udd75","fitzpatrick_scale":false,"category":"people"},"cold":{"keywords":["face","blue","freezing","frozen","frostbite","icicles"],"char":"\ud83e\udd76","fitzpatrick_scale":false,"category":"people"},"sob":{"keywords":["face","cry","tears","sad","upset","depressed"],"char":"\ud83d\ude2d","fitzpatrick_scale":false,"category":"people"},"dizzy_face":{"keywords":["spent","unconscious","xox","dizzy"],"char":"\ud83d\ude35","fitzpatrick_scale":false,"category":"people"},"astonished":{"keywords":["face","xox","surprised","poisoned"],"char":"\ud83d\ude32","fitzpatrick_scale":false,"category":"people"},"zipper_mouth_face":{"keywords":["face","sealed","zipper","secret"],"char":"\ud83e\udd10","fitzpatrick_scale":false,"category":"people"},"nauseated_face":{"keywords":["face","vomit","gross","green","sick","throw up","ill"],"char":"\ud83e\udd22","fitzpatrick_scale":false,"category":"people"},"sneezing_face":{"keywords":["face","gesundheit","sneeze","sick","allergy"],"char":"\ud83e\udd27","fitzpatrick_scale":false,"category":"people"},"vomiting":{"keywords":["face","sick"],"char":"\ud83e\udd2e","fitzpatrick_scale":false,"category":"people"},"mask":{"keywords":["face","sick","ill","disease"],"char":"\ud83d\ude37","fitzpatrick_scale":false,"category":"people"},"face_with_thermometer":{"keywords":["sick","temperature","thermometer","cold","fever"],"char":"\ud83e\udd12","fitzpatrick_scale":false,"category":"people"},"face_with_head_bandage":{"keywords":["injured","clumsy","bandage","hurt"],"char":"\ud83e\udd15","fitzpatrick_scale":false,"category":"people"},"woozy":{"keywords":["face","dizzy","intoxicated","tipsy","wavy"],"char":"\ud83e\udd74","fitzpatrick_scale":false,"category":"people"},"sleeping":{"keywords":["face","tired","sleepy","night","zzz"],"char":"\ud83d\ude34","fitzpatrick_scale":false,"category":"people"},"zzz":{"keywords":["sleepy","tired","dream"],"char":"\ud83d\udca4","fitzpatrick_scale":false,"category":"people"},"poop":{"keywords":["hankey","shitface","fail","turd","shit"],"char":"\ud83d\udca9","fitzpatrick_scale":false,"category":"people"},"smiling_imp":{"keywords":["devil","horns"],"char":"\ud83d\ude08","fitzpatrick_scale":false,"category":"people"},"imp":{"keywords":["devil","angry","horns"],"char":"\ud83d\udc7f","fitzpatrick_scale":false,"category":"people"},"japanese_ogre":{"keywords":["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],"char":"\ud83d\udc79","fitzpatrick_scale":false,"category":"people"},"japanese_goblin":{"keywords":["red","evil","mask","monster","scary","creepy","japanese","goblin"],"char":"\ud83d\udc7a","fitzpatrick_scale":false,"category":"people"},"skull":{"keywords":["dead","skeleton","creepy","death"],"char":"\ud83d\udc80","fitzpatrick_scale":false,"category":"people"},"ghost":{"keywords":["halloween","spooky","scary"],"char":"\ud83d\udc7b","fitzpatrick_scale":false,"category":"people"},"alien":{"keywords":["UFO","paul","weird","outer_space"],"char":"\ud83d\udc7d","fitzpatrick_scale":false,"category":"people"},"robot":{"keywords":["computer","machine","bot"],"char":"\ud83e\udd16","fitzpatrick_scale":false,"category":"people"},"smiley_cat":{"keywords":["animal","cats","happy","smile"],"char":"\ud83d\ude3a","fitzpatrick_scale":false,"category":"people"},"smile_cat":{"keywords":["animal","cats","smile"],"char":"\ud83d\ude38","fitzpatrick_scale":false,"category":"people"},"joy_cat":{"keywords":["animal","cats","haha","happy","tears"],"char":"\ud83d\ude39","fitzpatrick_scale":false,"category":"people"},"heart_eyes_cat":{"keywords":["animal","love","like","affection","cats","valentines","heart"],"char":"\ud83d\ude3b","fitzpatrick_scale":false,"category":"people"},"smirk_cat":{"keywords":["animal","cats","smirk"],"char":"\ud83d\ude3c","fitzpatrick_scale":false,"category":"people"},"kissing_cat":{"keywords":["animal","cats","kiss"],"char":"\ud83d\ude3d","fitzpatrick_scale":false,"category":"people"},"scream_cat":{"keywords":["animal","cats","munch","scared","scream"],"char":"\ud83d\ude40","fitzpatrick_scale":false,"category":"people"},"crying_cat_face":{"keywords":["animal","tears","weep","sad","cats","upset","cry"],"char":"\ud83d\ude3f","fitzpatrick_scale":false,"category":"people"},"pouting_cat":{"keywords":["animal","cats"],"char":"\ud83d\ude3e","fitzpatrick_scale":false,"category":"people"},"palms_up":{"keywords":["hands","gesture","cupped","prayer"],"char":"\ud83e\udd32","fitzpatrick_scale":true,"category":"people"},"raised_hands":{"keywords":["gesture","hooray","yea","celebration","hands"],"char":"\ud83d\ude4c","fitzpatrick_scale":true,"category":"people"},"clap":{"keywords":["hands","praise","applause","congrats","yay"],"char":"\ud83d\udc4f","fitzpatrick_scale":true,"category":"people"},"wave":{"keywords":["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"char":"\ud83d\udc4b","fitzpatrick_scale":true,"category":"people"},"call_me_hand":{"keywords":["hands","gesture"],"char":"\ud83e\udd19","fitzpatrick_scale":true,"category":"people"},"+1":{"keywords":["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"char":"\ud83d\udc4d","fitzpatrick_scale":true,"category":"people"},"-1":{"keywords":["thumbsdown","no","dislike","hand"],"char":"\ud83d\udc4e","fitzpatrick_scale":true,"category":"people"},"facepunch":{"keywords":["angry","violence","fist","hit","attack","hand"],"char":"\ud83d\udc4a","fitzpatrick_scale":true,"category":"people"},"fist":{"keywords":["fingers","hand","grasp"],"char":"\u270a","fitzpatrick_scale":true,"category":"people"},"fist_left":{"keywords":["hand","fistbump"],"char":"\ud83e\udd1b","fitzpatrick_scale":true,"category":"people"},"fist_right":{"keywords":["hand","fistbump"],"char":"\ud83e\udd1c","fitzpatrick_scale":true,"category":"people"},"v":{"keywords":["fingers","ohyeah","hand","peace","victory","two"],"char":"\u270c","fitzpatrick_scale":true,"category":"people"},"ok_hand":{"keywords":["fingers","limbs","perfect","ok","okay"],"char":"\ud83d\udc4c","fitzpatrick_scale":true,"category":"people"},"raised_hand":{"keywords":["fingers","stop","highfive","palm","ban"],"char":"\u270b","fitzpatrick_scale":true,"category":"people"},"raised_back_of_hand":{"keywords":["fingers","raised","backhand"],"char":"\ud83e\udd1a","fitzpatrick_scale":true,"category":"people"},"open_hands":{"keywords":["fingers","butterfly","hands","open"],"char":"\ud83d\udc50","fitzpatrick_scale":true,"category":"people"},"muscle":{"keywords":["arm","flex","hand","summer","strong","biceps"],"char":"\ud83d\udcaa","fitzpatrick_scale":true,"category":"people"},"pray":{"keywords":["please","hope","wish","namaste","highfive"],"char":"\ud83d\ude4f","fitzpatrick_scale":true,"category":"people"},"foot":{"keywords":["kick","stomp"],"char":"\ud83e\uddb6","fitzpatrick_scale":true,"category":"people"},"leg":{"keywords":["kick","limb"],"char":"\ud83e\uddb5","fitzpatrick_scale":true,"category":"people"},"handshake":{"keywords":["agreement","shake"],"char":"\ud83e\udd1d","fitzpatrick_scale":false,"category":"people"},"point_up":{"keywords":["hand","fingers","direction","up"],"char":"\u261d","fitzpatrick_scale":true,"category":"people"},"point_up_2":{"keywords":["fingers","hand","direction","up"],"char":"\ud83d\udc46","fitzpatrick_scale":true,"category":"people"},"point_down":{"keywords":["fingers","hand","direction","down"],"char":"\ud83d\udc47","fitzpatrick_scale":true,"category":"people"},"point_left":{"keywords":["direction","fingers","hand","left"],"char":"\ud83d\udc48","fitzpatrick_scale":true,"category":"people"},"point_right":{"keywords":["fingers","hand","direction","right"],"char":"\ud83d\udc49","fitzpatrick_scale":true,"category":"people"},"fu":{"keywords":["hand","fingers","rude","middle","flipping"],"char":"\ud83d\udd95","fitzpatrick_scale":true,"category":"people"},"raised_hand_with_fingers_splayed":{"keywords":["hand","fingers","palm"],"char":"\ud83d\udd90","fitzpatrick_scale":true,"category":"people"},"love_you":{"keywords":["hand","fingers","gesture"],"char":"\ud83e\udd1f","fitzpatrick_scale":true,"category":"people"},"metal":{"keywords":["hand","fingers","evil_eye","sign_of_horns","rock_on"],"char":"\ud83e\udd18","fitzpatrick_scale":true,"category":"people"},"crossed_fingers":{"keywords":["good","lucky"],"char":"\ud83e\udd1e","fitzpatrick_scale":true,"category":"people"},"vulcan_salute":{"keywords":["hand","fingers","spock","star trek"],"char":"\ud83d\udd96","fitzpatrick_scale":true,"category":"people"},"writing_hand":{"keywords":["lower_left_ballpoint_pen","stationery","write","compose"],"char":"\u270d","fitzpatrick_scale":true,"category":"people"},"selfie":{"keywords":["camera","phone"],"char":"\ud83e\udd33","fitzpatrick_scale":true,"category":"people"},"nail_care":{"keywords":["beauty","manicure","finger","fashion","nail"],"char":"\ud83d\udc85","fitzpatrick_scale":true,"category":"people"},"lips":{"keywords":["mouth","kiss"],"char":"\ud83d\udc44","fitzpatrick_scale":false,"category":"people"},"tooth":{"keywords":["teeth","dentist"],"char":"\ud83e\uddb7","fitzpatrick_scale":false,"category":"people"},"tongue":{"keywords":["mouth","playful"],"char":"\ud83d\udc45","fitzpatrick_scale":false,"category":"people"},"ear":{"keywords":["face","hear","sound","listen"],"char":"\ud83d\udc42","fitzpatrick_scale":true,"category":"people"},"nose":{"keywords":["smell","sniff"],"char":"\ud83d\udc43","fitzpatrick_scale":true,"category":"people"},"eye":{"keywords":["face","look","see","watch","stare"],"char":"\ud83d\udc41","fitzpatrick_scale":false,"category":"people"},"eyes":{"keywords":["look","watch","stalk","peek","see"],"char":"\ud83d\udc40","fitzpatrick_scale":false,"category":"people"},"brain":{"keywords":["smart","intelligent"],"char":"\ud83e\udde0","fitzpatrick_scale":false,"category":"people"},"bust_in_silhouette":{"keywords":["user","person","human"],"char":"\ud83d\udc64","fitzpatrick_scale":false,"category":"people"},"busts_in_silhouette":{"keywords":["user","person","human","group","team"],"char":"\ud83d\udc65","fitzpatrick_scale":false,"category":"people"},"speaking_head":{"keywords":["user","person","human","sing","say","talk"],"char":"\ud83d\udde3","fitzpatrick_scale":false,"category":"people"},"baby":{"keywords":["child","boy","girl","toddler"],"char":"\ud83d\udc76","fitzpatrick_scale":true,"category":"people"},"child":{"keywords":["gender-neutral","young"],"char":"\ud83e\uddd2","fitzpatrick_scale":true,"category":"people"},"boy":{"keywords":["man","male","guy","teenager"],"char":"\ud83d\udc66","fitzpatrick_scale":true,"category":"people"},"girl":{"keywords":["female","woman","teenager"],"char":"\ud83d\udc67","fitzpatrick_scale":true,"category":"people"},"adult":{"keywords":["gender-neutral","person"],"char":"\ud83e\uddd1","fitzpatrick_scale":true,"category":"people"},"man":{"keywords":["mustache","father","dad","guy","classy","sir","moustache"],"char":"\ud83d\udc68","fitzpatrick_scale":true,"category":"people"},"woman":{"keywords":["female","girls","lady"],"char":"\ud83d\udc69","fitzpatrick_scale":true,"category":"people"},"blonde_woman":{"keywords":["woman","female","girl","blonde","person"],"char":"\ud83d\udc71\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"blonde_man":{"keywords":["man","male","boy","blonde","guy","person"],"char":"\ud83d\udc71","fitzpatrick_scale":true,"category":"people"},"bearded_person":{"keywords":["person","bewhiskered"],"char":"\ud83e\uddd4","fitzpatrick_scale":true,"category":"people"},"older_adult":{"keywords":["human","elder","senior","gender-neutral"],"char":"\ud83e\uddd3","fitzpatrick_scale":true,"category":"people"},"older_man":{"keywords":["human","male","men","old","elder","senior"],"char":"\ud83d\udc74","fitzpatrick_scale":true,"category":"people"},"older_woman":{"keywords":["human","female","women","lady","old","elder","senior"],"char":"\ud83d\udc75","fitzpatrick_scale":true,"category":"people"},"man_with_gua_pi_mao":{"keywords":["male","boy","chinese"],"char":"\ud83d\udc72","fitzpatrick_scale":true,"category":"people"},"woman_with_headscarf":{"keywords":["female","hijab","mantilla","tichel"],"char":"\ud83e\uddd5","fitzpatrick_scale":true,"category":"people"},"woman_with_turban":{"keywords":["female","indian","hinduism","arabs","woman"],"char":"\ud83d\udc73\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_with_turban":{"keywords":["male","indian","hinduism","arabs"],"char":"\ud83d\udc73","fitzpatrick_scale":true,"category":"people"},"policewoman":{"keywords":["woman","police","law","legal","enforcement","arrest","911","female"],"char":"\ud83d\udc6e\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"policeman":{"keywords":["man","police","law","legal","enforcement","arrest","911"],"char":"\ud83d\udc6e","fitzpatrick_scale":true,"category":"people"},"construction_worker_woman":{"keywords":["female","human","wip","build","construction","worker","labor","woman"],"char":"\ud83d\udc77\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"construction_worker_man":{"keywords":["male","human","wip","guy","build","construction","worker","labor"],"char":"\ud83d\udc77","fitzpatrick_scale":true,"category":"people"},"guardswoman":{"keywords":["uk","gb","british","female","royal","woman"],"char":"\ud83d\udc82\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"guardsman":{"keywords":["uk","gb","british","male","guy","royal"],"char":"\ud83d\udc82","fitzpatrick_scale":true,"category":"people"},"female_detective":{"keywords":["human","spy","detective","female","woman"],"char":"\ud83d\udd75\ufe0f\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"male_detective":{"keywords":["human","spy","detective"],"char":"\ud83d\udd75","fitzpatrick_scale":true,"category":"people"},"woman_health_worker":{"keywords":["doctor","nurse","therapist","healthcare","woman","human"],"char":"\ud83d\udc69\u200d\u2695\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_health_worker":{"keywords":["doctor","nurse","therapist","healthcare","man","human"],"char":"\ud83d\udc68\u200d\u2695\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_farmer":{"keywords":["rancher","gardener","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udf3e","fitzpatrick_scale":true,"category":"people"},"man_farmer":{"keywords":["rancher","gardener","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udf3e","fitzpatrick_scale":true,"category":"people"},"woman_cook":{"keywords":["chef","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udf73","fitzpatrick_scale":true,"category":"people"},"man_cook":{"keywords":["chef","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udf73","fitzpatrick_scale":true,"category":"people"},"woman_student":{"keywords":["graduate","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udf93","fitzpatrick_scale":true,"category":"people"},"man_student":{"keywords":["graduate","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udf93","fitzpatrick_scale":true,"category":"people"},"woman_singer":{"keywords":["rockstar","entertainer","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udfa4","fitzpatrick_scale":true,"category":"people"},"man_singer":{"keywords":["rockstar","entertainer","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udfa4","fitzpatrick_scale":true,"category":"people"},"woman_teacher":{"keywords":["instructor","professor","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udfeb","fitzpatrick_scale":true,"category":"people"},"man_teacher":{"keywords":["instructor","professor","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udfeb","fitzpatrick_scale":true,"category":"people"},"woman_factory_worker":{"keywords":["assembly","industrial","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udfed","fitzpatrick_scale":true,"category":"people"},"man_factory_worker":{"keywords":["assembly","industrial","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udfed","fitzpatrick_scale":true,"category":"people"},"woman_technologist":{"keywords":["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],"char":"\ud83d\udc69\u200d\ud83d\udcbb","fitzpatrick_scale":true,"category":"people"},"man_technologist":{"keywords":["coder","developer","engineer","programmer","software","man","human","laptop","computer"],"char":"\ud83d\udc68\u200d\ud83d\udcbb","fitzpatrick_scale":true,"category":"people"},"woman_office_worker":{"keywords":["business","manager","woman","human"],"char":"\ud83d\udc69\u200d\ud83d\udcbc","fitzpatrick_scale":true,"category":"people"},"man_office_worker":{"keywords":["business","manager","man","human"],"char":"\ud83d\udc68\u200d\ud83d\udcbc","fitzpatrick_scale":true,"category":"people"},"woman_mechanic":{"keywords":["plumber","woman","human","wrench"],"char":"\ud83d\udc69\u200d\ud83d\udd27","fitzpatrick_scale":true,"category":"people"},"man_mechanic":{"keywords":["plumber","man","human","wrench"],"char":"\ud83d\udc68\u200d\ud83d\udd27","fitzpatrick_scale":true,"category":"people"},"woman_scientist":{"keywords":["biologist","chemist","engineer","physicist","woman","human"],"char":"\ud83d\udc69\u200d\ud83d\udd2c","fitzpatrick_scale":true,"category":"people"},"man_scientist":{"keywords":["biologist","chemist","engineer","physicist","man","human"],"char":"\ud83d\udc68\u200d\ud83d\udd2c","fitzpatrick_scale":true,"category":"people"},"woman_artist":{"keywords":["painter","woman","human"],"char":"\ud83d\udc69\u200d\ud83c\udfa8","fitzpatrick_scale":true,"category":"people"},"man_artist":{"keywords":["painter","man","human"],"char":"\ud83d\udc68\u200d\ud83c\udfa8","fitzpatrick_scale":true,"category":"people"},"woman_firefighter":{"keywords":["fireman","woman","human"],"char":"\ud83d\udc69\u200d\ud83d\ude92","fitzpatrick_scale":true,"category":"people"},"man_firefighter":{"keywords":["fireman","man","human"],"char":"\ud83d\udc68\u200d\ud83d\ude92","fitzpatrick_scale":true,"category":"people"},"woman_pilot":{"keywords":["aviator","plane","woman","human"],"char":"\ud83d\udc69\u200d\u2708\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_pilot":{"keywords":["aviator","plane","man","human"],"char":"\ud83d\udc68\u200d\u2708\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_astronaut":{"keywords":["space","rocket","woman","human"],"char":"\ud83d\udc69\u200d\ud83d\ude80","fitzpatrick_scale":true,"category":"people"},"man_astronaut":{"keywords":["space","rocket","man","human"],"char":"\ud83d\udc68\u200d\ud83d\ude80","fitzpatrick_scale":true,"category":"people"},"woman_judge":{"keywords":["justice","court","woman","human"],"char":"\ud83d\udc69\u200d\u2696\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_judge":{"keywords":["justice","court","man","human"],"char":"\ud83d\udc68\u200d\u2696\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_superhero":{"keywords":["woman","female","good","heroine","superpowers"],"char":"\ud83e\uddb8\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_superhero":{"keywords":["man","male","good","hero","superpowers"],"char":"\ud83e\uddb8\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_supervillain":{"keywords":["woman","female","evil","bad","criminal","heroine","superpowers"],"char":"\ud83e\uddb9\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_supervillain":{"keywords":["man","male","evil","bad","criminal","hero","superpowers"],"char":"\ud83e\uddb9\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"mrs_claus":{"keywords":["woman","female","xmas","mother christmas"],"char":"\ud83e\udd36","fitzpatrick_scale":true,"category":"people"},"santa":{"keywords":["festival","man","male","xmas","father christmas"],"char":"\ud83c\udf85","fitzpatrick_scale":true,"category":"people"},"sorceress":{"keywords":["woman","female","mage","witch"],"char":"\ud83e\uddd9\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"wizard":{"keywords":["man","male","mage","sorcerer"],"char":"\ud83e\uddd9\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_elf":{"keywords":["woman","female"],"char":"\ud83e\udddd\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_elf":{"keywords":["man","male"],"char":"\ud83e\udddd\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_vampire":{"keywords":["woman","female"],"char":"\ud83e\udddb\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_vampire":{"keywords":["man","male","dracula"],"char":"\ud83e\udddb\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_zombie":{"keywords":["woman","female","undead","walking dead"],"char":"\ud83e\udddf\u200d\u2640\ufe0f","fitzpatrick_scale":false,"category":"people"},"man_zombie":{"keywords":["man","male","dracula","undead","walking dead"],"char":"\ud83e\udddf\u200d\u2642\ufe0f","fitzpatrick_scale":false,"category":"people"},"woman_genie":{"keywords":["woman","female"],"char":"\ud83e\uddde\u200d\u2640\ufe0f","fitzpatrick_scale":false,"category":"people"},"man_genie":{"keywords":["man","male"],"char":"\ud83e\uddde\u200d\u2642\ufe0f","fitzpatrick_scale":false,"category":"people"},"mermaid":{"keywords":["woman","female","merwoman","ariel"],"char":"\ud83e\udddc\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"merman":{"keywords":["man","male","triton"],"char":"\ud83e\udddc\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_fairy":{"keywords":["woman","female"],"char":"\ud83e\uddda\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_fairy":{"keywords":["man","male"],"char":"\ud83e\uddda\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"angel":{"keywords":["heaven","wings","halo"],"char":"\ud83d\udc7c","fitzpatrick_scale":true,"category":"people"},"pregnant_woman":{"keywords":["baby"],"char":"\ud83e\udd30","fitzpatrick_scale":true,"category":"people"},"breastfeeding":{"keywords":["nursing","baby"],"char":"\ud83e\udd31","fitzpatrick_scale":true,"category":"people"},"princess":{"keywords":["girl","woman","female","blond","crown","royal","queen"],"char":"\ud83d\udc78","fitzpatrick_scale":true,"category":"people"},"prince":{"keywords":["boy","man","male","crown","royal","king"],"char":"\ud83e\udd34","fitzpatrick_scale":true,"category":"people"},"bride_with_veil":{"keywords":["couple","marriage","wedding","woman","bride"],"char":"\ud83d\udc70","fitzpatrick_scale":true,"category":"people"},"man_in_tuxedo":{"keywords":["couple","marriage","wedding","groom"],"char":"\ud83e\udd35","fitzpatrick_scale":true,"category":"people"},"running_woman":{"keywords":["woman","walking","exercise","race","running","female"],"char":"\ud83c\udfc3\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"running_man":{"keywords":["man","walking","exercise","race","running"],"char":"\ud83c\udfc3","fitzpatrick_scale":true,"category":"people"},"walking_woman":{"keywords":["human","feet","steps","woman","female"],"char":"\ud83d\udeb6\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"walking_man":{"keywords":["human","feet","steps"],"char":"\ud83d\udeb6","fitzpatrick_scale":true,"category":"people"},"dancer":{"keywords":["female","girl","woman","fun"],"char":"\ud83d\udc83","fitzpatrick_scale":true,"category":"people"},"man_dancing":{"keywords":["male","boy","fun","dancer"],"char":"\ud83d\udd7a","fitzpatrick_scale":true,"category":"people"},"dancing_women":{"keywords":["female","bunny","women","girls"],"char":"\ud83d\udc6f","fitzpatrick_scale":false,"category":"people"},"dancing_men":{"keywords":["male","bunny","men","boys"],"char":"\ud83d\udc6f\u200d\u2642\ufe0f","fitzpatrick_scale":false,"category":"people"},"couple":{"keywords":["pair","people","human","love","date","dating","like","affection","valentines","marriage"],"char":"\ud83d\udc6b","fitzpatrick_scale":false,"category":"people"},"two_men_holding_hands":{"keywords":["pair","couple","love","like","bromance","friendship","people","human"],"char":"\ud83d\udc6c","fitzpatrick_scale":false,"category":"people"},"two_women_holding_hands":{"keywords":["pair","friendship","couple","love","like","female","people","human"],"char":"\ud83d\udc6d","fitzpatrick_scale":false,"category":"people"},"bowing_woman":{"keywords":["woman","female","girl"],"char":"\ud83d\ude47\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"bowing_man":{"keywords":["man","male","boy"],"char":"\ud83d\ude47","fitzpatrick_scale":true,"category":"people"},"man_facepalming":{"keywords":["man","male","boy","disbelief"],"char":"\ud83e\udd26\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_facepalming":{"keywords":["woman","female","girl","disbelief"],"char":"\ud83e\udd26\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_shrugging":{"keywords":["woman","female","girl","confused","indifferent","doubt"],"char":"\ud83e\udd37","fitzpatrick_scale":true,"category":"people"},"man_shrugging":{"keywords":["man","male","boy","confused","indifferent","doubt"],"char":"\ud83e\udd37\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"tipping_hand_woman":{"keywords":["female","girl","woman","human","information"],"char":"\ud83d\udc81","fitzpatrick_scale":true,"category":"people"},"tipping_hand_man":{"keywords":["male","boy","man","human","information"],"char":"\ud83d\udc81\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"no_good_woman":{"keywords":["female","girl","woman","nope"],"char":"\ud83d\ude45","fitzpatrick_scale":true,"category":"people"},"no_good_man":{"keywords":["male","boy","man","nope"],"char":"\ud83d\ude45\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"ok_woman":{"keywords":["women","girl","female","pink","human","woman"],"char":"\ud83d\ude46","fitzpatrick_scale":true,"category":"people"},"ok_man":{"keywords":["men","boy","male","blue","human","man"],"char":"\ud83d\ude46\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"raising_hand_woman":{"keywords":["female","girl","woman"],"char":"\ud83d\ude4b","fitzpatrick_scale":true,"category":"people"},"raising_hand_man":{"keywords":["male","boy","man"],"char":"\ud83d\ude4b\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"pouting_woman":{"keywords":["female","girl","woman"],"char":"\ud83d\ude4e","fitzpatrick_scale":true,"category":"people"},"pouting_man":{"keywords":["male","boy","man"],"char":"\ud83d\ude4e\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"frowning_woman":{"keywords":["female","girl","woman","sad","depressed","discouraged","unhappy"],"char":"\ud83d\ude4d","fitzpatrick_scale":true,"category":"people"},"frowning_man":{"keywords":["male","boy","man","sad","depressed","discouraged","unhappy"],"char":"\ud83d\ude4d\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"haircut_woman":{"keywords":["female","girl","woman"],"char":"\ud83d\udc87","fitzpatrick_scale":true,"category":"people"},"haircut_man":{"keywords":["male","boy","man"],"char":"\ud83d\udc87\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"massage_woman":{"keywords":["female","girl","woman","head"],"char":"\ud83d\udc86","fitzpatrick_scale":true,"category":"people"},"massage_man":{"keywords":["male","boy","man","head"],"char":"\ud83d\udc86\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"woman_in_steamy_room":{"keywords":["female","woman","spa","steamroom","sauna"],"char":"\ud83e\uddd6\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"people"},"man_in_steamy_room":{"keywords":["male","man","spa","steamroom","sauna"],"char":"\ud83e\uddd6\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"people"},"couple_with_heart_woman_man":{"keywords":["pair","love","like","affection","human","dating","valentines","marriage"],"char":"\ud83d\udc91","fitzpatrick_scale":false,"category":"people"},"couple_with_heart_woman_woman":{"keywords":["pair","love","like","affection","human","dating","valentines","marriage"],"char":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc69","fitzpatrick_scale":false,"category":"people"},"couple_with_heart_man_man":{"keywords":["pair","love","like","affection","human","dating","valentines","marriage"],"char":"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68","fitzpatrick_scale":false,"category":"people"},"couplekiss_man_woman":{"keywords":["pair","valentines","love","like","dating","marriage"],"char":"\ud83d\udc8f","fitzpatrick_scale":false,"category":"people"},"couplekiss_woman_woman":{"keywords":["pair","valentines","love","like","dating","marriage"],"char":"\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69","fitzpatrick_scale":false,"category":"people"},"couplekiss_man_man":{"keywords":["pair","valentines","love","like","dating","marriage"],"char":"\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68","fitzpatrick_scale":false,"category":"people"},"family_man_woman_boy":{"keywords":["home","parents","child","mom","dad","father","mother","people","human"],"char":"\ud83d\udc6a","fitzpatrick_scale":false,"category":"people"},"family_man_woman_girl":{"keywords":["home","parents","people","human","child"],"char":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_man_woman_girl_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_woman_boy_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_woman_girl_girl":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_woman_woman_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_woman_girl":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_woman_woman_girl_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_woman_boy_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_woman_girl_girl":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_man_man_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_man_girl":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_man_man_girl_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_man_boy_boy":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_man_girl_girl":{"keywords":["home","parents","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_woman_boy":{"keywords":["home","parent","people","human","child"],"char":"\ud83d\udc69\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_girl":{"keywords":["home","parent","people","human","child"],"char":"\ud83d\udc69\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_woman_girl_boy":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_boy_boy":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_woman_girl_girl":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_man_boy":{"keywords":["home","parent","people","human","child"],"char":"\ud83d\udc68\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_girl":{"keywords":["home","parent","people","human","child"],"char":"\ud83d\udc68\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"family_man_girl_boy":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_boy_boy":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66","fitzpatrick_scale":false,"category":"people"},"family_man_girl_girl":{"keywords":["home","parent","people","human","children"],"char":"\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d\udc67","fitzpatrick_scale":false,"category":"people"},"yarn":{"keywords":["ball","crochet","knit"],"char":"\ud83e\uddf6","fitzpatrick_scale":false,"category":"people"},"thread":{"keywords":["needle","sewing","spool","string"],"char":"\ud83e\uddf5","fitzpatrick_scale":false,"category":"people"},"coat":{"keywords":["jacket"],"char":"\ud83e\udde5","fitzpatrick_scale":false,"category":"people"},"labcoat":{"keywords":["doctor","experiment","scientist","chemist"],"char":"\ud83e\udd7c","fitzpatrick_scale":false,"category":"people"},"womans_clothes":{"keywords":["fashion","shopping_bags","female"],"char":"\ud83d\udc5a","fitzpatrick_scale":false,"category":"people"},"tshirt":{"keywords":["fashion","cloth","casual","shirt","tee"],"char":"\ud83d\udc55","fitzpatrick_scale":false,"category":"people"},"jeans":{"keywords":["fashion","shopping"],"char":"\ud83d\udc56","fitzpatrick_scale":false,"category":"people"},"necktie":{"keywords":["shirt","suitup","formal","fashion","cloth","business"],"char":"\ud83d\udc54","fitzpatrick_scale":false,"category":"people"},"dress":{"keywords":["clothes","fashion","shopping"],"char":"\ud83d\udc57","fitzpatrick_scale":false,"category":"people"},"bikini":{"keywords":["swimming","female","woman","girl","fashion","beach","summer"],"char":"\ud83d\udc59","fitzpatrick_scale":false,"category":"people"},"kimono":{"keywords":["dress","fashion","women","female","japanese"],"char":"\ud83d\udc58","fitzpatrick_scale":false,"category":"people"},"lipstick":{"keywords":["female","girl","fashion","woman"],"char":"\ud83d\udc84","fitzpatrick_scale":false,"category":"people"},"kiss":{"keywords":["face","lips","love","like","affection","valentines"],"char":"\ud83d\udc8b","fitzpatrick_scale":false,"category":"people"},"footprints":{"keywords":["feet","tracking","walking","beach"],"char":"\ud83d\udc63","fitzpatrick_scale":false,"category":"people"},"flat_shoe":{"keywords":["ballet","slip-on","slipper"],"char":"\ud83e\udd7f","fitzpatrick_scale":false,"category":"people"},"high_heel":{"keywords":["fashion","shoes","female","pumps","stiletto"],"char":"\ud83d\udc60","fitzpatrick_scale":false,"category":"people"},"sandal":{"keywords":["shoes","fashion","flip flops"],"char":"\ud83d\udc61","fitzpatrick_scale":false,"category":"people"},"boot":{"keywords":["shoes","fashion"],"char":"\ud83d\udc62","fitzpatrick_scale":false,"category":"people"},"mans_shoe":{"keywords":["fashion","male"],"char":"\ud83d\udc5e","fitzpatrick_scale":false,"category":"people"},"athletic_shoe":{"keywords":["shoes","sports","sneakers"],"char":"\ud83d\udc5f","fitzpatrick_scale":false,"category":"people"},"hiking_boot":{"keywords":["backpacking","camping","hiking"],"char":"\ud83e\udd7e","fitzpatrick_scale":false,"category":"people"},"socks":{"keywords":["stockings","clothes"],"char":"\ud83e\udde6","fitzpatrick_scale":false,"category":"people"},"gloves":{"keywords":["hands","winter","clothes"],"char":"\ud83e\udde4","fitzpatrick_scale":false,"category":"people"},"scarf":{"keywords":["neck","winter","clothes"],"char":"\ud83e\udde3","fitzpatrick_scale":false,"category":"people"},"womans_hat":{"keywords":["fashion","accessories","female","lady","spring"],"char":"\ud83d\udc52","fitzpatrick_scale":false,"category":"people"},"tophat":{"keywords":["magic","gentleman","classy","circus"],"char":"\ud83c\udfa9","fitzpatrick_scale":false,"category":"people"},"billed_hat":{"keywords":["cap","baseball"],"char":"\ud83e\udde2","fitzpatrick_scale":false,"category":"people"},"rescue_worker_helmet":{"keywords":["construction","build"],"char":"\u26d1","fitzpatrick_scale":false,"category":"people"},"mortar_board":{"keywords":["school","college","degree","university","graduation","cap","hat","legal","learn","education"],"char":"\ud83c\udf93","fitzpatrick_scale":false,"category":"people"},"crown":{"keywords":["king","kod","leader","royalty","lord"],"char":"\ud83d\udc51","fitzpatrick_scale":false,"category":"people"},"school_satchel":{"keywords":["student","education","bag","backpack"],"char":"\ud83c\udf92","fitzpatrick_scale":false,"category":"people"},"luggage":{"keywords":["packing","travel"],"char":"\ud83e\uddf3","fitzpatrick_scale":false,"category":"people"},"pouch":{"keywords":["bag","accessories","shopping"],"char":"\ud83d\udc5d","fitzpatrick_scale":false,"category":"people"},"purse":{"keywords":["fashion","accessories","money","sales","shopping"],"char":"\ud83d\udc5b","fitzpatrick_scale":false,"category":"people"},"handbag":{"keywords":["fashion","accessory","accessories","shopping"],"char":"\ud83d\udc5c","fitzpatrick_scale":false,"category":"people"},"briefcase":{"keywords":["business","documents","work","law","legal","job","career"],"char":"\ud83d\udcbc","fitzpatrick_scale":false,"category":"people"},"eyeglasses":{"keywords":["fashion","accessories","eyesight","nerdy","dork","geek"],"char":"\ud83d\udc53","fitzpatrick_scale":false,"category":"people"},"dark_sunglasses":{"keywords":["face","cool","accessories"],"char":"\ud83d\udd76","fitzpatrick_scale":false,"category":"people"},"goggles":{"keywords":["eyes","protection","safety"],"char":"\ud83e\udd7d","fitzpatrick_scale":false,"category":"people"},"ring":{"keywords":["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"char":"\ud83d\udc8d","fitzpatrick_scale":false,"category":"people"},"closed_umbrella":{"keywords":["weather","rain","drizzle"],"char":"\ud83c\udf02","fitzpatrick_scale":false,"category":"people"},"dog":{"keywords":["animal","friend","nature","woof","puppy","pet","faithful"],"char":"\ud83d\udc36","fitzpatrick_scale":false,"category":"animals_and_nature"},"cat":{"keywords":["animal","meow","nature","pet","kitten"],"char":"\ud83d\udc31","fitzpatrick_scale":false,"category":"animals_and_nature"},"mouse":{"keywords":["animal","nature","cheese_wedge","rodent"],"char":"\ud83d\udc2d","fitzpatrick_scale":false,"category":"animals_and_nature"},"hamster":{"keywords":["animal","nature"],"char":"\ud83d\udc39","fitzpatrick_scale":false,"category":"animals_and_nature"},"rabbit":{"keywords":["animal","nature","pet","spring","magic","bunny"],"char":"\ud83d\udc30","fitzpatrick_scale":false,"category":"animals_and_nature"},"fox_face":{"keywords":["animal","nature","face"],"char":"\ud83e\udd8a","fitzpatrick_scale":false,"category":"animals_and_nature"},"bear":{"keywords":["animal","nature","wild"],"char":"\ud83d\udc3b","fitzpatrick_scale":false,"category":"animals_and_nature"},"panda_face":{"keywords":["animal","nature","panda"],"char":"\ud83d\udc3c","fitzpatrick_scale":false,"category":"animals_and_nature"},"koala":{"keywords":["animal","nature"],"char":"\ud83d\udc28","fitzpatrick_scale":false,"category":"animals_and_nature"},"tiger":{"keywords":["animal","cat","danger","wild","nature","roar"],"char":"\ud83d\udc2f","fitzpatrick_scale":false,"category":"animals_and_nature"},"lion":{"keywords":["animal","nature"],"char":"\ud83e\udd81","fitzpatrick_scale":false,"category":"animals_and_nature"},"cow":{"keywords":["beef","ox","animal","nature","moo","milk"],"char":"\ud83d\udc2e","fitzpatrick_scale":false,"category":"animals_and_nature"},"pig":{"keywords":["animal","oink","nature"],"char":"\ud83d\udc37","fitzpatrick_scale":false,"category":"animals_and_nature"},"pig_nose":{"keywords":["animal","oink"],"char":"\ud83d\udc3d","fitzpatrick_scale":false,"category":"animals_and_nature"},"frog":{"keywords":["animal","nature","croak","toad"],"char":"\ud83d\udc38","fitzpatrick_scale":false,"category":"animals_and_nature"},"squid":{"keywords":["animal","nature","ocean","sea"],"char":"\ud83e\udd91","fitzpatrick_scale":false,"category":"animals_and_nature"},"octopus":{"keywords":["animal","creature","ocean","sea","nature","beach"],"char":"\ud83d\udc19","fitzpatrick_scale":false,"category":"animals_and_nature"},"shrimp":{"keywords":["animal","ocean","nature","seafood"],"char":"\ud83e\udd90","fitzpatrick_scale":false,"category":"animals_and_nature"},"monkey_face":{"keywords":["animal","nature","circus"],"char":"\ud83d\udc35","fitzpatrick_scale":false,"category":"animals_and_nature"},"gorilla":{"keywords":["animal","nature","circus"],"char":"\ud83e\udd8d","fitzpatrick_scale":false,"category":"animals_and_nature"},"see_no_evil":{"keywords":["monkey","animal","nature","haha"],"char":"\ud83d\ude48","fitzpatrick_scale":false,"category":"animals_and_nature"},"hear_no_evil":{"keywords":["animal","monkey","nature"],"char":"\ud83d\ude49","fitzpatrick_scale":false,"category":"animals_and_nature"},"speak_no_evil":{"keywords":["monkey","animal","nature","omg"],"char":"\ud83d\ude4a","fitzpatrick_scale":false,"category":"animals_and_nature"},"monkey":{"keywords":["animal","nature","banana","circus"],"char":"\ud83d\udc12","fitzpatrick_scale":false,"category":"animals_and_nature"},"chicken":{"keywords":["animal","cluck","nature","bird"],"char":"\ud83d\udc14","fitzpatrick_scale":false,"category":"animals_and_nature"},"penguin":{"keywords":["animal","nature"],"char":"\ud83d\udc27","fitzpatrick_scale":false,"category":"animals_and_nature"},"bird":{"keywords":["animal","nature","fly","tweet","spring"],"char":"\ud83d\udc26","fitzpatrick_scale":false,"category":"animals_and_nature"},"baby_chick":{"keywords":["animal","chicken","bird"],"char":"\ud83d\udc24","fitzpatrick_scale":false,"category":"animals_and_nature"},"hatching_chick":{"keywords":["animal","chicken","egg","born","baby","bird"],"char":"\ud83d\udc23","fitzpatrick_scale":false,"category":"animals_and_nature"},"hatched_chick":{"keywords":["animal","chicken","baby","bird"],"char":"\ud83d\udc25","fitzpatrick_scale":false,"category":"animals_and_nature"},"duck":{"keywords":["animal","nature","bird","mallard"],"char":"\ud83e\udd86","fitzpatrick_scale":false,"category":"animals_and_nature"},"eagle":{"keywords":["animal","nature","bird"],"char":"\ud83e\udd85","fitzpatrick_scale":false,"category":"animals_and_nature"},"owl":{"keywords":["animal","nature","bird","hoot"],"char":"\ud83e\udd89","fitzpatrick_scale":false,"category":"animals_and_nature"},"bat":{"keywords":["animal","nature","blind","vampire"],"char":"\ud83e\udd87","fitzpatrick_scale":false,"category":"animals_and_nature"},"wolf":{"keywords":["animal","nature","wild"],"char":"\ud83d\udc3a","fitzpatrick_scale":false,"category":"animals_and_nature"},"boar":{"keywords":["animal","nature"],"char":"\ud83d\udc17","fitzpatrick_scale":false,"category":"animals_and_nature"},"horse":{"keywords":["animal","brown","nature"],"char":"\ud83d\udc34","fitzpatrick_scale":false,"category":"animals_and_nature"},"unicorn":{"keywords":["animal","nature","mystical"],"char":"\ud83e\udd84","fitzpatrick_scale":false,"category":"animals_and_nature"},"honeybee":{"keywords":["animal","insect","nature","bug","spring","honey"],"char":"\ud83d\udc1d","fitzpatrick_scale":false,"category":"animals_and_nature"},"bug":{"keywords":["animal","insect","nature","worm"],"char":"\ud83d\udc1b","fitzpatrick_scale":false,"category":"animals_and_nature"},"butterfly":{"keywords":["animal","insect","nature","caterpillar"],"char":"\ud83e\udd8b","fitzpatrick_scale":false,"category":"animals_and_nature"},"snail":{"keywords":["slow","animal","shell"],"char":"\ud83d\udc0c","fitzpatrick_scale":false,"category":"animals_and_nature"},"beetle":{"keywords":["animal","insect","nature","ladybug"],"char":"\ud83d\udc1e","fitzpatrick_scale":false,"category":"animals_and_nature"},"ant":{"keywords":["animal","insect","nature","bug"],"char":"\ud83d\udc1c","fitzpatrick_scale":false,"category":"animals_and_nature"},"grasshopper":{"keywords":["animal","cricket","chirp"],"char":"\ud83e\udd97","fitzpatrick_scale":false,"category":"animals_and_nature"},"spider":{"keywords":["animal","arachnid"],"char":"\ud83d\udd77","fitzpatrick_scale":false,"category":"animals_and_nature"},"scorpion":{"keywords":["animal","arachnid"],"char":"\ud83e\udd82","fitzpatrick_scale":false,"category":"animals_and_nature"},"crab":{"keywords":["animal","crustacean"],"char":"\ud83e\udd80","fitzpatrick_scale":false,"category":"animals_and_nature"},"snake":{"keywords":["animal","evil","nature","hiss","python"],"char":"\ud83d\udc0d","fitzpatrick_scale":false,"category":"animals_and_nature"},"lizard":{"keywords":["animal","nature","reptile"],"char":"\ud83e\udd8e","fitzpatrick_scale":false,"category":"animals_and_nature"},"t-rex":{"keywords":["animal","nature","dinosaur","tyrannosaurus","extinct"],"char":"\ud83e\udd96","fitzpatrick_scale":false,"category":"animals_and_nature"},"sauropod":{"keywords":["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],"char":"\ud83e\udd95","fitzpatrick_scale":false,"category":"animals_and_nature"},"turtle":{"keywords":["animal","slow","nature","tortoise"],"char":"\ud83d\udc22","fitzpatrick_scale":false,"category":"animals_and_nature"},"tropical_fish":{"keywords":["animal","swim","ocean","beach","nemo"],"char":"\ud83d\udc20","fitzpatrick_scale":false,"category":"animals_and_nature"},"fish":{"keywords":["animal","food","nature"],"char":"\ud83d\udc1f","fitzpatrick_scale":false,"category":"animals_and_nature"},"blowfish":{"keywords":["animal","nature","food","sea","ocean"],"char":"\ud83d\udc21","fitzpatrick_scale":false,"category":"animals_and_nature"},"dolphin":{"keywords":["animal","nature","fish","sea","ocean","flipper","fins","beach"],"char":"\ud83d\udc2c","fitzpatrick_scale":false,"category":"animals_and_nature"},"shark":{"keywords":["animal","nature","fish","sea","ocean","jaws","fins","beach"],"char":"\ud83e\udd88","fitzpatrick_scale":false,"category":"animals_and_nature"},"whale":{"keywords":["animal","nature","sea","ocean"],"char":"\ud83d\udc33","fitzpatrick_scale":false,"category":"animals_and_nature"},"whale2":{"keywords":["animal","nature","sea","ocean"],"char":"\ud83d\udc0b","fitzpatrick_scale":false,"category":"animals_and_nature"},"crocodile":{"keywords":["animal","nature","reptile","lizard","alligator"],"char":"\ud83d\udc0a","fitzpatrick_scale":false,"category":"animals_and_nature"},"leopard":{"keywords":["animal","nature"],"char":"\ud83d\udc06","fitzpatrick_scale":false,"category":"animals_and_nature"},"zebra":{"keywords":["animal","nature","stripes","safari"],"char":"\ud83e\udd93","fitzpatrick_scale":false,"category":"animals_and_nature"},"tiger2":{"keywords":["animal","nature","roar"],"char":"\ud83d\udc05","fitzpatrick_scale":false,"category":"animals_and_nature"},"water_buffalo":{"keywords":["animal","nature","ox","cow"],"char":"\ud83d\udc03","fitzpatrick_scale":false,"category":"animals_and_nature"},"ox":{"keywords":["animal","cow","beef"],"char":"\ud83d\udc02","fitzpatrick_scale":false,"category":"animals_and_nature"},"cow2":{"keywords":["beef","ox","animal","nature","moo","milk"],"char":"\ud83d\udc04","fitzpatrick_scale":false,"category":"animals_and_nature"},"deer":{"keywords":["animal","nature","horns","venison"],"char":"\ud83e\udd8c","fitzpatrick_scale":false,"category":"animals_and_nature"},"dromedary_camel":{"keywords":["animal","hot","desert","hump"],"char":"\ud83d\udc2a","fitzpatrick_scale":false,"category":"animals_and_nature"},"camel":{"keywords":["animal","nature","hot","desert","hump"],"char":"\ud83d\udc2b","fitzpatrick_scale":false,"category":"animals_and_nature"},"giraffe":{"keywords":["animal","nature","spots","safari"],"char":"\ud83e\udd92","fitzpatrick_scale":false,"category":"animals_and_nature"},"elephant":{"keywords":["animal","nature","nose","th","circus"],"char":"\ud83d\udc18","fitzpatrick_scale":false,"category":"animals_and_nature"},"rhinoceros":{"keywords":["animal","nature","horn"],"char":"\ud83e\udd8f","fitzpatrick_scale":false,"category":"animals_and_nature"},"goat":{"keywords":["animal","nature"],"char":"\ud83d\udc10","fitzpatrick_scale":false,"category":"animals_and_nature"},"ram":{"keywords":["animal","sheep","nature"],"char":"\ud83d\udc0f","fitzpatrick_scale":false,"category":"animals_and_nature"},"sheep":{"keywords":["animal","nature","wool","shipit"],"char":"\ud83d\udc11","fitzpatrick_scale":false,"category":"animals_and_nature"},"racehorse":{"keywords":["animal","gamble","luck"],"char":"\ud83d\udc0e","fitzpatrick_scale":false,"category":"animals_and_nature"},"pig2":{"keywords":["animal","nature"],"char":"\ud83d\udc16","fitzpatrick_scale":false,"category":"animals_and_nature"},"rat":{"keywords":["animal","mouse","rodent"],"char":"\ud83d\udc00","fitzpatrick_scale":false,"category":"animals_and_nature"},"mouse2":{"keywords":["animal","nature","rodent"],"char":"\ud83d\udc01","fitzpatrick_scale":false,"category":"animals_and_nature"},"rooster":{"keywords":["animal","nature","chicken"],"char":"\ud83d\udc13","fitzpatrick_scale":false,"category":"animals_and_nature"},"turkey":{"keywords":["animal","bird"],"char":"\ud83e\udd83","fitzpatrick_scale":false,"category":"animals_and_nature"},"dove":{"keywords":["animal","bird"],"char":"\ud83d\udd4a","fitzpatrick_scale":false,"category":"animals_and_nature"},"dog2":{"keywords":["animal","nature","friend","doge","pet","faithful"],"char":"\ud83d\udc15","fitzpatrick_scale":false,"category":"animals_and_nature"},"poodle":{"keywords":["dog","animal","101","nature","pet"],"char":"\ud83d\udc29","fitzpatrick_scale":false,"category":"animals_and_nature"},"cat2":{"keywords":["animal","meow","pet","cats"],"char":"\ud83d\udc08","fitzpatrick_scale":false,"category":"animals_and_nature"},"rabbit2":{"keywords":["animal","nature","pet","magic","spring"],"char":"\ud83d\udc07","fitzpatrick_scale":false,"category":"animals_and_nature"},"chipmunk":{"keywords":["animal","nature","rodent","squirrel"],"char":"\ud83d\udc3f","fitzpatrick_scale":false,"category":"animals_and_nature"},"hedgehog":{"keywords":["animal","nature","spiny"],"char":"\ud83e\udd94","fitzpatrick_scale":false,"category":"animals_and_nature"},"raccoon":{"keywords":["animal","nature"],"char":"\ud83e\udd9d","fitzpatrick_scale":false,"category":"animals_and_nature"},"llama":{"keywords":["animal","nature","alpaca"],"char":"\ud83e\udd99","fitzpatrick_scale":false,"category":"animals_and_nature"},"hippopotamus":{"keywords":["animal","nature"],"char":"\ud83e\udd9b","fitzpatrick_scale":false,"category":"animals_and_nature"},"kangaroo":{"keywords":["animal","nature","australia","joey","hop","marsupial"],"char":"\ud83e\udd98","fitzpatrick_scale":false,"category":"animals_and_nature"},"badger":{"keywords":["animal","nature","honey"],"char":"\ud83e\udda1","fitzpatrick_scale":false,"category":"animals_and_nature"},"swan":{"keywords":["animal","nature","bird"],"char":"\ud83e\udda2","fitzpatrick_scale":false,"category":"animals_and_nature"},"peacock":{"keywords":["animal","nature","peahen","bird"],"char":"\ud83e\udd9a","fitzpatrick_scale":false,"category":"animals_and_nature"},"parrot":{"keywords":["animal","nature","bird","pirate","talk"],"char":"\ud83e\udd9c","fitzpatrick_scale":false,"category":"animals_and_nature"},"lobster":{"keywords":["animal","nature","bisque","claws","seafood"],"char":"\ud83e\udd9e","fitzpatrick_scale":false,"category":"animals_and_nature"},"mosquito":{"keywords":["animal","nature","insect","malaria"],"char":"\ud83e\udd9f","fitzpatrick_scale":false,"category":"animals_and_nature"},"paw_prints":{"keywords":["animal","tracking","footprints","dog","cat","pet","feet"],"char":"\ud83d\udc3e","fitzpatrick_scale":false,"category":"animals_and_nature"},"dragon":{"keywords":["animal","myth","nature","chinese","green"],"char":"\ud83d\udc09","fitzpatrick_scale":false,"category":"animals_and_nature"},"dragon_face":{"keywords":["animal","myth","nature","chinese","green"],"char":"\ud83d\udc32","fitzpatrick_scale":false,"category":"animals_and_nature"},"cactus":{"keywords":["vegetable","plant","nature"],"char":"\ud83c\udf35","fitzpatrick_scale":false,"category":"animals_and_nature"},"christmas_tree":{"keywords":["festival","vacation","december","xmas","celebration"],"char":"\ud83c\udf84","fitzpatrick_scale":false,"category":"animals_and_nature"},"evergreen_tree":{"keywords":["plant","nature"],"char":"\ud83c\udf32","fitzpatrick_scale":false,"category":"animals_and_nature"},"deciduous_tree":{"keywords":["plant","nature"],"char":"\ud83c\udf33","fitzpatrick_scale":false,"category":"animals_and_nature"},"palm_tree":{"keywords":["plant","vegetable","nature","summer","beach","mojito","tropical"],"char":"\ud83c\udf34","fitzpatrick_scale":false,"category":"animals_and_nature"},"seedling":{"keywords":["plant","nature","grass","lawn","spring"],"char":"\ud83c\udf31","fitzpatrick_scale":false,"category":"animals_and_nature"},"herb":{"keywords":["vegetable","plant","medicine","weed","grass","lawn"],"char":"\ud83c\udf3f","fitzpatrick_scale":false,"category":"animals_and_nature"},"shamrock":{"keywords":["vegetable","plant","nature","irish","clover"],"char":"\u2618","fitzpatrick_scale":false,"category":"animals_and_nature"},"four_leaf_clover":{"keywords":["vegetable","plant","nature","lucky","irish"],"char":"\ud83c\udf40","fitzpatrick_scale":false,"category":"animals_and_nature"},"bamboo":{"keywords":["plant","nature","vegetable","panda","pine_decoration"],"char":"\ud83c\udf8d","fitzpatrick_scale":false,"category":"animals_and_nature"},"tanabata_tree":{"keywords":["plant","nature","branch","summer"],"char":"\ud83c\udf8b","fitzpatrick_scale":false,"category":"animals_and_nature"},"leaves":{"keywords":["nature","plant","tree","vegetable","grass","lawn","spring"],"char":"\ud83c\udf43","fitzpatrick_scale":false,"category":"animals_and_nature"},"fallen_leaf":{"keywords":["nature","plant","vegetable","leaves"],"char":"\ud83c\udf42","fitzpatrick_scale":false,"category":"animals_and_nature"},"maple_leaf":{"keywords":["nature","plant","vegetable","ca","fall"],"char":"\ud83c\udf41","fitzpatrick_scale":false,"category":"animals_and_nature"},"ear_of_rice":{"keywords":["nature","plant"],"char":"\ud83c\udf3e","fitzpatrick_scale":false,"category":"animals_and_nature"},"hibiscus":{"keywords":["plant","vegetable","flowers","beach"],"char":"\ud83c\udf3a","fitzpatrick_scale":false,"category":"animals_and_nature"},"sunflower":{"keywords":["nature","plant","fall"],"char":"\ud83c\udf3b","fitzpatrick_scale":false,"category":"animals_and_nature"},"rose":{"keywords":["flowers","valentines","love","spring"],"char":"\ud83c\udf39","fitzpatrick_scale":false,"category":"animals_and_nature"},"wilted_flower":{"keywords":["plant","nature","flower"],"char":"\ud83e\udd40","fitzpatrick_scale":false,"category":"animals_and_nature"},"tulip":{"keywords":["flowers","plant","nature","summer","spring"],"char":"\ud83c\udf37","fitzpatrick_scale":false,"category":"animals_and_nature"},"blossom":{"keywords":["nature","flowers","yellow"],"char":"\ud83c\udf3c","fitzpatrick_scale":false,"category":"animals_and_nature"},"cherry_blossom":{"keywords":["nature","plant","spring","flower"],"char":"\ud83c\udf38","fitzpatrick_scale":false,"category":"animals_and_nature"},"bouquet":{"keywords":["flowers","nature","spring"],"char":"\ud83d\udc90","fitzpatrick_scale":false,"category":"animals_and_nature"},"mushroom":{"keywords":["plant","vegetable"],"char":"\ud83c\udf44","fitzpatrick_scale":false,"category":"animals_and_nature"},"chestnut":{"keywords":["food","squirrel"],"char":"\ud83c\udf30","fitzpatrick_scale":false,"category":"animals_and_nature"},"jack_o_lantern":{"keywords":["halloween","light","pumpkin","creepy","fall"],"char":"\ud83c\udf83","fitzpatrick_scale":false,"category":"animals_and_nature"},"shell":{"keywords":["nature","sea","beach"],"char":"\ud83d\udc1a","fitzpatrick_scale":false,"category":"animals_and_nature"},"spider_web":{"keywords":["animal","insect","arachnid","silk"],"char":"\ud83d\udd78","fitzpatrick_scale":false,"category":"animals_and_nature"},"earth_americas":{"keywords":["globe","world","USA","international"],"char":"\ud83c\udf0e","fitzpatrick_scale":false,"category":"animals_and_nature"},"earth_africa":{"keywords":["globe","world","international"],"char":"\ud83c\udf0d","fitzpatrick_scale":false,"category":"animals_and_nature"},"earth_asia":{"keywords":["globe","world","east","international"],"char":"\ud83c\udf0f","fitzpatrick_scale":false,"category":"animals_and_nature"},"full_moon":{"keywords":["nature","yellow","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf15","fitzpatrick_scale":false,"category":"animals_and_nature"},"waning_gibbous_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],"char":"\ud83c\udf16","fitzpatrick_scale":false,"category":"animals_and_nature"},"last_quarter_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf17","fitzpatrick_scale":false,"category":"animals_and_nature"},"waning_crescent_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf18","fitzpatrick_scale":false,"category":"animals_and_nature"},"new_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf11","fitzpatrick_scale":false,"category":"animals_and_nature"},"waxing_crescent_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf12","fitzpatrick_scale":false,"category":"animals_and_nature"},"first_quarter_moon":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf13","fitzpatrick_scale":false,"category":"animals_and_nature"},"waxing_gibbous_moon":{"keywords":["nature","night","sky","gray","twilight","planet","space","evening","sleep"],"char":"\ud83c\udf14","fitzpatrick_scale":false,"category":"animals_and_nature"},"new_moon_with_face":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf1a","fitzpatrick_scale":false,"category":"animals_and_nature"},"full_moon_with_face":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf1d","fitzpatrick_scale":false,"category":"animals_and_nature"},"first_quarter_moon_with_face":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf1b","fitzpatrick_scale":false,"category":"animals_and_nature"},"last_quarter_moon_with_face":{"keywords":["nature","twilight","planet","space","night","evening","sleep"],"char":"\ud83c\udf1c","fitzpatrick_scale":false,"category":"animals_and_nature"},"sun_with_face":{"keywords":["nature","morning","sky"],"char":"\ud83c\udf1e","fitzpatrick_scale":false,"category":"animals_and_nature"},"crescent_moon":{"keywords":["night","sleep","sky","evening","magic"],"char":"\ud83c\udf19","fitzpatrick_scale":false,"category":"animals_and_nature"},"star":{"keywords":["night","yellow"],"char":"\u2b50","fitzpatrick_scale":false,"category":"animals_and_nature"},"star2":{"keywords":["night","sparkle","awesome","good","magic"],"char":"\ud83c\udf1f","fitzpatrick_scale":false,"category":"animals_and_nature"},"dizzy":{"keywords":["star","sparkle","shoot","magic"],"char":"\ud83d\udcab","fitzpatrick_scale":false,"category":"animals_and_nature"},"sparkles":{"keywords":["stars","shine","shiny","cool","awesome","good","magic"],"char":"\u2728","fitzpatrick_scale":false,"category":"animals_and_nature"},"comet":{"keywords":["space"],"char":"\u2604","fitzpatrick_scale":false,"category":"animals_and_nature"},"sunny":{"keywords":["weather","nature","brightness","summer","beach","spring"],"char":"\u2600\ufe0f","fitzpatrick_scale":false,"category":"animals_and_nature"},"sun_behind_small_cloud":{"keywords":["weather"],"char":"\ud83c\udf24","fitzpatrick_scale":false,"category":"animals_and_nature"},"partly_sunny":{"keywords":["weather","nature","cloudy","morning","fall","spring"],"char":"\u26c5","fitzpatrick_scale":false,"category":"animals_and_nature"},"sun_behind_large_cloud":{"keywords":["weather"],"char":"\ud83c\udf25","fitzpatrick_scale":false,"category":"animals_and_nature"},"sun_behind_rain_cloud":{"keywords":["weather"],"char":"\ud83c\udf26","fitzpatrick_scale":false,"category":"animals_and_nature"},"cloud":{"keywords":["weather","sky"],"char":"\u2601\ufe0f","fitzpatrick_scale":false,"category":"animals_and_nature"},"cloud_with_rain":{"keywords":["weather"],"char":"\ud83c\udf27","fitzpatrick_scale":false,"category":"animals_and_nature"},"cloud_with_lightning_and_rain":{"keywords":["weather","lightning"],"char":"\u26c8","fitzpatrick_scale":false,"category":"animals_and_nature"},"cloud_with_lightning":{"keywords":["weather","thunder"],"char":"\ud83c\udf29","fitzpatrick_scale":false,"category":"animals_and_nature"},"zap":{"keywords":["thunder","weather","lightning bolt","fast"],"char":"\u26a1","fitzpatrick_scale":false,"category":"animals_and_nature"},"fire":{"keywords":["hot","cook","flame"],"char":"\ud83d\udd25","fitzpatrick_scale":false,"category":"animals_and_nature"},"boom":{"keywords":["bomb","explode","explosion","collision","blown"],"char":"\ud83d\udca5","fitzpatrick_scale":false,"category":"animals_and_nature"},"snowflake":{"keywords":["winter","season","cold","weather","christmas","xmas"],"char":"\u2744\ufe0f","fitzpatrick_scale":false,"category":"animals_and_nature"},"cloud_with_snow":{"keywords":["weather"],"char":"\ud83c\udf28","fitzpatrick_scale":false,"category":"animals_and_nature"},"snowman":{"keywords":["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],"char":"\u26c4","fitzpatrick_scale":false,"category":"animals_and_nature"},"snowman_with_snow":{"keywords":["winter","season","cold","weather","christmas","xmas","frozen"],"char":"\u2603","fitzpatrick_scale":false,"category":"animals_and_nature"},"wind_face":{"keywords":["gust","air"],"char":"\ud83c\udf2c","fitzpatrick_scale":false,"category":"animals_and_nature"},"dash":{"keywords":["wind","air","fast","shoo","fart","smoke","puff"],"char":"\ud83d\udca8","fitzpatrick_scale":false,"category":"animals_and_nature"},"tornado":{"keywords":["weather","cyclone","twister"],"char":"\ud83c\udf2a","fitzpatrick_scale":false,"category":"animals_and_nature"},"fog":{"keywords":["weather"],"char":"\ud83c\udf2b","fitzpatrick_scale":false,"category":"animals_and_nature"},"open_umbrella":{"keywords":["weather","spring"],"char":"\u2602","fitzpatrick_scale":false,"category":"animals_and_nature"},"umbrella":{"keywords":["rainy","weather","spring"],"char":"\u2614","fitzpatrick_scale":false,"category":"animals_and_nature"},"droplet":{"keywords":["water","drip","faucet","spring"],"char":"\ud83d\udca7","fitzpatrick_scale":false,"category":"animals_and_nature"},"sweat_drops":{"keywords":["water","drip","oops"],"char":"\ud83d\udca6","fitzpatrick_scale":false,"category":"animals_and_nature"},"ocean":{"keywords":["sea","water","wave","nature","tsunami","disaster"],"char":"\ud83c\udf0a","fitzpatrick_scale":false,"category":"animals_and_nature"},"green_apple":{"keywords":["fruit","nature"],"char":"\ud83c\udf4f","fitzpatrick_scale":false,"category":"food_and_drink"},"apple":{"keywords":["fruit","mac","school"],"char":"\ud83c\udf4e","fitzpatrick_scale":false,"category":"food_and_drink"},"pear":{"keywords":["fruit","nature","food"],"char":"\ud83c\udf50","fitzpatrick_scale":false,"category":"food_and_drink"},"tangerine":{"keywords":["food","fruit","nature","orange"],"char":"\ud83c\udf4a","fitzpatrick_scale":false,"category":"food_and_drink"},"lemon":{"keywords":["fruit","nature"],"char":"\ud83c\udf4b","fitzpatrick_scale":false,"category":"food_and_drink"},"banana":{"keywords":["fruit","food","monkey"],"char":"\ud83c\udf4c","fitzpatrick_scale":false,"category":"food_and_drink"},"watermelon":{"keywords":["fruit","food","picnic","summer"],"char":"\ud83c\udf49","fitzpatrick_scale":false,"category":"food_and_drink"},"grapes":{"keywords":["fruit","food","wine"],"char":"\ud83c\udf47","fitzpatrick_scale":false,"category":"food_and_drink"},"strawberry":{"keywords":["fruit","food","nature"],"char":"\ud83c\udf53","fitzpatrick_scale":false,"category":"food_and_drink"},"melon":{"keywords":["fruit","nature","food"],"char":"\ud83c\udf48","fitzpatrick_scale":false,"category":"food_and_drink"},"cherries":{"keywords":["food","fruit"],"char":"\ud83c\udf52","fitzpatrick_scale":false,"category":"food_and_drink"},"peach":{"keywords":["fruit","nature","food"],"char":"\ud83c\udf51","fitzpatrick_scale":false,"category":"food_and_drink"},"pineapple":{"keywords":["fruit","nature","food"],"char":"\ud83c\udf4d","fitzpatrick_scale":false,"category":"food_and_drink"},"coconut":{"keywords":["fruit","nature","food","palm"],"char":"\ud83e\udd65","fitzpatrick_scale":false,"category":"food_and_drink"},"kiwi_fruit":{"keywords":["fruit","food"],"char":"\ud83e\udd5d","fitzpatrick_scale":false,"category":"food_and_drink"},"mango":{"keywords":["fruit","food","tropical"],"char":"\ud83e\udd6d","fitzpatrick_scale":false,"category":"food_and_drink"},"avocado":{"keywords":["fruit","food"],"char":"\ud83e\udd51","fitzpatrick_scale":false,"category":"food_and_drink"},"broccoli":{"keywords":["fruit","food","vegetable"],"char":"\ud83e\udd66","fitzpatrick_scale":false,"category":"food_and_drink"},"tomato":{"keywords":["fruit","vegetable","nature","food"],"char":"\ud83c\udf45","fitzpatrick_scale":false,"category":"food_and_drink"},"eggplant":{"keywords":["vegetable","nature","food","aubergine"],"char":"\ud83c\udf46","fitzpatrick_scale":false,"category":"food_and_drink"},"cucumber":{"keywords":["fruit","food","pickle"],"char":"\ud83e\udd52","fitzpatrick_scale":false,"category":"food_and_drink"},"carrot":{"keywords":["vegetable","food","orange"],"char":"\ud83e\udd55","fitzpatrick_scale":false,"category":"food_and_drink"},"hot_pepper":{"keywords":["food","spicy","chilli","chili"],"char":"\ud83c\udf36","fitzpatrick_scale":false,"category":"food_and_drink"},"potato":{"keywords":["food","tuber","vegatable","starch"],"char":"\ud83e\udd54","fitzpatrick_scale":false,"category":"food_and_drink"},"corn":{"keywords":["food","vegetable","plant"],"char":"\ud83c\udf3d","fitzpatrick_scale":false,"category":"food_and_drink"},"leafy_greens":{"keywords":["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],"char":"\ud83e\udd6c","fitzpatrick_scale":false,"category":"food_and_drink"},"sweet_potato":{"keywords":["food","nature"],"char":"\ud83c\udf60","fitzpatrick_scale":false,"category":"food_and_drink"},"peanuts":{"keywords":["food","nut"],"char":"\ud83e\udd5c","fitzpatrick_scale":false,"category":"food_and_drink"},"honey_pot":{"keywords":["bees","sweet","kitchen"],"char":"\ud83c\udf6f","fitzpatrick_scale":false,"category":"food_and_drink"},"croissant":{"keywords":["food","bread","french"],"char":"\ud83e\udd50","fitzpatrick_scale":false,"category":"food_and_drink"},"bread":{"keywords":["food","wheat","breakfast","toast"],"char":"\ud83c\udf5e","fitzpatrick_scale":false,"category":"food_and_drink"},"baguette_bread":{"keywords":["food","bread","french"],"char":"\ud83e\udd56","fitzpatrick_scale":false,"category":"food_and_drink"},"bagel":{"keywords":["food","bread","bakery","schmear"],"char":"\ud83e\udd6f","fitzpatrick_scale":false,"category":"food_and_drink"},"pretzel":{"keywords":["food","bread","twisted"],"char":"\ud83e\udd68","fitzpatrick_scale":false,"category":"food_and_drink"},"cheese":{"keywords":["food","chadder"],"char":"\ud83e\uddc0","fitzpatrick_scale":false,"category":"food_and_drink"},"egg":{"keywords":["food","chicken","breakfast"],"char":"\ud83e\udd5a","fitzpatrick_scale":false,"category":"food_and_drink"},"bacon":{"keywords":["food","breakfast","pork","pig","meat"],"char":"\ud83e\udd53","fitzpatrick_scale":false,"category":"food_and_drink"},"steak":{"keywords":["food","cow","meat","cut","chop","lambchop","porkchop"],"char":"\ud83e\udd69","fitzpatrick_scale":false,"category":"food_and_drink"},"pancakes":{"keywords":["food","breakfast","flapjacks","hotcakes"],"char":"\ud83e\udd5e","fitzpatrick_scale":false,"category":"food_and_drink"},"poultry_leg":{"keywords":["food","meat","drumstick","bird","chicken","turkey"],"char":"\ud83c\udf57","fitzpatrick_scale":false,"category":"food_and_drink"},"meat_on_bone":{"keywords":["good","food","drumstick"],"char":"\ud83c\udf56","fitzpatrick_scale":false,"category":"food_and_drink"},"bone":{"keywords":["skeleton"],"char":"\ud83e\uddb4","fitzpatrick_scale":false,"category":"food_and_drink"},"fried_shrimp":{"keywords":["food","animal","appetizer","summer"],"char":"\ud83c\udf64","fitzpatrick_scale":false,"category":"food_and_drink"},"fried_egg":{"keywords":["food","breakfast","kitchen","egg"],"char":"\ud83c\udf73","fitzpatrick_scale":false,"category":"food_and_drink"},"hamburger":{"keywords":["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],"char":"\ud83c\udf54","fitzpatrick_scale":false,"category":"food_and_drink"},"fries":{"keywords":["chips","snack","fast food"],"char":"\ud83c\udf5f","fitzpatrick_scale":false,"category":"food_and_drink"},"stuffed_flatbread":{"keywords":["food","flatbread","stuffed","gyro"],"char":"\ud83e\udd59","fitzpatrick_scale":false,"category":"food_and_drink"},"hotdog":{"keywords":["food","frankfurter"],"char":"\ud83c\udf2d","fitzpatrick_scale":false,"category":"food_and_drink"},"pizza":{"keywords":["food","party"],"char":"\ud83c\udf55","fitzpatrick_scale":false,"category":"food_and_drink"},"sandwich":{"keywords":["food","lunch","bread"],"char":"\ud83e\udd6a","fitzpatrick_scale":false,"category":"food_and_drink"},"canned_food":{"keywords":["food","soup"],"char":"\ud83e\udd6b","fitzpatrick_scale":false,"category":"food_and_drink"},"spaghetti":{"keywords":["food","italian","noodle"],"char":"\ud83c\udf5d","fitzpatrick_scale":false,"category":"food_and_drink"},"taco":{"keywords":["food","mexican"],"char":"\ud83c\udf2e","fitzpatrick_scale":false,"category":"food_and_drink"},"burrito":{"keywords":["food","mexican"],"char":"\ud83c\udf2f","fitzpatrick_scale":false,"category":"food_and_drink"},"green_salad":{"keywords":["food","healthy","lettuce"],"char":"\ud83e\udd57","fitzpatrick_scale":false,"category":"food_and_drink"},"shallow_pan_of_food":{"keywords":["food","cooking","casserole","paella"],"char":"\ud83e\udd58","fitzpatrick_scale":false,"category":"food_and_drink"},"ramen":{"keywords":["food","japanese","noodle","chopsticks"],"char":"\ud83c\udf5c","fitzpatrick_scale":false,"category":"food_and_drink"},"stew":{"keywords":["food","meat","soup"],"char":"\ud83c\udf72","fitzpatrick_scale":false,"category":"food_and_drink"},"fish_cake":{"keywords":["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],"char":"\ud83c\udf65","fitzpatrick_scale":false,"category":"food_and_drink"},"fortune_cookie":{"keywords":["food","prophecy"],"char":"\ud83e\udd60","fitzpatrick_scale":false,"category":"food_and_drink"},"sushi":{"keywords":["food","fish","japanese","rice"],"char":"\ud83c\udf63","fitzpatrick_scale":false,"category":"food_and_drink"},"bento":{"keywords":["food","japanese","box"],"char":"\ud83c\udf71","fitzpatrick_scale":false,"category":"food_and_drink"},"curry":{"keywords":["food","spicy","hot","indian"],"char":"\ud83c\udf5b","fitzpatrick_scale":false,"category":"food_and_drink"},"rice_ball":{"keywords":["food","japanese"],"char":"\ud83c\udf59","fitzpatrick_scale":false,"category":"food_and_drink"},"rice":{"keywords":["food","china","asian"],"char":"\ud83c\udf5a","fitzpatrick_scale":false,"category":"food_and_drink"},"rice_cracker":{"keywords":["food","japanese"],"char":"\ud83c\udf58","fitzpatrick_scale":false,"category":"food_and_drink"},"oden":{"keywords":["food","japanese"],"char":"\ud83c\udf62","fitzpatrick_scale":false,"category":"food_and_drink"},"dango":{"keywords":["food","dessert","sweet","japanese","barbecue","meat"],"char":"\ud83c\udf61","fitzpatrick_scale":false,"category":"food_and_drink"},"shaved_ice":{"keywords":["hot","dessert","summer"],"char":"\ud83c\udf67","fitzpatrick_scale":false,"category":"food_and_drink"},"ice_cream":{"keywords":["food","hot","dessert"],"char":"\ud83c\udf68","fitzpatrick_scale":false,"category":"food_and_drink"},"icecream":{"keywords":["food","hot","dessert","summer"],"char":"\ud83c\udf66","fitzpatrick_scale":false,"category":"food_and_drink"},"pie":{"keywords":["food","dessert","pastry"],"char":"\ud83e\udd67","fitzpatrick_scale":false,"category":"food_and_drink"},"cake":{"keywords":["food","dessert"],"char":"\ud83c\udf70","fitzpatrick_scale":false,"category":"food_and_drink"},"cupcake":{"keywords":["food","dessert","bakery","sweet"],"char":"\ud83e\uddc1","fitzpatrick_scale":false,"category":"food_and_drink"},"moon_cake":{"keywords":["food","autumn"],"char":"\ud83e\udd6e","fitzpatrick_scale":false,"category":"food_and_drink"},"birthday":{"keywords":["food","dessert","cake"],"char":"\ud83c\udf82","fitzpatrick_scale":false,"category":"food_and_drink"},"custard":{"keywords":["dessert","food"],"char":"\ud83c\udf6e","fitzpatrick_scale":false,"category":"food_and_drink"},"candy":{"keywords":["snack","dessert","sweet","lolly"],"char":"\ud83c\udf6c","fitzpatrick_scale":false,"category":"food_and_drink"},"lollipop":{"keywords":["food","snack","candy","sweet"],"char":"\ud83c\udf6d","fitzpatrick_scale":false,"category":"food_and_drink"},"chocolate_bar":{"keywords":["food","snack","dessert","sweet"],"char":"\ud83c\udf6b","fitzpatrick_scale":false,"category":"food_and_drink"},"popcorn":{"keywords":["food","movie theater","films","snack"],"char":"\ud83c\udf7f","fitzpatrick_scale":false,"category":"food_and_drink"},"dumpling":{"keywords":["food","empanada","pierogi","potsticker"],"char":"\ud83e\udd5f","fitzpatrick_scale":false,"category":"food_and_drink"},"doughnut":{"keywords":["food","dessert","snack","sweet","donut"],"char":"\ud83c\udf69","fitzpatrick_scale":false,"category":"food_and_drink"},"cookie":{"keywords":["food","snack","oreo","chocolate","sweet","dessert"],"char":"\ud83c\udf6a","fitzpatrick_scale":false,"category":"food_and_drink"},"milk_glass":{"keywords":["beverage","drink","cow"],"char":"\ud83e\udd5b","fitzpatrick_scale":false,"category":"food_and_drink"},"beer":{"keywords":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"\ud83c\udf7a","fitzpatrick_scale":false,"category":"food_and_drink"},"beers":{"keywords":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"char":"\ud83c\udf7b","fitzpatrick_scale":false,"category":"food_and_drink"},"clinking_glasses":{"keywords":["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],"char":"\ud83e\udd42","fitzpatrick_scale":false,"category":"food_and_drink"},"wine_glass":{"keywords":["drink","beverage","drunk","alcohol","booze"],"char":"\ud83c\udf77","fitzpatrick_scale":false,"category":"food_and_drink"},"tumbler_glass":{"keywords":["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],"char":"\ud83e\udd43","fitzpatrick_scale":false,"category":"food_and_drink"},"cocktail":{"keywords":["drink","drunk","alcohol","beverage","booze","mojito"],"char":"\ud83c\udf78","fitzpatrick_scale":false,"category":"food_and_drink"},"tropical_drink":{"keywords":["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"char":"\ud83c\udf79","fitzpatrick_scale":false,"category":"food_and_drink"},"champagne":{"keywords":["drink","wine","bottle","celebration"],"char":"\ud83c\udf7e","fitzpatrick_scale":false,"category":"food_and_drink"},"sake":{"keywords":["wine","drink","drunk","beverage","japanese","alcohol","booze"],"char":"\ud83c\udf76","fitzpatrick_scale":false,"category":"food_and_drink"},"tea":{"keywords":["drink","bowl","breakfast","green","british"],"char":"\ud83c\udf75","fitzpatrick_scale":false,"category":"food_and_drink"},"cup_with_straw":{"keywords":["drink","soda"],"char":"\ud83e\udd64","fitzpatrick_scale":false,"category":"food_and_drink"},"coffee":{"keywords":["beverage","caffeine","latte","espresso"],"char":"\u2615","fitzpatrick_scale":false,"category":"food_and_drink"},"baby_bottle":{"keywords":["food","container","milk"],"char":"\ud83c\udf7c","fitzpatrick_scale":false,"category":"food_and_drink"},"salt":{"keywords":["condiment","shaker"],"char":"\ud83e\uddc2","fitzpatrick_scale":false,"category":"food_and_drink"},"spoon":{"keywords":["cutlery","kitchen","tableware"],"char":"\ud83e\udd44","fitzpatrick_scale":false,"category":"food_and_drink"},"fork_and_knife":{"keywords":["cutlery","kitchen"],"char":"\ud83c\udf74","fitzpatrick_scale":false,"category":"food_and_drink"},"plate_with_cutlery":{"keywords":["food","eat","meal","lunch","dinner","restaurant"],"char":"\ud83c\udf7d","fitzpatrick_scale":false,"category":"food_and_drink"},"bowl_with_spoon":{"keywords":["food","breakfast","cereal","oatmeal","porridge"],"char":"\ud83e\udd63","fitzpatrick_scale":false,"category":"food_and_drink"},"takeout_box":{"keywords":["food","leftovers"],"char":"\ud83e\udd61","fitzpatrick_scale":false,"category":"food_and_drink"},"chopsticks":{"keywords":["food"],"char":"\ud83e\udd62","fitzpatrick_scale":false,"category":"food_and_drink"},"soccer":{"keywords":["sports","football"],"char":"\u26bd","fitzpatrick_scale":false,"category":"activity"},"basketball":{"keywords":["sports","balls","NBA"],"char":"\ud83c\udfc0","fitzpatrick_scale":false,"category":"activity"},"football":{"keywords":["sports","balls","NFL"],"char":"\ud83c\udfc8","fitzpatrick_scale":false,"category":"activity"},"baseball":{"keywords":["sports","balls"],"char":"\u26be","fitzpatrick_scale":false,"category":"activity"},"softball":{"keywords":["sports","balls"],"char":"\ud83e\udd4e","fitzpatrick_scale":false,"category":"activity"},"tennis":{"keywords":["sports","balls","green"],"char":"\ud83c\udfbe","fitzpatrick_scale":false,"category":"activity"},"volleyball":{"keywords":["sports","balls"],"char":"\ud83c\udfd0","fitzpatrick_scale":false,"category":"activity"},"rugby_football":{"keywords":["sports","team"],"char":"\ud83c\udfc9","fitzpatrick_scale":false,"category":"activity"},"flying_disc":{"keywords":["sports","frisbee","ultimate"],"char":"\ud83e\udd4f","fitzpatrick_scale":false,"category":"activity"},"8ball":{"keywords":["pool","hobby","game","luck","magic"],"char":"\ud83c\udfb1","fitzpatrick_scale":false,"category":"activity"},"golf":{"keywords":["sports","business","flag","hole","summer"],"char":"\u26f3","fitzpatrick_scale":false,"category":"activity"},"golfing_woman":{"keywords":["sports","business","woman","female"],"char":"\ud83c\udfcc\ufe0f\u200d\u2640\ufe0f","fitzpatrick_scale":false,"category":"activity"},"golfing_man":{"keywords":["sports","business"],"char":"\ud83c\udfcc","fitzpatrick_scale":true,"category":"activity"},"ping_pong":{"keywords":["sports","pingpong"],"char":"\ud83c\udfd3","fitzpatrick_scale":false,"category":"activity"},"badminton":{"keywords":["sports"],"char":"\ud83c\udff8","fitzpatrick_scale":false,"category":"activity"},"goal_net":{"keywords":["sports"],"char":"\ud83e\udd45","fitzpatrick_scale":false,"category":"activity"},"ice_hockey":{"keywords":["sports"],"char":"\ud83c\udfd2","fitzpatrick_scale":false,"category":"activity"},"field_hockey":{"keywords":["sports"],"char":"\ud83c\udfd1","fitzpatrick_scale":false,"category":"activity"},"lacrosse":{"keywords":["sports","ball","stick"],"char":"\ud83e\udd4d","fitzpatrick_scale":false,"category":"activity"},"cricket":{"keywords":["sports"],"char":"\ud83c\udfcf","fitzpatrick_scale":false,"category":"activity"},"ski":{"keywords":["sports","winter","cold","snow"],"char":"\ud83c\udfbf","fitzpatrick_scale":false,"category":"activity"},"skier":{"keywords":["sports","winter","snow"],"char":"\u26f7","fitzpatrick_scale":false,"category":"activity"},"snowboarder":{"keywords":["sports","winter"],"char":"\ud83c\udfc2","fitzpatrick_scale":true,"category":"activity"},"person_fencing":{"keywords":["sports","fencing","sword"],"char":"\ud83e\udd3a","fitzpatrick_scale":false,"category":"activity"},"women_wrestling":{"keywords":["sports","wrestlers"],"char":"\ud83e\udd3c\u200d\u2640\ufe0f","fitzpatrick_scale":false,"category":"activity"},"men_wrestling":{"keywords":["sports","wrestlers"],"char":"\ud83e\udd3c\u200d\u2642\ufe0f","fitzpatrick_scale":false,"category":"activity"},"woman_cartwheeling":{"keywords":["gymnastics"],"char":"\ud83e\udd38\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"man_cartwheeling":{"keywords":["gymnastics"],"char":"\ud83e\udd38\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"woman_playing_handball":{"keywords":["sports"],"char":"\ud83e\udd3e\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"man_playing_handball":{"keywords":["sports"],"char":"\ud83e\udd3e\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"ice_skate":{"keywords":["sports"],"char":"\u26f8","fitzpatrick_scale":false,"category":"activity"},"curling_stone":{"keywords":["sports"],"char":"\ud83e\udd4c","fitzpatrick_scale":false,"category":"activity"},"skateboard":{"keywords":["board"],"char":"\ud83d\udef9","fitzpatrick_scale":false,"category":"activity"},"sled":{"keywords":["sleigh","luge","toboggan"],"char":"\ud83d\udef7","fitzpatrick_scale":false,"category":"activity"},"bow_and_arrow":{"keywords":["sports"],"char":"\ud83c\udff9","fitzpatrick_scale":false,"category":"activity"},"fishing_pole_and_fish":{"keywords":["food","hobby","summer"],"char":"\ud83c\udfa3","fitzpatrick_scale":false,"category":"activity"},"boxing_glove":{"keywords":["sports","fighting"],"char":"\ud83e\udd4a","fitzpatrick_scale":false,"category":"activity"},"martial_arts_uniform":{"keywords":["judo","karate","taekwondo"],"char":"\ud83e\udd4b","fitzpatrick_scale":false,"category":"activity"},"rowing_woman":{"keywords":["sports","hobby","water","ship","woman","female"],"char":"\ud83d\udea3\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"rowing_man":{"keywords":["sports","hobby","water","ship"],"char":"\ud83d\udea3","fitzpatrick_scale":true,"category":"activity"},"climbing_woman":{"keywords":["sports","hobby","woman","female","rock"],"char":"\ud83e\uddd7\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"climbing_man":{"keywords":["sports","hobby","man","male","rock"],"char":"\ud83e\uddd7\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"swimming_woman":{"keywords":["sports","exercise","human","athlete","water","summer","woman","female"],"char":"\ud83c\udfca\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"swimming_man":{"keywords":["sports","exercise","human","athlete","water","summer"],"char":"\ud83c\udfca","fitzpatrick_scale":true,"category":"activity"},"woman_playing_water_polo":{"keywords":["sports","pool"],"char":"\ud83e\udd3d\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"man_playing_water_polo":{"keywords":["sports","pool"],"char":"\ud83e\udd3d\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"woman_in_lotus_position":{"keywords":["woman","female","meditation","yoga","serenity","zen","mindfulness"],"char":"\ud83e\uddd8\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"man_in_lotus_position":{"keywords":["man","male","meditation","yoga","serenity","zen","mindfulness"],"char":"\ud83e\uddd8\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"surfing_woman":{"keywords":["sports","ocean","sea","summer","beach","woman","female"],"char":"\ud83c\udfc4\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"surfing_man":{"keywords":["sports","ocean","sea","summer","beach"],"char":"\ud83c\udfc4","fitzpatrick_scale":true,"category":"activity"},"bath":{"keywords":["clean","shower","bathroom"],"char":"\ud83d\udec0","fitzpatrick_scale":true,"category":"activity"},"basketball_woman":{"keywords":["sports","human","woman","female"],"char":"\u26f9\ufe0f\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"basketball_man":{"keywords":["sports","human"],"char":"\u26f9","fitzpatrick_scale":true,"category":"activity"},"weight_lifting_woman":{"keywords":["sports","training","exercise","woman","female"],"char":"\ud83c\udfcb\ufe0f\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"weight_lifting_man":{"keywords":["sports","training","exercise"],"char":"\ud83c\udfcb","fitzpatrick_scale":true,"category":"activity"},"biking_woman":{"keywords":["sports","bike","exercise","hipster","woman","female"],"char":"\ud83d\udeb4\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"biking_man":{"keywords":["sports","bike","exercise","hipster"],"char":"\ud83d\udeb4","fitzpatrick_scale":true,"category":"activity"},"mountain_biking_woman":{"keywords":["transportation","sports","human","race","bike","woman","female"],"char":"\ud83d\udeb5\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"mountain_biking_man":{"keywords":["transportation","sports","human","race","bike"],"char":"\ud83d\udeb5","fitzpatrick_scale":true,"category":"activity"},"horse_racing":{"keywords":["animal","betting","competition","gambling","luck"],"char":"\ud83c\udfc7","fitzpatrick_scale":true,"category":"activity"},"business_suit_levitating":{"keywords":["suit","business","levitate","hover","jump"],"char":"\ud83d\udd74","fitzpatrick_scale":true,"category":"activity"},"trophy":{"keywords":["win","award","contest","place","ftw","ceremony"],"char":"\ud83c\udfc6","fitzpatrick_scale":false,"category":"activity"},"running_shirt_with_sash":{"keywords":["play","pageant"],"char":"\ud83c\udfbd","fitzpatrick_scale":false,"category":"activity"},"medal_sports":{"keywords":["award","winning"],"char":"\ud83c\udfc5","fitzpatrick_scale":false,"category":"activity"},"medal_military":{"keywords":["award","winning","army"],"char":"\ud83c\udf96","fitzpatrick_scale":false,"category":"activity"},"1st_place_medal":{"keywords":["award","winning","first"],"char":"\ud83e\udd47","fitzpatrick_scale":false,"category":"activity"},"2nd_place_medal":{"keywords":["award","second"],"char":"\ud83e\udd48","fitzpatrick_scale":false,"category":"activity"},"3rd_place_medal":{"keywords":["award","third"],"char":"\ud83e\udd49","fitzpatrick_scale":false,"category":"activity"},"reminder_ribbon":{"keywords":["sports","cause","support","awareness"],"char":"\ud83c\udf97","fitzpatrick_scale":false,"category":"activity"},"rosette":{"keywords":["flower","decoration","military"],"char":"\ud83c\udff5","fitzpatrick_scale":false,"category":"activity"},"ticket":{"keywords":["event","concert","pass"],"char":"\ud83c\udfab","fitzpatrick_scale":false,"category":"activity"},"tickets":{"keywords":["sports","concert","entrance"],"char":"\ud83c\udf9f","fitzpatrick_scale":false,"category":"activity"},"performing_arts":{"keywords":["acting","theater","drama"],"char":"\ud83c\udfad","fitzpatrick_scale":false,"category":"activity"},"art":{"keywords":["design","paint","draw","colors"],"char":"\ud83c\udfa8","fitzpatrick_scale":false,"category":"activity"},"circus_tent":{"keywords":["festival","carnival","party"],"char":"\ud83c\udfaa","fitzpatrick_scale":false,"category":"activity"},"woman_juggling":{"keywords":["juggle","balance","skill","multitask"],"char":"\ud83e\udd39\u200d\u2640\ufe0f","fitzpatrick_scale":true,"category":"activity"},"man_juggling":{"keywords":["juggle","balance","skill","multitask"],"char":"\ud83e\udd39\u200d\u2642\ufe0f","fitzpatrick_scale":true,"category":"activity"},"microphone":{"keywords":["sound","music","PA","sing","talkshow"],"char":"\ud83c\udfa4","fitzpatrick_scale":false,"category":"activity"},"headphones":{"keywords":["music","score","gadgets"],"char":"\ud83c\udfa7","fitzpatrick_scale":false,"category":"activity"},"musical_score":{"keywords":["treble","clef","compose"],"char":"\ud83c\udfbc","fitzpatrick_scale":false,"category":"activity"},"musical_keyboard":{"keywords":["piano","instrument","compose"],"char":"\ud83c\udfb9","fitzpatrick_scale":false,"category":"activity"},"drum":{"keywords":["music","instrument","drumsticks","snare"],"char":"\ud83e\udd41","fitzpatrick_scale":false,"category":"activity"},"saxophone":{"keywords":["music","instrument","jazz","blues"],"char":"\ud83c\udfb7","fitzpatrick_scale":false,"category":"activity"},"trumpet":{"keywords":["music","brass"],"char":"\ud83c\udfba","fitzpatrick_scale":false,"category":"activity"},"guitar":{"keywords":["music","instrument"],"char":"\ud83c\udfb8","fitzpatrick_scale":false,"category":"activity"},"violin":{"keywords":["music","instrument","orchestra","symphony"],"char":"\ud83c\udfbb","fitzpatrick_scale":false,"category":"activity"},"clapper":{"keywords":["movie","film","record"],"char":"\ud83c\udfac","fitzpatrick_scale":false,"category":"activity"},"video_game":{"keywords":["play","console","PS4","controller"],"char":"\ud83c\udfae","fitzpatrick_scale":false,"category":"activity"},"space_invader":{"keywords":["game","arcade","play"],"char":"\ud83d\udc7e","fitzpatrick_scale":false,"category":"activity"},"dart":{"keywords":["game","play","bar","target","bullseye"],"char":"\ud83c\udfaf","fitzpatrick_scale":false,"category":"activity"},"game_die":{"keywords":["dice","random","tabletop","play","luck"],"char":"\ud83c\udfb2","fitzpatrick_scale":false,"category":"activity"},"chess_pawn":{"keywords":["expendable"],"char":"\u265f","fitzpatrick_scale":false,"category":"activity"},"slot_machine":{"keywords":["bet","gamble","vegas","fruit machine","luck","casino"],"char":"\ud83c\udfb0","fitzpatrick_scale":false,"category":"activity"},"jigsaw":{"keywords":["interlocking","puzzle","piece"],"char":"\ud83e\udde9","fitzpatrick_scale":false,"category":"activity"},"bowling":{"keywords":["sports","fun","play"],"char":"\ud83c\udfb3","fitzpatrick_scale":false,"category":"activity"},"red_car":{"keywords":["red","transportation","vehicle"],"char":"\ud83d\ude97","fitzpatrick_scale":false,"category":"travel_and_places"},"taxi":{"keywords":["uber","vehicle","cars","transportation"],"char":"\ud83d\ude95","fitzpatrick_scale":false,"category":"travel_and_places"},"blue_car":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude99","fitzpatrick_scale":false,"category":"travel_and_places"},"bus":{"keywords":["car","vehicle","transportation"],"char":"\ud83d\ude8c","fitzpatrick_scale":false,"category":"travel_and_places"},"trolleybus":{"keywords":["bart","transportation","vehicle"],"char":"\ud83d\ude8e","fitzpatrick_scale":false,"category":"travel_and_places"},"racing_car":{"keywords":["sports","race","fast","formula","f1"],"char":"\ud83c\udfce","fitzpatrick_scale":false,"category":"travel_and_places"},"police_car":{"keywords":["vehicle","cars","transportation","law","legal","enforcement"],"char":"\ud83d\ude93","fitzpatrick_scale":false,"category":"travel_and_places"},"ambulance":{"keywords":["health","911","hospital"],"char":"\ud83d\ude91","fitzpatrick_scale":false,"category":"travel_and_places"},"fire_engine":{"keywords":["transportation","cars","vehicle"],"char":"\ud83d\ude92","fitzpatrick_scale":false,"category":"travel_and_places"},"minibus":{"keywords":["vehicle","car","transportation"],"char":"\ud83d\ude90","fitzpatrick_scale":false,"category":"travel_and_places"},"truck":{"keywords":["cars","transportation"],"char":"\ud83d\ude9a","fitzpatrick_scale":false,"category":"travel_and_places"},"articulated_lorry":{"keywords":["vehicle","cars","transportation","express"],"char":"\ud83d\ude9b","fitzpatrick_scale":false,"category":"travel_and_places"},"tractor":{"keywords":["vehicle","car","farming","agriculture"],"char":"\ud83d\ude9c","fitzpatrick_scale":false,"category":"travel_and_places"},"kick_scooter":{"keywords":["vehicle","kick","razor"],"char":"\ud83d\udef4","fitzpatrick_scale":false,"category":"travel_and_places"},"motorcycle":{"keywords":["race","sports","fast"],"char":"\ud83c\udfcd","fitzpatrick_scale":false,"category":"travel_and_places"},"bike":{"keywords":["sports","bicycle","exercise","hipster"],"char":"\ud83d\udeb2","fitzpatrick_scale":false,"category":"travel_and_places"},"motor_scooter":{"keywords":["vehicle","vespa","sasha"],"char":"\ud83d\udef5","fitzpatrick_scale":false,"category":"travel_and_places"},"rotating_light":{"keywords":["police","ambulance","911","emergency","alert","error","pinged","law","legal"],"char":"\ud83d\udea8","fitzpatrick_scale":false,"category":"travel_and_places"},"oncoming_police_car":{"keywords":["vehicle","law","legal","enforcement","911"],"char":"\ud83d\ude94","fitzpatrick_scale":false,"category":"travel_and_places"},"oncoming_bus":{"keywords":["vehicle","transportation"],"char":"\ud83d\ude8d","fitzpatrick_scale":false,"category":"travel_and_places"},"oncoming_automobile":{"keywords":["car","vehicle","transportation"],"char":"\ud83d\ude98","fitzpatrick_scale":false,"category":"travel_and_places"},"oncoming_taxi":{"keywords":["vehicle","cars","uber"],"char":"\ud83d\ude96","fitzpatrick_scale":false,"category":"travel_and_places"},"aerial_tramway":{"keywords":["transportation","vehicle","ski"],"char":"\ud83d\udea1","fitzpatrick_scale":false,"category":"travel_and_places"},"mountain_cableway":{"keywords":["transportation","vehicle","ski"],"char":"\ud83d\udea0","fitzpatrick_scale":false,"category":"travel_and_places"},"suspension_railway":{"keywords":["vehicle","transportation"],"char":"\ud83d\ude9f","fitzpatrick_scale":false,"category":"travel_and_places"},"railway_car":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude83","fitzpatrick_scale":false,"category":"travel_and_places"},"train":{"keywords":["transportation","vehicle","carriage","public","travel"],"char":"\ud83d\ude8b","fitzpatrick_scale":false,"category":"travel_and_places"},"monorail":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude9d","fitzpatrick_scale":false,"category":"travel_and_places"},"bullettrain_side":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude84","fitzpatrick_scale":false,"category":"travel_and_places"},"bullettrain_front":{"keywords":["transportation","vehicle","speed","fast","public","travel"],"char":"\ud83d\ude85","fitzpatrick_scale":false,"category":"travel_and_places"},"light_rail":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude88","fitzpatrick_scale":false,"category":"travel_and_places"},"mountain_railway":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude9e","fitzpatrick_scale":false,"category":"travel_and_places"},"steam_locomotive":{"keywords":["transportation","vehicle","train"],"char":"\ud83d\ude82","fitzpatrick_scale":false,"category":"travel_and_places"},"train2":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude86","fitzpatrick_scale":false,"category":"travel_and_places"},"metro":{"keywords":["transportation","blue-square","mrt","underground","tube"],"char":"\ud83d\ude87","fitzpatrick_scale":false,"category":"travel_and_places"},"tram":{"keywords":["transportation","vehicle"],"char":"\ud83d\ude8a","fitzpatrick_scale":false,"category":"travel_and_places"},"station":{"keywords":["transportation","vehicle","public"],"char":"\ud83d\ude89","fitzpatrick_scale":false,"category":"travel_and_places"},"flying_saucer":{"keywords":["transportation","vehicle","ufo"],"char":"\ud83d\udef8","fitzpatrick_scale":false,"category":"travel_and_places"},"helicopter":{"keywords":["transportation","vehicle","fly"],"char":"\ud83d\ude81","fitzpatrick_scale":false,"category":"travel_and_places"},"small_airplane":{"keywords":["flight","transportation","fly","vehicle"],"char":"\ud83d\udee9","fitzpatrick_scale":false,"category":"travel_and_places"},"airplane":{"keywords":["vehicle","transportation","flight","fly"],"char":"\u2708\ufe0f","fitzpatrick_scale":false,"category":"travel_and_places"},"flight_departure":{"keywords":["airport","flight","landing"],"char":"\ud83d\udeeb","fitzpatrick_scale":false,"category":"travel_and_places"},"flight_arrival":{"keywords":["airport","flight","boarding"],"char":"\ud83d\udeec","fitzpatrick_scale":false,"category":"travel_and_places"},"sailboat":{"keywords":["ship","summer","transportation","water","sailing"],"char":"\u26f5","fitzpatrick_scale":false,"category":"travel_and_places"},"motor_boat":{"keywords":["ship"],"char":"\ud83d\udee5","fitzpatrick_scale":false,"category":"travel_and_places"},"speedboat":{"keywords":["ship","transportation","vehicle","summer"],"char":"\ud83d\udea4","fitzpatrick_scale":false,"category":"travel_and_places"},"ferry":{"keywords":["boat","ship","yacht"],"char":"\u26f4","fitzpatrick_scale":false,"category":"travel_and_places"},"passenger_ship":{"keywords":["yacht","cruise","ferry"],"char":"\ud83d\udef3","fitzpatrick_scale":false,"category":"travel_and_places"},"rocket":{"keywords":["launch","ship","staffmode","NASA","outer space","outer_space","fly"],"char":"\ud83d\ude80","fitzpatrick_scale":false,"category":"travel_and_places"},"artificial_satellite":{"keywords":["communication","gps","orbit","spaceflight","NASA","ISS"],"char":"\ud83d\udef0","fitzpatrick_scale":false,"category":"travel_and_places"},"seat":{"keywords":["sit","airplane","transport","bus","flight","fly"],"char":"\ud83d\udcba","fitzpatrick_scale":false,"category":"travel_and_places"},"canoe":{"keywords":["boat","paddle","water","ship"],"char":"\ud83d\udef6","fitzpatrick_scale":false,"category":"travel_and_places"},"anchor":{"keywords":["ship","ferry","sea","boat"],"char":"\u2693","fitzpatrick_scale":false,"category":"travel_and_places"},"construction":{"keywords":["wip","progress","caution","warning"],"char":"\ud83d\udea7","fitzpatrick_scale":false,"category":"travel_and_places"},"fuelpump":{"keywords":["gas station","petroleum"],"char":"\u26fd","fitzpatrick_scale":false,"category":"travel_and_places"},"busstop":{"keywords":["transportation","wait"],"char":"\ud83d\ude8f","fitzpatrick_scale":false,"category":"travel_and_places"},"vertical_traffic_light":{"keywords":["transportation","driving"],"char":"\ud83d\udea6","fitzpatrick_scale":false,"category":"travel_and_places"},"traffic_light":{"keywords":["transportation","signal"],"char":"\ud83d\udea5","fitzpatrick_scale":false,"category":"travel_and_places"},"checkered_flag":{"keywords":["contest","finishline","race","gokart"],"char":"\ud83c\udfc1","fitzpatrick_scale":false,"category":"travel_and_places"},"ship":{"keywords":["transportation","titanic","deploy"],"char":"\ud83d\udea2","fitzpatrick_scale":false,"category":"travel_and_places"},"ferris_wheel":{"keywords":["photo","carnival","londoneye"],"char":"\ud83c\udfa1","fitzpatrick_scale":false,"category":"travel_and_places"},"roller_coaster":{"keywords":["carnival","playground","photo","fun"],"char":"\ud83c\udfa2","fitzpatrick_scale":false,"category":"travel_and_places"},"carousel_horse":{"keywords":["photo","carnival"],"char":"\ud83c\udfa0","fitzpatrick_scale":false,"category":"travel_and_places"},"building_construction":{"keywords":["wip","working","progress"],"char":"\ud83c\udfd7","fitzpatrick_scale":false,"category":"travel_and_places"},"foggy":{"keywords":["photo","mountain"],"char":"\ud83c\udf01","fitzpatrick_scale":false,"category":"travel_and_places"},"tokyo_tower":{"keywords":["photo","japanese"],"char":"\ud83d\uddfc","fitzpatrick_scale":false,"category":"travel_and_places"},"factory":{"keywords":["building","industry","pollution","smoke"],"char":"\ud83c\udfed","fitzpatrick_scale":false,"category":"travel_and_places"},"fountain":{"keywords":["photo","summer","water","fresh"],"char":"\u26f2","fitzpatrick_scale":false,"category":"travel_and_places"},"rice_scene":{"keywords":["photo","japan","asia","tsukimi"],"char":"\ud83c\udf91","fitzpatrick_scale":false,"category":"travel_and_places"},"mountain":{"keywords":["photo","nature","environment"],"char":"\u26f0","fitzpatrick_scale":false,"category":"travel_and_places"},"mountain_snow":{"keywords":["photo","nature","environment","winter","cold"],"char":"\ud83c\udfd4","fitzpatrick_scale":false,"category":"travel_and_places"},"mount_fuji":{"keywords":["photo","mountain","nature","japanese"],"char":"\ud83d\uddfb","fitzpatrick_scale":false,"category":"travel_and_places"},"volcano":{"keywords":["photo","nature","disaster"],"char":"\ud83c\udf0b","fitzpatrick_scale":false,"category":"travel_and_places"},"japan":{"keywords":["nation","country","japanese","asia"],"char":"\ud83d\uddfe","fitzpatrick_scale":false,"category":"travel_and_places"},"camping":{"keywords":["photo","outdoors","tent"],"char":"\ud83c\udfd5","fitzpatrick_scale":false,"category":"travel_and_places"},"tent":{"keywords":["photo","camping","outdoors"],"char":"\u26fa","fitzpatrick_scale":false,"category":"travel_and_places"},"national_park":{"keywords":["photo","environment","nature"],"char":"\ud83c\udfde","fitzpatrick_scale":false,"category":"travel_and_places"},"motorway":{"keywords":["road","cupertino","interstate","highway"],"char":"\ud83d\udee3","fitzpatrick_scale":false,"category":"travel_and_places"},"railway_track":{"keywords":["train","transportation"],"char":"\ud83d\udee4","fitzpatrick_scale":false,"category":"travel_and_places"},"sunrise":{"keywords":["morning","view","vacation","photo"],"char":"\ud83c\udf05","fitzpatrick_scale":false,"category":"travel_and_places"},"sunrise_over_mountains":{"keywords":["view","vacation","photo"],"char":"\ud83c\udf04","fitzpatrick_scale":false,"category":"travel_and_places"},"desert":{"keywords":["photo","warm","saharah"],"char":"\ud83c\udfdc","fitzpatrick_scale":false,"category":"travel_and_places"},"beach_umbrella":{"keywords":["weather","summer","sunny","sand","mojito"],"char":"\ud83c\udfd6","fitzpatrick_scale":false,"category":"travel_and_places"},"desert_island":{"keywords":["photo","tropical","mojito"],"char":"\ud83c\udfdd","fitzpatrick_scale":false,"category":"travel_and_places"},"city_sunrise":{"keywords":["photo","good morning","dawn"],"char":"\ud83c\udf07","fitzpatrick_scale":false,"category":"travel_and_places"},"city_sunset":{"keywords":["photo","evening","sky","buildings"],"char":"\ud83c\udf06","fitzpatrick_scale":false,"category":"travel_and_places"},"cityscape":{"keywords":["photo","night life","urban"],"char":"\ud83c\udfd9","fitzpatrick_scale":false,"category":"travel_and_places"},"night_with_stars":{"keywords":["evening","city","downtown"],"char":"\ud83c\udf03","fitzpatrick_scale":false,"category":"travel_and_places"},"bridge_at_night":{"keywords":["photo","sanfrancisco"],"char":"\ud83c\udf09","fitzpatrick_scale":false,"category":"travel_and_places"},"milky_way":{"keywords":["photo","space","stars"],"char":"\ud83c\udf0c","fitzpatrick_scale":false,"category":"travel_and_places"},"stars":{"keywords":["night","photo"],"char":"\ud83c\udf20","fitzpatrick_scale":false,"category":"travel_and_places"},"sparkler":{"keywords":["stars","night","shine"],"char":"\ud83c\udf87","fitzpatrick_scale":false,"category":"travel_and_places"},"fireworks":{"keywords":["photo","festival","carnival","congratulations"],"char":"\ud83c\udf86","fitzpatrick_scale":false,"category":"travel_and_places"},"rainbow":{"keywords":["nature","happy","unicorn_face","photo","sky","spring"],"char":"\ud83c\udf08","fitzpatrick_scale":false,"category":"travel_and_places"},"houses":{"keywords":["buildings","photo"],"char":"\ud83c\udfd8","fitzpatrick_scale":false,"category":"travel_and_places"},"european_castle":{"keywords":["building","royalty","history"],"char":"\ud83c\udff0","fitzpatrick_scale":false,"category":"travel_and_places"},"japanese_castle":{"keywords":["photo","building"],"char":"\ud83c\udfef","fitzpatrick_scale":false,"category":"travel_and_places"},"stadium":{"keywords":["photo","place","sports","concert","venue"],"char":"\ud83c\udfdf","fitzpatrick_scale":false,"category":"travel_and_places"},"statue_of_liberty":{"keywords":["american","newyork"],"char":"\ud83d\uddfd","fitzpatrick_scale":false,"category":"travel_and_places"},"house":{"keywords":["building","home"],"char":"\ud83c\udfe0","fitzpatrick_scale":false,"category":"travel_and_places"},"house_with_garden":{"keywords":["home","plant","nature"],"char":"\ud83c\udfe1","fitzpatrick_scale":false,"category":"travel_and_places"},"derelict_house":{"keywords":["abandon","evict","broken","building"],"char":"\ud83c\udfda","fitzpatrick_scale":false,"category":"travel_and_places"},"office":{"keywords":["building","bureau","work"],"char":"\ud83c\udfe2","fitzpatrick_scale":false,"category":"travel_and_places"},"department_store":{"keywords":["building","shopping","mall"],"char":"\ud83c\udfec","fitzpatrick_scale":false,"category":"travel_and_places"},"post_office":{"keywords":["building","envelope","communication"],"char":"\ud83c\udfe3","fitzpatrick_scale":false,"category":"travel_and_places"},"european_post_office":{"keywords":["building","email"],"char":"\ud83c\udfe4","fitzpatrick_scale":false,"category":"travel_and_places"},"hospital":{"keywords":["building","health","surgery","doctor"],"char":"\ud83c\udfe5","fitzpatrick_scale":false,"category":"travel_and_places"},"bank":{"keywords":["building","money","sales","cash","business","enterprise"],"char":"\ud83c\udfe6","fitzpatrick_scale":false,"category":"travel_and_places"},"hotel":{"keywords":["building","accomodation","checkin"],"char":"\ud83c\udfe8","fitzpatrick_scale":false,"category":"travel_and_places"},"convenience_store":{"keywords":["building","shopping","groceries"],"char":"\ud83c\udfea","fitzpatrick_scale":false,"category":"travel_and_places"},"school":{"keywords":["building","student","education","learn","teach"],"char":"\ud83c\udfeb","fitzpatrick_scale":false,"category":"travel_and_places"},"love_hotel":{"keywords":["like","affection","dating"],"char":"\ud83c\udfe9","fitzpatrick_scale":false,"category":"travel_and_places"},"wedding":{"keywords":["love","like","affection","couple","marriage","bride","groom"],"char":"\ud83d\udc92","fitzpatrick_scale":false,"category":"travel_and_places"},"classical_building":{"keywords":["art","culture","history"],"char":"\ud83c\udfdb","fitzpatrick_scale":false,"category":"travel_and_places"},"church":{"keywords":["building","religion","christ"],"char":"\u26ea","fitzpatrick_scale":false,"category":"travel_and_places"},"mosque":{"keywords":["islam","worship","minaret"],"char":"\ud83d\udd4c","fitzpatrick_scale":false,"category":"travel_and_places"},"synagogue":{"keywords":["judaism","worship","temple","jewish"],"char":"\ud83d\udd4d","fitzpatrick_scale":false,"category":"travel_and_places"},"kaaba":{"keywords":["mecca","mosque","islam"],"char":"\ud83d\udd4b","fitzpatrick_scale":false,"category":"travel_and_places"},"shinto_shrine":{"keywords":["temple","japan","kyoto"],"char":"\u26e9","fitzpatrick_scale":false,"category":"travel_and_places"},"watch":{"keywords":["time","accessories"],"char":"\u231a","fitzpatrick_scale":false,"category":"objects"},"iphone":{"keywords":["technology","apple","gadgets","dial"],"char":"\ud83d\udcf1","fitzpatrick_scale":false,"category":"objects"},"calling":{"keywords":["iphone","incoming"],"char":"\ud83d\udcf2","fitzpatrick_scale":false,"category":"objects"},"computer":{"keywords":["technology","laptop","screen","display","monitor"],"char":"\ud83d\udcbb","fitzpatrick_scale":false,"category":"objects"},"keyboard":{"keywords":["technology","computer","type","input","text"],"char":"\u2328","fitzpatrick_scale":false,"category":"objects"},"desktop_computer":{"keywords":["technology","computing","screen"],"char":"\ud83d\udda5","fitzpatrick_scale":false,"category":"objects"},"printer":{"keywords":["paper","ink"],"char":"\ud83d\udda8","fitzpatrick_scale":false,"category":"objects"},"computer_mouse":{"keywords":["click"],"char":"\ud83d\uddb1","fitzpatrick_scale":false,"category":"objects"},"trackball":{"keywords":["technology","trackpad"],"char":"\ud83d\uddb2","fitzpatrick_scale":false,"category":"objects"},"joystick":{"keywords":["game","play"],"char":"\ud83d\udd79","fitzpatrick_scale":false,"category":"objects"},"clamp":{"keywords":["tool"],"char":"\ud83d\udddc","fitzpatrick_scale":false,"category":"objects"},"minidisc":{"keywords":["technology","record","data","disk","90s"],"char":"\ud83d\udcbd","fitzpatrick_scale":false,"category":"objects"},"floppy_disk":{"keywords":["oldschool","technology","save","90s","80s"],"char":"\ud83d\udcbe","fitzpatrick_scale":false,"category":"objects"},"cd":{"keywords":["technology","dvd","disk","disc","90s"],"char":"\ud83d\udcbf","fitzpatrick_scale":false,"category":"objects"},"dvd":{"keywords":["cd","disk","disc"],"char":"\ud83d\udcc0","fitzpatrick_scale":false,"category":"objects"},"vhs":{"keywords":["record","video","oldschool","90s","80s"],"char":"\ud83d\udcfc","fitzpatrick_scale":false,"category":"objects"},"camera":{"keywords":["gadgets","photography"],"char":"\ud83d\udcf7","fitzpatrick_scale":false,"category":"objects"},"camera_flash":{"keywords":["photography","gadgets"],"char":"\ud83d\udcf8","fitzpatrick_scale":false,"category":"objects"},"video_camera":{"keywords":["film","record"],"char":"\ud83d\udcf9","fitzpatrick_scale":false,"category":"objects"},"movie_camera":{"keywords":["film","record"],"char":"\ud83c\udfa5","fitzpatrick_scale":false,"category":"objects"},"film_projector":{"keywords":["video","tape","record","movie"],"char":"\ud83d\udcfd","fitzpatrick_scale":false,"category":"objects"},"film_strip":{"keywords":["movie"],"char":"\ud83c\udf9e","fitzpatrick_scale":false,"category":"objects"},"telephone_receiver":{"keywords":["technology","communication","dial"],"char":"\ud83d\udcde","fitzpatrick_scale":false,"category":"objects"},"phone":{"keywords":["technology","communication","dial","telephone"],"char":"\u260e\ufe0f","fitzpatrick_scale":false,"category":"objects"},"pager":{"keywords":["bbcall","oldschool","90s"],"char":"\ud83d\udcdf","fitzpatrick_scale":false,"category":"objects"},"fax":{"keywords":["communication","technology"],"char":"\ud83d\udce0","fitzpatrick_scale":false,"category":"objects"},"tv":{"keywords":["technology","program","oldschool","show","television"],"char":"\ud83d\udcfa","fitzpatrick_scale":false,"category":"objects"},"radio":{"keywords":["communication","music","podcast","program"],"char":"\ud83d\udcfb","fitzpatrick_scale":false,"category":"objects"},"studio_microphone":{"keywords":["sing","recording","artist","talkshow"],"char":"\ud83c\udf99","fitzpatrick_scale":false,"category":"objects"},"level_slider":{"keywords":["scale"],"char":"\ud83c\udf9a","fitzpatrick_scale":false,"category":"objects"},"control_knobs":{"keywords":["dial"],"char":"\ud83c\udf9b","fitzpatrick_scale":false,"category":"objects"},"compass":{"keywords":["magnetic","navigation","orienteering"],"char":"\ud83e\udded","fitzpatrick_scale":false,"category":"objects"},"stopwatch":{"keywords":["time","deadline"],"char":"\u23f1","fitzpatrick_scale":false,"category":"objects"},"timer_clock":{"keywords":["alarm"],"char":"\u23f2","fitzpatrick_scale":false,"category":"objects"},"alarm_clock":{"keywords":["time","wake"],"char":"\u23f0","fitzpatrick_scale":false,"category":"objects"},"mantelpiece_clock":{"keywords":["time"],"char":"\ud83d\udd70","fitzpatrick_scale":false,"category":"objects"},"hourglass_flowing_sand":{"keywords":["oldschool","time","countdown"],"char":"\u23f3","fitzpatrick_scale":false,"category":"objects"},"hourglass":{"keywords":["time","clock","oldschool","limit","exam","quiz","test"],"char":"\u231b","fitzpatrick_scale":false,"category":"objects"},"satellite":{"keywords":["communication","future","radio","space"],"char":"\ud83d\udce1","fitzpatrick_scale":false,"category":"objects"},"battery":{"keywords":["power","energy","sustain"],"char":"\ud83d\udd0b","fitzpatrick_scale":false,"category":"objects"},"electric_plug":{"keywords":["charger","power"],"char":"\ud83d\udd0c","fitzpatrick_scale":false,"category":"objects"},"bulb":{"keywords":["light","electricity","idea"],"char":"\ud83d\udca1","fitzpatrick_scale":false,"category":"objects"},"flashlight":{"keywords":["dark","camping","sight","night"],"char":"\ud83d\udd26","fitzpatrick_scale":false,"category":"objects"},"candle":{"keywords":["fire","wax"],"char":"\ud83d\udd6f","fitzpatrick_scale":false,"category":"objects"},"fire_extinguisher":{"keywords":["quench"],"char":"\ud83e\uddef","fitzpatrick_scale":false,"category":"objects"},"wastebasket":{"keywords":["bin","trash","rubbish","garbage","toss"],"char":"\ud83d\uddd1","fitzpatrick_scale":false,"category":"objects"},"oil_drum":{"keywords":["barrell"],"char":"\ud83d\udee2","fitzpatrick_scale":false,"category":"objects"},"money_with_wings":{"keywords":["dollar","bills","payment","sale"],"char":"\ud83d\udcb8","fitzpatrick_scale":false,"category":"objects"},"dollar":{"keywords":["money","sales","bill","currency"],"char":"\ud83d\udcb5","fitzpatrick_scale":false,"category":"objects"},"yen":{"keywords":["money","sales","japanese","dollar","currency"],"char":"\ud83d\udcb4","fitzpatrick_scale":false,"category":"objects"},"euro":{"keywords":["money","sales","dollar","currency"],"char":"\ud83d\udcb6","fitzpatrick_scale":false,"category":"objects"},"pound":{"keywords":["british","sterling","money","sales","bills","uk","england","currency"],"char":"\ud83d\udcb7","fitzpatrick_scale":false,"category":"objects"},"moneybag":{"keywords":["dollar","payment","coins","sale"],"char":"\ud83d\udcb0","fitzpatrick_scale":false,"category":"objects"},"credit_card":{"keywords":["money","sales","dollar","bill","payment","shopping"],"char":"\ud83d\udcb3","fitzpatrick_scale":false,"category":"objects"},"gem":{"keywords":["blue","ruby","diamond","jewelry"],"char":"\ud83d\udc8e","fitzpatrick_scale":false,"category":"objects"},"balance_scale":{"keywords":["law","fairness","weight"],"char":"\u2696","fitzpatrick_scale":false,"category":"objects"},"toolbox":{"keywords":["tools","diy","fix","maintainer","mechanic"],"char":"\ud83e\uddf0","fitzpatrick_scale":false,"category":"objects"},"wrench":{"keywords":["tools","diy","ikea","fix","maintainer"],"char":"\ud83d\udd27","fitzpatrick_scale":false,"category":"objects"},"hammer":{"keywords":["tools","build","create"],"char":"\ud83d\udd28","fitzpatrick_scale":false,"category":"objects"},"hammer_and_pick":{"keywords":["tools","build","create"],"char":"\u2692","fitzpatrick_scale":false,"category":"objects"},"hammer_and_wrench":{"keywords":["tools","build","create"],"char":"\ud83d\udee0","fitzpatrick_scale":false,"category":"objects"},"pick":{"keywords":["tools","dig"],"char":"\u26cf","fitzpatrick_scale":false,"category":"objects"},"nut_and_bolt":{"keywords":["handy","tools","fix"],"char":"\ud83d\udd29","fitzpatrick_scale":false,"category":"objects"},"gear":{"keywords":["cog"],"char":"\u2699","fitzpatrick_scale":false,"category":"objects"},"brick":{"keywords":["bricks"],"char":"\ud83e\uddf1","fitzpatrick_scale":false,"category":"objects"},"chains":{"keywords":["lock","arrest"],"char":"\u26d3","fitzpatrick_scale":false,"category":"objects"},"magnet":{"keywords":["attraction","magnetic"],"char":"\ud83e\uddf2","fitzpatrick_scale":false,"category":"objects"},"gun":{"keywords":["violence","weapon","pistol","revolver"],"char":"\ud83d\udd2b","fitzpatrick_scale":false,"category":"objects"},"bomb":{"keywords":["boom","explode","explosion","terrorism"],"char":"\ud83d\udca3","fitzpatrick_scale":false,"category":"objects"},"firecracker":{"keywords":["dynamite","boom","explode","explosion","explosive"],"char":"\ud83e\udde8","fitzpatrick_scale":false,"category":"objects"},"hocho":{"keywords":["knife","blade","cutlery","kitchen","weapon"],"char":"\ud83d\udd2a","fitzpatrick_scale":false,"category":"objects"},"dagger":{"keywords":["weapon"],"char":"\ud83d\udde1","fitzpatrick_scale":false,"category":"objects"},"crossed_swords":{"keywords":["weapon"],"char":"\u2694","fitzpatrick_scale":false,"category":"objects"},"shield":{"keywords":["protection","security"],"char":"\ud83d\udee1","fitzpatrick_scale":false,"category":"objects"},"smoking":{"keywords":["kills","tobacco","cigarette","joint","smoke"],"char":"\ud83d\udeac","fitzpatrick_scale":false,"category":"objects"},"skull_and_crossbones":{"keywords":["poison","danger","deadly","scary","death","pirate","evil"],"char":"\u2620","fitzpatrick_scale":false,"category":"objects"},"coffin":{"keywords":["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],"char":"\u26b0","fitzpatrick_scale":false,"category":"objects"},"funeral_urn":{"keywords":["dead","die","death","rip","ashes"],"char":"\u26b1","fitzpatrick_scale":false,"category":"objects"},"amphora":{"keywords":["vase","jar"],"char":"\ud83c\udffa","fitzpatrick_scale":false,"category":"objects"},"crystal_ball":{"keywords":["disco","party","magic","circus","fortune_teller"],"char":"\ud83d\udd2e","fitzpatrick_scale":false,"category":"objects"},"prayer_beads":{"keywords":["dhikr","religious"],"char":"\ud83d\udcff","fitzpatrick_scale":false,"category":"objects"},"nazar_amulet":{"keywords":["bead","charm"],"char":"\ud83e\uddff","fitzpatrick_scale":false,"category":"objects"},"barber":{"keywords":["hair","salon","style"],"char":"\ud83d\udc88","fitzpatrick_scale":false,"category":"objects"},"alembic":{"keywords":["distilling","science","experiment","chemistry"],"char":"\u2697","fitzpatrick_scale":false,"category":"objects"},"telescope":{"keywords":["stars","space","zoom","science","astronomy"],"char":"\ud83d\udd2d","fitzpatrick_scale":false,"category":"objects"},"microscope":{"keywords":["laboratory","experiment","zoomin","science","study"],"char":"\ud83d\udd2c","fitzpatrick_scale":false,"category":"objects"},"hole":{"keywords":["embarrassing"],"char":"\ud83d\udd73","fitzpatrick_scale":false,"category":"objects"},"pill":{"keywords":["health","medicine","doctor","pharmacy","drug"],"char":"\ud83d\udc8a","fitzpatrick_scale":false,"category":"objects"},"syringe":{"keywords":["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],"char":"\ud83d\udc89","fitzpatrick_scale":false,"category":"objects"},"dna":{"keywords":["biologist","genetics","life"],"char":"\ud83e\uddec","fitzpatrick_scale":false,"category":"objects"},"microbe":{"keywords":["amoeba","bacteria","germs"],"char":"\ud83e\udda0","fitzpatrick_scale":false,"category":"objects"},"petri_dish":{"keywords":["bacteria","biology","culture","lab"],"char":"\ud83e\uddeb","fitzpatrick_scale":false,"category":"objects"},"test_tube":{"keywords":["chemistry","experiment","lab","science"],"char":"\ud83e\uddea","fitzpatrick_scale":false,"category":"objects"},"thermometer":{"keywords":["weather","temperature","hot","cold"],"char":"\ud83c\udf21","fitzpatrick_scale":false,"category":"objects"},"broom":{"keywords":["cleaning","sweeping","witch"],"char":"\ud83e\uddf9","fitzpatrick_scale":false,"category":"objects"},"basket":{"keywords":["laundry"],"char":"\ud83e\uddfa","fitzpatrick_scale":false,"category":"objects"},"toilet_paper":{"keywords":["roll"],"char":"\ud83e\uddfb","fitzpatrick_scale":false,"category":"objects"},"label":{"keywords":["sale","tag"],"char":"\ud83c\udff7","fitzpatrick_scale":false,"category":"objects"},"bookmark":{"keywords":["favorite","label","save"],"char":"\ud83d\udd16","fitzpatrick_scale":false,"category":"objects"},"toilet":{"keywords":["restroom","wc","washroom","bathroom","potty"],"char":"\ud83d\udebd","fitzpatrick_scale":false,"category":"objects"},"shower":{"keywords":["clean","water","bathroom"],"char":"\ud83d\udebf","fitzpatrick_scale":false,"category":"objects"},"bathtub":{"keywords":["clean","shower","bathroom"],"char":"\ud83d\udec1","fitzpatrick_scale":false,"category":"objects"},"soap":{"keywords":["bar","bathing","cleaning","lather"],"char":"\ud83e\uddfc","fitzpatrick_scale":false,"category":"objects"},"sponge":{"keywords":["absorbing","cleaning","porous"],"char":"\ud83e\uddfd","fitzpatrick_scale":false,"category":"objects"},"lotion_bottle":{"keywords":["moisturizer","sunscreen"],"char":"\ud83e\uddf4","fitzpatrick_scale":false,"category":"objects"},"key":{"keywords":["lock","door","password"],"char":"\ud83d\udd11","fitzpatrick_scale":false,"category":"objects"},"old_key":{"keywords":["lock","door","password"],"char":"\ud83d\udddd","fitzpatrick_scale":false,"category":"objects"},"couch_and_lamp":{"keywords":["read","chill"],"char":"\ud83d\udecb","fitzpatrick_scale":false,"category":"objects"},"sleeping_bed":{"keywords":["bed","rest"],"char":"\ud83d\udecc","fitzpatrick_scale":true,"category":"objects"},"bed":{"keywords":["sleep","rest"],"char":"\ud83d\udecf","fitzpatrick_scale":false,"category":"objects"},"door":{"keywords":["house","entry","exit"],"char":"\ud83d\udeaa","fitzpatrick_scale":false,"category":"objects"},"bellhop_bell":{"keywords":["service"],"char":"\ud83d\udece","fitzpatrick_scale":false,"category":"objects"},"teddy_bear":{"keywords":["plush","stuffed"],"char":"\ud83e\uddf8","fitzpatrick_scale":false,"category":"objects"},"framed_picture":{"keywords":["photography"],"char":"\ud83d\uddbc","fitzpatrick_scale":false,"category":"objects"},"world_map":{"keywords":["location","direction"],"char":"\ud83d\uddfa","fitzpatrick_scale":false,"category":"objects"},"parasol_on_ground":{"keywords":["weather","summer"],"char":"\u26f1","fitzpatrick_scale":false,"category":"objects"},"moyai":{"keywords":["rock","easter island","moai"],"char":"\ud83d\uddff","fitzpatrick_scale":false,"category":"objects"},"shopping":{"keywords":["mall","buy","purchase"],"char":"\ud83d\udecd","fitzpatrick_scale":false,"category":"objects"},"shopping_cart":{"keywords":["trolley"],"char":"\ud83d\uded2","fitzpatrick_scale":false,"category":"objects"},"balloon":{"keywords":["party","celebration","birthday","circus"],"char":"\ud83c\udf88","fitzpatrick_scale":false,"category":"objects"},"flags":{"keywords":["fish","japanese","koinobori","carp","banner"],"char":"\ud83c\udf8f","fitzpatrick_scale":false,"category":"objects"},"ribbon":{"keywords":["decoration","pink","girl","bowtie"],"char":"\ud83c\udf80","fitzpatrick_scale":false,"category":"objects"},"gift":{"keywords":["present","birthday","christmas","xmas"],"char":"\ud83c\udf81","fitzpatrick_scale":false,"category":"objects"},"confetti_ball":{"keywords":["festival","party","birthday","circus"],"char":"\ud83c\udf8a","fitzpatrick_scale":false,"category":"objects"},"tada":{"keywords":["party","congratulations","birthday","magic","circus","celebration"],"char":"\ud83c\udf89","fitzpatrick_scale":false,"category":"objects"},"dolls":{"keywords":["japanese","toy","kimono"],"char":"\ud83c\udf8e","fitzpatrick_scale":false,"category":"objects"},"wind_chime":{"keywords":["nature","ding","spring","bell"],"char":"\ud83c\udf90","fitzpatrick_scale":false,"category":"objects"},"crossed_flags":{"keywords":["japanese","nation","country","border"],"char":"\ud83c\udf8c","fitzpatrick_scale":false,"category":"objects"},"izakaya_lantern":{"keywords":["light","paper","halloween","spooky"],"char":"\ud83c\udfee","fitzpatrick_scale":false,"category":"objects"},"red_envelope":{"keywords":["gift"],"char":"\ud83e\udde7","fitzpatrick_scale":false,"category":"objects"},"email":{"keywords":["letter","postal","inbox","communication"],"char":"\u2709\ufe0f","fitzpatrick_scale":false,"category":"objects"},"envelope_with_arrow":{"keywords":["email","communication"],"char":"\ud83d\udce9","fitzpatrick_scale":false,"category":"objects"},"incoming_envelope":{"keywords":["email","inbox"],"char":"\ud83d\udce8","fitzpatrick_scale":false,"category":"objects"},"e-mail":{"keywords":["communication","inbox"],"char":"\ud83d\udce7","fitzpatrick_scale":false,"category":"objects"},"love_letter":{"keywords":["email","like","affection","envelope","valentines"],"char":"\ud83d\udc8c","fitzpatrick_scale":false,"category":"objects"},"postbox":{"keywords":["email","letter","envelope"],"char":"\ud83d\udcee","fitzpatrick_scale":false,"category":"objects"},"mailbox_closed":{"keywords":["email","communication","inbox"],"char":"\ud83d\udcea","fitzpatrick_scale":false,"category":"objects"},"mailbox":{"keywords":["email","inbox","communication"],"char":"\ud83d\udceb","fitzpatrick_scale":false,"category":"objects"},"mailbox_with_mail":{"keywords":["email","inbox","communication"],"char":"\ud83d\udcec","fitzpatrick_scale":false,"category":"objects"},"mailbox_with_no_mail":{"keywords":["email","inbox"],"char":"\ud83d\udced","fitzpatrick_scale":false,"category":"objects"},"package":{"keywords":["mail","gift","cardboard","box","moving"],"char":"\ud83d\udce6","fitzpatrick_scale":false,"category":"objects"},"postal_horn":{"keywords":["instrument","music"],"char":"\ud83d\udcef","fitzpatrick_scale":false,"category":"objects"},"inbox_tray":{"keywords":["email","documents"],"char":"\ud83d\udce5","fitzpatrick_scale":false,"category":"objects"},"outbox_tray":{"keywords":["inbox","email"],"char":"\ud83d\udce4","fitzpatrick_scale":false,"category":"objects"},"scroll":{"keywords":["documents","ancient","history","paper"],"char":"\ud83d\udcdc","fitzpatrick_scale":false,"category":"objects"},"page_with_curl":{"keywords":["documents","office","paper"],"char":"\ud83d\udcc3","fitzpatrick_scale":false,"category":"objects"},"bookmark_tabs":{"keywords":["favorite","save","order","tidy"],"char":"\ud83d\udcd1","fitzpatrick_scale":false,"category":"objects"},"receipt":{"keywords":["accounting","expenses"],"char":"\ud83e\uddfe","fitzpatrick_scale":false,"category":"objects"},"bar_chart":{"keywords":["graph","presentation","stats"],"char":"\ud83d\udcca","fitzpatrick_scale":false,"category":"objects"},"chart_with_upwards_trend":{"keywords":["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],"char":"\ud83d\udcc8","fitzpatrick_scale":false,"category":"objects"},"chart_with_downwards_trend":{"keywords":["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],"char":"\ud83d\udcc9","fitzpatrick_scale":false,"category":"objects"},"page_facing_up":{"keywords":["documents","office","paper","information"],"char":"\ud83d\udcc4","fitzpatrick_scale":false,"category":"objects"},"date":{"keywords":["calendar","schedule"],"char":"\ud83d\udcc5","fitzpatrick_scale":false,"category":"objects"},"calendar":{"keywords":["schedule","date","planning"],"char":"\ud83d\udcc6","fitzpatrick_scale":false,"category":"objects"},"spiral_calendar":{"keywords":["date","schedule","planning"],"char":"\ud83d\uddd3","fitzpatrick_scale":false,"category":"objects"},"card_index":{"keywords":["business","stationery"],"char":"\ud83d\udcc7","fitzpatrick_scale":false,"category":"objects"},"card_file_box":{"keywords":["business","stationery"],"char":"\ud83d\uddc3","fitzpatrick_scale":false,"category":"objects"},"ballot_box":{"keywords":["election","vote"],"char":"\ud83d\uddf3","fitzpatrick_scale":false,"category":"objects"},"file_cabinet":{"keywords":["filing","organizing"],"char":"\ud83d\uddc4","fitzpatrick_scale":false,"category":"objects"},"clipboard":{"keywords":["stationery","documents"],"char":"\ud83d\udccb","fitzpatrick_scale":false,"category":"objects"},"spiral_notepad":{"keywords":["memo","stationery"],"char":"\ud83d\uddd2","fitzpatrick_scale":false,"category":"objects"},"file_folder":{"keywords":["documents","business","office"],"char":"\ud83d\udcc1","fitzpatrick_scale":false,"category":"objects"},"open_file_folder":{"keywords":["documents","load"],"char":"\ud83d\udcc2","fitzpatrick_scale":false,"category":"objects"},"card_index_dividers":{"keywords":["organizing","business","stationery"],"char":"\ud83d\uddc2","fitzpatrick_scale":false,"category":"objects"},"newspaper_roll":{"keywords":["press","headline"],"char":"\ud83d\uddde","fitzpatrick_scale":false,"category":"objects"},"newspaper":{"keywords":["press","headline"],"char":"\ud83d\udcf0","fitzpatrick_scale":false,"category":"objects"},"notebook":{"keywords":["stationery","record","notes","paper","study"],"char":"\ud83d\udcd3","fitzpatrick_scale":false,"category":"objects"},"closed_book":{"keywords":["read","library","knowledge","textbook","learn"],"char":"\ud83d\udcd5","fitzpatrick_scale":false,"category":"objects"},"green_book":{"keywords":["read","library","knowledge","study"],"char":"\ud83d\udcd7","fitzpatrick_scale":false,"category":"objects"},"blue_book":{"keywords":["read","library","knowledge","learn","study"],"char":"\ud83d\udcd8","fitzpatrick_scale":false,"category":"objects"},"orange_book":{"keywords":["read","library","knowledge","textbook","study"],"char":"\ud83d\udcd9","fitzpatrick_scale":false,"category":"objects"},"notebook_with_decorative_cover":{"keywords":["classroom","notes","record","paper","study"],"char":"\ud83d\udcd4","fitzpatrick_scale":false,"category":"objects"},"ledger":{"keywords":["notes","paper"],"char":"\ud83d\udcd2","fitzpatrick_scale":false,"category":"objects"},"books":{"keywords":["literature","library","study"],"char":"\ud83d\udcda","fitzpatrick_scale":false,"category":"objects"},"open_book":{"keywords":["book","read","library","knowledge","literature","learn","study"],"char":"\ud83d\udcd6","fitzpatrick_scale":false,"category":"objects"},"safety_pin":{"keywords":["diaper"],"char":"\ud83e\uddf7","fitzpatrick_scale":false,"category":"objects"},"link":{"keywords":["rings","url"],"char":"\ud83d\udd17","fitzpatrick_scale":false,"category":"objects"},"paperclip":{"keywords":["documents","stationery"],"char":"\ud83d\udcce","fitzpatrick_scale":false,"category":"objects"},"paperclips":{"keywords":["documents","stationery"],"char":"\ud83d\udd87","fitzpatrick_scale":false,"category":"objects"},"scissors":{"keywords":["stationery","cut"],"char":"\u2702\ufe0f","fitzpatrick_scale":false,"category":"objects"},"triangular_ruler":{"keywords":["stationery","math","architect","sketch"],"char":"\ud83d\udcd0","fitzpatrick_scale":false,"category":"objects"},"straight_ruler":{"keywords":["stationery","calculate","length","math","school","drawing","architect","sketch"],"char":"\ud83d\udccf","fitzpatrick_scale":false,"category":"objects"},"abacus":{"keywords":["calculation"],"char":"\ud83e\uddee","fitzpatrick_scale":false,"category":"objects"},"pushpin":{"keywords":["stationery","mark","here"],"char":"\ud83d\udccc","fitzpatrick_scale":false,"category":"objects"},"round_pushpin":{"keywords":["stationery","location","map","here"],"char":"\ud83d\udccd","fitzpatrick_scale":false,"category":"objects"},"triangular_flag_on_post":{"keywords":["mark","milestone","place"],"char":"\ud83d\udea9","fitzpatrick_scale":false,"category":"objects"},"white_flag":{"keywords":["losing","loser","lost","surrender","give up","fail"],"char":"\ud83c\udff3","fitzpatrick_scale":false,"category":"objects"},"black_flag":{"keywords":["pirate"],"char":"\ud83c\udff4","fitzpatrick_scale":false,"category":"objects"},"rainbow_flag":{"keywords":["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],"char":"\ud83c\udff3\ufe0f\u200d\ud83c\udf08","fitzpatrick_scale":false,"category":"objects"},"closed_lock_with_key":{"keywords":["security","privacy"],"char":"\ud83d\udd10","fitzpatrick_scale":false,"category":"objects"},"lock":{"keywords":["security","password","padlock"],"char":"\ud83d\udd12","fitzpatrick_scale":false,"category":"objects"},"unlock":{"keywords":["privacy","security"],"char":"\ud83d\udd13","fitzpatrick_scale":false,"category":"objects"},"lock_with_ink_pen":{"keywords":["security","secret"],"char":"\ud83d\udd0f","fitzpatrick_scale":false,"category":"objects"},"pen":{"keywords":["stationery","writing","write"],"char":"\ud83d\udd8a","fitzpatrick_scale":false,"category":"objects"},"fountain_pen":{"keywords":["stationery","writing","write"],"char":"\ud83d\udd8b","fitzpatrick_scale":false,"category":"objects"},"black_nib":{"keywords":["pen","stationery","writing","write"],"char":"\u2712\ufe0f","fitzpatrick_scale":false,"category":"objects"},"memo":{"keywords":["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],"char":"\ud83d\udcdd","fitzpatrick_scale":false,"category":"objects"},"pencil2":{"keywords":["stationery","write","paper","writing","school","study"],"char":"\u270f\ufe0f","fitzpatrick_scale":false,"category":"objects"},"crayon":{"keywords":["drawing","creativity"],"char":"\ud83d\udd8d","fitzpatrick_scale":false,"category":"objects"},"paintbrush":{"keywords":["drawing","creativity","art"],"char":"\ud83d\udd8c","fitzpatrick_scale":false,"category":"objects"},"mag":{"keywords":["search","zoom","find","detective"],"char":"\ud83d\udd0d","fitzpatrick_scale":false,"category":"objects"},"mag_right":{"keywords":["search","zoom","find","detective"],"char":"\ud83d\udd0e","fitzpatrick_scale":false,"category":"objects"},"heart":{"keywords":["love","like","valentines"],"char":"\u2764\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"orange_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83e\udde1","fitzpatrick_scale":false,"category":"symbols"},"yellow_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc9b","fitzpatrick_scale":false,"category":"symbols"},"green_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc9a","fitzpatrick_scale":false,"category":"symbols"},"blue_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc99","fitzpatrick_scale":false,"category":"symbols"},"purple_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc9c","fitzpatrick_scale":false,"category":"symbols"},"black_heart":{"keywords":["evil"],"char":"\ud83d\udda4","fitzpatrick_scale":false,"category":"symbols"},"broken_heart":{"keywords":["sad","sorry","break","heart","heartbreak"],"char":"\ud83d\udc94","fitzpatrick_scale":false,"category":"symbols"},"heavy_heart_exclamation":{"keywords":["decoration","love"],"char":"\u2763","fitzpatrick_scale":false,"category":"symbols"},"two_hearts":{"keywords":["love","like","affection","valentines","heart"],"char":"\ud83d\udc95","fitzpatrick_scale":false,"category":"symbols"},"revolving_hearts":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc9e","fitzpatrick_scale":false,"category":"symbols"},"heartbeat":{"keywords":["love","like","affection","valentines","pink","heart"],"char":"\ud83d\udc93","fitzpatrick_scale":false,"category":"symbols"},"heartpulse":{"keywords":["like","love","affection","valentines","pink"],"char":"\ud83d\udc97","fitzpatrick_scale":false,"category":"symbols"},"sparkling_heart":{"keywords":["love","like","affection","valentines"],"char":"\ud83d\udc96","fitzpatrick_scale":false,"category":"symbols"},"cupid":{"keywords":["love","like","heart","affection","valentines"],"char":"\ud83d\udc98","fitzpatrick_scale":false,"category":"symbols"},"gift_heart":{"keywords":["love","valentines"],"char":"\ud83d\udc9d","fitzpatrick_scale":false,"category":"symbols"},"heart_decoration":{"keywords":["purple-square","love","like"],"char":"\ud83d\udc9f","fitzpatrick_scale":false,"category":"symbols"},"peace_symbol":{"keywords":["hippie"],"char":"\u262e","fitzpatrick_scale":false,"category":"symbols"},"latin_cross":{"keywords":["christianity"],"char":"\u271d","fitzpatrick_scale":false,"category":"symbols"},"star_and_crescent":{"keywords":["islam"],"char":"\u262a","fitzpatrick_scale":false,"category":"symbols"},"om":{"keywords":["hinduism","buddhism","sikhism","jainism"],"char":"\ud83d\udd49","fitzpatrick_scale":false,"category":"symbols"},"wheel_of_dharma":{"keywords":["hinduism","buddhism","sikhism","jainism"],"char":"\u2638","fitzpatrick_scale":false,"category":"symbols"},"star_of_david":{"keywords":["judaism"],"char":"\u2721","fitzpatrick_scale":false,"category":"symbols"},"six_pointed_star":{"keywords":["purple-square","religion","jewish","hexagram"],"char":"\ud83d\udd2f","fitzpatrick_scale":false,"category":"symbols"},"menorah":{"keywords":["hanukkah","candles","jewish"],"char":"\ud83d\udd4e","fitzpatrick_scale":false,"category":"symbols"},"yin_yang":{"keywords":["balance"],"char":"\u262f","fitzpatrick_scale":false,"category":"symbols"},"orthodox_cross":{"keywords":["suppedaneum","religion"],"char":"\u2626","fitzpatrick_scale":false,"category":"symbols"},"place_of_worship":{"keywords":["religion","church","temple","prayer"],"char":"\ud83d\uded0","fitzpatrick_scale":false,"category":"symbols"},"ophiuchus":{"keywords":["sign","purple-square","constellation","astrology"],"char":"\u26ce","fitzpatrick_scale":false,"category":"symbols"},"aries":{"keywords":["sign","purple-square","zodiac","astrology"],"char":"\u2648","fitzpatrick_scale":false,"category":"symbols"},"taurus":{"keywords":["purple-square","sign","zodiac","astrology"],"char":"\u2649","fitzpatrick_scale":false,"category":"symbols"},"gemini":{"keywords":["sign","zodiac","purple-square","astrology"],"char":"\u264a","fitzpatrick_scale":false,"category":"symbols"},"cancer":{"keywords":["sign","zodiac","purple-square","astrology"],"char":"\u264b","fitzpatrick_scale":false,"category":"symbols"},"leo":{"keywords":["sign","purple-square","zodiac","astrology"],"char":"\u264c","fitzpatrick_scale":false,"category":"symbols"},"virgo":{"keywords":["sign","zodiac","purple-square","astrology"],"char":"\u264d","fitzpatrick_scale":false,"category":"symbols"},"libra":{"keywords":["sign","purple-square","zodiac","astrology"],"char":"\u264e","fitzpatrick_scale":false,"category":"symbols"},"scorpius":{"keywords":["sign","zodiac","purple-square","astrology","scorpio"],"char":"\u264f","fitzpatrick_scale":false,"category":"symbols"},"sagittarius":{"keywords":["sign","zodiac","purple-square","astrology"],"char":"\u2650","fitzpatrick_scale":false,"category":"symbols"},"capricorn":{"keywords":["sign","zodiac","purple-square","astrology"],"char":"\u2651","fitzpatrick_scale":false,"category":"symbols"},"aquarius":{"keywords":["sign","purple-square","zodiac","astrology"],"char":"\u2652","fitzpatrick_scale":false,"category":"symbols"},"pisces":{"keywords":["purple-square","sign","zodiac","astrology"],"char":"\u2653","fitzpatrick_scale":false,"category":"symbols"},"id":{"keywords":["purple-square","words"],"char":"\ud83c\udd94","fitzpatrick_scale":false,"category":"symbols"},"atom_symbol":{"keywords":["science","physics","chemistry"],"char":"\u269b","fitzpatrick_scale":false,"category":"symbols"},"u7a7a":{"keywords":["kanji","japanese","chinese","empty","sky","blue-square"],"char":"\ud83c\ude33","fitzpatrick_scale":false,"category":"symbols"},"u5272":{"keywords":["cut","divide","chinese","kanji","pink-square"],"char":"\ud83c\ude39","fitzpatrick_scale":false,"category":"symbols"},"radioactive":{"keywords":["nuclear","danger"],"char":"\u2622","fitzpatrick_scale":false,"category":"symbols"},"biohazard":{"keywords":["danger"],"char":"\u2623","fitzpatrick_scale":false,"category":"symbols"},"mobile_phone_off":{"keywords":["mute","orange-square","silence","quiet"],"char":"\ud83d\udcf4","fitzpatrick_scale":false,"category":"symbols"},"vibration_mode":{"keywords":["orange-square","phone"],"char":"\ud83d\udcf3","fitzpatrick_scale":false,"category":"symbols"},"u6709":{"keywords":["orange-square","chinese","have","kanji"],"char":"\ud83c\ude36","fitzpatrick_scale":false,"category":"symbols"},"u7121":{"keywords":["nothing","chinese","kanji","japanese","orange-square"],"char":"\ud83c\ude1a","fitzpatrick_scale":false,"category":"symbols"},"u7533":{"keywords":["chinese","japanese","kanji","orange-square"],"char":"\ud83c\ude38","fitzpatrick_scale":false,"category":"symbols"},"u55b6":{"keywords":["japanese","opening hours","orange-square"],"char":"\ud83c\ude3a","fitzpatrick_scale":false,"category":"symbols"},"u6708":{"keywords":["chinese","month","moon","japanese","orange-square","kanji"],"char":"\ud83c\ude37\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"eight_pointed_black_star":{"keywords":["orange-square","shape","polygon"],"char":"\u2734\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"vs":{"keywords":["words","orange-square"],"char":"\ud83c\udd9a","fitzpatrick_scale":false,"category":"symbols"},"accept":{"keywords":["ok","good","chinese","kanji","agree","yes","orange-circle"],"char":"\ud83c\ude51","fitzpatrick_scale":false,"category":"symbols"},"white_flower":{"keywords":["japanese","spring"],"char":"\ud83d\udcae","fitzpatrick_scale":false,"category":"symbols"},"ideograph_advantage":{"keywords":["chinese","kanji","obtain","get","circle"],"char":"\ud83c\ude50","fitzpatrick_scale":false,"category":"symbols"},"secret":{"keywords":["privacy","chinese","sshh","kanji","red-circle"],"char":"\u3299\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"congratulations":{"keywords":["chinese","kanji","japanese","red-circle"],"char":"\u3297\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"u5408":{"keywords":["japanese","chinese","join","kanji","red-square"],"char":"\ud83c\ude34","fitzpatrick_scale":false,"category":"symbols"},"u6e80":{"keywords":["full","chinese","japanese","red-square","kanji"],"char":"\ud83c\ude35","fitzpatrick_scale":false,"category":"symbols"},"u7981":{"keywords":["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],"char":"\ud83c\ude32","fitzpatrick_scale":false,"category":"symbols"},"a":{"keywords":["red-square","alphabet","letter"],"char":"\ud83c\udd70\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"b":{"keywords":["red-square","alphabet","letter"],"char":"\ud83c\udd71\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"ab":{"keywords":["red-square","alphabet"],"char":"\ud83c\udd8e","fitzpatrick_scale":false,"category":"symbols"},"cl":{"keywords":["alphabet","words","red-square"],"char":"\ud83c\udd91","fitzpatrick_scale":false,"category":"symbols"},"o2":{"keywords":["alphabet","red-square","letter"],"char":"\ud83c\udd7e\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"sos":{"keywords":["help","red-square","words","emergency","911"],"char":"\ud83c\udd98","fitzpatrick_scale":false,"category":"symbols"},"no_entry":{"keywords":["limit","security","privacy","bad","denied","stop","circle"],"char":"\u26d4","fitzpatrick_scale":false,"category":"symbols"},"name_badge":{"keywords":["fire","forbid"],"char":"\ud83d\udcdb","fitzpatrick_scale":false,"category":"symbols"},"no_entry_sign":{"keywords":["forbid","stop","limit","denied","disallow","circle"],"char":"\ud83d\udeab","fitzpatrick_scale":false,"category":"symbols"},"x":{"keywords":["no","delete","remove","cancel","red"],"char":"\u274c","fitzpatrick_scale":false,"category":"symbols"},"o":{"keywords":["circle","round"],"char":"\u2b55","fitzpatrick_scale":false,"category":"symbols"},"stop_sign":{"keywords":["stop"],"char":"\ud83d\uded1","fitzpatrick_scale":false,"category":"symbols"},"anger":{"keywords":["angry","mad"],"char":"\ud83d\udca2","fitzpatrick_scale":false,"category":"symbols"},"hotsprings":{"keywords":["bath","warm","relax"],"char":"\u2668\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"no_pedestrians":{"keywords":["rules","crossing","walking","circle"],"char":"\ud83d\udeb7","fitzpatrick_scale":false,"category":"symbols"},"do_not_litter":{"keywords":["trash","bin","garbage","circle"],"char":"\ud83d\udeaf","fitzpatrick_scale":false,"category":"symbols"},"no_bicycles":{"keywords":["cyclist","prohibited","circle"],"char":"\ud83d\udeb3","fitzpatrick_scale":false,"category":"symbols"},"non-potable_water":{"keywords":["drink","faucet","tap","circle"],"char":"\ud83d\udeb1","fitzpatrick_scale":false,"category":"symbols"},"underage":{"keywords":["18","drink","pub","night","minor","circle"],"char":"\ud83d\udd1e","fitzpatrick_scale":false,"category":"symbols"},"no_mobile_phones":{"keywords":["iphone","mute","circle"],"char":"\ud83d\udcf5","fitzpatrick_scale":false,"category":"symbols"},"exclamation":{"keywords":["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],"char":"\u2757","fitzpatrick_scale":false,"category":"symbols"},"grey_exclamation":{"keywords":["surprise","punctuation","gray","wow","warning"],"char":"\u2755","fitzpatrick_scale":false,"category":"symbols"},"question":{"keywords":["doubt","confused"],"char":"\u2753","fitzpatrick_scale":false,"category":"symbols"},"grey_question":{"keywords":["doubts","gray","huh","confused"],"char":"\u2754","fitzpatrick_scale":false,"category":"symbols"},"bangbang":{"keywords":["exclamation","surprise"],"char":"\u203c\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"interrobang":{"keywords":["wat","punctuation","surprise"],"char":"\u2049\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"low_brightness":{"keywords":["sun","afternoon","warm","summer"],"char":"\ud83d\udd05","fitzpatrick_scale":false,"category":"symbols"},"high_brightness":{"keywords":["sun","light"],"char":"\ud83d\udd06","fitzpatrick_scale":false,"category":"symbols"},"trident":{"keywords":["weapon","spear"],"char":"\ud83d\udd31","fitzpatrick_scale":false,"category":"symbols"},"fleur_de_lis":{"keywords":["decorative","scout"],"char":"\u269c","fitzpatrick_scale":false,"category":"symbols"},"part_alternation_mark":{"keywords":["graph","presentation","stats","business","economics","bad"],"char":"\u303d\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"warning":{"keywords":["exclamation","wip","alert","error","problem","issue"],"char":"\u26a0\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"children_crossing":{"keywords":["school","warning","danger","sign","driving","yellow-diamond"],"char":"\ud83d\udeb8","fitzpatrick_scale":false,"category":"symbols"},"beginner":{"keywords":["badge","shield"],"char":"\ud83d\udd30","fitzpatrick_scale":false,"category":"symbols"},"recycle":{"keywords":["arrow","environment","garbage","trash"],"char":"\u267b\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"u6307":{"keywords":["chinese","point","green-square","kanji"],"char":"\ud83c\ude2f","fitzpatrick_scale":false,"category":"symbols"},"chart":{"keywords":["green-square","graph","presentation","stats"],"char":"\ud83d\udcb9","fitzpatrick_scale":false,"category":"symbols"},"sparkle":{"keywords":["stars","green-square","awesome","good","fireworks"],"char":"\u2747\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"eight_spoked_asterisk":{"keywords":["star","sparkle","green-square"],"char":"\u2733\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"negative_squared_cross_mark":{"keywords":["x","green-square","no","deny"],"char":"\u274e","fitzpatrick_scale":false,"category":"symbols"},"white_check_mark":{"keywords":["green-square","ok","agree","vote","election","answer","tick"],"char":"\u2705","fitzpatrick_scale":false,"category":"symbols"},"diamond_shape_with_a_dot_inside":{"keywords":["jewel","blue","gem","crystal","fancy"],"char":"\ud83d\udca0","fitzpatrick_scale":false,"category":"symbols"},"cyclone":{"keywords":["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],"char":"\ud83c\udf00","fitzpatrick_scale":false,"category":"symbols"},"loop":{"keywords":["tape","cassette"],"char":"\u27bf","fitzpatrick_scale":false,"category":"symbols"},"globe_with_meridians":{"keywords":["earth","international","world","internet","interweb","i18n"],"char":"\ud83c\udf10","fitzpatrick_scale":false,"category":"symbols"},"m":{"keywords":["alphabet","blue-circle","letter"],"char":"\u24c2\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"atm":{"keywords":["money","sales","cash","blue-square","payment","bank"],"char":"\ud83c\udfe7","fitzpatrick_scale":false,"category":"symbols"},"sa":{"keywords":["japanese","blue-square","katakana"],"char":"\ud83c\ude02\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"passport_control":{"keywords":["custom","blue-square"],"char":"\ud83d\udec2","fitzpatrick_scale":false,"category":"symbols"},"customs":{"keywords":["passport","border","blue-square"],"char":"\ud83d\udec3","fitzpatrick_scale":false,"category":"symbols"},"baggage_claim":{"keywords":["blue-square","airport","transport"],"char":"\ud83d\udec4","fitzpatrick_scale":false,"category":"symbols"},"left_luggage":{"keywords":["blue-square","travel"],"char":"\ud83d\udec5","fitzpatrick_scale":false,"category":"symbols"},"wheelchair":{"keywords":["blue-square","disabled","a11y","accessibility"],"char":"\u267f","fitzpatrick_scale":false,"category":"symbols"},"no_smoking":{"keywords":["cigarette","blue-square","smell","smoke"],"char":"\ud83d\udead","fitzpatrick_scale":false,"category":"symbols"},"wc":{"keywords":["toilet","restroom","blue-square"],"char":"\ud83d\udebe","fitzpatrick_scale":false,"category":"symbols"},"parking":{"keywords":["cars","blue-square","alphabet","letter"],"char":"\ud83c\udd7f\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"potable_water":{"keywords":["blue-square","liquid","restroom","cleaning","faucet"],"char":"\ud83d\udeb0","fitzpatrick_scale":false,"category":"symbols"},"mens":{"keywords":["toilet","restroom","wc","blue-square","gender","male"],"char":"\ud83d\udeb9","fitzpatrick_scale":false,"category":"symbols"},"womens":{"keywords":["purple-square","woman","female","toilet","loo","restroom","gender"],"char":"\ud83d\udeba","fitzpatrick_scale":false,"category":"symbols"},"baby_symbol":{"keywords":["orange-square","child"],"char":"\ud83d\udebc","fitzpatrick_scale":false,"category":"symbols"},"restroom":{"keywords":["blue-square","toilet","refresh","wc","gender"],"char":"\ud83d\udebb","fitzpatrick_scale":false,"category":"symbols"},"put_litter_in_its_place":{"keywords":["blue-square","sign","human","info"],"char":"\ud83d\udeae","fitzpatrick_scale":false,"category":"symbols"},"cinema":{"keywords":["blue-square","record","film","movie","curtain","stage","theater"],"char":"\ud83c\udfa6","fitzpatrick_scale":false,"category":"symbols"},"signal_strength":{"keywords":["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],"char":"\ud83d\udcf6","fitzpatrick_scale":false,"category":"symbols"},"koko":{"keywords":["blue-square","here","katakana","japanese","destination"],"char":"\ud83c\ude01","fitzpatrick_scale":false,"category":"symbols"},"ng":{"keywords":["blue-square","words","shape","icon"],"char":"\ud83c\udd96","fitzpatrick_scale":false,"category":"symbols"},"ok":{"keywords":["good","agree","yes","blue-square"],"char":"\ud83c\udd97","fitzpatrick_scale":false,"category":"symbols"},"up":{"keywords":["blue-square","above","high"],"char":"\ud83c\udd99","fitzpatrick_scale":false,"category":"symbols"},"cool":{"keywords":["words","blue-square"],"char":"\ud83c\udd92","fitzpatrick_scale":false,"category":"symbols"},"new":{"keywords":["blue-square","words","start"],"char":"\ud83c\udd95","fitzpatrick_scale":false,"category":"symbols"},"free":{"keywords":["blue-square","words"],"char":"\ud83c\udd93","fitzpatrick_scale":false,"category":"symbols"},"zero":{"keywords":["0","numbers","blue-square","null"],"char":"0\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"one":{"keywords":["blue-square","numbers","1"],"char":"1\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"two":{"keywords":["numbers","2","prime","blue-square"],"char":"2\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"three":{"keywords":["3","numbers","prime","blue-square"],"char":"3\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"four":{"keywords":["4","numbers","blue-square"],"char":"4\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"five":{"keywords":["5","numbers","blue-square","prime"],"char":"5\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"six":{"keywords":["6","numbers","blue-square"],"char":"6\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"seven":{"keywords":["7","numbers","blue-square","prime"],"char":"7\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"eight":{"keywords":["8","blue-square","numbers"],"char":"8\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"nine":{"keywords":["blue-square","numbers","9"],"char":"9\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"keycap_ten":{"keywords":["numbers","10","blue-square"],"char":"\ud83d\udd1f","fitzpatrick_scale":false,"category":"symbols"},"asterisk":{"keywords":["star","keycap"],"char":"*\u20e3","fitzpatrick_scale":false,"category":"symbols"},"eject_button":{"keywords":["blue-square"],"char":"\u23cf\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_forward":{"keywords":["blue-square","right","direction","play"],"char":"\u25b6\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"pause_button":{"keywords":["pause","blue-square"],"char":"\u23f8","fitzpatrick_scale":false,"category":"symbols"},"next_track_button":{"keywords":["forward","next","blue-square"],"char":"\u23ed","fitzpatrick_scale":false,"category":"symbols"},"stop_button":{"keywords":["blue-square"],"char":"\u23f9","fitzpatrick_scale":false,"category":"symbols"},"record_button":{"keywords":["blue-square"],"char":"\u23fa","fitzpatrick_scale":false,"category":"symbols"},"play_or_pause_button":{"keywords":["blue-square","play","pause"],"char":"\u23ef","fitzpatrick_scale":false,"category":"symbols"},"previous_track_button":{"keywords":["backward"],"char":"\u23ee","fitzpatrick_scale":false,"category":"symbols"},"fast_forward":{"keywords":["blue-square","play","speed","continue"],"char":"\u23e9","fitzpatrick_scale":false,"category":"symbols"},"rewind":{"keywords":["play","blue-square"],"char":"\u23ea","fitzpatrick_scale":false,"category":"symbols"},"twisted_rightwards_arrows":{"keywords":["blue-square","shuffle","music","random"],"char":"\ud83d\udd00","fitzpatrick_scale":false,"category":"symbols"},"repeat":{"keywords":["loop","record"],"char":"\ud83d\udd01","fitzpatrick_scale":false,"category":"symbols"},"repeat_one":{"keywords":["blue-square","loop"],"char":"\ud83d\udd02","fitzpatrick_scale":false,"category":"symbols"},"arrow_backward":{"keywords":["blue-square","left","direction"],"char":"\u25c0\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_up_small":{"keywords":["blue-square","triangle","direction","point","forward","top"],"char":"\ud83d\udd3c","fitzpatrick_scale":false,"category":"symbols"},"arrow_down_small":{"keywords":["blue-square","direction","bottom"],"char":"\ud83d\udd3d","fitzpatrick_scale":false,"category":"symbols"},"arrow_double_up":{"keywords":["blue-square","direction","top"],"char":"\u23eb","fitzpatrick_scale":false,"category":"symbols"},"arrow_double_down":{"keywords":["blue-square","direction","bottom"],"char":"\u23ec","fitzpatrick_scale":false,"category":"symbols"},"arrow_right":{"keywords":["blue-square","next"],"char":"\u27a1\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_left":{"keywords":["blue-square","previous","back"],"char":"\u2b05\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_up":{"keywords":["blue-square","continue","top","direction"],"char":"\u2b06\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_down":{"keywords":["blue-square","direction","bottom"],"char":"\u2b07\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_upper_right":{"keywords":["blue-square","point","direction","diagonal","northeast"],"char":"\u2197\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_lower_right":{"keywords":["blue-square","direction","diagonal","southeast"],"char":"\u2198\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_lower_left":{"keywords":["blue-square","direction","diagonal","southwest"],"char":"\u2199\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_upper_left":{"keywords":["blue-square","point","direction","diagonal","northwest"],"char":"\u2196\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_up_down":{"keywords":["blue-square","direction","way","vertical"],"char":"\u2195\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"left_right_arrow":{"keywords":["shape","direction","horizontal","sideways"],"char":"\u2194\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrows_counterclockwise":{"keywords":["blue-square","sync","cycle"],"char":"\ud83d\udd04","fitzpatrick_scale":false,"category":"symbols"},"arrow_right_hook":{"keywords":["blue-square","return","rotate","direction"],"char":"\u21aa\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"leftwards_arrow_with_hook":{"keywords":["back","return","blue-square","undo","enter"],"char":"\u21a9\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_heading_up":{"keywords":["blue-square","direction","top"],"char":"\u2934\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrow_heading_down":{"keywords":["blue-square","direction","bottom"],"char":"\u2935\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"hash":{"keywords":["symbol","blue-square","twitter"],"char":"#\ufe0f\u20e3","fitzpatrick_scale":false,"category":"symbols"},"information_source":{"keywords":["blue-square","alphabet","letter"],"char":"\u2139\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"abc":{"keywords":["blue-square","alphabet"],"char":"\ud83d\udd24","fitzpatrick_scale":false,"category":"symbols"},"abcd":{"keywords":["blue-square","alphabet"],"char":"\ud83d\udd21","fitzpatrick_scale":false,"category":"symbols"},"capital_abcd":{"keywords":["alphabet","words","blue-square"],"char":"\ud83d\udd20","fitzpatrick_scale":false,"category":"symbols"},"symbols":{"keywords":["blue-square","music","note","ampersand","percent","glyphs","characters"],"char":"\ud83d\udd23","fitzpatrick_scale":false,"category":"symbols"},"musical_note":{"keywords":["score","tone","sound"],"char":"\ud83c\udfb5","fitzpatrick_scale":false,"category":"symbols"},"notes":{"keywords":["music","score"],"char":"\ud83c\udfb6","fitzpatrick_scale":false,"category":"symbols"},"wavy_dash":{"keywords":["draw","line","moustache","mustache","squiggle","scribble"],"char":"\u3030\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"curly_loop":{"keywords":["scribble","draw","shape","squiggle"],"char":"\u27b0","fitzpatrick_scale":false,"category":"symbols"},"heavy_check_mark":{"keywords":["ok","nike","answer","yes","tick"],"char":"\u2714\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"arrows_clockwise":{"keywords":["sync","cycle","round","repeat"],"char":"\ud83d\udd03","fitzpatrick_scale":false,"category":"symbols"},"heavy_plus_sign":{"keywords":["math","calculation","addition","more","increase"],"char":"\u2795","fitzpatrick_scale":false,"category":"symbols"},"heavy_minus_sign":{"keywords":["math","calculation","subtract","less"],"char":"\u2796","fitzpatrick_scale":false,"category":"symbols"},"heavy_division_sign":{"keywords":["divide","math","calculation"],"char":"\u2797","fitzpatrick_scale":false,"category":"symbols"},"heavy_multiplication_x":{"keywords":["math","calculation"],"char":"\u2716\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"infinity":{"keywords":["forever"],"char":"\u267e","fitzpatrick_scale":false,"category":"symbols"},"heavy_dollar_sign":{"keywords":["money","sales","payment","currency","buck"],"char":"\ud83d\udcb2","fitzpatrick_scale":false,"category":"symbols"},"currency_exchange":{"keywords":["money","sales","dollar","travel"],"char":"\ud83d\udcb1","fitzpatrick_scale":false,"category":"symbols"},"copyright":{"keywords":["ip","license","circle","law","legal"],"char":"\xa9\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"registered":{"keywords":["alphabet","circle"],"char":"\xae\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"tm":{"keywords":["trademark","brand","law","legal"],"char":"\u2122\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"end":{"keywords":["words","arrow"],"char":"\ud83d\udd1a","fitzpatrick_scale":false,"category":"symbols"},"back":{"keywords":["arrow","words","return"],"char":"\ud83d\udd19","fitzpatrick_scale":false,"category":"symbols"},"on":{"keywords":["arrow","words"],"char":"\ud83d\udd1b","fitzpatrick_scale":false,"category":"symbols"},"top":{"keywords":["words","blue-square"],"char":"\ud83d\udd1d","fitzpatrick_scale":false,"category":"symbols"},"soon":{"keywords":["arrow","words"],"char":"\ud83d\udd1c","fitzpatrick_scale":false,"category":"symbols"},"ballot_box_with_check":{"keywords":["ok","agree","confirm","black-square","vote","election","yes","tick"],"char":"\u2611\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"radio_button":{"keywords":["input","old","music","circle"],"char":"\ud83d\udd18","fitzpatrick_scale":false,"category":"symbols"},"white_circle":{"keywords":["shape","round"],"char":"\u26aa","fitzpatrick_scale":false,"category":"symbols"},"black_circle":{"keywords":["shape","button","round"],"char":"\u26ab","fitzpatrick_scale":false,"category":"symbols"},"red_circle":{"keywords":["shape","error","danger"],"char":"\ud83d\udd34","fitzpatrick_scale":false,"category":"symbols"},"large_blue_circle":{"keywords":["shape","icon","button"],"char":"\ud83d\udd35","fitzpatrick_scale":false,"category":"symbols"},"small_orange_diamond":{"keywords":["shape","jewel","gem"],"char":"\ud83d\udd38","fitzpatrick_scale":false,"category":"symbols"},"small_blue_diamond":{"keywords":["shape","jewel","gem"],"char":"\ud83d\udd39","fitzpatrick_scale":false,"category":"symbols"},"large_orange_diamond":{"keywords":["shape","jewel","gem"],"char":"\ud83d\udd36","fitzpatrick_scale":false,"category":"symbols"},"large_blue_diamond":{"keywords":["shape","jewel","gem"],"char":"\ud83d\udd37","fitzpatrick_scale":false,"category":"symbols"},"small_red_triangle":{"keywords":["shape","direction","up","top"],"char":"\ud83d\udd3a","fitzpatrick_scale":false,"category":"symbols"},"black_small_square":{"keywords":["shape","icon"],"char":"\u25aa\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"white_small_square":{"keywords":["shape","icon"],"char":"\u25ab\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"black_large_square":{"keywords":["shape","icon","button"],"char":"\u2b1b","fitzpatrick_scale":false,"category":"symbols"},"white_large_square":{"keywords":["shape","icon","stone","button"],"char":"\u2b1c","fitzpatrick_scale":false,"category":"symbols"},"small_red_triangle_down":{"keywords":["shape","direction","bottom"],"char":"\ud83d\udd3b","fitzpatrick_scale":false,"category":"symbols"},"black_medium_square":{"keywords":["shape","button","icon"],"char":"\u25fc\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"white_medium_square":{"keywords":["shape","stone","icon"],"char":"\u25fb\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"black_medium_small_square":{"keywords":["icon","shape","button"],"char":"\u25fe","fitzpatrick_scale":false,"category":"symbols"},"white_medium_small_square":{"keywords":["shape","stone","icon","button"],"char":"\u25fd","fitzpatrick_scale":false,"category":"symbols"},"black_square_button":{"keywords":["shape","input","frame"],"char":"\ud83d\udd32","fitzpatrick_scale":false,"category":"symbols"},"white_square_button":{"keywords":["shape","input"],"char":"\ud83d\udd33","fitzpatrick_scale":false,"category":"symbols"},"speaker":{"keywords":["sound","volume","silence","broadcast"],"char":"\ud83d\udd08","fitzpatrick_scale":false,"category":"symbols"},"sound":{"keywords":["volume","speaker","broadcast"],"char":"\ud83d\udd09","fitzpatrick_scale":false,"category":"symbols"},"loud_sound":{"keywords":["volume","noise","noisy","speaker","broadcast"],"char":"\ud83d\udd0a","fitzpatrick_scale":false,"category":"symbols"},"mute":{"keywords":["sound","volume","silence","quiet"],"char":"\ud83d\udd07","fitzpatrick_scale":false,"category":"symbols"},"mega":{"keywords":["sound","speaker","volume"],"char":"\ud83d\udce3","fitzpatrick_scale":false,"category":"symbols"},"loudspeaker":{"keywords":["volume","sound"],"char":"\ud83d\udce2","fitzpatrick_scale":false,"category":"symbols"},"bell":{"keywords":["sound","notification","christmas","xmas","chime"],"char":"\ud83d\udd14","fitzpatrick_scale":false,"category":"symbols"},"no_bell":{"keywords":["sound","volume","mute","quiet","silent"],"char":"\ud83d\udd15","fitzpatrick_scale":false,"category":"symbols"},"black_joker":{"keywords":["poker","cards","game","play","magic"],"char":"\ud83c\udccf","fitzpatrick_scale":false,"category":"symbols"},"mahjong":{"keywords":["game","play","chinese","kanji"],"char":"\ud83c\udc04","fitzpatrick_scale":false,"category":"symbols"},"spades":{"keywords":["poker","cards","suits","magic"],"char":"\u2660\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"clubs":{"keywords":["poker","cards","magic","suits"],"char":"\u2663\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"hearts":{"keywords":["poker","cards","magic","suits"],"char":"\u2665\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"diamonds":{"keywords":["poker","cards","magic","suits"],"char":"\u2666\ufe0f","fitzpatrick_scale":false,"category":"symbols"},"flower_playing_cards":{"keywords":["game","sunset","red"],"char":"\ud83c\udfb4","fitzpatrick_scale":false,"category":"symbols"},"thought_balloon":{"keywords":["bubble","cloud","speech","thinking","dream"],"char":"\ud83d\udcad","fitzpatrick_scale":false,"category":"symbols"},"right_anger_bubble":{"keywords":["caption","speech","thinking","mad"],"char":"\ud83d\uddef","fitzpatrick_scale":false,"category":"symbols"},"speech_balloon":{"keywords":["bubble","words","message","talk","chatting"],"char":"\ud83d\udcac","fitzpatrick_scale":false,"category":"symbols"},"left_speech_bubble":{"keywords":["words","message","talk","chatting"],"char":"\ud83d\udde8","fitzpatrick_scale":false,"category":"symbols"},"clock1":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd50","fitzpatrick_scale":false,"category":"symbols"},"clock2":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd51","fitzpatrick_scale":false,"category":"symbols"},"clock3":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd52","fitzpatrick_scale":false,"category":"symbols"},"clock4":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd53","fitzpatrick_scale":false,"category":"symbols"},"clock5":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd54","fitzpatrick_scale":false,"category":"symbols"},"clock6":{"keywords":["time","late","early","schedule","dawn","dusk"],"char":"\ud83d\udd55","fitzpatrick_scale":false,"category":"symbols"},"clock7":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd56","fitzpatrick_scale":false,"category":"symbols"},"clock8":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd57","fitzpatrick_scale":false,"category":"symbols"},"clock9":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd58","fitzpatrick_scale":false,"category":"symbols"},"clock10":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd59","fitzpatrick_scale":false,"category":"symbols"},"clock11":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd5a","fitzpatrick_scale":false,"category":"symbols"},"clock12":{"keywords":["time","noon","midnight","midday","late","early","schedule"],"char":"\ud83d\udd5b","fitzpatrick_scale":false,"category":"symbols"},"clock130":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd5c","fitzpatrick_scale":false,"category":"symbols"},"clock230":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd5d","fitzpatrick_scale":false,"category":"symbols"},"clock330":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd5e","fitzpatrick_scale":false,"category":"symbols"},"clock430":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd5f","fitzpatrick_scale":false,"category":"symbols"},"clock530":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd60","fitzpatrick_scale":false,"category":"symbols"},"clock630":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd61","fitzpatrick_scale":false,"category":"symbols"},"clock730":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd62","fitzpatrick_scale":false,"category":"symbols"},"clock830":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd63","fitzpatrick_scale":false,"category":"symbols"},"clock930":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd64","fitzpatrick_scale":false,"category":"symbols"},"clock1030":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd65","fitzpatrick_scale":false,"category":"symbols"},"clock1130":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd66","fitzpatrick_scale":false,"category":"symbols"},"clock1230":{"keywords":["time","late","early","schedule"],"char":"\ud83d\udd67","fitzpatrick_scale":false,"category":"symbols"},"afghanistan":{"keywords":["af","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"aland_islands":{"keywords":["\xc5land","islands","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddfd","fitzpatrick_scale":false,"category":"flags"},"albania":{"keywords":["al","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"algeria":{"keywords":["dz","flag","nation","country","banner"],"char":"\ud83c\udde9\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"american_samoa":{"keywords":["american","ws","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"andorra":{"keywords":["ad","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"angola":{"keywords":["ao","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"anguilla":{"keywords":["ai","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"antarctica":{"keywords":["aq","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf6","fitzpatrick_scale":false,"category":"flags"},"antigua_barbuda":{"keywords":["antigua","barbuda","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"argentina":{"keywords":["ar","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"armenia":{"keywords":["am","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"aruba":{"keywords":["aw","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"australia":{"keywords":["au","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"austria":{"keywords":["at","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"azerbaijan":{"keywords":["az","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"bahamas":{"keywords":["bs","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"bahrain":{"keywords":["bh","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"bangladesh":{"keywords":["bd","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"barbados":{"keywords":["bb","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\udde7","fitzpatrick_scale":false,"category":"flags"},"belarus":{"keywords":["by","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"belgium":{"keywords":["be","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"belize":{"keywords":["bz","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"benin":{"keywords":["bj","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddef","fitzpatrick_scale":false,"category":"flags"},"bermuda":{"keywords":["bm","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"bhutan":{"keywords":["bt","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"bolivia":{"keywords":["bo","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"caribbean_netherlands":{"keywords":["bonaire","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf6","fitzpatrick_scale":false,"category":"flags"},"bosnia_herzegovina":{"keywords":["bosnia","herzegovina","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"botswana":{"keywords":["bw","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"brazil":{"keywords":["br","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"british_indian_ocean_territory":{"keywords":["british","indian","ocean","territory","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"british_virgin_islands":{"keywords":["british","virgin","islands","bvi","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"brunei":{"keywords":["bn","darussalam","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"bulgaria":{"keywords":["bg","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"burkina_faso":{"keywords":["burkina","faso","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"burundi":{"keywords":["bi","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"cape_verde":{"keywords":["cabo","verde","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddfb","fitzpatrick_scale":false,"category":"flags"},"cambodia":{"keywords":["kh","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"cameroon":{"keywords":["cm","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"canada":{"keywords":["ca","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"canary_islands":{"keywords":["canary","islands","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"cayman_islands":{"keywords":["cayman","islands","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"central_african_republic":{"keywords":["central","african","republic","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"chad":{"keywords":["td","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"chile":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"cn":{"keywords":["china","chinese","prc","flag","country","nation","banner"],"char":"\ud83c\udde8\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"christmas_island":{"keywords":["christmas","island","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddfd","fitzpatrick_scale":false,"category":"flags"},"cocos_islands":{"keywords":["cocos","keeling","islands","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"colombia":{"keywords":["co","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"comoros":{"keywords":["km","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"congo_brazzaville":{"keywords":["congo","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"congo_kinshasa":{"keywords":["congo","democratic","republic","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"cook_islands":{"keywords":["cook","islands","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"costa_rica":{"keywords":["costa","rica","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"croatia":{"keywords":["hr","flag","nation","country","banner"],"char":"\ud83c\udded\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"cuba":{"keywords":["cu","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"curacao":{"keywords":["cura\xe7ao","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"cyprus":{"keywords":["cy","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"czech_republic":{"keywords":["cz","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"denmark":{"keywords":["dk","flag","nation","country","banner"],"char":"\ud83c\udde9\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"djibouti":{"keywords":["dj","flag","nation","country","banner"],"char":"\ud83c\udde9\ud83c\uddef","fitzpatrick_scale":false,"category":"flags"},"dominica":{"keywords":["dm","flag","nation","country","banner"],"char":"\ud83c\udde9\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"dominican_republic":{"keywords":["dominican","republic","flag","nation","country","banner"],"char":"\ud83c\udde9\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"ecuador":{"keywords":["ec","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"egypt":{"keywords":["eg","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"el_salvador":{"keywords":["el","salvador","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddfb","fitzpatrick_scale":false,"category":"flags"},"equatorial_guinea":{"keywords":["equatorial","gn","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf6","fitzpatrick_scale":false,"category":"flags"},"eritrea":{"keywords":["er","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"estonia":{"keywords":["ee","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"ethiopia":{"keywords":["et","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"eu":{"keywords":["european","union","flag","banner"],"char":"\ud83c\uddea\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"falkland_islands":{"keywords":["falkland","islands","malvinas","flag","nation","country","banner"],"char":"\ud83c\uddeb\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"faroe_islands":{"keywords":["faroe","islands","flag","nation","country","banner"],"char":"\ud83c\uddeb\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"fiji":{"keywords":["fj","flag","nation","country","banner"],"char":"\ud83c\uddeb\ud83c\uddef","fitzpatrick_scale":false,"category":"flags"},"finland":{"keywords":["fi","flag","nation","country","banner"],"char":"\ud83c\uddeb\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"fr":{"keywords":["banner","flag","nation","france","french","country"],"char":"\ud83c\uddeb\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"french_guiana":{"keywords":["french","guiana","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"french_polynesia":{"keywords":["french","polynesia","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"french_southern_territories":{"keywords":["french","southern","territories","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"gabon":{"keywords":["ga","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"gambia":{"keywords":["gm","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"georgia":{"keywords":["ge","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"de":{"keywords":["german","nation","flag","country","banner"],"char":"\ud83c\udde9\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"ghana":{"keywords":["gh","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"gibraltar":{"keywords":["gi","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"greece":{"keywords":["gr","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"greenland":{"keywords":["gl","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"grenada":{"keywords":["gd","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"guadeloupe":{"keywords":["gp","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf5","fitzpatrick_scale":false,"category":"flags"},"guam":{"keywords":["gu","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"guatemala":{"keywords":["gt","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"guernsey":{"keywords":["gg","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"guinea":{"keywords":["gn","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"guinea_bissau":{"keywords":["gw","bissau","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"guyana":{"keywords":["gy","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"haiti":{"keywords":["ht","flag","nation","country","banner"],"char":"\ud83c\udded\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"honduras":{"keywords":["hn","flag","nation","country","banner"],"char":"\ud83c\udded\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"hong_kong":{"keywords":["hong","kong","flag","nation","country","banner"],"char":"\ud83c\udded\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"hungary":{"keywords":["hu","flag","nation","country","banner"],"char":"\ud83c\udded\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"iceland":{"keywords":["is","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"india":{"keywords":["in","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"indonesia":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"iran":{"keywords":["iran,","islamic","republic","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"iraq":{"keywords":["iq","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf6","fitzpatrick_scale":false,"category":"flags"},"ireland":{"keywords":["ie","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"isle_of_man":{"keywords":["isle","man","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"israel":{"keywords":["il","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"it":{"keywords":["italy","flag","nation","country","banner"],"char":"\ud83c\uddee\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"cote_divoire":{"keywords":["ivory","coast","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"jamaica":{"keywords":["jm","flag","nation","country","banner"],"char":"\ud83c\uddef\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"jp":{"keywords":["japanese","nation","flag","country","banner"],"char":"\ud83c\uddef\ud83c\uddf5","fitzpatrick_scale":false,"category":"flags"},"jersey":{"keywords":["je","flag","nation","country","banner"],"char":"\ud83c\uddef\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"jordan":{"keywords":["jo","flag","nation","country","banner"],"char":"\ud83c\uddef\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"kazakhstan":{"keywords":["kz","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"kenya":{"keywords":["ke","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"kiribati":{"keywords":["ki","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"kosovo":{"keywords":["xk","flag","nation","country","banner"],"char":"\ud83c\uddfd\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"kuwait":{"keywords":["kw","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"kyrgyzstan":{"keywords":["kg","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"laos":{"keywords":["lao","democratic","republic","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"latvia":{"keywords":["lv","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddfb","fitzpatrick_scale":false,"category":"flags"},"lebanon":{"keywords":["lb","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\udde7","fitzpatrick_scale":false,"category":"flags"},"lesotho":{"keywords":["ls","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"liberia":{"keywords":["lr","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"libya":{"keywords":["ly","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"liechtenstein":{"keywords":["li","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"lithuania":{"keywords":["lt","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"luxembourg":{"keywords":["lu","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"macau":{"keywords":["macao","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"macedonia":{"keywords":["macedonia,","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"madagascar":{"keywords":["mg","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"malawi":{"keywords":["mw","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"malaysia":{"keywords":["my","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"maldives":{"keywords":["mv","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddfb","fitzpatrick_scale":false,"category":"flags"},"mali":{"keywords":["ml","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"malta":{"keywords":["mt","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"marshall_islands":{"keywords":["marshall","islands","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"martinique":{"keywords":["mq","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf6","fitzpatrick_scale":false,"category":"flags"},"mauritania":{"keywords":["mr","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"mauritius":{"keywords":["mu","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"mayotte":{"keywords":["yt","flag","nation","country","banner"],"char":"\ud83c\uddfe\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"mexico":{"keywords":["mx","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddfd","fitzpatrick_scale":false,"category":"flags"},"micronesia":{"keywords":["micronesia,","federated","states","flag","nation","country","banner"],"char":"\ud83c\uddeb\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"moldova":{"keywords":["moldova,","republic","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"monaco":{"keywords":["mc","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"mongolia":{"keywords":["mn","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"montenegro":{"keywords":["me","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"montserrat":{"keywords":["ms","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"morocco":{"keywords":["ma","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"mozambique":{"keywords":["mz","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"myanmar":{"keywords":["mm","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"namibia":{"keywords":["na","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"nauru":{"keywords":["nr","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"nepal":{"keywords":["np","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddf5","fitzpatrick_scale":false,"category":"flags"},"netherlands":{"keywords":["nl","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"new_caledonia":{"keywords":["new","caledonia","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"new_zealand":{"keywords":["new","zealand","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"nicaragua":{"keywords":["ni","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"niger":{"keywords":["ne","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"nigeria":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"niue":{"keywords":["nu","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"norfolk_island":{"keywords":["norfolk","island","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"northern_mariana_islands":{"keywords":["northern","mariana","islands","flag","nation","country","banner"],"char":"\ud83c\uddf2\ud83c\uddf5","fitzpatrick_scale":false,"category":"flags"},"north_korea":{"keywords":["north","korea","nation","flag","country","banner"],"char":"\ud83c\uddf0\ud83c\uddf5","fitzpatrick_scale":false,"category":"flags"},"norway":{"keywords":["no","flag","nation","country","banner"],"char":"\ud83c\uddf3\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"oman":{"keywords":["om_symbol","flag","nation","country","banner"],"char":"\ud83c\uddf4\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"pakistan":{"keywords":["pk","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"palau":{"keywords":["pw","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"palestinian_territories":{"keywords":["palestine","palestinian","territories","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"panama":{"keywords":["pa","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"papua_new_guinea":{"keywords":["papua","new","guinea","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"paraguay":{"keywords":["py","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"peru":{"keywords":["pe","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"philippines":{"keywords":["ph","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"pitcairn_islands":{"keywords":["pitcairn","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"poland":{"keywords":["pl","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"portugal":{"keywords":["pt","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"puerto_rico":{"keywords":["puerto","rico","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"qatar":{"keywords":["qa","flag","nation","country","banner"],"char":"\ud83c\uddf6\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"reunion":{"keywords":["r\xe9union","flag","nation","country","banner"],"char":"\ud83c\uddf7\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"romania":{"keywords":["ro","flag","nation","country","banner"],"char":"\ud83c\uddf7\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"ru":{"keywords":["russian","federation","flag","nation","country","banner"],"char":"\ud83c\uddf7\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"rwanda":{"keywords":["rw","flag","nation","country","banner"],"char":"\ud83c\uddf7\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"st_barthelemy":{"keywords":["saint","barth\xe9lemy","flag","nation","country","banner"],"char":"\ud83c\udde7\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"st_helena":{"keywords":["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"st_kitts_nevis":{"keywords":["saint","kitts","nevis","flag","nation","country","banner"],"char":"\ud83c\uddf0\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"st_lucia":{"keywords":["saint","lucia","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"st_pierre_miquelon":{"keywords":["saint","pierre","miquelon","flag","nation","country","banner"],"char":"\ud83c\uddf5\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"st_vincent_grenadines":{"keywords":["saint","vincent","grenadines","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"samoa":{"keywords":["ws","flag","nation","country","banner"],"char":"\ud83c\uddfc\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"san_marino":{"keywords":["san","marino","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"sao_tome_principe":{"keywords":["sao","tome","principe","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"saudi_arabia":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"senegal":{"keywords":["sn","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"serbia":{"keywords":["rs","flag","nation","country","banner"],"char":"\ud83c\uddf7\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"seychelles":{"keywords":["sc","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"sierra_leone":{"keywords":["sierra","leone","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"singapore":{"keywords":["sg","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"sint_maarten":{"keywords":["sint","maarten","dutch","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddfd","fitzpatrick_scale":false,"category":"flags"},"slovakia":{"keywords":["sk","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"slovenia":{"keywords":["si","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"solomon_islands":{"keywords":["solomon","islands","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\udde7","fitzpatrick_scale":false,"category":"flags"},"somalia":{"keywords":["so","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"south_africa":{"keywords":["south","africa","flag","nation","country","banner"],"char":"\ud83c\uddff\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"south_georgia_south_sandwich_islands":{"keywords":["south","georgia","sandwich","islands","flag","nation","country","banner"],"char":"\ud83c\uddec\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"kr":{"keywords":["south","korea","nation","flag","country","banner"],"char":"\ud83c\uddf0\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"south_sudan":{"keywords":["south","sd","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"es":{"keywords":["spain","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"sri_lanka":{"keywords":["sri","lanka","flag","nation","country","banner"],"char":"\ud83c\uddf1\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"sudan":{"keywords":["sd","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\udde9","fitzpatrick_scale":false,"category":"flags"},"suriname":{"keywords":["sr","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"swaziland":{"keywords":["sz","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"sweden":{"keywords":["se","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"switzerland":{"keywords":["ch","flag","nation","country","banner"],"char":"\ud83c\udde8\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"syria":{"keywords":["syrian","arab","republic","flag","nation","country","banner"],"char":"\ud83c\uddf8\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"taiwan":{"keywords":["tw","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"tajikistan":{"keywords":["tj","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddef","fitzpatrick_scale":false,"category":"flags"},"tanzania":{"keywords":["tanzania,","united","republic","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"thailand":{"keywords":["th","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"timor_leste":{"keywords":["timor","leste","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf1","fitzpatrick_scale":false,"category":"flags"},"togo":{"keywords":["tg","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"tokelau":{"keywords":["tk","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf0","fitzpatrick_scale":false,"category":"flags"},"tonga":{"keywords":["to","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf4","fitzpatrick_scale":false,"category":"flags"},"trinidad_tobago":{"keywords":["trinidad","tobago","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf9","fitzpatrick_scale":false,"category":"flags"},"tunisia":{"keywords":["tn","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"tr":{"keywords":["turkey","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf7","fitzpatrick_scale":false,"category":"flags"},"turkmenistan":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"turks_caicos_islands":{"keywords":["turks","caicos","islands","flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\udde8","fitzpatrick_scale":false,"category":"flags"},"tuvalu":{"keywords":["flag","nation","country","banner"],"char":"\ud83c\uddf9\ud83c\uddfb","fitzpatrick_scale":false,"category":"flags"},"uganda":{"keywords":["ug","flag","nation","country","banner"],"char":"\ud83c\uddfa\ud83c\uddec","fitzpatrick_scale":false,"category":"flags"},"ukraine":{"keywords":["ua","flag","nation","country","banner"],"char":"\ud83c\uddfa\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"united_arab_emirates":{"keywords":["united","arab","emirates","flag","nation","country","banner"],"char":"\ud83c\udde6\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"uk":{"keywords":["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],"char":"\ud83c\uddec\ud83c\udde7","fitzpatrick_scale":false,"category":"flags"},"england":{"keywords":["flag","english"],"char":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","fitzpatrick_scale":false,"category":"flags"},"scotland":{"keywords":["flag","scottish"],"char":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f","fitzpatrick_scale":false,"category":"flags"},"wales":{"keywords":["flag","welsh"],"char":"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f","fitzpatrick_scale":false,"category":"flags"},"us":{"keywords":["united","states","america","flag","nation","country","banner"],"char":"\ud83c\uddfa\ud83c\uddf8","fitzpatrick_scale":false,"category":"flags"},"us_virgin_islands":{"keywords":["virgin","islands","us","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\uddee","fitzpatrick_scale":false,"category":"flags"},"uruguay":{"keywords":["uy","flag","nation","country","banner"],"char":"\ud83c\uddfa\ud83c\uddfe","fitzpatrick_scale":false,"category":"flags"},"uzbekistan":{"keywords":["uz","flag","nation","country","banner"],"char":"\ud83c\uddfa\ud83c\uddff","fitzpatrick_scale":false,"category":"flags"},"vanuatu":{"keywords":["vu","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\uddfa","fitzpatrick_scale":false,"category":"flags"},"vatican_city":{"keywords":["vatican","city","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\udde6","fitzpatrick_scale":false,"category":"flags"},"venezuela":{"keywords":["ve","bolivarian","republic","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"vietnam":{"keywords":["viet","nam","flag","nation","country","banner"],"char":"\ud83c\uddfb\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"wallis_futuna":{"keywords":["wallis","futuna","flag","nation","country","banner"],"char":"\ud83c\uddfc\ud83c\uddeb","fitzpatrick_scale":false,"category":"flags"},"western_sahara":{"keywords":["western","sahara","flag","nation","country","banner"],"char":"\ud83c\uddea\ud83c\udded","fitzpatrick_scale":false,"category":"flags"},"yemen":{"keywords":["ye","flag","nation","country","banner"],"char":"\ud83c\uddfe\ud83c\uddea","fitzpatrick_scale":false,"category":"flags"},"zambia":{"keywords":["zm","flag","nation","country","banner"],"char":"\ud83c\uddff\ud83c\uddf2","fitzpatrick_scale":false,"category":"flags"},"zimbabwe":{"keywords":["zw","flag","nation","country","banner"],"char":"\ud83c\uddff\ud83c\uddfc","fitzpatrick_scale":false,"category":"flags"},"united_nations":{"keywords":["un","flag","banner"],"char":"\ud83c\uddfa\ud83c\uddf3","fitzpatrick_scale":false,"category":"flags"},"pirate_flag":{"keywords":["skull","crossbones","flag","banner"],"char":"\ud83c\udff4\u200d\u2620\ufe0f","fitzpatrick_scale":false,"category":"flags"}}')},5062:t=>{"use strict";t.exports=JSON.parse('["grinning","smiley","smile","grin","laughing","sweat_smile","joy","rofl","relaxed","blush","innocent","slightly_smiling_face","upside_down_face","wink","relieved","heart_eyes","smiling_face_with_three_hearts","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","yum","stuck_out_tongue","stuck_out_tongue_closed_eyes","stuck_out_tongue_winking_eye","zany","raised_eyebrow","monocle","nerd_face","sunglasses","star_struck","partying","smirk","unamused","disappointed","pensive","worried","confused","slightly_frowning_face","frowning_face","persevere","confounded","tired_face","weary","pleading","cry","sob","triumph","angry","rage","symbols_over_mouth","exploding_head","flushed","hot","cold","scream","fearful","cold_sweat","disappointed_relieved","sweat","hugs","thinking","hand_over_mouth","shushing","lying_face","no_mouth","neutral_face","expressionless","grimacing","roll_eyes","hushed","frowning","anguished","open_mouth","astonished","sleeping","drooling_face","sleepy","dizzy_face","zipper_mouth_face","woozy","nauseated_face","vomiting","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","money_mouth_face","cowboy_hat_face","smiling_imp","imp","japanese_ogre","japanese_goblin","clown_face","poop","ghost","skull","skull_and_crossbones","alien","space_invader","robot","jack_o_lantern","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","palms_up","open_hands","raised_hands","clap","handshake","+1","-1","facepunch","fist","fist_left","fist_right","crossed_fingers","v","love_you","metal","ok_hand","point_left","point_right","point_up","point_down","point_up_2","raised_hand","raised_back_of_hand","raised_hand_with_fingers_splayed","vulcan_salute","wave","call_me_hand","muscle","fu","writing_hand","pray","foot","leg","ring","lipstick","kiss","lips","tooth","tongue","ear","nose","footprints","eye","eyes","brain","speaking_head","bust_in_silhouette","busts_in_silhouette","baby","girl","child","boy","woman","adult","man","blonde_woman","blonde_man","bearded_person","older_woman","older_adult","older_man","man_with_gua_pi_mao","woman_with_headscarf","woman_with_turban","man_with_turban","policewoman","policeman","construction_worker_woman","construction_worker_man","guardswoman","guardsman","female_detective","male_detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","bride_with_veil","man_in_tuxedo","princess","prince","woman_superhero","man_superhero","woman_supervillain","man_supervillain","mrs_claus","santa","sorceress","wizard","woman_elf","man_elf","woman_vampire","man_vampire","woman_zombie","man_zombie","woman_genie","man_genie","mermaid","merman","woman_fairy","man_fairy","angel","pregnant_woman","breastfeeding","bowing_woman","bowing_man","tipping_hand_woman","tipping_hand_man","no_good_woman","no_good_man","ok_woman","ok_man","raising_hand_woman","raising_hand_man","woman_facepalming","man_facepalming","woman_shrugging","man_shrugging","pouting_woman","pouting_man","frowning_woman","frowning_man","haircut_woman","haircut_man","massage_woman","massage_man","woman_in_steamy_room","man_in_steamy_room","nail_care","selfie","dancer","man_dancing","dancing_women","dancing_men","business_suit_levitating","walking_woman","walking_man","running_woman","running_man","couple","two_women_holding_hands","two_men_holding_hands","couple_with_heart_woman_man","couple_with_heart_woman_woman","couple_with_heart_man_man","couplekiss_man_woman","couplekiss_woman_woman","couplekiss_man_man","family_man_woman_boy","family_man_woman_girl","family_man_woman_girl_boy","family_man_woman_boy_boy","family_man_woman_girl_girl","family_woman_woman_boy","family_woman_woman_girl","family_woman_woman_girl_boy","family_woman_woman_boy_boy","family_woman_woman_girl_girl","family_man_man_boy","family_man_man_girl","family_man_man_girl_boy","family_man_man_boy_boy","family_man_man_girl_girl","family_woman_boy","family_woman_girl","family_woman_girl_boy","family_woman_boy_boy","family_woman_girl_girl","family_man_boy","family_man_girl","family_man_girl_boy","family_man_boy_boy","family_man_girl_girl","yarn","thread","coat","labcoat","womans_clothes","tshirt","jeans","necktie","dress","bikini","kimono","flat_shoe","high_heel","sandal","boot","mans_shoe","athletic_shoe","hiking_boot","socks","gloves","scarf","tophat","billed_hat","womans_hat","mortar_board","rescue_worker_helmet","crown","pouch","purse","handbag","briefcase","school_satchel","luggage","eyeglasses","dark_sunglasses","goggles","closed_umbrella","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","bat","wolf","boar","horse","unicorn","honeybee","bug","butterfly","snail","shell","beetle","ant","mosquito","grasshopper","spider","spider_web","scorpion","turtle","snake","lizard","t-rex","sauropod","octopus","squid","shrimp","lobster","crab","blowfish","tropical_fish","fish","dolphin","whale","whale2","shark","crocodile","tiger2","leopard","zebra","gorilla","elephant","hippopotamus","rhinoceros","dromedary_camel","giraffe","kangaroo","camel","water_buffalo","ox","cow2","racehorse","pig2","ram","sheep","llama","goat","deer","dog2","poodle","cat2","rooster","turkey","peacock","parrot","swan","dove","rabbit2","raccoon","badger","rat","mouse2","chipmunk","hedgehog","paw_prints","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","ear_of_rice","hibiscus","sunflower","rose","wilted_flower","tulip","blossom","cherry_blossom","bouquet","mushroom","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","crescent_moon","star","star2","dizzy","sparkles","comet","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","zap","fire","boom","snowflake","cloud_with_snow","snowman","snowman_with_snow","wind_face","dash","tornado","fog","open_umbrella","umbrella","droplet","sweat_drops","ocean","green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","mango","pineapple","coconut","kiwi_fruit","tomato","eggplant","avocado","broccoli","leafy_greens","cucumber","hot_pepper","corn","carrot","potato","sweet_potato","croissant","bagel","bread","baguette_bread","pretzel","cheese","egg","fried_egg","pancakes","bacon","steak","poultry_leg","meat_on_bone","bone","hotdog","hamburger","fries","pizza","sandwich","stuffed_flatbread","taco","burrito","green_salad","shallow_pan_of_food","canned_food","spaghetti","ramen","stew","curry","sushi","bento","fried_shrimp","rice_ball","rice","rice_cracker","fish_cake","fortune_cookie","moon_cake","oden","dango","shaved_ice","ice_cream","icecream","pie","cupcake","cake","birthday","custard","lollipop","candy","chocolate_bar","popcorn","doughnut","dumpling","cookie","chestnut","peanuts","honey_pot","milk_glass","baby_bottle","coffee","tea","cup_with_straw","sake","beer","beers","clinking_glasses","wine_glass","tumbler_glass","cocktail","tropical_drink","champagne","spoon","fork_and_knife","plate_with_cutlery","bowl_with_spoon","takeout_box","chopsticks","salt","soccer","basketball","football","baseball","softball","tennis","volleyball","rugby_football","flying_disc","8ball","golf","golfing_woman","golfing_man","ping_pong","badminton","goal_net","ice_hockey","field_hockey","lacrosse","cricket","ski","skier","snowboarder","person_fencing","women_wrestling","men_wrestling","woman_cartwheeling","man_cartwheeling","woman_playing_handball","man_playing_handball","ice_skate","curling_stone","skateboard","sled","bow_and_arrow","fishing_pole_and_fish","boxing_glove","martial_arts_uniform","rowing_woman","rowing_man","climbing_woman","climbing_man","swimming_woman","swimming_man","woman_playing_water_polo","man_playing_water_polo","woman_in_lotus_position","man_in_lotus_position","surfing_woman","surfing_man","basketball_woman","basketball_man","weight_lifting_woman","weight_lifting_man","biking_woman","biking_man","mountain_biking_woman","mountain_biking_man","horse_racing","trophy","running_shirt_with_sash","medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal","reminder_ribbon","rosette","ticket","tickets","performing_arts","art","circus_tent","woman_juggling","man_juggling","microphone","headphones","musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","clapper","video_game","dart","game_die","chess_pawn","slot_machine","jigsaw","bowling","red_car","taxi","blue_car","bus","trolleybus","racing_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","kick_scooter","motorcycle","bike","motor_scooter","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","monorail","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","metro","tram","station","flying_saucer","helicopter","small_airplane","airplane","flight_departure","flight_arrival","sailboat","motor_boat","speedboat","ferry","passenger_ship","rocket","artificial_satellite","seat","canoe","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","ship","ferris_wheel","roller_coaster","carousel_horse","building_construction","foggy","tokyo_tower","factory","fountain","rice_scene","mountain","mountain_snow","mount_fuji","volcano","japan","camping","tent","national_park","motorway","railway_track","sunrise","sunrise_over_mountains","desert","beach_umbrella","desert_island","city_sunrise","city_sunset","cityscape","night_with_stars","bridge_at_night","milky_way","stars","sparkler","fireworks","rainbow","houses","european_castle","japanese_castle","stadium","statue_of_liberty","house","house_with_garden","derelict_house","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine","watch","iphone","calling","computer","keyboard","desktop_computer","printer","computer_mouse","trackball","joystick","clamp","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_flash","video_camera","movie_camera","film_projector","film_strip","telephone_receiver","phone","pager","fax","tv","radio","studio_microphone","level_slider","control_knobs","compass","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","hourglass_flowing_sand","hourglass","satellite","battery","electric_plug","bulb","flashlight","candle","fire_extinguisher","wastebasket","oil_drum","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","balance_scale","toolbox","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","brick","chains","magnet","gun","bomb","firecracker","hocho","dagger","crossed_swords","shield","smoking","coffin","funeral_urn","amphora","crystal_ball","prayer_beads","nazar_amulet","barber","alembic","telescope","microscope","hole","pill","syringe","dna","microbe","petri_dish","test_tube","thermometer","broom","basket","toilet_paper","label","bookmark","toilet","shower","bathtub","bath","soap","sponge","lotion_bottle","key","old_key","couch_and_lamp","sleeping_bed","bed","door","bellhop_bell","teddy_bear","framed_picture","world_map","parasol_on_ground","moyai","shopping","shopping_cart","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","izakaya_lantern","red_envelope","email","envelope_with_arrow","incoming_envelope","e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","package","postal_horn","inbox_tray","outbox_tray","scroll","page_with_curl","bookmark_tabs","receipt","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","page_facing_up","date","calendar","spiral_calendar","card_index","card_file_box","ballot_box","file_cabinet","clipboard","spiral_notepad","file_folder","open_file_folder","card_index_dividers","newspaper_roll","newspaper","notebook","closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","ledger","books","open_book","safety_pin","link","paperclip","paperclips","scissors","triangular_ruler","straight_ruler","abacus","pushpin","round_pushpin","closed_lock_with_key","lock","unlock","lock_with_ink_pen","pen","fountain_pen","black_nib","memo","pencil2","crayon","paintbrush","mag","mag_right","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","black_heart","broken_heart","heavy_heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace_symbol","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom_symbol","u7a7a","u5272","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","accept","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","a","b","ab","cl","o2","sos","no_entry","name_badge","no_entry_sign","x","o","stop_sign","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","100","low_brightness","high_brightness","trident","fleur_de_lis","part_alternation_mark","warning","children_crossing","beginner","recycle","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","white_check_mark","diamond_shape_with_a_dot_inside","cyclone","loop","globe_with_meridians","m","atm","zzz","sa","passport_control","customs","baggage_claim","left_luggage","wheelchair","no_smoking","wc","parking","potable_water","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","asterisk","1234","eject_button","arrow_forward","pause_button","next_track_button","stop_button","record_button","play_or_pause_button","previous_track_button","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","hash","information_source","abc","abcd","capital_abcd","symbols","musical_note","notes","wavy_dash","curly_loop","heavy_check_mark","arrows_clockwise","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","infinity","heavy_dollar_sign","currency_exchange","copyright","registered","tm","end","back","on","top","soon","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","speaker","sound","loud_sound","mute","mega","loudspeaker","bell","no_bell","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","white_flag","black_flag","pirate_flag","checkered_flag","triangular_flag_on_post","rainbow_flag","united_nations","afghanistan","aland_islands","albania","algeria","american_samoa","andorra","angola","anguilla","antarctica","antigua_barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","caribbean_netherlands","bosnia_herzegovina","botswana","brazil","british_indian_ocean_territory","british_virgin_islands","brunei","bulgaria","burkina_faso","burundi","cape_verde","cambodia","cameroon","canada","canary_islands","cayman_islands","central_african_republic","chad","chile","cn","christmas_island","cocos_islands","colombia","comoros","congo_brazzaville","congo_kinshasa","cook_islands","costa_rica","croatia","cuba","curacao","cyprus","czech_republic","denmark","djibouti","dominica","dominican_republic","ecuador","egypt","el_salvador","equatorial_guinea","eritrea","estonia","ethiopia","eu","falkland_islands","faroe_islands","fiji","finland","fr","french_guiana","french_polynesia","french_southern_territories","gabon","gambia","georgia","de","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea_bissau","guyana","haiti","honduras","hong_kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle_of_man","israel","it","cote_divoire","jamaica","jp","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall_islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new_caledonia","new_zealand","nicaragua","niger","nigeria","niue","norfolk_island","northern_mariana_islands","north_korea","norway","oman","pakistan","palau","palestinian_territories","panama","papua_new_guinea","paraguay","peru","philippines","pitcairn_islands","poland","portugal","puerto_rico","qatar","reunion","romania","ru","rwanda","st_barthelemy","st_helena","st_kitts_nevis","st_lucia","st_pierre_miquelon","st_vincent_grenadines","samoa","san_marino","sao_tome_principe","saudi_arabia","senegal","serbia","seychelles","sierra_leone","singapore","sint_maarten","slovakia","slovenia","solomon_islands","somalia","south_africa","south_georgia_south_sandwich_islands","kr","south_sudan","es","sri_lanka","sudan","suriname","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor_leste","togo","tokelau","tonga","trinidad_tobago","tunisia","tr","turkmenistan","turks_caicos_islands","tuvalu","uganda","ukraine","united_arab_emirates","uk","england","scotland","wales","us","us_virgin_islands","uruguay","uzbekistan","vanuatu","vatican_city","venezuela","vietnam","wallis_futuna","western_sahara","yemen","zambia","zimbabwe"]')}}]); \ No newline at end of file diff --git a/website/assets/js/198.1d680d44.js.LICENSE.txt b/website/assets/js/198.1d680d44.js.LICENSE.txt new file mode 100644 index 000000000..7d11081c7 --- /dev/null +++ b/website/assets/js/198.1d680d44.js.LICENSE.txt @@ -0,0 +1,9 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/*! https://mths.be/codepointat v0.2.0 by @mathias */ + +/*! https://mths.be/fromcodepoint v0.2.1 by @mathias */ diff --git a/website/assets/js/1d80a4d6.6bfa3b3f.js b/website/assets/js/1d80a4d6.6bfa3b3f.js new file mode 100644 index 000000000..85a37e9aa --- /dev/null +++ b/website/assets/js/1d80a4d6.6bfa3b3f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5757],{5528:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>t,toc:()=>p});const t=JSON.parse('{"id":"api/type-aliases/LunaticExpression","title":"Type Alias: LunaticExpression","description":"LunaticExpression: VTLExpression \\\\| VTLScalarExpression","source":"@site/docs/api/type-aliases/LunaticExpression.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticExpression","permalink":"/Lunatic/docs/api/type-aliases/LunaticExpression","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticExpression.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticError","permalink":"/Lunatic/docs/api/type-aliases/LunaticError"},"next":{"title":"LunaticOptions","permalink":"/Lunatic/docs/api/type-aliases/LunaticOptions"}}');var i=s(4848),a=s(8453);const r={},c="Type Alias: LunaticExpression",o={},p=[{value:"Defined in",id:"defined-in",level:2}];function l(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"type-alias-lunaticexpression",children:"Type Alias: LunaticExpression"})}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"LunaticExpression"}),": ",(0,i.jsx)(n.code,{children:"VTLExpression"})," | ",(0,i.jsx)(n.code,{children:"VTLScalarExpression"})]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L61",children:"src/use-lunatic/type.ts:61"})})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>c});var t=s(6540);const i={},a=t.createContext(i);function r(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/1ec6518c.f8f76767.js b/website/assets/js/1ec6518c.f8f76767.js new file mode 100644 index 000000000..3820ae5af --- /dev/null +++ b/website/assets/js/1ec6518c.f8f76767.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[431],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>m});const r={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=t(7119),s=t(6487),a=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=t(7020),u=t(4848);const d={};function m(e){let{source:n,data:m=d,options:p}=e;const x=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:r.FormExample,children:[(0,u.jsxs)(o.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(m,null,2)})})]}),(0,u.jsxs)(o.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:r.FormExampleCode,children:x?c:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:r.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=x?t(5152).g:t(3314).S;return(0,u.jsx)(e,{source:n,data:m,options:p})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>s});var r=t(1999),o=t(4848);function s(e){let{source:n,data:t}=e;const{getComponents:s,Provider:a}=(0,r.O1)(n,t,{initialPage:"1"});return(0,o.jsx)(a,{children:(0,o.jsx)(r.R2,{components:s()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>a});var r=t(1999),o=t(6540),s=t(4848);function a(e){let{source:n,data:t,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:m,compileControls:p}=(0,r.O1)(n,t,{initialPage:"1",...a}),[x,g]=(0,o.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(m,{children:(0,s.jsx)(r.R2,{components:i(),componentProps:()=>({errors:x?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=p();e.currentErrors?g(e):d()},children:"Suivant"})]}),x&&(0,s.jsx)(r.I1,{errors:x.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:x.isCritical})]})}},8545:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>l,default:()=>p,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"components/fields/textarea","title":"Textarea","description":"Le composant Textarea permet d\'afficher un champ texte multiligne.","source":"@site/docs/components/fields/textarea.mdx","sourceDirName":"components/fields","slug":"/components/fields/textarea","permalink":"/Lunatic/docs/components/fields/textarea","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/textarea.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"InputNumber","permalink":"/Lunatic/docs/components/fields/input-number"},"next":{"title":"Datepicker","permalink":"/Lunatic/docs/components/fields/datepicker"}}');var o=t(4848),s=t(8453);const a=JSON.parse('{"components":[{"page":"1","id":"name","componentType":"Textarea","label":{"value":"\\"Label\\"","type":"VTL|MD"},"description":{"value":"\\"Description\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"response":{"name":"SOMETHING"}}],"variables":[{"variableType":"COLLECTED","name":"SOMETHING","componentRef":"name","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=t(4264);const c={},l="Textarea",u={},d=[];function m(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"textarea",children:"Textarea"})}),"\n",(0,o.jsxs)(n.p,{children:["Le composant ",(0,o.jsx)(n.strong,{children:"Textarea"})," permet d'afficher un champ texte multiligne."]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"maxLength"}),", permet de d\xe9finir la longueur maximale du texte (au niveau HTML seulement, un contr\xf4le est n\xe9cessaire si on souhaite valider la longueur)"]}),"\n"]}),"\n","\n",(0,o.jsx)(i.L,{source:a})]})}function p(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/1f391b9e.341a86ca.js b/website/assets/js/1f391b9e.341a86ca.js new file mode 100644 index 000000000..bd1f1087d --- /dev/null +++ b/website/assets/js/1f391b9e.341a86ca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6061],{2695:(e,a,s)=>{s.r(a),s.d(a,{default:()=>x});s(6540);var t=s(8215),d=s(3523),l=s(4717),r=s(3502),i=s(5872),c=s(7741),n=s(9144),o=s(3592);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var p=s(4848);function x(e){const{content:a}=e,{metadata:s,assets:x}=a,{title:g,editUrl:h,description:j,frontMatter:A,lastUpdatedBy:v,lastUpdatedAt:_}=s,{keywords:u,wrapperClassName:w,hide_table_of_contents:f}=A,N=x.image??A.image,k=!!(h||_||v);return(0,p.jsx)(d.e3,{className:(0,t.A)(w??l.G.wrapper.mdxPages,l.G.page.mdxPage),children:(0,p.jsxs)(r.A,{children:[(0,p.jsx)(d.be,{title:g,description:j,keywords:u,image:N}),(0,p.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,p.jsxs)("div",{className:(0,t.A)("row",m.mdxPageWrapper),children:[(0,p.jsxs)("div",{className:(0,t.A)("col",!f&&"col--8"),children:[(0,p.jsx)(n.A,{metadata:s}),(0,p.jsx)("article",{children:(0,p.jsx)(i.A,{children:(0,p.jsx)(a,{})})}),k&&(0,p.jsx)(o.A,{className:(0,t.A)("margin-top--sm",l.G.pages.pageFooterEditMetaRow),editUrl:h,lastUpdatedAt:_,lastUpdatedBy:v})]}),!f&&a.toc.length>0&&(0,p.jsx)("div",{className:"col col--2",children:(0,p.jsx)(c.A,{toc:a.toc,minHeadingLevel:A.toc_min_heading_level,maxHeadingLevel:A.toc_max_heading_level})})]})})]})})}}}]); \ No newline at end of file diff --git a/website/assets/js/2088de68.073f8aba.js b/website/assets/js/2088de68.073f8aba.js new file mode 100644 index 000000000..ba7ec0702 --- /dev/null +++ b/website/assets/js/2088de68.073f8aba.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1710],{7542:e=>{e.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"Fonctionnement interne","description":"Cette section d\xe9crit le fonctionnement interne de Lunatic","slug":"/category/fonctionnement-interne","permalink":"/Lunatic/docs/category/fonctionnement-interne","sidebar":"docs","navigation":{"previous":{"title":"VTL","permalink":"/Lunatic/docs/vtl"},"next":{"title":"\xc9tat & Reducer","permalink":"/Lunatic/docs/internal/reducer"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/2130.6c9f8cee.js b/website/assets/js/2130.6c9f8cee.js new file mode 100644 index 000000000..5152a01a9 --- /dev/null +++ b/website/assets/js/2130.6c9f8cee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2130],{2130:(e,t,r)=>{r.d(t,{default:()=>Ja});class a{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new a(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class n{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new n(t,a.range(this,e))}}class i{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,a,n="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;r=o.start,a=o.end,r===s.length?n+=" at end of input: ":n+=" at position "+(r+1)+": ";var l=s.slice(r,a).replace(/[^]/g,"$&\u0332");n+=(r>15?"\u2026"+s.slice(r-15,r):s.slice(0,r))+l+(a+15<s.length?s.slice(a,a+15)+"\u2026":s.slice(a))}var h=new Error(n);return h.name="ParseError",h.__proto__=i.prototype,h.position=r,null!=r&&null!=a&&(h.length=a-r),h.rawMessage=e,h}}i.prototype.__proto__=Error.prototype;var o=/([A-Z])/g,s={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;var h=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},m={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(l,(e=>s[e]))},hyphenate:function(e){return e.replace(o,"-$1").toLowerCase()},getBaseElem:h,isCharacterBox:function(e){var t=h(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},c={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function p(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class u{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},c)if(c.hasOwnProperty(t)){var r=c[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:p(r)}}reportNonstrict(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new i("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(n){a="error"}return!(!a||"ignore"===a)&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=m.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class d{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return g[f[this.id]]}sub(){return g[v[this.id]]}fracNum(){return g[b[this.id]]}fracDen(){return g[y[this.id]]}cramp(){return g[x[this.id]]}text(){return g[w[this.id]]}isTight(){return this.size>=2}}var g=[new d(0,0,!1),new d(1,0,!0),new d(2,1,!1),new d(3,1,!0),new d(4,2,!1),new d(5,2,!0),new d(6,3,!1),new d(7,3,!0)],f=[4,5,4,5,6,7,6,7],v=[5,5,5,5,7,7,7,7],b=[2,3,4,5,6,7,6,7],y=[3,3,5,5,7,7,7,7],x=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],k={DISPLAY:g[0],TEXT:g[2],SCRIPT:g[4],SCRIPTSCRIPT:g[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var M=[];function z(e){for(var t=0;t<M.length;t+=2)if(e>=M[t]&&e<=M[t+1])return!0;return!1}S.forEach((e=>e.blocks.forEach((e=>M.push(...e)))));var A=80,T={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class B{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return m.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map((e=>e.toText())).join("")}}var C={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},N={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},q={"\xc5":"A","\xd0":"D","\xde":"o","\xe5":"a","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function I(e,t,r){if(!C[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=C[t][a];if(!n&&e[0]in q&&(a=q[e[0]].charCodeAt(0),n=C[t][a]),n||"text"!==r||z(a)&&(n=C[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var R={};var H=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],O=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],E=function(e,t){return t.size<2?e:H[e-1][t.size-1]};class L{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||L.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=O[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new L(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:E(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:O[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=E(L.BASESIZE,e);return this.size===t&&this.textSize===L.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==L.BASESIZE?["sizing","reset-size"+this.size,"size"+L.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!R[t=e>=5?0:e>=3?1:2]){var r=R[t]={cssEmPerMu:N.quad[t]/18};for(var a in N)N.hasOwnProperty(a)&&(r[a]=N[a][t])}return R[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}L.BASESIZE=6;var D={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},V={ex:!0,em:!0,mu:!0},P=function(e){return"string"!=typeof e&&(e=e.unit),e in D||e in V||"ex"===e},F=function(e,t){var r;if(e.unit in D)r=D[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new i("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},G=function(e){return+e.toFixed(4)+"em"},U=function(e){return e.filter((e=>e)).join(" ")},Y=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},X=function(e){var t=document.createElement(e);for(var r in t.className=U(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t},W=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+m.escape(U(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=m.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+m.escape(r)+'"'),this.attributes)this.attributes.hasOwnProperty(n)&&(t+=" "+n+'="'+m.escape(this.attributes[n])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class _{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Y.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return m.contains(this.classes,e)}toNode(){return X.call(this,"span")}toMarkup(){return W.call(this,"span")}}class j{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Y.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return m.contains(this.classes,e)}toNode(){return X.call(this,"a")}toMarkup(){return W.call(this,"a")}}class ${constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return m.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+m.escape(this.src)+'" alt="'+m.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=m.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+m.escape(t)+'"'),e+="'/>"}}var Z={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"};class K{constructor(e,t,r,a,n,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=a||0,this.skew=n||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<S.length;t++)for(var r=S[t],a=0;a<r.blocks.length;a++){var n=r.blocks[a];if(e>=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Z[this.text])}hasClass(e){return m.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=G(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=U(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=m.escape(U(this.classes)),t+='"');var r="";for(var a in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=m.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+m.escape(r)+'"');var n=m.escape(this.text);return e?(t+=">",t+=n,t+="</span>"):n}}class J{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+m.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class Q{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",T[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+m.escape(this.alternate)+'"/>':'<path d="'+m.escape(T[this.pathName])+'"/>'}}class ee{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+m.escape(this.attributes[t])+'"');return e+="/>"}}function te(e){if(e instanceof K)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var re={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ae={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ne={math:{},text:{}};function ie(e,t,r,a,n,i){ne[e][n]={font:t,group:r,replace:a},i&&a&&(ne[e][a]=ne[e][n])}var oe="math",se="text",le="main",he="ams",me="accent-token",ce="bin",pe="close",ue="inner",de="mathord",ge="op-token",fe="open",ve="punct",be="rel",ye="spacing",xe="textord";ie(oe,le,be,"\u2261","\\equiv",!0),ie(oe,le,be,"\u227a","\\prec",!0),ie(oe,le,be,"\u227b","\\succ",!0),ie(oe,le,be,"\u223c","\\sim",!0),ie(oe,le,be,"\u22a5","\\perp"),ie(oe,le,be,"\u2aaf","\\preceq",!0),ie(oe,le,be,"\u2ab0","\\succeq",!0),ie(oe,le,be,"\u2243","\\simeq",!0),ie(oe,le,be,"\u2223","\\mid",!0),ie(oe,le,be,"\u226a","\\ll",!0),ie(oe,le,be,"\u226b","\\gg",!0),ie(oe,le,be,"\u224d","\\asymp",!0),ie(oe,le,be,"\u2225","\\parallel"),ie(oe,le,be,"\u22c8","\\bowtie",!0),ie(oe,le,be,"\u2323","\\smile",!0),ie(oe,le,be,"\u2291","\\sqsubseteq",!0),ie(oe,le,be,"\u2292","\\sqsupseteq",!0),ie(oe,le,be,"\u2250","\\doteq",!0),ie(oe,le,be,"\u2322","\\frown",!0),ie(oe,le,be,"\u220b","\\ni",!0),ie(oe,le,be,"\u221d","\\propto",!0),ie(oe,le,be,"\u22a2","\\vdash",!0),ie(oe,le,be,"\u22a3","\\dashv",!0),ie(oe,le,be,"\u220b","\\owns"),ie(oe,le,ve,".","\\ldotp"),ie(oe,le,ve,"\u22c5","\\cdotp"),ie(oe,le,xe,"#","\\#"),ie(se,le,xe,"#","\\#"),ie(oe,le,xe,"&","\\&"),ie(se,le,xe,"&","\\&"),ie(oe,le,xe,"\u2135","\\aleph",!0),ie(oe,le,xe,"\u2200","\\forall",!0),ie(oe,le,xe,"\u210f","\\hbar",!0),ie(oe,le,xe,"\u2203","\\exists",!0),ie(oe,le,xe,"\u2207","\\nabla",!0),ie(oe,le,xe,"\u266d","\\flat",!0),ie(oe,le,xe,"\u2113","\\ell",!0),ie(oe,le,xe,"\u266e","\\natural",!0),ie(oe,le,xe,"\u2663","\\clubsuit",!0),ie(oe,le,xe,"\u2118","\\wp",!0),ie(oe,le,xe,"\u266f","\\sharp",!0),ie(oe,le,xe,"\u2662","\\diamondsuit",!0),ie(oe,le,xe,"\u211c","\\Re",!0),ie(oe,le,xe,"\u2661","\\heartsuit",!0),ie(oe,le,xe,"\u2111","\\Im",!0),ie(oe,le,xe,"\u2660","\\spadesuit",!0),ie(oe,le,xe,"\xa7","\\S",!0),ie(se,le,xe,"\xa7","\\S"),ie(oe,le,xe,"\xb6","\\P",!0),ie(se,le,xe,"\xb6","\\P"),ie(oe,le,xe,"\u2020","\\dag"),ie(se,le,xe,"\u2020","\\dag"),ie(se,le,xe,"\u2020","\\textdagger"),ie(oe,le,xe,"\u2021","\\ddag"),ie(se,le,xe,"\u2021","\\ddag"),ie(se,le,xe,"\u2021","\\textdaggerdbl"),ie(oe,le,pe,"\u23b1","\\rmoustache",!0),ie(oe,le,fe,"\u23b0","\\lmoustache",!0),ie(oe,le,pe,"\u27ef","\\rgroup",!0),ie(oe,le,fe,"\u27ee","\\lgroup",!0),ie(oe,le,ce,"\u2213","\\mp",!0),ie(oe,le,ce,"\u2296","\\ominus",!0),ie(oe,le,ce,"\u228e","\\uplus",!0),ie(oe,le,ce,"\u2293","\\sqcap",!0),ie(oe,le,ce,"\u2217","\\ast"),ie(oe,le,ce,"\u2294","\\sqcup",!0),ie(oe,le,ce,"\u25ef","\\bigcirc",!0),ie(oe,le,ce,"\u2219","\\bullet",!0),ie(oe,le,ce,"\u2021","\\ddagger"),ie(oe,le,ce,"\u2240","\\wr",!0),ie(oe,le,ce,"\u2a3f","\\amalg"),ie(oe,le,ce,"&","\\And"),ie(oe,le,be,"\u27f5","\\longleftarrow",!0),ie(oe,le,be,"\u21d0","\\Leftarrow",!0),ie(oe,le,be,"\u27f8","\\Longleftarrow",!0),ie(oe,le,be,"\u27f6","\\longrightarrow",!0),ie(oe,le,be,"\u21d2","\\Rightarrow",!0),ie(oe,le,be,"\u27f9","\\Longrightarrow",!0),ie(oe,le,be,"\u2194","\\leftrightarrow",!0),ie(oe,le,be,"\u27f7","\\longleftrightarrow",!0),ie(oe,le,be,"\u21d4","\\Leftrightarrow",!0),ie(oe,le,be,"\u27fa","\\Longleftrightarrow",!0),ie(oe,le,be,"\u21a6","\\mapsto",!0),ie(oe,le,be,"\u27fc","\\longmapsto",!0),ie(oe,le,be,"\u2197","\\nearrow",!0),ie(oe,le,be,"\u21a9","\\hookleftarrow",!0),ie(oe,le,be,"\u21aa","\\hookrightarrow",!0),ie(oe,le,be,"\u2198","\\searrow",!0),ie(oe,le,be,"\u21bc","\\leftharpoonup",!0),ie(oe,le,be,"\u21c0","\\rightharpoonup",!0),ie(oe,le,be,"\u2199","\\swarrow",!0),ie(oe,le,be,"\u21bd","\\leftharpoondown",!0),ie(oe,le,be,"\u21c1","\\rightharpoondown",!0),ie(oe,le,be,"\u2196","\\nwarrow",!0),ie(oe,le,be,"\u21cc","\\rightleftharpoons",!0),ie(oe,he,be,"\u226e","\\nless",!0),ie(oe,he,be,"\ue010","\\@nleqslant"),ie(oe,he,be,"\ue011","\\@nleqq"),ie(oe,he,be,"\u2a87","\\lneq",!0),ie(oe,he,be,"\u2268","\\lneqq",!0),ie(oe,he,be,"\ue00c","\\@lvertneqq"),ie(oe,he,be,"\u22e6","\\lnsim",!0),ie(oe,he,be,"\u2a89","\\lnapprox",!0),ie(oe,he,be,"\u2280","\\nprec",!0),ie(oe,he,be,"\u22e0","\\npreceq",!0),ie(oe,he,be,"\u22e8","\\precnsim",!0),ie(oe,he,be,"\u2ab9","\\precnapprox",!0),ie(oe,he,be,"\u2241","\\nsim",!0),ie(oe,he,be,"\ue006","\\@nshortmid"),ie(oe,he,be,"\u2224","\\nmid",!0),ie(oe,he,be,"\u22ac","\\nvdash",!0),ie(oe,he,be,"\u22ad","\\nvDash",!0),ie(oe,he,be,"\u22ea","\\ntriangleleft"),ie(oe,he,be,"\u22ec","\\ntrianglelefteq",!0),ie(oe,he,be,"\u228a","\\subsetneq",!0),ie(oe,he,be,"\ue01a","\\@varsubsetneq"),ie(oe,he,be,"\u2acb","\\subsetneqq",!0),ie(oe,he,be,"\ue017","\\@varsubsetneqq"),ie(oe,he,be,"\u226f","\\ngtr",!0),ie(oe,he,be,"\ue00f","\\@ngeqslant"),ie(oe,he,be,"\ue00e","\\@ngeqq"),ie(oe,he,be,"\u2a88","\\gneq",!0),ie(oe,he,be,"\u2269","\\gneqq",!0),ie(oe,he,be,"\ue00d","\\@gvertneqq"),ie(oe,he,be,"\u22e7","\\gnsim",!0),ie(oe,he,be,"\u2a8a","\\gnapprox",!0),ie(oe,he,be,"\u2281","\\nsucc",!0),ie(oe,he,be,"\u22e1","\\nsucceq",!0),ie(oe,he,be,"\u22e9","\\succnsim",!0),ie(oe,he,be,"\u2aba","\\succnapprox",!0),ie(oe,he,be,"\u2246","\\ncong",!0),ie(oe,he,be,"\ue007","\\@nshortparallel"),ie(oe,he,be,"\u2226","\\nparallel",!0),ie(oe,he,be,"\u22af","\\nVDash",!0),ie(oe,he,be,"\u22eb","\\ntriangleright"),ie(oe,he,be,"\u22ed","\\ntrianglerighteq",!0),ie(oe,he,be,"\ue018","\\@nsupseteqq"),ie(oe,he,be,"\u228b","\\supsetneq",!0),ie(oe,he,be,"\ue01b","\\@varsupsetneq"),ie(oe,he,be,"\u2acc","\\supsetneqq",!0),ie(oe,he,be,"\ue019","\\@varsupsetneqq"),ie(oe,he,be,"\u22ae","\\nVdash",!0),ie(oe,he,be,"\u2ab5","\\precneqq",!0),ie(oe,he,be,"\u2ab6","\\succneqq",!0),ie(oe,he,be,"\ue016","\\@nsubseteqq"),ie(oe,he,ce,"\u22b4","\\unlhd"),ie(oe,he,ce,"\u22b5","\\unrhd"),ie(oe,he,be,"\u219a","\\nleftarrow",!0),ie(oe,he,be,"\u219b","\\nrightarrow",!0),ie(oe,he,be,"\u21cd","\\nLeftarrow",!0),ie(oe,he,be,"\u21cf","\\nRightarrow",!0),ie(oe,he,be,"\u21ae","\\nleftrightarrow",!0),ie(oe,he,be,"\u21ce","\\nLeftrightarrow",!0),ie(oe,he,be,"\u25b3","\\vartriangle"),ie(oe,he,xe,"\u210f","\\hslash"),ie(oe,he,xe,"\u25bd","\\triangledown"),ie(oe,he,xe,"\u25ca","\\lozenge"),ie(oe,he,xe,"\u24c8","\\circledS"),ie(oe,he,xe,"\xae","\\circledR"),ie(se,he,xe,"\xae","\\circledR"),ie(oe,he,xe,"\u2221","\\measuredangle",!0),ie(oe,he,xe,"\u2204","\\nexists"),ie(oe,he,xe,"\u2127","\\mho"),ie(oe,he,xe,"\u2132","\\Finv",!0),ie(oe,he,xe,"\u2141","\\Game",!0),ie(oe,he,xe,"\u2035","\\backprime"),ie(oe,he,xe,"\u25b2","\\blacktriangle"),ie(oe,he,xe,"\u25bc","\\blacktriangledown"),ie(oe,he,xe,"\u25a0","\\blacksquare"),ie(oe,he,xe,"\u29eb","\\blacklozenge"),ie(oe,he,xe,"\u2605","\\bigstar"),ie(oe,he,xe,"\u2222","\\sphericalangle",!0),ie(oe,he,xe,"\u2201","\\complement",!0),ie(oe,he,xe,"\xf0","\\eth",!0),ie(se,le,xe,"\xf0","\xf0"),ie(oe,he,xe,"\u2571","\\diagup"),ie(oe,he,xe,"\u2572","\\diagdown"),ie(oe,he,xe,"\u25a1","\\square"),ie(oe,he,xe,"\u25a1","\\Box"),ie(oe,he,xe,"\u25ca","\\Diamond"),ie(oe,he,xe,"\xa5","\\yen",!0),ie(se,he,xe,"\xa5","\\yen",!0),ie(oe,he,xe,"\u2713","\\checkmark",!0),ie(se,he,xe,"\u2713","\\checkmark"),ie(oe,he,xe,"\u2136","\\beth",!0),ie(oe,he,xe,"\u2138","\\daleth",!0),ie(oe,he,xe,"\u2137","\\gimel",!0),ie(oe,he,xe,"\u03dd","\\digamma",!0),ie(oe,he,xe,"\u03f0","\\varkappa"),ie(oe,he,fe,"\u250c","\\@ulcorner",!0),ie(oe,he,pe,"\u2510","\\@urcorner",!0),ie(oe,he,fe,"\u2514","\\@llcorner",!0),ie(oe,he,pe,"\u2518","\\@lrcorner",!0),ie(oe,he,be,"\u2266","\\leqq",!0),ie(oe,he,be,"\u2a7d","\\leqslant",!0),ie(oe,he,be,"\u2a95","\\eqslantless",!0),ie(oe,he,be,"\u2272","\\lesssim",!0),ie(oe,he,be,"\u2a85","\\lessapprox",!0),ie(oe,he,be,"\u224a","\\approxeq",!0),ie(oe,he,ce,"\u22d6","\\lessdot"),ie(oe,he,be,"\u22d8","\\lll",!0),ie(oe,he,be,"\u2276","\\lessgtr",!0),ie(oe,he,be,"\u22da","\\lesseqgtr",!0),ie(oe,he,be,"\u2a8b","\\lesseqqgtr",!0),ie(oe,he,be,"\u2251","\\doteqdot"),ie(oe,he,be,"\u2253","\\risingdotseq",!0),ie(oe,he,be,"\u2252","\\fallingdotseq",!0),ie(oe,he,be,"\u223d","\\backsim",!0),ie(oe,he,be,"\u22cd","\\backsimeq",!0),ie(oe,he,be,"\u2ac5","\\subseteqq",!0),ie(oe,he,be,"\u22d0","\\Subset",!0),ie(oe,he,be,"\u228f","\\sqsubset",!0),ie(oe,he,be,"\u227c","\\preccurlyeq",!0),ie(oe,he,be,"\u22de","\\curlyeqprec",!0),ie(oe,he,be,"\u227e","\\precsim",!0),ie(oe,he,be,"\u2ab7","\\precapprox",!0),ie(oe,he,be,"\u22b2","\\vartriangleleft"),ie(oe,he,be,"\u22b4","\\trianglelefteq"),ie(oe,he,be,"\u22a8","\\vDash",!0),ie(oe,he,be,"\u22aa","\\Vvdash",!0),ie(oe,he,be,"\u2323","\\smallsmile"),ie(oe,he,be,"\u2322","\\smallfrown"),ie(oe,he,be,"\u224f","\\bumpeq",!0),ie(oe,he,be,"\u224e","\\Bumpeq",!0),ie(oe,he,be,"\u2267","\\geqq",!0),ie(oe,he,be,"\u2a7e","\\geqslant",!0),ie(oe,he,be,"\u2a96","\\eqslantgtr",!0),ie(oe,he,be,"\u2273","\\gtrsim",!0),ie(oe,he,be,"\u2a86","\\gtrapprox",!0),ie(oe,he,ce,"\u22d7","\\gtrdot"),ie(oe,he,be,"\u22d9","\\ggg",!0),ie(oe,he,be,"\u2277","\\gtrless",!0),ie(oe,he,be,"\u22db","\\gtreqless",!0),ie(oe,he,be,"\u2a8c","\\gtreqqless",!0),ie(oe,he,be,"\u2256","\\eqcirc",!0),ie(oe,he,be,"\u2257","\\circeq",!0),ie(oe,he,be,"\u225c","\\triangleq",!0),ie(oe,he,be,"\u223c","\\thicksim"),ie(oe,he,be,"\u2248","\\thickapprox"),ie(oe,he,be,"\u2ac6","\\supseteqq",!0),ie(oe,he,be,"\u22d1","\\Supset",!0),ie(oe,he,be,"\u2290","\\sqsupset",!0),ie(oe,he,be,"\u227d","\\succcurlyeq",!0),ie(oe,he,be,"\u22df","\\curlyeqsucc",!0),ie(oe,he,be,"\u227f","\\succsim",!0),ie(oe,he,be,"\u2ab8","\\succapprox",!0),ie(oe,he,be,"\u22b3","\\vartriangleright"),ie(oe,he,be,"\u22b5","\\trianglerighteq"),ie(oe,he,be,"\u22a9","\\Vdash",!0),ie(oe,he,be,"\u2223","\\shortmid"),ie(oe,he,be,"\u2225","\\shortparallel"),ie(oe,he,be,"\u226c","\\between",!0),ie(oe,he,be,"\u22d4","\\pitchfork",!0),ie(oe,he,be,"\u221d","\\varpropto"),ie(oe,he,be,"\u25c0","\\blacktriangleleft"),ie(oe,he,be,"\u2234","\\therefore",!0),ie(oe,he,be,"\u220d","\\backepsilon"),ie(oe,he,be,"\u25b6","\\blacktriangleright"),ie(oe,he,be,"\u2235","\\because",!0),ie(oe,he,be,"\u22d8","\\llless"),ie(oe,he,be,"\u22d9","\\gggtr"),ie(oe,he,ce,"\u22b2","\\lhd"),ie(oe,he,ce,"\u22b3","\\rhd"),ie(oe,he,be,"\u2242","\\eqsim",!0),ie(oe,le,be,"\u22c8","\\Join"),ie(oe,he,be,"\u2251","\\Doteq",!0),ie(oe,he,ce,"\u2214","\\dotplus",!0),ie(oe,he,ce,"\u2216","\\smallsetminus"),ie(oe,he,ce,"\u22d2","\\Cap",!0),ie(oe,he,ce,"\u22d3","\\Cup",!0),ie(oe,he,ce,"\u2a5e","\\doublebarwedge",!0),ie(oe,he,ce,"\u229f","\\boxminus",!0),ie(oe,he,ce,"\u229e","\\boxplus",!0),ie(oe,he,ce,"\u22c7","\\divideontimes",!0),ie(oe,he,ce,"\u22c9","\\ltimes",!0),ie(oe,he,ce,"\u22ca","\\rtimes",!0),ie(oe,he,ce,"\u22cb","\\leftthreetimes",!0),ie(oe,he,ce,"\u22cc","\\rightthreetimes",!0),ie(oe,he,ce,"\u22cf","\\curlywedge",!0),ie(oe,he,ce,"\u22ce","\\curlyvee",!0),ie(oe,he,ce,"\u229d","\\circleddash",!0),ie(oe,he,ce,"\u229b","\\circledast",!0),ie(oe,he,ce,"\u22c5","\\centerdot"),ie(oe,he,ce,"\u22ba","\\intercal",!0),ie(oe,he,ce,"\u22d2","\\doublecap"),ie(oe,he,ce,"\u22d3","\\doublecup"),ie(oe,he,ce,"\u22a0","\\boxtimes",!0),ie(oe,he,be,"\u21e2","\\dashrightarrow",!0),ie(oe,he,be,"\u21e0","\\dashleftarrow",!0),ie(oe,he,be,"\u21c7","\\leftleftarrows",!0),ie(oe,he,be,"\u21c6","\\leftrightarrows",!0),ie(oe,he,be,"\u21da","\\Lleftarrow",!0),ie(oe,he,be,"\u219e","\\twoheadleftarrow",!0),ie(oe,he,be,"\u21a2","\\leftarrowtail",!0),ie(oe,he,be,"\u21ab","\\looparrowleft",!0),ie(oe,he,be,"\u21cb","\\leftrightharpoons",!0),ie(oe,he,be,"\u21b6","\\curvearrowleft",!0),ie(oe,he,be,"\u21ba","\\circlearrowleft",!0),ie(oe,he,be,"\u21b0","\\Lsh",!0),ie(oe,he,be,"\u21c8","\\upuparrows",!0),ie(oe,he,be,"\u21bf","\\upharpoonleft",!0),ie(oe,he,be,"\u21c3","\\downharpoonleft",!0),ie(oe,le,be,"\u22b6","\\origof",!0),ie(oe,le,be,"\u22b7","\\imageof",!0),ie(oe,he,be,"\u22b8","\\multimap",!0),ie(oe,he,be,"\u21ad","\\leftrightsquigarrow",!0),ie(oe,he,be,"\u21c9","\\rightrightarrows",!0),ie(oe,he,be,"\u21c4","\\rightleftarrows",!0),ie(oe,he,be,"\u21a0","\\twoheadrightarrow",!0),ie(oe,he,be,"\u21a3","\\rightarrowtail",!0),ie(oe,he,be,"\u21ac","\\looparrowright",!0),ie(oe,he,be,"\u21b7","\\curvearrowright",!0),ie(oe,he,be,"\u21bb","\\circlearrowright",!0),ie(oe,he,be,"\u21b1","\\Rsh",!0),ie(oe,he,be,"\u21ca","\\downdownarrows",!0),ie(oe,he,be,"\u21be","\\upharpoonright",!0),ie(oe,he,be,"\u21c2","\\downharpoonright",!0),ie(oe,he,be,"\u21dd","\\rightsquigarrow",!0),ie(oe,he,be,"\u21dd","\\leadsto"),ie(oe,he,be,"\u21db","\\Rrightarrow",!0),ie(oe,he,be,"\u21be","\\restriction"),ie(oe,le,xe,"\u2018","`"),ie(oe,le,xe,"$","\\$"),ie(se,le,xe,"$","\\$"),ie(se,le,xe,"$","\\textdollar"),ie(oe,le,xe,"%","\\%"),ie(se,le,xe,"%","\\%"),ie(oe,le,xe,"_","\\_"),ie(se,le,xe,"_","\\_"),ie(se,le,xe,"_","\\textunderscore"),ie(oe,le,xe,"\u2220","\\angle",!0),ie(oe,le,xe,"\u221e","\\infty",!0),ie(oe,le,xe,"\u2032","\\prime"),ie(oe,le,xe,"\u25b3","\\triangle"),ie(oe,le,xe,"\u0393","\\Gamma",!0),ie(oe,le,xe,"\u0394","\\Delta",!0),ie(oe,le,xe,"\u0398","\\Theta",!0),ie(oe,le,xe,"\u039b","\\Lambda",!0),ie(oe,le,xe,"\u039e","\\Xi",!0),ie(oe,le,xe,"\u03a0","\\Pi",!0),ie(oe,le,xe,"\u03a3","\\Sigma",!0),ie(oe,le,xe,"\u03a5","\\Upsilon",!0),ie(oe,le,xe,"\u03a6","\\Phi",!0),ie(oe,le,xe,"\u03a8","\\Psi",!0),ie(oe,le,xe,"\u03a9","\\Omega",!0),ie(oe,le,xe,"A","\u0391"),ie(oe,le,xe,"B","\u0392"),ie(oe,le,xe,"E","\u0395"),ie(oe,le,xe,"Z","\u0396"),ie(oe,le,xe,"H","\u0397"),ie(oe,le,xe,"I","\u0399"),ie(oe,le,xe,"K","\u039a"),ie(oe,le,xe,"M","\u039c"),ie(oe,le,xe,"N","\u039d"),ie(oe,le,xe,"O","\u039f"),ie(oe,le,xe,"P","\u03a1"),ie(oe,le,xe,"T","\u03a4"),ie(oe,le,xe,"X","\u03a7"),ie(oe,le,xe,"\xac","\\neg",!0),ie(oe,le,xe,"\xac","\\lnot"),ie(oe,le,xe,"\u22a4","\\top"),ie(oe,le,xe,"\u22a5","\\bot"),ie(oe,le,xe,"\u2205","\\emptyset"),ie(oe,he,xe,"\u2205","\\varnothing"),ie(oe,le,de,"\u03b1","\\alpha",!0),ie(oe,le,de,"\u03b2","\\beta",!0),ie(oe,le,de,"\u03b3","\\gamma",!0),ie(oe,le,de,"\u03b4","\\delta",!0),ie(oe,le,de,"\u03f5","\\epsilon",!0),ie(oe,le,de,"\u03b6","\\zeta",!0),ie(oe,le,de,"\u03b7","\\eta",!0),ie(oe,le,de,"\u03b8","\\theta",!0),ie(oe,le,de,"\u03b9","\\iota",!0),ie(oe,le,de,"\u03ba","\\kappa",!0),ie(oe,le,de,"\u03bb","\\lambda",!0),ie(oe,le,de,"\u03bc","\\mu",!0),ie(oe,le,de,"\u03bd","\\nu",!0),ie(oe,le,de,"\u03be","\\xi",!0),ie(oe,le,de,"\u03bf","\\omicron",!0),ie(oe,le,de,"\u03c0","\\pi",!0),ie(oe,le,de,"\u03c1","\\rho",!0),ie(oe,le,de,"\u03c3","\\sigma",!0),ie(oe,le,de,"\u03c4","\\tau",!0),ie(oe,le,de,"\u03c5","\\upsilon",!0),ie(oe,le,de,"\u03d5","\\phi",!0),ie(oe,le,de,"\u03c7","\\chi",!0),ie(oe,le,de,"\u03c8","\\psi",!0),ie(oe,le,de,"\u03c9","\\omega",!0),ie(oe,le,de,"\u03b5","\\varepsilon",!0),ie(oe,le,de,"\u03d1","\\vartheta",!0),ie(oe,le,de,"\u03d6","\\varpi",!0),ie(oe,le,de,"\u03f1","\\varrho",!0),ie(oe,le,de,"\u03c2","\\varsigma",!0),ie(oe,le,de,"\u03c6","\\varphi",!0),ie(oe,le,ce,"\u2217","*",!0),ie(oe,le,ce,"+","+"),ie(oe,le,ce,"\u2212","-",!0),ie(oe,le,ce,"\u22c5","\\cdot",!0),ie(oe,le,ce,"\u2218","\\circ",!0),ie(oe,le,ce,"\xf7","\\div",!0),ie(oe,le,ce,"\xb1","\\pm",!0),ie(oe,le,ce,"\xd7","\\times",!0),ie(oe,le,ce,"\u2229","\\cap",!0),ie(oe,le,ce,"\u222a","\\cup",!0),ie(oe,le,ce,"\u2216","\\setminus",!0),ie(oe,le,ce,"\u2227","\\land"),ie(oe,le,ce,"\u2228","\\lor"),ie(oe,le,ce,"\u2227","\\wedge",!0),ie(oe,le,ce,"\u2228","\\vee",!0),ie(oe,le,xe,"\u221a","\\surd"),ie(oe,le,fe,"\u27e8","\\langle",!0),ie(oe,le,fe,"\u2223","\\lvert"),ie(oe,le,fe,"\u2225","\\lVert"),ie(oe,le,pe,"?","?"),ie(oe,le,pe,"!","!"),ie(oe,le,pe,"\u27e9","\\rangle",!0),ie(oe,le,pe,"\u2223","\\rvert"),ie(oe,le,pe,"\u2225","\\rVert"),ie(oe,le,be,"=","="),ie(oe,le,be,":",":"),ie(oe,le,be,"\u2248","\\approx",!0),ie(oe,le,be,"\u2245","\\cong",!0),ie(oe,le,be,"\u2265","\\ge"),ie(oe,le,be,"\u2265","\\geq",!0),ie(oe,le,be,"\u2190","\\gets"),ie(oe,le,be,">","\\gt",!0),ie(oe,le,be,"\u2208","\\in",!0),ie(oe,le,be,"\ue020","\\@not"),ie(oe,le,be,"\u2282","\\subset",!0),ie(oe,le,be,"\u2283","\\supset",!0),ie(oe,le,be,"\u2286","\\subseteq",!0),ie(oe,le,be,"\u2287","\\supseteq",!0),ie(oe,he,be,"\u2288","\\nsubseteq",!0),ie(oe,he,be,"\u2289","\\nsupseteq",!0),ie(oe,le,be,"\u22a8","\\models"),ie(oe,le,be,"\u2190","\\leftarrow",!0),ie(oe,le,be,"\u2264","\\le"),ie(oe,le,be,"\u2264","\\leq",!0),ie(oe,le,be,"<","\\lt",!0),ie(oe,le,be,"\u2192","\\rightarrow",!0),ie(oe,le,be,"\u2192","\\to"),ie(oe,he,be,"\u2271","\\ngeq",!0),ie(oe,he,be,"\u2270","\\nleq",!0),ie(oe,le,ye,"\xa0","\\ "),ie(oe,le,ye,"\xa0","\\space"),ie(oe,le,ye,"\xa0","\\nobreakspace"),ie(se,le,ye,"\xa0","\\ "),ie(se,le,ye,"\xa0"," "),ie(se,le,ye,"\xa0","\\space"),ie(se,le,ye,"\xa0","\\nobreakspace"),ie(oe,le,ye,null,"\\nobreak"),ie(oe,le,ye,null,"\\allowbreak"),ie(oe,le,ve,",",","),ie(oe,le,ve,";",";"),ie(oe,he,ce,"\u22bc","\\barwedge",!0),ie(oe,he,ce,"\u22bb","\\veebar",!0),ie(oe,le,ce,"\u2299","\\odot",!0),ie(oe,le,ce,"\u2295","\\oplus",!0),ie(oe,le,ce,"\u2297","\\otimes",!0),ie(oe,le,xe,"\u2202","\\partial",!0),ie(oe,le,ce,"\u2298","\\oslash",!0),ie(oe,he,ce,"\u229a","\\circledcirc",!0),ie(oe,he,ce,"\u22a1","\\boxdot",!0),ie(oe,le,ce,"\u25b3","\\bigtriangleup"),ie(oe,le,ce,"\u25bd","\\bigtriangledown"),ie(oe,le,ce,"\u2020","\\dagger"),ie(oe,le,ce,"\u22c4","\\diamond"),ie(oe,le,ce,"\u22c6","\\star"),ie(oe,le,ce,"\u25c3","\\triangleleft"),ie(oe,le,ce,"\u25b9","\\triangleright"),ie(oe,le,fe,"{","\\{"),ie(se,le,xe,"{","\\{"),ie(se,le,xe,"{","\\textbraceleft"),ie(oe,le,pe,"}","\\}"),ie(se,le,xe,"}","\\}"),ie(se,le,xe,"}","\\textbraceright"),ie(oe,le,fe,"{","\\lbrace"),ie(oe,le,pe,"}","\\rbrace"),ie(oe,le,fe,"[","\\lbrack",!0),ie(se,le,xe,"[","\\lbrack",!0),ie(oe,le,pe,"]","\\rbrack",!0),ie(se,le,xe,"]","\\rbrack",!0),ie(oe,le,fe,"(","\\lparen",!0),ie(oe,le,pe,")","\\rparen",!0),ie(se,le,xe,"<","\\textless",!0),ie(se,le,xe,">","\\textgreater",!0),ie(oe,le,fe,"\u230a","\\lfloor",!0),ie(oe,le,pe,"\u230b","\\rfloor",!0),ie(oe,le,fe,"\u2308","\\lceil",!0),ie(oe,le,pe,"\u2309","\\rceil",!0),ie(oe,le,xe,"\\","\\backslash"),ie(oe,le,xe,"\u2223","|"),ie(oe,le,xe,"\u2223","\\vert"),ie(se,le,xe,"|","\\textbar",!0),ie(oe,le,xe,"\u2225","\\|"),ie(oe,le,xe,"\u2225","\\Vert"),ie(se,le,xe,"\u2225","\\textbardbl"),ie(se,le,xe,"~","\\textasciitilde"),ie(se,le,xe,"\\","\\textbackslash"),ie(se,le,xe,"^","\\textasciicircum"),ie(oe,le,be,"\u2191","\\uparrow",!0),ie(oe,le,be,"\u21d1","\\Uparrow",!0),ie(oe,le,be,"\u2193","\\downarrow",!0),ie(oe,le,be,"\u21d3","\\Downarrow",!0),ie(oe,le,be,"\u2195","\\updownarrow",!0),ie(oe,le,be,"\u21d5","\\Updownarrow",!0),ie(oe,le,ge,"\u2210","\\coprod"),ie(oe,le,ge,"\u22c1","\\bigvee"),ie(oe,le,ge,"\u22c0","\\bigwedge"),ie(oe,le,ge,"\u2a04","\\biguplus"),ie(oe,le,ge,"\u22c2","\\bigcap"),ie(oe,le,ge,"\u22c3","\\bigcup"),ie(oe,le,ge,"\u222b","\\int"),ie(oe,le,ge,"\u222b","\\intop"),ie(oe,le,ge,"\u222c","\\iint"),ie(oe,le,ge,"\u222d","\\iiint"),ie(oe,le,ge,"\u220f","\\prod"),ie(oe,le,ge,"\u2211","\\sum"),ie(oe,le,ge,"\u2a02","\\bigotimes"),ie(oe,le,ge,"\u2a01","\\bigoplus"),ie(oe,le,ge,"\u2a00","\\bigodot"),ie(oe,le,ge,"\u222e","\\oint"),ie(oe,le,ge,"\u222f","\\oiint"),ie(oe,le,ge,"\u2230","\\oiiint"),ie(oe,le,ge,"\u2a06","\\bigsqcup"),ie(oe,le,ge,"\u222b","\\smallint"),ie(se,le,ue,"\u2026","\\textellipsis"),ie(oe,le,ue,"\u2026","\\mathellipsis"),ie(se,le,ue,"\u2026","\\ldots",!0),ie(oe,le,ue,"\u2026","\\ldots",!0),ie(oe,le,ue,"\u22ef","\\@cdots",!0),ie(oe,le,ue,"\u22f1","\\ddots",!0),ie(oe,le,xe,"\u22ee","\\varvdots"),ie(oe,le,me,"\u02ca","\\acute"),ie(oe,le,me,"\u02cb","\\grave"),ie(oe,le,me,"\xa8","\\ddot"),ie(oe,le,me,"~","\\tilde"),ie(oe,le,me,"\u02c9","\\bar"),ie(oe,le,me,"\u02d8","\\breve"),ie(oe,le,me,"\u02c7","\\check"),ie(oe,le,me,"^","\\hat"),ie(oe,le,me,"\u20d7","\\vec"),ie(oe,le,me,"\u02d9","\\dot"),ie(oe,le,me,"\u02da","\\mathring"),ie(oe,le,de,"\ue131","\\@imath"),ie(oe,le,de,"\ue237","\\@jmath"),ie(oe,le,xe,"\u0131","\u0131"),ie(oe,le,xe,"\u0237","\u0237"),ie(se,le,xe,"\u0131","\\i",!0),ie(se,le,xe,"\u0237","\\j",!0),ie(se,le,xe,"\xdf","\\ss",!0),ie(se,le,xe,"\xe6","\\ae",!0),ie(se,le,xe,"\u0153","\\oe",!0),ie(se,le,xe,"\xf8","\\o",!0),ie(se,le,xe,"\xc6","\\AE",!0),ie(se,le,xe,"\u0152","\\OE",!0),ie(se,le,xe,"\xd8","\\O",!0),ie(se,le,me,"\u02ca","\\'"),ie(se,le,me,"\u02cb","\\`"),ie(se,le,me,"\u02c6","\\^"),ie(se,le,me,"\u02dc","\\~"),ie(se,le,me,"\u02c9","\\="),ie(se,le,me,"\u02d8","\\u"),ie(se,le,me,"\u02d9","\\."),ie(se,le,me,"\xb8","\\c"),ie(se,le,me,"\u02da","\\r"),ie(se,le,me,"\u02c7","\\v"),ie(se,le,me,"\xa8",'\\"'),ie(se,le,me,"\u02dd","\\H"),ie(se,le,me,"\u25ef","\\textcircled");var we={"--":!0,"---":!0,"``":!0,"''":!0};ie(se,le,xe,"\u2013","--",!0),ie(se,le,xe,"\u2013","\\textendash"),ie(se,le,xe,"\u2014","---",!0),ie(se,le,xe,"\u2014","\\textemdash"),ie(se,le,xe,"\u2018","`",!0),ie(se,le,xe,"\u2018","\\textquoteleft"),ie(se,le,xe,"\u2019","'",!0),ie(se,le,xe,"\u2019","\\textquoteright"),ie(se,le,xe,"\u201c","``",!0),ie(se,le,xe,"\u201c","\\textquotedblleft"),ie(se,le,xe,"\u201d","''",!0),ie(se,le,xe,"\u201d","\\textquotedblright"),ie(oe,le,xe,"\xb0","\\degree",!0),ie(se,le,xe,"\xb0","\\degree"),ie(se,le,xe,"\xb0","\\textdegree",!0),ie(oe,le,xe,"\xa3","\\pounds"),ie(oe,le,xe,"\xa3","\\mathsterling",!0),ie(se,le,xe,"\xa3","\\pounds"),ie(se,le,xe,"\xa3","\\textsterling",!0),ie(oe,he,xe,"\u2720","\\maltese"),ie(se,he,xe,"\u2720","\\maltese");for(var ke='0123456789/@."',Se=0;Se<14;Se++){var Me=ke.charAt(Se);ie(oe,le,xe,Me,Me)}for(var ze='0123456789!@*()-=+";:?/.,',Ae=0;Ae<25;Ae++){var Te=ze.charAt(Ae);ie(se,le,xe,Te,Te)}for(var Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ce=0;Ce<52;Ce++){var Ne=Be.charAt(Ce);ie(oe,le,de,Ne,Ne),ie(se,le,xe,Ne,Ne)}ie(oe,he,xe,"C","\u2102"),ie(se,he,xe,"C","\u2102"),ie(oe,he,xe,"H","\u210d"),ie(se,he,xe,"H","\u210d"),ie(oe,he,xe,"N","\u2115"),ie(se,he,xe,"N","\u2115"),ie(oe,he,xe,"P","\u2119"),ie(se,he,xe,"P","\u2119"),ie(oe,he,xe,"Q","\u211a"),ie(se,he,xe,"Q","\u211a"),ie(oe,he,xe,"R","\u211d"),ie(se,he,xe,"R","\u211d"),ie(oe,he,xe,"Z","\u2124"),ie(se,he,xe,"Z","\u2124"),ie(oe,le,de,"h","\u210e"),ie(se,le,de,"h","\u210e");for(var qe="",Ie=0;Ie<52;Ie++){var Re=Be.charAt(Ie);ie(oe,le,de,Re,qe=String.fromCharCode(55349,56320+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56372+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56424+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56580+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56684+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56736+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56788+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56840+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56944+Ie)),ie(se,le,xe,Re,qe),Ie<26&&(ie(oe,le,de,Re,qe=String.fromCharCode(55349,56632+Ie)),ie(se,le,xe,Re,qe),ie(oe,le,de,Re,qe=String.fromCharCode(55349,56476+Ie)),ie(se,le,xe,Re,qe))}ie(oe,le,de,"k",qe=String.fromCharCode(55349,56668)),ie(se,le,xe,"k",qe);for(var He=0;He<10;He++){var Oe=He.toString();ie(oe,le,de,Oe,qe=String.fromCharCode(55349,57294+He)),ie(se,le,xe,Oe,qe),ie(oe,le,de,Oe,qe=String.fromCharCode(55349,57314+He)),ie(se,le,xe,Oe,qe),ie(oe,le,de,Oe,qe=String.fromCharCode(55349,57324+He)),ie(se,le,xe,Oe,qe),ie(oe,le,de,Oe,qe=String.fromCharCode(55349,57334+He)),ie(se,le,xe,Oe,qe)}for(var Ee="\xd0\xde\xfe",Le=0;Le<3;Le++){var De=Ee.charAt(Le);ie(oe,le,de,De,De),ie(se,le,xe,De,De)}var Ve=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Pe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Fe=function(e,t,r){return ne[r][e]&&ne[r][e].replace&&(e=ne[r][e].replace),{value:e,metrics:I(e,t,r)}},Ge=function(e,t,r,a,n){var i,o=Fe(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||a&&"mathit"===a.font)&&(l=0),i=new K(e,s.height,s.depth,l,s.skew,s.width,n)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new K(e,0,0,0,0,0,n);if(a){i.maxFontSize=a.sizeMultiplier,a.style.isTight()&&i.classes.push("mtight");var h=a.getColor();h&&(i.style.color=h)}return i},Ue=(e,t)=>{if(U(e.classes)!==U(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},Ye=function(e){for(var t=0,r=0,a=0,n=0;n<e.children.length;n++){var i=e.children[n];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},Xe=function(e,t,r,a){var n=new _(e,t,r,a);return Ye(n),n},We=(e,t,r,a)=>new _(e,t,r,a),_e=function(e){var t=new B(e);return Ye(t),t},je=function(e,t,r){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return a+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},$e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ze={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ke={fontMap:$e,makeSymbol:Ge,mathsym:function(e,t,r,a){return void 0===a&&(a=[]),"boldsymbol"===r.font&&Fe(e,"Main-Bold",t).metrics?Ge(e,"Main-Bold",t,r,a.concat(["mathbf"])):"\\"===e||"main"===ne[t][e].font?Ge(e,"Main-Regular",t,r,a):Ge(e,"AMS-Regular",t,r,a.concat(["amsrm"]))},makeSpan:Xe,makeSvgSpan:We,makeLineSpan:function(e,t,r){var a=Xe([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=G(a.height),a.maxFontSize=1,a},makeAnchor:function(e,t,r,a){var n=new j(e,t,r,a);return Ye(n),n},makeFragment:_e,wrapFragment:function(e,t){return e instanceof B?Xe([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:a}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,i=1;i<t.length;i++){var o=-t[i].shift-n-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);n+=o,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:a}}var l;if("top"===e.positionType){for(var h=e.positionData,m=0;m<e.children.length;m++){var c=e.children[m];h-="kern"===c.type?c.size:c.elem.height+c.elem.depth}l=h}else if("bottom"===e.positionType)l=-e.positionData;else{var p=e.children[0];if("elem"!==p.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-p.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-p.elem.depth}}return{children:e.children,depth:l}}(e),n=0,i=0;i<r.length;i++){var o=r[i];if("elem"===o.type){var s=o.elem;n=Math.max(n,s.maxFontSize,s.height)}}n+=2;var l=Xe(["pstrut"],[]);l.style.height=G(n);for(var h=[],m=a,c=a,p=a,u=0;u<r.length;u++){var d=r[u];if("kern"===d.type)p+=d.size;else{var g=d.elem,f=d.wrapperClasses||[],v=d.wrapperStyle||{},b=Xe(f,[l,g],void 0,v);b.style.top=G(-n-p-g.depth),d.marginLeft&&(b.style.marginLeft=d.marginLeft),d.marginRight&&(b.style.marginRight=d.marginRight),h.push(b),p+=g.height+g.depth}m=Math.min(m,p),c=Math.max(c,p)}var y,x=Xe(["vlist"],h);if(x.style.height=G(c),m<0){var w=Xe([],[]),k=Xe(["vlist"],[w]);k.style.height=G(-m);var S=Xe(["vlist-s"],[new K("\u200b")]);y=[Xe(["vlist-r"],[x,S]),Xe(["vlist-r"],[k])]}else y=[Xe(["vlist-r"],[x])];var M=Xe(["vlist-t"],y);return 2===y.length&&M.classes.push("vlist-t2"),M.height=c,M.depth=-m,M},makeOrd:function(e,t,r){var a=e.mode,n=e.text,o=["mord"],s="math"===a||"text"===a&&t.font,l=s?t.font:t.fontFamily,h="",m="";if(55349===n.charCodeAt(0)&&([h,m]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,a="math"===t?0:1;if(119808<=r&&r<120484){var n=Math.floor((r-119808)/26);return[Ve[n][2],Ve[n][a]]}if(120782<=r&&r<=120831){var o=Math.floor((r-120782)/10);return[Pe[o][2],Pe[o][a]]}if(120485===r||120486===r)return[Ve[0][2],Ve[0][a]];if(120486<r&&r<120782)return["",""];throw new i("Unsupported character: "+e)}(n,a)),h.length>0)return Ge(n,h,a,t,o.concat(m));if(l){var c,p;if("boldsymbol"===l){var u=function(e,t,r,a,n){return"textord"!==n&&Fe(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(n,a,0,0,r);c=u.fontName,p=[u.fontClass]}else s?(c=$e[l].fontName,p=[l]):(c=je(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Fe(n,c,a).metrics)return Ge(n,c,a,t,o.concat(p));if(we.hasOwnProperty(n)&&"Typewriter"===c.slice(0,10)){for(var d=[],g=0;g<n.length;g++)d.push(Ge(n[g],c,a,t,o.concat(p)));return _e(d)}}if("mathord"===r)return Ge(n,"Math-Italic",a,t,o.concat(["mathnormal"]));if("textord"===r){var f=ne[a][n]&&ne[a][n].font;if("ams"===f){var v=je("amsrm",t.fontWeight,t.fontShape);return Ge(n,v,a,t,o.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==f&&f){var b=je(f,t.fontWeight,t.fontShape);return Ge(n,b,a,t,o.concat(b,t.fontWeight,t.fontShape))}var y=je("textrm",t.fontWeight,t.fontShape);return Ge(n,y,a,t,o.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=Xe(["mspace"],[],t),a=F(e,t);return r.style.marginRight=G(a),r},staticSvg:function(e,t){var[r,a,n]=Ze[e],i=new Q(r),o=new J([i],{width:G(a),height:G(n),style:"width:"+G(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),s=We(["overlay"],[o],t);return s.height=n,s.style.height=G(n),s.style.width=G(a),s},svgData:Ze,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],a=e[t+1];r instanceof K&&a instanceof K&&Ue(r,a)&&(r.text+=a.text,r.height=Math.max(r.height,a.height),r.depth=Math.max(r.depth,a.depth),r.italic=a.italic,e.splice(t+1,1),t--)}return e}},Je={number:3,unit:"mu"},Qe={number:4,unit:"mu"},et={number:5,unit:"mu"},tt={mord:{mop:Je,mbin:Qe,mrel:et,minner:Je},mop:{mord:Je,mop:Je,mrel:et,minner:Je},mbin:{mord:Qe,mop:Qe,mopen:Qe,minner:Qe},mrel:{mord:et,mop:et,mopen:et,minner:et},mopen:{},mclose:{mop:Je,mbin:Qe,mrel:et,minner:Je},mpunct:{mord:Je,mop:Je,mrel:et,mopen:Je,mclose:Je,mpunct:Je,minner:Je},minner:{mord:Je,mop:Je,mbin:Qe,mrel:et,mopen:Je,mpunct:Je,minner:Je}},rt={mord:{mop:Je},mop:{mord:Je,mop:Je},mbin:{},mrel:{},mopen:{},mclose:{mop:Je},mpunct:{},minner:{mop:Je}},at={},nt={},it={};function ot(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:void 0===a.allowedInMath||a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},l=0;l<r.length;++l)at[r[l]]=s;t&&(i&&(nt[t]=i),o&&(it[t]=o))}function st(e){var{type:t,htmlBuilder:r,mathmlBuilder:a}=e;ot({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:a})}var lt=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},ht=function(e){return"ordgroup"===e.type?e.body:[e]},mt=Ke.makeSpan,ct=["leftmost","mbin","mopen","mrel","mop","mpunct"],pt=["rightmost","mrel","mclose","mpunct"],ut={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT},dt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},gt=function(e,t,r,a){void 0===a&&(a=[null,null]);for(var n=[],i=0;i<e.length;i++){var o=wt(e[i],t);if(o instanceof B){var s=o.children;n.push(...s)}else n.push(o)}if(Ke.tryCombineChars(n),!r)return n;var l=t;if(1===e.length){var h=e[0];"sizing"===h.type?l=t.havingSize(h.size):"styling"===h.type&&(l=t.havingStyle(ut[h.style]))}var c=mt([a[0]||"leftmost"],[],t),p=mt([a[1]||"rightmost"],[],t),u="root"===r;return ft(n,((e,t)=>{var r=t.classes[0],a=e.classes[0];"mbin"===r&&m.contains(pt,a)?t.classes[0]="mord":"mbin"===a&&m.contains(ct,r)&&(e.classes[0]="mord")}),{node:c},p,u),ft(n,((e,t)=>{var r=yt(t),a=yt(e),n=r&&a?e.hasClass("mtight")?rt[r][a]:tt[r][a]:null;if(n)return Ke.makeGlue(n,l)}),{node:c},p,u),n},ft=function e(t,r,a,n,i){n&&t.push(n);for(var o=0;o<t.length;o++){var s=t[o],l=vt(s);if(l)e(l.children,r,a,null,i);else{var h=!s.hasClass("mspace");if(h){var m=r(s,a.node);m&&(a.insertAfter?a.insertAfter(m):(t.unshift(m),o++))}h?a.node=s:i&&s.hasClass("newline")&&(a.node=mt(["leftmost"])),a.insertAfter=(e=>r=>{t.splice(e+1,0,r),o++})(o)}}n&&t.pop()},vt=function(e){return e instanceof B||e instanceof j||e instanceof _&&e.hasClass("enclosing")?e:null},bt=function e(t,r){var a=vt(t);if(a){var n=a.children;if(n.length){if("right"===r)return e(n[n.length-1],"right");if("left"===r)return e(n[0],"left")}}return t},yt=function(e,t){return e?(t&&(e=bt(e,t)),dt[e.classes[0]]||null):null},xt=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return mt(t.concat(r))},wt=function(e,t,r){if(!e)return mt();if(nt[e.type]){var a=nt[e.type](e,t);if(r&&t.size!==r.size){a=mt(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}throw new i("Got group of unknown type: '"+e.type+"'")};function kt(e,t){var r=mt(["base"],e,t),a=mt(["strut"]);return a.style.height=G(r.height+r.depth),r.depth&&(a.style.verticalAlign=G(-r.depth)),r.children.unshift(a),r}function St(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var a,n=gt(e,t,"root");2===n.length&&n[1].hasClass("tag")&&(a=n.pop());for(var i,o=[],s=[],l=0;l<n.length;l++)if(s.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var h=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,s.push(n[l]),n[l].hasClass("nobreak")&&(h=!0);h||(o.push(kt(s,t)),s=[])}else n[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(kt(s,t)),s=[]),o.push(n[l]));s.length>0&&o.push(kt(s,t)),r?((i=kt(gt(r,t,!0))).classes=["tag"],o.push(i)):a&&o.push(a);var m=mt(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=G(m.height+m.depth),m.depth&&(c.style.verticalAlign=G(-m.depth))}return m}function Mt(e){return new B(e)}class zt{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=U(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=m.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+m.escape(U(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map((e=>e.toText())).join("")}}class At{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return m.escape(this.toText())}toText(){return this.text}}var Tt={MathNode:zt,TextNode:At,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",G(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+G(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:Mt},Bt=function(e,t,r){return!ne[t][e]||!ne[t][e].replace||55349===e.charCodeAt(0)||we.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=ne[t][e].replace),new Tt.TextNode(e)},Ct=function(e){return 1===e.length?e[0]:new Tt.MathNode("mrow",e)},Nt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var n=e.text;return m.contains(["\\imath","\\jmath"],n)?null:(ne[a][n]&&ne[a][n].replace&&(n=ne[a][n].replace),I(n,Ke.fontMap[r].fontName,a)?Ke.fontMap[r].variant:null)},qt=function(e,t,r){if(1===e.length){var a=Rt(e[0],t);return r&&a instanceof zt&&"mo"===a.type&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n,i=[],o=0;o<e.length;o++){var s=Rt(e[o],t);if(s instanceof zt&&n instanceof zt){if("mtext"===s.type&&"mtext"===n.type&&s.getAttribute("mathvariant")===n.getAttribute("mathvariant")){n.children.push(...s.children);continue}if("mn"===s.type&&"mn"===n.type){n.children.push(...s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===n.type){var l=s.children[0];if(l instanceof At&&"."===l.text){n.children.push(...s.children);continue}}else if("mi"===n.type&&1===n.children.length){var h=n.children[0];if(h instanceof At&&"\u0338"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var m=s.children[0];m instanceof At&&m.text.length>0&&(m.text=m.text.slice(0,1)+"\u0338"+m.text.slice(1),i.pop())}}}i.push(s),n=s}return i},It=function(e,t,r){return Ct(qt(e,t,r))},Rt=function(e,t){if(!e)return new Tt.MathNode("mrow");if(it[e.type])return it[e.type](e,t);throw new i("Got group of unknown type: '"+e.type+"'")};function Ht(e,t,r,a,n){var i,o=qt(e,r);i=1===o.length&&o[0]instanceof zt&&m.contains(["mrow","mtable"],o[0].type)?o[0]:new Tt.MathNode("mrow",o);var s=new Tt.MathNode("annotation",[new Tt.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Tt.MathNode("semantics",[i,s]),h=new Tt.MathNode("math",[l]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&h.setAttribute("display","block");var c=n?"katex":"katex-mathml";return Ke.makeSpan([c],[h])}var Ot=function(e){return new L({style:e.displayMode?k.DISPLAY:k.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Et=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Ke.makeSpan(r,[e])}return e},Lt={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Dt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Vt=function(e,t,r,a,n){var i,o=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(i=Ke.makeSpan(["stretchy",t],[],n),"fbox"===t){var s=n.color&&n.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new ee({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new ee({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new J(l,{width:"100%",height:G(o)});i=Ke.makeSvgSpan([],[h],n)}return i.height=o,i.style.height=G(o),i},Pt=function(e){var t=new Tt.MathNode("mo",[new Tt.TextNode(Lt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Ft=function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(m.contains(["widehat","widecheck","widetilde","utilde"],a)){var n,i,o,s="ordgroup"===(d=e.base).type?d.body.length:1;if(s>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,o=.42,i=a+"4"):(n=312,r=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][l],n=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=a+l):(r=[0,600,1033,2339,2340][l],n=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var h=new Q(i),c=new J([h],{width:"100%",height:G(o),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:Ke.makeSvgSpan([],[c],t),minWidth:0,height:o}}var p,u,d,g=[],f=Dt[a],[v,b,y]=f,x=y/1e3,w=v.length;if(1===w)p=["hide-tail"],u=[f[3]];else if(2===w)p=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");p=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"]}for(var k=0;k<w;k++){var S=new Q(v[k]),M=new J([S],{width:"400em",height:G(x),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:u[k]+" slice"}),z=Ke.makeSvgSpan([p[k]],[M],t);if(1===w)return{span:z,minWidth:b,height:x};z.style.height=G(x),g.push(z)}return{span:Ke.makeSpan(["stretchy"],g,t),minWidth:b,height:x}}();return r.height=n,r.style.height=G(n),a>0&&(r.style.minWidth=G(a)),r};function Gt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Ut(e){var t=Yt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Yt(e){return e&&("atom"===e.type||ae.hasOwnProperty(e.type))?e:null}var Xt=(e,t)=>{var r,a,n;e&&"supsub"===e.type?(r=(a=Gt(e.base,"accent")).base,e.base=r,n=function(e){if(e instanceof _)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(wt(e,t)),e.base=a):r=(a=Gt(e,"accent")).base;var i=wt(r,t.havingCrampedStyle()),o=0;if(a.isShifty&&m.isCharacterBox(r)){var s=m.getBaseElem(r);o=te(wt(s,t.havingCrampedStyle())).skew}var l,h="\\c"===a.label,c=h?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(a.isStretchy)l=Ft(a,t),l=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+G(2*o)+")",marginLeft:G(2*o)}:void 0}]},t);else{var p,u;"\\vec"===a.label?(p=Ke.staticSvg("vec",t),u=Ke.svgData.vec[1]):((p=te(p=Ke.makeOrd({mode:a.mode,text:a.label},t,"textord"))).italic=0,u=p.width,h&&(c+=p.depth)),l=Ke.makeSpan(["accent-body"],[p]);var d="\\textcircled"===a.label;d&&(l.classes.push("accent-full"),c=i.height);var g=o;d||(g-=u/2),l.style.left=G(g),"\\textcircled"===a.label&&(l.style.top=".2em"),l=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:l}]},t)}var f=Ke.makeSpan(["mord","accent"],[l],t);return n?(n.children[0]=f,n.height=Math.max(f.height,n.height),n.classes[0]="mord",n):f},Wt=(e,t)=>{var r=e.isStretchy?Pt(e.label):new Tt.MathNode("mo",[Bt(e.label,e.mode)]),a=new Tt.MathNode("mover",[Rt(e.base,t),r]);return a.setAttribute("accent","true"),a},_t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));ot({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=lt(t[0]),a=!_t.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:Xt,mathmlBuilder:Wt}),ot({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Xt,mathmlBuilder:Wt}),ot({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=wt(e.base,t),a=Ft(e,t),n="\\utilde"===e.label?.12:0,i=Ke.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return Ke.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=Pt(e.label),a=new Tt.MathNode("munder",[Rt(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var jt=e=>{var t=new Tt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ot({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a=t.style,n=t.havingStyle(a.sup()),i=Ke.wrapFragment(wt(e.body,n,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(n=t.havingStyle(a.sub()),(r=Ke.wrapFragment(wt(e.below,n,t),t)).classes.push(o+"-arrow-pad"));var s,l=Ft(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Ke.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,a=Pt(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=jt(Rt(e.body,t));if(e.below){var i=jt(Rt(e.below,t));r=new Tt.MathNode("munderover",[a,i,n])}else r=new Tt.MathNode("mover",[a,n])}else if(e.below){var o=jt(Rt(e.below,t));r=new Tt.MathNode("munder",[a,o])}else r=jt(),r=new Tt.MathNode("mover",[a,r]);return r}});var $t=Ke.makeSpan;function Zt(e,t){var r=gt(e.body,t,!0);return $t([e.mclass],r,t)}function Kt(e,t){var r,a=qt(e.body,t);return"minner"===e.mclass?r=new Tt.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new Tt.MathNode("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new Tt.MathNode("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ot({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:ht(n),isCharacterBox:m.isCharacterBox(n)}},htmlBuilder:Zt,mathmlBuilder:Kt});var Jt=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};ot({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Jt(t[0]),body:ht(t[1]),isCharacterBox:m.isCharacterBox(t[1])}}}),ot({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,i=t[1],o=t[0];r="\\stackrel"!==n?Jt(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:ht(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===n?null:o,sub:"\\underset"===n?o:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:m.isCharacterBox(l)}},htmlBuilder:Zt,mathmlBuilder:Kt}),ot({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Jt(t[0]),body:ht(t[0])}},htmlBuilder(e,t){var r=gt(e.body,t,!0),a=Ke.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=qt(e.body,t),a=new Tt.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var Qt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},er=e=>"textord"===e.type&&"@"===e.text;function tr(e,t,r){var a=Qt[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n={type:"atom",text:a,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[n],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}ot({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=Ke.wrapFragment(wt(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=G(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new Tt.MathNode("mrow",[Rt(e.label,t)]);return(r=new Tt.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Tt.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),ot({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ke.wrapFragment(wt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new Tt.MathNode("mrow",[Rt(e.fragment,t)])}),ot({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=Gt(t[0],"ordgroup").body,n="",o=0;o<a.length;o++){n+=Gt(a[o],"textord").text}var s,l=parseInt(n);if(isNaN(l))throw new i("\\@char has non-numeric argument "+n);if(l<0||l>=1114111)throw new i("\\@char with invalid code point "+n);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:r.mode,text:s}}});var rr=(e,t)=>{var r=gt(e.body,t.withColor(e.color),!1);return Ke.makeFragment(r)},ar=(e,t)=>{var r=qt(e.body,t.withColor(e.color)),a=new Tt.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};ot({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=Gt(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:ht(n)}},htmlBuilder:rr,mathmlBuilder:ar}),ot({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=Gt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:rr,mathmlBuilder:ar}),ot({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:n&&Gt(n,"size").value}},htmlBuilder(e,t){var r=Ke.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=G(F(e.size,t)))),r},mathmlBuilder(e,t){var r=new Tt.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",G(F(e.size,t)))),r}});var nr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ir=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new i("Expected a control sequence",e);return t},or=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};ot({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(nr[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=nr[a.text]),Gt(t.parseFunction(),"internal");throw new i("Invalid token after macro prefix",a)}}),ot({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new i("Expected a control sequence",a);for(var o,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new i('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new i('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if("EOF"===a.text)throw new i("Expected a macro definition");l[s].push(a.text)}var{tokens:h}=t.gullet.consumeArg();return o&&h.unshift(o),"\\edef"!==r&&"\\xdef"!==r||(h=t.gullet.expandTokens(h)).reverse(),t.gullet.macros.set(n,{tokens:h,numArgs:s,delimiters:l},r===nr[r]),{type:"internal",mode:t.mode}}}),ot({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=ir(t.gullet.popToken());t.gullet.consumeSpaces();var n=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return or(t,a,n,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),ot({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=ir(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return or(t,a,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var sr=function(e,t,r){var a=I(ne.math[e]&&ne.math[e].replace||e,t,r);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return a},lr=function(e,t,r,a){var n=r.havingBaseStyle(t),i=Ke.makeSpan(a.concat(n.sizingClasses(r)),[e],r),o=n.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=n.sizeMultiplier,i},hr=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=G(n),e.height-=n,e.depth+=n},mr=function(e,t,r,a,n,i){var o=function(e,t,r,a){return Ke.makeSymbol(e,"Size"+t+"-Regular",r,a)}(e,t,n,a),s=lr(Ke.makeSpan(["delimsizing","size"+t],[o],a),k.TEXT,a,i);return r&&hr(s,a,k.TEXT),s},cr=function(e,t,r){var a;return a="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Ke.makeSpan(["delimsizinginner",a],[Ke.makeSpan([],[Ke.makeSymbol(e,t,r)])])}},pr=function(e,t,r){var a=C["Size4-Regular"][e.charCodeAt(0)]?C["Size4-Regular"][e.charCodeAt(0)][4]:C["Size1-Regular"][e.charCodeAt(0)][4],n=new Q("inner",function(e,t){switch(e){case"\u239c":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"\u239f":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23a2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23a5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23aa":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23d0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new J([n],{width:G(a),height:G(t),style:"width:"+G(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Ke.makeSvgSpan([],[i],r);return o.height=t,o.style.height=G(t),o.style.width=G(a),{type:"elem",elem:o}},ur={type:"kern",size:-.008},dr=["|","\\lvert","\\rvert","\\vert"],gr=["\\|","\\lVert","\\rVert","\\Vert"],fr=function(e,t,r,a,n,i){var o,s,l,h,c="",p=0;o=l=h=e,s=null;var u="Size1-Regular";"\\uparrow"===e?l=h="\u23d0":"\\Uparrow"===e?l=h="\u2016":"\\downarrow"===e?o=l="\u23d0":"\\Downarrow"===e?o=l="\u2016":"\\updownarrow"===e?(o="\\uparrow",l="\u23d0",h="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="\u2016",h="\\Downarrow"):m.contains(dr,e)?(l="\u2223",c="vert",p=333):m.contains(gr,e)?(l="\u2225",c="doublevert",p=556):"["===e||"\\lbrack"===e?(o="\u23a1",l="\u23a2",h="\u23a3",u="Size4-Regular",c="lbrack",p=667):"]"===e||"\\rbrack"===e?(o="\u23a4",l="\u23a5",h="\u23a6",u="Size4-Regular",c="rbrack",p=667):"\\lfloor"===e||"\u230a"===e?(l=o="\u23a2",h="\u23a3",u="Size4-Regular",c="lfloor",p=667):"\\lceil"===e||"\u2308"===e?(o="\u23a1",l=h="\u23a2",u="Size4-Regular",c="lceil",p=667):"\\rfloor"===e||"\u230b"===e?(l=o="\u23a5",h="\u23a6",u="Size4-Regular",c="rfloor",p=667):"\\rceil"===e||"\u2309"===e?(o="\u23a4",l=h="\u23a5",u="Size4-Regular",c="rceil",p=667):"("===e||"\\lparen"===e?(o="\u239b",l="\u239c",h="\u239d",u="Size4-Regular",c="lparen",p=875):")"===e||"\\rparen"===e?(o="\u239e",l="\u239f",h="\u23a0",u="Size4-Regular",c="rparen",p=875):"\\{"===e||"\\lbrace"===e?(o="\u23a7",s="\u23a8",h="\u23a9",l="\u23aa",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="\u23ab",s="\u23ac",h="\u23ad",l="\u23aa",u="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(o="\u23a7",h="\u23a9",l="\u23aa",u="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(o="\u23ab",h="\u23ad",l="\u23aa",u="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(o="\u23a7",h="\u23ad",l="\u23aa",u="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(o="\u23ab",h="\u23a9",l="\u23aa",u="Size4-Regular");var d=sr(o,u,n),g=d.height+d.depth,f=sr(l,u,n),v=f.height+f.depth,b=sr(h,u,n),y=b.height+b.depth,x=0,w=1;if(null!==s){var S=sr(s,u,n);x=S.height+S.depth,w=2}var M=g+y+x,z=M+Math.max(0,Math.ceil((t-M)/(w*v)))*w*v,A=a.fontMetrics().axisHeight;r&&(A*=a.sizeMultiplier);var T=z/2-A,B=[];if(c.length>0){var C=z-g-y,N=Math.round(1e3*z),q=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*C)),I=new Q(c,q),R=(p/1e3).toFixed(3)+"em",H=(N/1e3).toFixed(3)+"em",O=new J([I],{width:R,height:H,viewBox:"0 0 "+p+" "+N}),E=Ke.makeSvgSpan([],[O],a);E.height=N/1e3,E.style.width=R,E.style.height=H,B.push({type:"elem",elem:E})}else{if(B.push(cr(h,u,n)),B.push(ur),null===s){var L=z-g-y+.016;B.push(pr(l,L,a))}else{var D=(z-g-y-x)/2+.016;B.push(pr(l,D,a)),B.push(ur),B.push(cr(s,u,n)),B.push(ur),B.push(pr(l,D,a))}B.push(ur),B.push(cr(o,u,n))}var V=a.havingBaseStyle(k.TEXT),P=Ke.makeVList({positionType:"bottom",positionData:T,children:B},V);return lr(Ke.makeSpan(["delimsizing","mult"],[P],V),k.TEXT,a,i)},vr=.08,br=function(e,t,r,a,n){var i=function(e,t,r){t*=1e3;var a="";switch(e){case"sqrtMain":a=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,A);break;case"sqrtSize1":a=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,A);break;case"sqrtSize2":a=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,A);break;case"sqrtSize3":a=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,A);break;case"sqrtSize4":a=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,A);break;case"sqrtTall":a=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,A,r)}return a}(e,a,r),o=new Q(e,i),s=new J([o],{width:"400em",height:G(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Ke.makeSvgSpan(["hide-tail"],[s],n)},yr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],xr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],wr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],kr=[0,1.2,1.8,2.4,3],Sr=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Mr=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"stack"}],zr=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ar=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Tr=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size);n<r.length&&"stack"!==r[n].type;n++){var i=sr(e,Ar(r[n]),"math"),o=i.height+i.depth;if("small"===r[n].type&&(o*=a.havingBaseStyle(r[n].style).sizeMultiplier),o>t)return r[n]}return r[r.length-1]},Br=function(e,t,r,a,n,i){var o;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),o=m.contains(wr,e)?Sr:m.contains(yr,e)?zr:Mr;var s=Tr(e,t,o,a);return"small"===s.type?function(e,t,r,a,n,i){var o=Ke.makeSymbol(e,"Main-Regular",n,a),s=lr(o,t,a,i);return r&&hr(s,a,t),s}(e,s.style,r,a,n,i):"large"===s.type?mr(e,s.size,r,a,n,i):fr(e,t,r,a,n,i)},Cr={sqrtImage:function(e,t){var r,a,n=t.havingBaseSizing(),i=Tr("\\surd",e*n.sizeMultiplier,zr,n),o=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=br("sqrtMain",l=(1+s+vr)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",a=.833/o):"large"===i.type?(m=1080*kr[i.size],h=(kr[i.size]+s)/o,l=(kr[i.size]+s+vr)/o,(r=br("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",a=1/o):(l=e+s+vr,h=e+s,m=Math.floor(1e3*e+s)+80,(r=br("sqrtTall",l,m,s,t)).style.minWidth="0.742em",a=1.056),r.height=h,r.style.height=G(l),{span:r,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,a,n){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),m.contains(yr,e)||m.contains(wr,e))return mr(e,t,!1,r,a,n);if(m.contains(xr,e))return fr(e,kr[t],!1,r,a,n);throw new i("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:kr,customSizedDelim:Br,leftRightDelim:function(e,t,r,a,n,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,s=5/a.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return Br(e,h,!0,a,n,i)}},Nr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},qr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ir(e,t){var r=Yt(e);if(r&&m.contains(qr,r.text))return r;throw new i(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Rr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ot({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Ir(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Nr[e.funcName].size,mclass:Nr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Ke.makeSpan([e.mclass]):Cr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(Bt(e.delim,e.mode));var r=new Tt.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=G(Cr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),ot({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new i("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ir(t[0],e).text,color:r}}}),ot({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ir(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=Gt(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Rr(e);for(var r,a,n=gt(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<n.length;l++)n[l].isMiddle?s=!0:(i=Math.max(n[l].height,i),o=Math.max(n[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?xt(t,["mopen"]):Cr.leftRightDelim(e.left,i,o,t,e.mode,["mopen"]),n.unshift(r),s)for(var h=1;h<n.length;h++){var m=n[h].isMiddle;m&&(n[h]=Cr.leftRightDelim(m.delim,i,o,m.options,e.mode,[]))}if("."===e.right)a=xt(t,["mclose"]);else{var c=e.rightColor?t.withColor(e.rightColor):t;a=Cr.leftRightDelim(e.right,i,o,c,e.mode,["mclose"])}return n.push(a),Ke.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{Rr(e);var r=qt(e.body,t);if("."!==e.left){var a=new Tt.MathNode("mo",[Bt(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new Tt.MathNode("mo",[Bt(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return Ct(r)}}),ot({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ir(t[0],e);if(!e.parser.leftrightDepth)throw new i("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=xt(t,[]);else{r=Cr.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?Bt("|","text"):Bt(e.delim,e.mode),a=new Tt.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Hr=(e,t)=>{var r,a,n,i=Ke.wrapFragment(wt(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,h=m.isCharacterBox(e.body);if("sout"===o)(r=Ke.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=F({number:.6,unit:"pt"},t),p=F({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var u=i.height+i.depth+c+p;i.style.paddingLeft=G(u/2+c);var d=Math.floor(1e3*u*s),g="M400000 "+(a=d)+" H0 L"+a/2+" 0 l65 45 L145 "+(a-80)+" H400000z",f=new J([new Q("phase",g)],{width:"400em",height:G(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});(r=Ke.makeSvgSpan(["hide-tail"],[f],t)).style.height=G(u),l=i.depth+c+p}else{/cancel/.test(o)?h||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var v=0,b=0,y=0;/box/.test(o)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),b=v=t.fontMetrics().fboxsep+("colorbox"===o?0:y)):"angl"===o?(v=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),b=Math.max(0,.25-i.depth)):b=v=h?.2:0,r=Vt(i,o,v,b,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=G(y)):"angl"===o&&.049!==y&&(r.style.borderTopWidth=G(y),r.style.borderRightWidth=G(y)),l=i.depth+b,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)n=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var x=/cancel|phase/.test(o)?["svg-align"]:[];n=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:x}]},t)}return/cancel/.test(o)&&(n.height=i.height,n.depth=i.depth),/cancel/.test(o)&&!h?Ke.makeSpan(["mord","cancel-lap"],[n],t):Ke.makeSpan(["mord"],[n],t)},Or=(e,t)=>{var r=0,a=new Tt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Rt(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};ot({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Gt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,body:o}},htmlBuilder:Hr,mathmlBuilder:Or}),ot({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Gt(t[0],"color-token").color,o=Gt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Hr,mathmlBuilder:Or}),ot({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),ot({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Hr,mathmlBuilder:Or}),ot({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Er={};function Lr(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)Er[r[l]]=s;i&&(nt[t]=i),o&&(it[t]=o)}var Dr={};function Vr(e,t){Dr[e]=t}function Pr(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Fr=e=>{if(!e.parser.settings.displayMode)throw new i("{"+e.envName+"} can be used only in display mode.")};function Gr(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Ur(e,t,r){var{hskipBeforeAndAfter:a,addJot:o,cols:s,arraystretch:l,colSeparationType:h,autoTag:m,singleRow:c,emptySingleRow:p,maxNumCols:u,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var g=e.gullet.expandMacroAsText("\\arraystretch");if(null==g)l=1;else if(!(l=parseFloat(g))||l<0)throw new i("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var f=[],v=[f],b=[],y=[],x=null!=m?[]:void 0;function w(){m&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new n("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(Boolean(m)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),y.push(Pr(e));;){var S=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),S={type:"ordgroup",mode:e.mode,body:S},r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),f.push(S);var M=e.fetch().text;if("&"===M){if(u&&f.length===u){if(c||h)throw new i("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===M){k(),1===f.length&&"styling"===S.type&&0===S.body[0].body.length&&(v.length>1||!p)&&v.pop(),y.length<v.length+1&&y.push([]);break}if("\\\\"!==M)throw new i("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var z=void 0;" "!==e.gullet.future().text&&(z=e.parseSizeGroup(!0)),b.push(z?z.value:null),k(),y.push(Pr(e)),f=[],v.push(f),w()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:l,body:v,cols:s,rowGaps:b,hskipBeforeAndAfter:a,hLinesBeforeRow:y,colSeparationType:h,tags:x,leqno:d}}function Yr(e){return"d"===e.slice(0,1)?"display":"text"}var Xr=function(e,t){var r,a,n=e.body.length,o=e.hLinesBeforeRow,s=0,l=new Array(n),h=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),p=1/t.fontMetrics().ptPerEm,u=5*p;e.colSeparationType&&"small"===e.colSeparationType&&(u=t.havingStyle(k.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d="CD"===e.colSeparationType?F({number:3,unit:"ex"},t):12*p,g=3*p,f=e.arraystretch*d,v=.7*f,b=.3*f,y=0;function x(e){for(var t=0;t<e.length;++t)t>0&&(y+=.25),h.push({pos:y,isDashed:e[t]})}for(x(o[0]),r=0;r<e.body.length;++r){var w=e.body[r],S=v,M=b;s<w.length&&(s=w.length);var z=new Array(w.length);for(a=0;a<w.length;++a){var A=wt(w[a],t);M<A.depth&&(M=A.depth),S<A.height&&(S=A.height),z[a]=A}var T=e.rowGaps[r],B=0;T&&(B=F(T,t))>0&&(M<(B+=b)&&(M=B),B=0),e.addJot&&(M+=g),z.height=S,z.depth=M,y+=S,z.pos=y,y+=M+B,l[r]=z,x(o[r+1])}var C,N,q=y/2+t.fontMetrics().axisHeight,I=e.cols||[],R=[],H=[];if(e.tags&&e.tags.some((e=>e)))for(r=0;r<n;++r){var O=l[r],E=O.pos-q,L=e.tags[r],D=void 0;(D=!0===L?Ke.makeSpan(["eqn-num"],[],t):!1===L?Ke.makeSpan([],[],t):Ke.makeSpan([],gt(L,t,!0),t)).depth=O.depth,D.height=O.height,H.push({type:"elem",elem:D,shift:E})}for(a=0,N=0;a<s||N<I.length;++a,++N){for(var V=I[N]||{},P=!0;"separator"===V.type;){if(P||((C=Ke.makeSpan(["arraycolsep"],[])).style.width=G(t.fontMetrics().doubleRuleSep),R.push(C)),"|"!==V.separator&&":"!==V.separator)throw new i("Invalid separator type: "+V.separator);var U="|"===V.separator?"solid":"dashed",Y=Ke.makeSpan(["vertical-separator"],[],t);Y.style.height=G(y),Y.style.borderRightWidth=G(c),Y.style.borderRightStyle=U,Y.style.margin="0 "+G(-c/2);var X=y-q;X&&(Y.style.verticalAlign=G(-X)),R.push(Y),V=I[++N]||{},P=!1}if(!(a>=s)){var W=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(W=m.deflt(V.pregap,u))&&((C=Ke.makeSpan(["arraycolsep"],[])).style.width=G(W),R.push(C));var _=[];for(r=0;r<n;++r){var j=l[r],$=j[a];if($){var Z=j.pos-q;$.depth=j.depth,$.height=j.height,_.push({type:"elem",elem:$,shift:Z})}}_=Ke.makeVList({positionType:"individualShift",children:_},t),_=Ke.makeSpan(["col-align-"+(V.align||"c")],[_]),R.push(_),(a<s-1||e.hskipBeforeAndAfter)&&0!==(W=m.deflt(V.postgap,u))&&((C=Ke.makeSpan(["arraycolsep"],[])).style.width=G(W),R.push(C))}}if(l=Ke.makeSpan(["mtable"],R),h.length>0){for(var K=Ke.makeLineSpan("hline",t,c),J=Ke.makeLineSpan("hdashline",t,c),Q=[{type:"elem",elem:l,shift:0}];h.length>0;){var ee=h.pop(),te=ee.pos-q;ee.isDashed?Q.push({type:"elem",elem:J,shift:te}):Q.push({type:"elem",elem:K,shift:te})}l=Ke.makeVList({positionType:"individualShift",children:Q},t)}if(0===H.length)return Ke.makeSpan(["mord"],[l],t);var re=Ke.makeVList({positionType:"individualShift",children:H},t);return re=Ke.makeSpan(["tag"],[re],t),Ke.makeFragment([l,re])},Wr={c:"center ",l:"left ",r:"right "},_r=function(e,t){for(var r=[],a=new Tt.MathNode("mtd",[],["mtr-glue"]),n=new Tt.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new Tt.MathNode("mtd",[Rt(o[l],t)]));e.tags&&e.tags[i]&&(s.unshift(a),s.push(a),e.leqno?s.unshift(n):s.push(n)),r.push(new Tt.MathNode("mtr",s))}var h=new Tt.MathNode("mtable",r),m=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);h.setAttribute("rowspacing",G(m));var c="",p="";if(e.cols&&e.cols.length>0){var u=e.cols,d="",g=!1,f=0,v=u.length;"separator"===u[0].type&&(c+="top ",f=1),"separator"===u[u.length-1].type&&(c+="bottom ",v-=1);for(var b=f;b<v;b++)"align"===u[b].type?(p+=Wr[u[b].align],g&&(d+="none "),g=!0):"separator"===u[b].type&&g&&(d+="|"===u[b].separator?"solid ":"dashed ",g=!1);h.setAttribute("columnalign",p.trim()),/[sd]/.test(d)&&h.setAttribute("columnlines",d.trim())}if("align"===e.colSeparationType){for(var y=e.cols||[],x="",w=1;w<y.length;w++)x+=w%2?"0em ":"1em ";h.setAttribute("columnspacing",x.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?h.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?h.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var k="",S=e.hLinesBeforeRow;c+=S[0].length>0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M<S.length-1;M++)k+=0===S[M].length?"none ":S[M][0]?"dashed ":"solid ";return/[sd]/.test(k)&&h.setAttribute("rowlines",k.trim()),""!==c&&(h=new Tt.MathNode("menclose",[h])).setAttribute("notation",c.trim()),e.arraystretch&&e.arraystretch<1&&(h=new Tt.MathNode("mstyle",[h])).setAttribute("scriptlevel","1"),h},jr=function(e,t){-1===e.envName.indexOf("ed")&&Fr(e);var r,a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",o="split"===e.envName,s=Ur(e.parser,{cols:a,addJot:!0,autoTag:o?void 0:Gr(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,h={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var m="",c=0;c<t[0].body.length;c++){m+=Gt(t[0].body[c],"textord").text}r=Number(m),l=2*r}var p=!l;s.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var a=Gt(e[t],"styling");Gt(a.body[0],"ordgroup").body.unshift(h)}if(p)l<e.length&&(l=e.length);else{var n=e.length/2;if(r<n)throw new i("Too many math in a row: expected "+r+", but got "+n,e[0])}}));for(var u=0;u<l;++u){var d="r",g=0;u%2==1?d="l":u>0&&p&&(g=1),a[u]={type:"align",align:d,pregap:g,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(Yt(t[0])?[t[0]]:Gt(t[0],"ordgroup").body).map((function(e){var t=Ut(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Ur(e.parser,a,Yr(e.envName))},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,-1==="lcr".indexOf(r))throw new i("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var o=Ur(e.parser,a,Yr(e.envName)),s=Math.max(0,...o.body.map((e=>e.length)));return o.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=Ur(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(Yt(t[0])?[t[0]]:Gt(t[0],"ordgroup").body).map((function(e){var t=Ut(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new i("Unknown column alignment: "+t,e)}));if(r.length>1)throw new i("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Ur(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new i("{subarray} can contain only one column");return a},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=Ur(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Yr(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:jr,htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){m.contains(["gather","gather*"],e.envName)&&Fr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Gr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ur(e.parser,t,"display")},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:jr,htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Fr(e);var t={autoTag:Gr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ur(e.parser,t,"display")},htmlBuilder:Xr,mathmlBuilder:_r}),Lr({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Fr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new i("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,n,o=[],s=[o],l=0;l<t.length;l++){for(var h=t[l],m={type:"styling",body:[],mode:"math",style:"display"},c=0;c<h.length;c++)if(er(h[c])){o.push(m);var p=Ut(h[c+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(p)>-1);else{if(!("<>AV".indexOf(p)>-1))throw new i('Expected one of "<>AV=|." after @',h[c]);for(var d=0;d<2;d++){for(var g=!0,f=c+1;f<h.length;f++){if(n=p,("mathord"===(a=h[f]).type||"atom"===a.type)&&a.text===n){g=!1,c=f;break}if(er(h[f]))throw new i("Missing a "+p+" character to complete a CD arrow.",h[f]);u[d].body.push(h[f])}if(g)throw new i("Missing a "+p+" character to complete a CD arrow.",h[c])}}var v={type:"styling",body:[tr(p,u,e)],mode:"math",style:"display"};o.push(v),m={type:"styling",body:[],mode:"math",style:"display"}}else m.body.push(h[c]);l%2==0?o.push(m):o.shift(),o=[],s.push(o)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}(e.parser)),htmlBuilder:Xr,mathmlBuilder:_r}),Vr("\\nonumber","\\gdef\\@eqnsw{0}"),Vr("\\notag","\\nonumber"),ot({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new i(e.funcName+" valid only within array environment")}});var $r=Er;ot({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if("ordgroup"!==n.type)throw new i("Invalid environment name",n);for(var o="",s=0;s<n.body.length;++s)o+=Gt(n.body[s],"textord").text;if("\\begin"===a){if(!$r.hasOwnProperty(o))throw new i("No such environment: "+o,n);var l=$r[o],{args:h,optArgs:m}=r.parseArguments("\\begin{"+o+"}",l),c={mode:r.mode,envName:o,parser:r},p=l.handler(c,h,m);r.expect("\\end",!1);var u=r.nextToken,d=Gt(r.parseFunction(),"environment");if(d.name!==o)throw new i("Mismatch: \\begin{"+o+"} matched by \\end{"+d.name+"}",u);return p}return{type:"environment",mode:r.mode,name:o,nameGroup:n}}});var Zr=(e,t)=>{var r=e.font,a=t.withFont(r);return wt(e.body,a)},Kr=(e,t)=>{var r=e.font,a=t.withFont(r);return Rt(e.body,a)},Jr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ot({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=lt(t[0]),i=a;return i in Jr&&(i=Jr[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:Zr,mathmlBuilder:Kr}),ot({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=m.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:Jt(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),ot({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:i}=r,o=r.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:Zr,mathmlBuilder:Kr});var Qr=(e,t)=>{var r=t;return"display"===e?r=r.id>=k.SCRIPT.id?r.text():k.DISPLAY:"text"===e&&r.size===k.DISPLAY.size?r=k.TEXT:"script"===e?r=k.SCRIPT:"scriptscript"===e&&(r=k.SCRIPTSCRIPT),r},ea=(e,t)=>{var r,a=Qr(e.size,t.style),n=a.fracNum(),i=a.fracDen();r=t.havingStyle(n);var o=wt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(i);var h,m,c,p,u,d,g,f,v,b,y=wt(e.denom,r,t);if(e.hasBarLine?(e.barSize?(m=F(e.barSize,t),h=Ke.makeLineSpan("frac-line",t,m)):h=Ke.makeLineSpan("frac-line",t),m=h.height,c=h.height):(h=null,m=0,c=t.fontMetrics().defaultRuleThickness),a.size===k.DISPLAY.size||"display"===e.size?(p=t.fontMetrics().num1,u=m>0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(p=t.fontMetrics().num2,u=c):(p=t.fontMetrics().num3,u=3*c),d=t.fontMetrics().denom2),h){var x=t.fontMetrics().axisHeight;p-o.depth-(x+.5*m)<u&&(p+=u-(p-o.depth-(x+.5*m))),x-.5*m-(y.height-d)<u&&(d+=u-(x-.5*m-(y.height-d)));var w=-(x-.5*m);g=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:d},{type:"elem",elem:h,shift:w},{type:"elem",elem:o,shift:-p}]},t)}else{var S=p-o.depth-(y.height-d);S<u&&(p+=.5*(u-S),d+=.5*(u-S)),g=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:d},{type:"elem",elem:o,shift:-p}]},t)}return r=t.havingStyle(a),g.height*=r.sizeMultiplier/t.sizeMultiplier,g.depth*=r.sizeMultiplier/t.sizeMultiplier,f=a.size===k.DISPLAY.size?t.fontMetrics().delim1:a.size===k.SCRIPTSCRIPT.size?t.havingStyle(k.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?xt(t,["mopen"]):Cr.customSizedDelim(e.leftDelim,f,!0,t.havingStyle(a),e.mode,["mopen"]),b=e.continued?Ke.makeSpan([]):null==e.rightDelim?xt(t,["mclose"]):Cr.customSizedDelim(e.rightDelim,f,!0,t.havingStyle(a),e.mode,["mclose"]),Ke.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,Ke.makeSpan(["mfrac"],[g]),b],t)},ta=(e,t)=>{var r=new Tt.MathNode("mfrac",[Rt(e.numer,t),Rt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=F(e.barSize,t);r.setAttribute("linethickness",G(a))}}else r.setAttribute("linethickness","0px");var n=Qr(e.size,t.style);if(n.size!==t.style.size){r=new Tt.MathNode("mstyle",[r]);var i=n.size===k.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new Tt.MathNode("mo",[new Tt.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new Tt.MathNode("mo",[new Tt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Ct(o)}return r};ot({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,i=t[0],o=t[1],s=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:a.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:h,barSize:null}},htmlBuilder:ea,mathmlBuilder:ta}),ot({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),ot({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var ra=["display","text","script","scriptscript"],aa=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};ot({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],i=t[5],o=lt(t[0]),s="atom"===o.type&&"open"===o.family?aa(o.text):null,l=lt(t[1]),h="atom"===l.type&&"close"===l.family?aa(l.text):null,m=Gt(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var p="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){var d=Gt(u.body[0],"textord");p=ra[Number(d.text)]}}else u=Gt(u,"textord"),p=ra[Number(u.text)];return{type:"genfrac",mode:a.mode,numer:n,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:p}},htmlBuilder:ea,mathmlBuilder:ta}),ot({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Gt(t[0],"size").value,token:n}}}),ot({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Gt(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ea,mathmlBuilder:ta});var na=(e,t)=>{var r,a,n=t.style;"supsub"===e.type?(r=e.sup?wt(e.sup,t.havingStyle(n.sup()),t):wt(e.sub,t.havingStyle(n.sub()),t),a=Gt(e.base,"horizBrace")):a=Gt(e,"horizBrace");var i,o=wt(a.base,t.havingBaseStyle(k.DISPLAY)),s=Ft(a,t);if(a.isOver?(i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ke.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Ke.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t);i=a.isOver?Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Ke.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ke.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t)};ot({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:na,mathmlBuilder:(e,t)=>{var r=Pt(e.label);return new Tt.MathNode(e.isOver?"mover":"munder",[Rt(e.base,t),r])}}),ot({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=Gt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:ht(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=gt(e.body,t,!1);return Ke.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=It(e.body,t);return r instanceof zt||(r=new zt("mrow",[r])),r.setAttribute("href",e.href),r}}),ot({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=Gt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;i<a.length;i++){var o=a[i];"~"===o&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:a,body:ht(s)}}}),ot({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:ht(t[0])}},htmlBuilder(e,t){var r=gt(e.body,t,!1);return Ke.makeFragment(r)},mathmlBuilder:(e,t)=>new Tt.MathNode("mrow",qt(e.body,t))}),ot({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:a,funcName:n,token:o}=e,s=Gt(t[0],"raw").string,l=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h={};switch(n){case"\\htmlClass":h.class=s,r={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,r={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,r={command:"\\htmlStyle",style:s};break;case"\\htmlData":for(var m=s.split(","),c=0;c<m.length;c++){var p=m[c].split("=");if(2!==p.length)throw new i("Error parsing key-value for \\htmlData");h["data-"+p[0].trim()]=p[1].trim()}r={command:"\\htmlData",attributes:h};break;default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(r)?{type:"html",mode:a.mode,attributes:h,body:ht(l)}:a.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=gt(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=Ke.makeSpan(a,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>It(e.body,t)}),ot({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:ht(t[0]),mathml:ht(t[1])}},htmlBuilder:(e,t)=>{var r=gt(e.html,t,!1);return Ke.makeFragment(r)},mathmlBuilder:(e,t)=>It(e.mathml,t)});var ia=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new i("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!P(r))throw new i("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ot({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(r[0])for(var h=Gt(r[0],"raw").string.split(","),m=0;m<h.length;m++){var c=h[m].split("=");if(2===c.length){var p=c[1].trim();switch(c[0].trim()){case"alt":l=p;break;case"width":n=ia(p);break;case"height":o=ia(p);break;case"totalheight":s=ia(p);break;default:throw new i("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var u=Gt(t[0],"url").url;return""===l&&(l=(l=(l=u).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:u})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:o,totalheight:s,src:u}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=F(e.height,t),a=0;e.totalheight.number>0&&(a=F(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=F(e.width,t));var i={height:G(r+a)};n>0&&(i.width=G(n)),a>0&&(i.verticalAlign=G(-a));var o=new $(e.src,e.alt,i);return o.height=r,o.depth=a,o},mathmlBuilder:(e,t)=>{var r=new Tt.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=F(e.height,t),n=0;if(e.totalheight.number>0&&(n=F(e.totalheight,t)-a,r.setAttribute("valign",G(-n))),r.setAttribute("height",G(a+n)),e.width.number>0){var i=F(e.width,t);r.setAttribute("width",G(i))}return r.setAttribute("src",e.src),r}}),ot({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=Gt(t[0],"size");if(r.settings.strict){var i="m"===a[1],o="mu"===n.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>Ke.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=F(e.dimension,t);return new Tt.SpaceNode(r)}}),ot({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=Ke.makeSpan([],[wt(e.body,t)]),r=Ke.makeSpan(["inner"],[r],t)):r=Ke.makeSpan(["inner"],[wt(e.body,t)]);var a=Ke.makeSpan(["fix"],[]),n=Ke.makeSpan([e.alignment],[r,a],t),i=Ke.makeSpan(["strut"]);return i.style.height=G(n.height+n.depth),n.depth&&(i.style.verticalAlign=G(-n.depth)),n.children.unshift(i),n=Ke.makeSpan(["thinbox"],[n],t),Ke.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new Tt.MathNode("mpadded",[Rt(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),ot({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var i="\\("===r?"\\)":"$",o=a.parseExpression(!1,i);return a.expect(i),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}}),ot({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new i("Mismatched "+e.funcName)}});var oa=(e,t)=>{switch(t.style.size){case k.DISPLAY.size:return e.display;case k.TEXT.size:return e.text;case k.SCRIPT.size:return e.script;case k.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ot({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:ht(t[0]),text:ht(t[1]),script:ht(t[2]),scriptscript:ht(t[3])}},htmlBuilder:(e,t)=>{var r=oa(e,t),a=gt(r,t,!1);return Ke.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=oa(e,t);return It(r,t)}});var sa=(e,t,r,a,n,i,o)=>{e=Ke.makeSpan([],[e]);var s,l,h,c=r&&m.isCharacterBox(r);if(t){var p=wt(t,a.havingStyle(n.sup()),a);l={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-p.depth)}}if(r){var u=wt(r,a.havingStyle(n.sub()),a);s={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-u.height)}}if(l&&s){var d=a.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;h=Ke.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:G(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:G(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(s){var g=e.height-o;h=Ke.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:G(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},a)}else{if(!l)return e;var f=e.depth+o;h=Ke.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:G(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}var v=[h];if(s&&0!==i&&!c){var b=Ke.makeSpan(["mspace"],[],a);b.style.marginRight=G(i),v.unshift(b)}return Ke.makeSpan(["mop","op-limits"],v,a)},la=["\\smallint"],ha=(e,t)=>{var r,a,n,i=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=Gt(e.base,"op"),i=!0):n=Gt(e,"op");var o,s=t.style,l=!1;if(s.size===k.DISPLAY.size&&n.symbol&&!m.contains(la,n.name)&&(l=!0),n.symbol){var h=l?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==n.name&&"\\oiiint"!==n.name||(c=n.name.slice(1),n.name="oiint"===c?"\\iint":"\\iiint"),o=Ke.makeSymbol(n.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var p=o.italic,u=Ke.staticSvg(c+"Size"+(l?"2":"1"),t);o=Ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:u,shift:l?.08:0}]},t),n.name="\\"+c,o.classes.unshift("mop"),o.italic=p}}else if(n.body){var d=gt(n.body,t,!0);1===d.length&&d[0]instanceof K?(o=d[0]).classes[0]="mop":o=Ke.makeSpan(["mop"],d,t)}else{for(var g=[],f=1;f<n.name.length;f++)g.push(Ke.mathsym(n.name[f],n.mode,t));o=Ke.makeSpan(["mop"],g,t)}var v=0,b=0;return(o instanceof K||"\\oiint"===n.name||"\\oiiint"===n.name)&&!n.suppressBaseShift&&(v=(o.height-o.depth)/2-t.fontMetrics().axisHeight,b=o.italic),i?sa(o,r,a,t,s,b,v):(v&&(o.style.position="relative",o.style.top=G(v)),o)},ma=(e,t)=>{var r;if(e.symbol)r=new zt("mo",[Bt(e.name,e.mode)]),m.contains(la,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new zt("mo",qt(e.body,t));else{r=new zt("mi",[new At(e.name.slice(1))]);var a=new zt("mo",[Bt("\u2061","text")]);r=e.parentIsSupSub?new zt("mrow",[r,a]):Mt([r,a])}return r},ca={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};ot({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=ca[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ha,mathmlBuilder:ma}),ot({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ht(a)}},htmlBuilder:ha,mathmlBuilder:ma});var pa={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};ot({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ha,mathmlBuilder:ma}),ot({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ha,mathmlBuilder:ma}),ot({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=pa[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ha,mathmlBuilder:ma});var ua=(e,t)=>{var r,a,n,i,o=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=Gt(e.base,"operatorname"),o=!0):n=Gt(e,"operatorname"),n.body.length>0){for(var s=n.body.map((e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=gt(s,t.withFont("mathrm"),!0),h=0;h<l.length;h++){var m=l[h];m instanceof K&&(m.text=m.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Ke.makeSpan(["mop"],l,t)}else i=Ke.makeSpan(["mop"],[],t);return o?sa(i,r,a,t,t.style,0,0):i};function da(e,t,r){for(var a=gt(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,i=0;i<a.length;i++){var o=a[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[i].classes,t.sizingClasses(r)):a[i].classes[o+1]==="reset-size"+t.size&&(a[i].classes[o+1]="reset-size"+r.size),a[i].height*=n,a[i].depth*=n}return Ke.makeFragment(a)}ot({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:ht(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:ua,mathmlBuilder:(e,t)=>{for(var r=qt(e.body,t.withFont("mathrm")),a=!0,n=0;n<r.length;n++){var i=r[n];if(i instanceof Tt.SpaceNode);else if(i instanceof Tt.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof Tt.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break;default:a=!1}else a=!1}if(a){var s=r.map((e=>e.toText())).join("");r=[new Tt.TextNode(s)]}var l=new Tt.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new Tt.MathNode("mo",[Bt("\u2061","text")]);return e.parentIsSupSub?new Tt.MathNode("mrow",[l,h]):Tt.newDocumentFragment([l,h])}}),Vr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),st({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Ke.makeFragment(gt(e.body,t,!1)):Ke.makeSpan(["mord"],gt(e.body,t,!0),t),mathmlBuilder:(e,t)=>It(e.body,t,!0)}),ot({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=wt(e.body,t.havingCrampedStyle()),a=Ke.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return Ke.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new Tt.MathNode("mo",[new Tt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var a=new Tt.MathNode("mover",[Rt(e.body,t),r]);return a.setAttribute("accent","true"),a}}),ot({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:ht(a)}},htmlBuilder:(e,t)=>{var r=gt(e.body,t.withPhantom(),!1);return Ke.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=qt(e.body,t);return new Tt.MathNode("mphantom",r)}}),ot({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Ke.makeSpan([],[wt(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a<r.children.length;a++)r.children[a].height=0,r.children[a].depth=0;return r=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Ke.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=qt(ht(e.body),t),a=new Tt.MathNode("mphantom",r),n=new Tt.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),ot({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Ke.makeSpan(["inner"],[wt(e.body,t.withPhantom())]),a=Ke.makeSpan(["fix"],[]);return Ke.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=qt(ht(e.body),t),a=new Tt.MathNode("mphantom",r),n=new Tt.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),ot({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=Gt(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=wt(e.body,t),a=F(e.dy,t);return Ke.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Tt.MathNode("mpadded",[Rt(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),ot({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),ot({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],i=Gt(t[0],"size"),o=Gt(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&Gt(n,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=Ke.makeSpan(["mord","rule"],[],t),a=F(e.width,t),n=F(e.height,t),i=e.shift?F(e.shift,t):0;return r.style.borderRightWidth=G(a),r.style.borderTopWidth=G(n),r.style.bottom=G(i),r.width=a,r.height=n+i,r.depth=-i,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=F(e.width,t),a=F(e.height,t),n=e.shift?F(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new Tt.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",G(r)),o.setAttribute("height",G(a));var s=new Tt.MathNode("mpadded",[o]);return n>=0?s.setAttribute("height",G(n)):(s.setAttribute("height",G(n)),s.setAttribute("depth",G(-n))),s.setAttribute("voffset",G(n)),s}});var ga=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ot({type:"sizing",names:ga,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:ga.indexOf(a)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return da(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=qt(e.body,r),n=new Tt.MathNode("mstyle",a);return n.setAttribute("mathsize",G(r.sizeMultiplier)),n}}),ot({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,i=!1,o=r[0]&&Gt(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){if("t"===(s=o.body[l].text))n=!0;else{if("b"!==s){n=!1,i=!1;break}i=!0}}else n=!0,i=!0;var h=t[0];return{type:"smash",mode:a.mode,body:h,smashHeight:n,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Ke.makeSpan([],[wt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].depth=0;var i=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return Ke.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Tt.MathNode("mpadded",[Rt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),ot({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:n}},htmlBuilder(e,t){var r=wt(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Ke.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.id<k.TEXT.id&&(n=t.fontMetrics().xHeight);var i=a+n/4,o=r.height+r.depth+i+a,{span:s,ruleWidth:l,advanceWidth:h}=Cr.sqrtImage(o,t),m=s.height-l;m>r.height+r.depth+i&&(i=(i+m-r.height-r.depth)/2);var c=s.height-r.height-i-l;r.style.paddingLeft=G(h);var p=Ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var u=t.havingStyle(k.SCRIPTSCRIPT),d=wt(e.index,u,t),g=.6*(p.height-p.depth),f=Ke.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:d}]},t),v=Ke.makeSpan(["root"],[f]);return Ke.makeSpan(["mord","sqrt"],[v,p],t)}return Ke.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new Tt.MathNode("mroot",[Rt(r,t),Rt(a,t)]):new Tt.MathNode("msqrt",[Rt(r,t)])}});var fa={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT};ot({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!0,r),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:i}},htmlBuilder(e,t){var r=fa[e.style],a=t.havingStyle(r).withFont("");return da(e.body,a,t)},mathmlBuilder(e,t){var r=fa[e.style],a=t.havingStyle(r),n=qt(e.body,a),i=new Tt.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});st({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===k.DISPLAY.size||r.alwaysHandleSupSub)?ha:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===k.DISPLAY.size||r.limits)?ua:null:"accent"===r.type?m.isCharacterBox(r.base)?Xt:null:"horizBrace"===r.type&&!e.sub===r.isOver?na:null:null}(e,t);if(r)return r(e,t);var a,n,i,{base:o,sup:s,sub:l}=e,h=wt(o,t),c=t.fontMetrics(),p=0,u=0,d=o&&m.isCharacterBox(o);if(s){var g=t.havingStyle(t.style.sup());a=wt(s,g,t),d||(p=h.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(l){var f=t.havingStyle(t.style.sub());n=wt(l,f,t),d||(u=h.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}i=t.style===k.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var v,b=t.sizeMultiplier,y=G(.5/c.ptPerEm/b),x=null;if(n){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(h instanceof K||w)&&(x=G(-h.italic))}if(a&&n){p=Math.max(p,i,a.depth+.25*c.xHeight),u=Math.max(u,c.sub2);var S=4*c.defaultRuleThickness;if(p-a.depth-(n.height-u)<S){u=S-(p-a.depth)+n.height;var M=.8*c.xHeight-(p-a.depth);M>0&&(p+=M,u-=M)}var z=[{type:"elem",elem:n,shift:u,marginRight:y,marginLeft:x},{type:"elem",elem:a,shift:-p,marginRight:y}];v=Ke.makeVList({positionType:"individualShift",children:z},t)}else if(n){u=Math.max(u,c.sub1,n.height-.8*c.xHeight);var A=[{type:"elem",elem:n,marginLeft:x,marginRight:y}];v=Ke.makeVList({positionType:"shift",positionData:u,children:A},t)}else{if(!a)throw new Error("supsub must have either sup or sub.");p=Math.max(p,i,a.depth+.25*c.xHeight),v=Ke.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:a,marginRight:y}]},t)}var T=yt(h,"right")||"mord";return Ke.makeSpan([T],[h,Ke.makeSpan(["msupsub"],[v])],t)},mathmlBuilder(e,t){var r,a=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var n,i=[Rt(e.base,t)];if(e.sub&&i.push(Rt(e.sub,t)),e.sup&&i.push(Rt(e.sup,t)),a)n=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;n=o&&"op"===o.type&&o.limits&&t.style===k.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===k.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;n=s&&"op"===s.type&&s.limits&&(t.style===k.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===k.DISPLAY)?"munder":"msub"}else{var l=e.base;n=l&&"op"===l.type&&l.limits&&(t.style===k.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===k.DISPLAY)?"mover":"msup"}return new Tt.MathNode(n,i)}}),st({type:"atom",htmlBuilder:(e,t)=>Ke.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new Tt.MathNode("mo",[Bt(e.text,e.mode)]);if("bin"===e.family){var a=Nt(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var va={mi:"italic",mn:"normal",mtext:"normal"};st({type:"mathord",htmlBuilder:(e,t)=>Ke.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new Tt.MathNode("mi",[Bt(e.text,e.mode,t)]),a=Nt(e,t)||"italic";return a!==va[r.type]&&r.setAttribute("mathvariant",a),r}}),st({type:"textord",htmlBuilder:(e,t)=>Ke.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,a=Bt(e.text,e.mode,t),n=Nt(e,t)||"normal";return r="text"===e.mode?new Tt.MathNode("mtext",[a]):/[0-9]/.test(e.text)?new Tt.MathNode("mn",[a]):"\\prime"===e.text?new Tt.MathNode("mo",[a]):new Tt.MathNode("mi",[a]),n!==va[r.type]&&r.setAttribute("mathvariant",n),r}});var ba={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ya={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};st({type:"spacing",htmlBuilder(e,t){if(ya.hasOwnProperty(e.text)){var r=ya[e.text].className||"";if("text"===e.mode){var a=Ke.makeOrd(e,t,"textord");return a.classes.push(r),a}return Ke.makeSpan(["mspace",r],[Ke.mathsym(e.text,e.mode,t)],t)}if(ba.hasOwnProperty(e.text))return Ke.makeSpan(["mspace",ba[e.text]],[],t);throw new i('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!ya.hasOwnProperty(e.text)){if(ba.hasOwnProperty(e.text))return new Tt.MathNode("mspace");throw new i('Unknown type of space "'+e.text+'"')}return new Tt.MathNode("mtext",[new Tt.TextNode("\xa0")])}});var xa=()=>{var e=new Tt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};st({type:"tag",mathmlBuilder(e,t){var r=new Tt.MathNode("mtable",[new Tt.MathNode("mtr",[xa(),new Tt.MathNode("mtd",[It(e.body,t)]),xa(),new Tt.MathNode("mtd",[It(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var wa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ka={"\\textbf":"textbf","\\textmd":"textmd"},Sa={"\\textit":"textit","\\textup":"textup"},Ma=(e,t)=>{var r=e.font;return r?wa[r]?t.withTextFontFamily(wa[r]):ka[r]?t.withTextFontWeight(ka[r]):t.withTextFontShape(Sa[r]):t};ot({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:ht(n),font:a}},htmlBuilder(e,t){var r=Ma(e,t),a=gt(e.body,r,!0);return Ke.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Ma(e,t);return It(e.body,r)}}),ot({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=wt(e.body,t),a=Ke.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=Ke.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return Ke.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new Tt.MathNode("mo",[new Tt.TextNode("\u203e")]);r.setAttribute("stretchy","true");var a=new Tt.MathNode("munder",[Rt(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),ot({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=wt(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return Ke.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new Tt.MathNode("mpadded",[Rt(e.body,t)],["vcenter"])}),ot({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=za(e),a=[],n=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),a.push(Ke.makeSymbol(o,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return Ke.makeSpan(["mord","text"].concat(n.sizingClasses(t)),Ke.tryCombineChars(a),n)},mathmlBuilder(e,t){var r=new Tt.TextNode(za(e)),a=new Tt.MathNode("mtext",[r]);return a.setAttribute("mathvariant","monospace"),a}});var za=e=>e.body.replace(/ /g,e.star?"\u2423":"\xa0"),Aa=at,Ta="[ \r\n\t]",Ba="(\\\\[a-zA-Z@]+)"+Ta+"*",Ca="[\u0300-\u036f]",Na=new RegExp(Ca+"+$"),qa="("+Ta+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff]"+Ca+"*|[\ud800-\udbff][\udc00-\udfff]"+Ca+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+Ba+"|\\\\[^\ud800-\udfff])";class Ia{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(qa,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new n("EOF",new a(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new i("Unexpected character: '"+e[t]+"'",new n(e[t],new a(this,t,t+1)));var o=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[o]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new n(o,new a(this,t,this.tokenRegex.lastIndex))}}class Ra{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Ha=Dr;Vr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Vr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Vr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Vr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Vr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Vr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Vr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Oa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Vr("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new i("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=Oa[r.text])||a>=t)throw new i("Invalid base-"+t+" digit "+r.text);for(var n;null!=(n=Oa[e.future().text])&&n<t;)a*=t,a+=n,e.popToken()}return"\\@char{"+a+"}"}));var Ea=(e,t,r)=>{var a=e.consumeArg().tokens;if(1!==a.length)throw new i("\\newcommand's first argument must be a macro name");var n=a[0].text,o=e.isDefined(n);if(o&&!t)throw new i("\\newcommand{"+n+"} attempting to redefine "+n+"; use \\renewcommand");if(!o&&!r)throw new i("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var s=0;if(1===(a=e.consumeArg().tokens).length&&"["===a[0].text){for(var l="",h=e.expandNextToken();"]"!==h.text&&"EOF"!==h.text;)l+=h.text,h=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+l);s=parseInt(l),a=e.consumeArg().tokens}return e.macros.set(n,{tokens:a,numArgs:s}),""};Vr("\\newcommand",(e=>Ea(e,!1,!0))),Vr("\\renewcommand",(e=>Ea(e,!0,!1))),Vr("\\providecommand",(e=>Ea(e,!0,!0))),Vr("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),Vr("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),Vr("\\show",(e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Aa[r],ne.math[r],ne.text[r]),""})),Vr("\\bgroup","{"),Vr("\\egroup","}"),Vr("~","\\nobreakspace"),Vr("\\lq","`"),Vr("\\rq","'"),Vr("\\aa","\\r a"),Vr("\\AA","\\r A"),Vr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),Vr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Vr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),Vr("\u212c","\\mathscr{B}"),Vr("\u2130","\\mathscr{E}"),Vr("\u2131","\\mathscr{F}"),Vr("\u210b","\\mathscr{H}"),Vr("\u2110","\\mathscr{I}"),Vr("\u2112","\\mathscr{L}"),Vr("\u2133","\\mathscr{M}"),Vr("\u211b","\\mathscr{R}"),Vr("\u212d","\\mathfrak{C}"),Vr("\u210c","\\mathfrak{H}"),Vr("\u2128","\\mathfrak{Z}"),Vr("\\Bbbk","\\Bbb{k}"),Vr("\xb7","\\cdotp"),Vr("\\llap","\\mathllap{\\textrm{#1}}"),Vr("\\rlap","\\mathrlap{\\textrm{#1}}"),Vr("\\clap","\\mathclap{\\textrm{#1}}"),Vr("\\mathstrut","\\vphantom{(}"),Vr("\\underbar","\\underline{\\text{#1}}"),Vr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Vr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Vr("\\ne","\\neq"),Vr("\u2260","\\neq"),Vr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Vr("\u2209","\\notin"),Vr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Vr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Vr("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),Vr("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),Vr("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),Vr("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),Vr("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),Vr("\u27c2","\\perp"),Vr("\u203c","\\mathclose{!\\mkern-0.8mu!}"),Vr("\u220c","\\notni"),Vr("\u231c","\\ulcorner"),Vr("\u231d","\\urcorner"),Vr("\u231e","\\llcorner"),Vr("\u231f","\\lrcorner"),Vr("\xa9","\\copyright"),Vr("\xae","\\textregistered"),Vr("\ufe0f","\\textregistered"),Vr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Vr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Vr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Vr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Vr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Vr("\u22ee","\\vdots"),Vr("\\varGamma","\\mathit{\\Gamma}"),Vr("\\varDelta","\\mathit{\\Delta}"),Vr("\\varTheta","\\mathit{\\Theta}"),Vr("\\varLambda","\\mathit{\\Lambda}"),Vr("\\varXi","\\mathit{\\Xi}"),Vr("\\varPi","\\mathit{\\Pi}"),Vr("\\varSigma","\\mathit{\\Sigma}"),Vr("\\varUpsilon","\\mathit{\\Upsilon}"),Vr("\\varPhi","\\mathit{\\Phi}"),Vr("\\varPsi","\\mathit{\\Psi}"),Vr("\\varOmega","\\mathit{\\Omega}"),Vr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Vr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Vr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Vr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Vr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Vr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var La={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Vr("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in La?t=La[r]:("\\not"===r.slice(0,4)||r in ne.math&&m.contains(["bin","rel"],ne.math[r].group))&&(t="\\dotsb"),t}));var Da={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Vr("\\dotso",(function(e){return e.future().text in Da?"\\ldots\\,":"\\ldots"})),Vr("\\dotsc",(function(e){var t=e.future().text;return t in Da&&","!==t?"\\ldots\\,":"\\ldots"})),Vr("\\cdots",(function(e){return e.future().text in Da?"\\@cdots\\,":"\\@cdots"})),Vr("\\dotsb","\\cdots"),Vr("\\dotsm","\\cdots"),Vr("\\dotsi","\\!\\cdots"),Vr("\\dotsx","\\ldots\\,"),Vr("\\DOTSI","\\relax"),Vr("\\DOTSB","\\relax"),Vr("\\DOTSX","\\relax"),Vr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Vr("\\,","\\tmspace+{3mu}{.1667em}"),Vr("\\thinspace","\\,"),Vr("\\>","\\mskip{4mu}"),Vr("\\:","\\tmspace+{4mu}{.2222em}"),Vr("\\medspace","\\:"),Vr("\\;","\\tmspace+{5mu}{.2777em}"),Vr("\\thickspace","\\;"),Vr("\\!","\\tmspace-{3mu}{.1667em}"),Vr("\\negthinspace","\\!"),Vr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Vr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Vr("\\enspace","\\kern.5em "),Vr("\\enskip","\\hskip.5em\\relax"),Vr("\\quad","\\hskip1em\\relax"),Vr("\\qquad","\\hskip2em\\relax"),Vr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Vr("\\tag@paren","\\tag@literal{({#1})}"),Vr("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Vr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Vr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Vr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Vr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Vr("\\newline","\\\\\\relax"),Vr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Va=G(C["Main-Regular"]["T".charCodeAt(0)][1]-.7*C["Main-Regular"]["A".charCodeAt(0)][1]);Vr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Va+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Vr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Va+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Vr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Vr("\\@hspace","\\hskip #1\\relax"),Vr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Vr("\\ordinarycolon",":"),Vr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Vr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Vr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Vr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Vr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Vr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Vr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Vr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Vr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Vr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Vr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Vr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Vr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Vr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Vr("\u2237","\\dblcolon"),Vr("\u2239","\\eqcolon"),Vr("\u2254","\\coloneqq"),Vr("\u2255","\\eqqcolon"),Vr("\u2a74","\\Coloneqq"),Vr("\\ratio","\\vcentcolon"),Vr("\\coloncolon","\\dblcolon"),Vr("\\colonequals","\\coloneqq"),Vr("\\coloncolonequals","\\Coloneqq"),Vr("\\equalscolon","\\eqqcolon"),Vr("\\equalscoloncolon","\\Eqqcolon"),Vr("\\colonminus","\\coloneq"),Vr("\\coloncolonminus","\\Coloneq"),Vr("\\minuscolon","\\eqcolon"),Vr("\\minuscoloncolon","\\Eqcolon"),Vr("\\coloncolonapprox","\\Colonapprox"),Vr("\\coloncolonsim","\\Colonsim"),Vr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Vr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Vr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Vr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Vr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),Vr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Vr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Vr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Vr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Vr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Vr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Vr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Vr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Vr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Vr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Vr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Vr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Vr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Vr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Vr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Vr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Vr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Vr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Vr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),Vr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),Vr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),Vr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),Vr("\\imath","\\html@mathml{\\@imath}{\u0131}"),Vr("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),Vr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),Vr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),Vr("\u27e6","\\llbracket"),Vr("\u27e7","\\rrbracket"),Vr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Vr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Vr("\u2983","\\lBrace"),Vr("\u2984","\\rBrace"),Vr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29b5}}"),Vr("\u29b5","\\minuso"),Vr("\\darr","\\downarrow"),Vr("\\dArr","\\Downarrow"),Vr("\\Darr","\\Downarrow"),Vr("\\lang","\\langle"),Vr("\\rang","\\rangle"),Vr("\\uarr","\\uparrow"),Vr("\\uArr","\\Uparrow"),Vr("\\Uarr","\\Uparrow"),Vr("\\N","\\mathbb{N}"),Vr("\\R","\\mathbb{R}"),Vr("\\Z","\\mathbb{Z}"),Vr("\\alef","\\aleph"),Vr("\\alefsym","\\aleph"),Vr("\\Alpha","\\mathrm{A}"),Vr("\\Beta","\\mathrm{B}"),Vr("\\bull","\\bullet"),Vr("\\Chi","\\mathrm{X}"),Vr("\\clubs","\\clubsuit"),Vr("\\cnums","\\mathbb{C}"),Vr("\\Complex","\\mathbb{C}"),Vr("\\Dagger","\\ddagger"),Vr("\\diamonds","\\diamondsuit"),Vr("\\empty","\\emptyset"),Vr("\\Epsilon","\\mathrm{E}"),Vr("\\Eta","\\mathrm{H}"),Vr("\\exist","\\exists"),Vr("\\harr","\\leftrightarrow"),Vr("\\hArr","\\Leftrightarrow"),Vr("\\Harr","\\Leftrightarrow"),Vr("\\hearts","\\heartsuit"),Vr("\\image","\\Im"),Vr("\\infin","\\infty"),Vr("\\Iota","\\mathrm{I}"),Vr("\\isin","\\in"),Vr("\\Kappa","\\mathrm{K}"),Vr("\\larr","\\leftarrow"),Vr("\\lArr","\\Leftarrow"),Vr("\\Larr","\\Leftarrow"),Vr("\\lrarr","\\leftrightarrow"),Vr("\\lrArr","\\Leftrightarrow"),Vr("\\Lrarr","\\Leftrightarrow"),Vr("\\Mu","\\mathrm{M}"),Vr("\\natnums","\\mathbb{N}"),Vr("\\Nu","\\mathrm{N}"),Vr("\\Omicron","\\mathrm{O}"),Vr("\\plusmn","\\pm"),Vr("\\rarr","\\rightarrow"),Vr("\\rArr","\\Rightarrow"),Vr("\\Rarr","\\Rightarrow"),Vr("\\real","\\Re"),Vr("\\reals","\\mathbb{R}"),Vr("\\Reals","\\mathbb{R}"),Vr("\\Rho","\\mathrm{P}"),Vr("\\sdot","\\cdot"),Vr("\\sect","\\S"),Vr("\\spades","\\spadesuit"),Vr("\\sub","\\subset"),Vr("\\sube","\\subseteq"),Vr("\\supe","\\supseteq"),Vr("\\Tau","\\mathrm{T}"),Vr("\\thetasym","\\vartheta"),Vr("\\weierp","\\wp"),Vr("\\Zeta","\\mathrm{Z}"),Vr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Vr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Vr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Vr("\\bra","\\mathinner{\\langle{#1}|}"),Vr("\\ket","\\mathinner{|{#1}\\rangle}"),Vr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Vr("\\Bra","\\left\\langle#1\\right|"),Vr("\\Ket","\\left|#1\\right\\rangle");var Pa=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),n.length&&r.macros.set("\\|",s));var i=t;!t&&n.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...i,...h,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};Vr("\\bra@ket",Pa(!1)),Vr("\\bra@set",Pa(!0)),Vr("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Vr("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Vr("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Vr("\\angln","{\\angl n}"),Vr("\\blue","\\textcolor{##6495ed}{#1}"),Vr("\\orange","\\textcolor{##ffa500}{#1}"),Vr("\\pink","\\textcolor{##ff00af}{#1}"),Vr("\\red","\\textcolor{##df0030}{#1}"),Vr("\\green","\\textcolor{##28ae7b}{#1}"),Vr("\\gray","\\textcolor{gray}{#1}"),Vr("\\purple","\\textcolor{##9d38bd}{#1}"),Vr("\\blueA","\\textcolor{##ccfaff}{#1}"),Vr("\\blueB","\\textcolor{##80f6ff}{#1}"),Vr("\\blueC","\\textcolor{##63d9ea}{#1}"),Vr("\\blueD","\\textcolor{##11accd}{#1}"),Vr("\\blueE","\\textcolor{##0c7f99}{#1}"),Vr("\\tealA","\\textcolor{##94fff5}{#1}"),Vr("\\tealB","\\textcolor{##26edd5}{#1}"),Vr("\\tealC","\\textcolor{##01d1c1}{#1}"),Vr("\\tealD","\\textcolor{##01a995}{#1}"),Vr("\\tealE","\\textcolor{##208170}{#1}"),Vr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Vr("\\greenB","\\textcolor{##8af281}{#1}"),Vr("\\greenC","\\textcolor{##74cf70}{#1}"),Vr("\\greenD","\\textcolor{##1fab54}{#1}"),Vr("\\greenE","\\textcolor{##0d923f}{#1}"),Vr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Vr("\\goldB","\\textcolor{##ffbb71}{#1}"),Vr("\\goldC","\\textcolor{##ff9c39}{#1}"),Vr("\\goldD","\\textcolor{##e07d10}{#1}"),Vr("\\goldE","\\textcolor{##a75a05}{#1}"),Vr("\\redA","\\textcolor{##fca9a9}{#1}"),Vr("\\redB","\\textcolor{##ff8482}{#1}"),Vr("\\redC","\\textcolor{##f9685d}{#1}"),Vr("\\redD","\\textcolor{##e84d39}{#1}"),Vr("\\redE","\\textcolor{##bc2612}{#1}"),Vr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Vr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Vr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Vr("\\maroonD","\\textcolor{##ca337c}{#1}"),Vr("\\maroonE","\\textcolor{##9e034e}{#1}"),Vr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Vr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Vr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Vr("\\purpleD","\\textcolor{##7854ab}{#1}"),Vr("\\purpleE","\\textcolor{##543b78}{#1}"),Vr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Vr("\\mintB","\\textcolor{##edf2df}{#1}"),Vr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Vr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Vr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Vr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Vr("\\grayD","\\textcolor{##d6d8da}{#1}"),Vr("\\grayE","\\textcolor{##babec2}{#1}"),Vr("\\grayF","\\textcolor{##888d93}{#1}"),Vr("\\grayG","\\textcolor{##626569}{#1}"),Vr("\\grayH","\\textcolor{##3b3e40}{#1}"),Vr("\\grayI","\\textcolor{##21242c}{#1}"),Vr("\\kaBlue","\\textcolor{##314453}{#1}"),Vr("\\kaGreen","\\textcolor{##71B307}{#1}");var Fa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Ga{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Ra(Ha,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new Ia(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:a,end:r}=this.consumeArg(["]"]))}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new n("EOF",r.loc)),this.pushTokens(a),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,n=this.future(),o=0,s=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++o;else if("}"===a.text){if(-1===--o)throw new i("Extra }",a)}else if("EOF"===a.text)throw new i("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",a);if(e&&r)if((0===o||1===o&&"{"===e[s])&&a.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==o||r);return"{"===n.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:a}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new i("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;a<r.length;a++){var n=this.popToken();if(r[a]!==n.text)throw new i("Use of the macro doesn't match its definition",n)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new i("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var s=(n=n.slice()).length-1;s>=0;--s){var l=n[s];if("#"===l.text){if(0===s)throw new i("Incomplete placeholder at end of macro body",l);if("#"===(l=n[--s]).text)n.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new i("Not a valid argument number",l);n.splice(s,2,...o[+l.text-1])}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new n(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(-1!==a.indexOf("#"))for(var i=a.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var o=new Ia(a,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||Aa.hasOwnProperty(e)||ne.math.hasOwnProperty(e)||ne.text.hasOwnProperty(e)||Fa.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Aa.hasOwnProperty(e)&&!Aa[e].primitive}}var Ua=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,Ya=Object.freeze({"\u208a":"+","\u208b":"-","\u208c":"=","\u208d":"(","\u208e":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1d62":"i","\u2c7c":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209a":"p","\u1d63":"r","\u209b":"s","\u209c":"t","\u1d64":"u","\u1d65":"v","\u2093":"x","\u1d66":"\u03b2","\u1d67":"\u03b3","\u1d68":"\u03c1","\u1d69":"\u03d5","\u1d6a":"\u03c7","\u207a":"+","\u207b":"-","\u207c":"=","\u207d":"(","\u207e":")","\u2070":"0","\xb9":"1","\xb2":"2","\xb3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1d2c":"A","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u2c7d":"V","\u1d42":"W","\u1d43":"a","\u1d47":"b","\u1d9c":"c","\u1d48":"d","\u1d49":"e","\u1da0":"f","\u1d4d":"g","\u02b0":"h","\u2071":"i","\u02b2":"j","\u1d4f":"k","\u02e1":"l","\u1d50":"m","\u207f":"n","\u1d52":"o","\u1d56":"p","\u02b3":"r","\u02e2":"s","\u1d57":"t","\u1d58":"u","\u1d5b":"v","\u02b7":"w","\u02e3":"x","\u02b8":"y","\u1dbb":"z","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03d5","\u1d61":"\u03c7","\u1dbf":"\u03b8"}),Xa={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"},"\u0327":{text:"\\c"}},Wa={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u1e09":"c\u0327\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\xe7":"c\u0327","\u010f":"d\u030c","\u1e0b":"d\u0307","\u1e11":"d\u0327","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u1e1d":"e\u0327\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u0229":"e\u0327","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u0123":"g\u0327","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\u1e29":"h\u0327","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u0137":"k\u0327","\u013a":"l\u0301","\u013e":"l\u030c","\u013c":"l\u0327","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\u0146":"n\u0327","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u0157":"r\u0327","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u015f":"s\u0327","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\u0163":"t\u0327","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u1e08":"C\u0327\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\xc7":"C\u0327","\u010e":"D\u030c","\u1e0a":"D\u0307","\u1e10":"D\u0327","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u1e1c":"E\u0327\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u0228":"E\u0327","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u0122":"G\u0327","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\u1e28":"H\u0327","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0136":"K\u0327","\u0139":"L\u0301","\u013d":"L\u030c","\u013b":"L\u0327","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\u0145":"N\u0327","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u0156":"R\u0327","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u015e":"S\u0327","\u0164":"T\u030c","\u1e6a":"T\u0307","\u0162":"T\u0327","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"};class _a{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Ga(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new i("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new n("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==_a.endOfExpression.indexOf(a.text))break;if(t&&a.text===t)break;if(e&&Aa[a.text]&&Aa[a.text].infix)break;var n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==r)throw new i("only one infix operator per group",e[a].token);r=a,t=e[a].replaceWith}if(-1!==r&&t){var n,o,s=e.slice(0,r),l=e.slice(r+1);return n=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[n,e[r],o],[]):this.callFunction(t,[n,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var a=this.parseGroup(e);if(!a)throw new i("Expected group after '"+r+"'",t);return a}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var a={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]}}parseAtom(e){var t,r,a=this.parseGroup("atom",e);if("text"===this.mode)return a;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(a&&"op"===a.type){var s="\\limits"===o.text;a.limits=s,a.alwaysHandleSupSub=!0}else{if(!a||"operatorname"!==a.type)throw new i("Limit controls must follow a math operator",o);a.alwaysHandleSupSub&&(a.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(t)throw new i("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new i("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new i("Double superscript",o);var l={type:"textord",mode:this.mode,text:"\\prime"},h=[l];for(this.consume();"'"===this.fetch().text;)h.push(l),this.consume();"^"===this.fetch().text&&h.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:h}}else{if(!Ya[o.text])break;var m=Ua.test(o.text),c=[];for(c.push(new n(Ya[o.text])),this.consume();;){var p=this.fetch().text;if(!Ya[p])break;if(Ua.test(p)!==m)break;c.unshift(new n(Ya[p])),this.consume()}var u=this.subparse(c);m?r={type:"ordgroup",mode:"math",body:u}:t={type:"ordgroup",mode:"math",body:u}}}return t||r?{type:"supsub",mode:this.mode,base:a,sup:t,sub:r}:a}parseFunction(e,t){var r=this.fetch(),a=r.text,n=Aa[a];if(!n)return null;if(this.consume(),t&&"atom"!==t&&!n.allowedInArgument)throw new i("Got function '"+a+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!n.allowedInText)throw new i("Can't use function '"+a+"' in text mode",r);if("math"===this.mode&&!1===n.allowedInMath)throw new i("Can't use function '"+a+"' in math mode",r);var{args:o,optArgs:s}=this.parseArguments(a,n);return this.callFunction(a,o,s,r,e)}callFunction(e,t,r,a,n){var o={funcName:e,parser:this,token:a,breakOnTokenText:n},s=Aa[e];if(s&&s.handler)return s.handler(o,t,r);throw new i("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var a=[],n=[],o=0;o<r;o++){var s=t.argTypes&&t.argTypes[o],l=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==n[0])&&(s="primitive");var h=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)n.push(h);else{if(null==h)throw new i("Null argument, please report this as a bug");a.push(h)}}return{args:a,optArgs:n}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var a=this.parseArgumentGroup(r,"text");return null!=a?{type:"styling",mode:a.mode,body:[a],style:"text"}:null;case"raw":var n=this.parseStringGroup("raw",r);return null!=n?{type:"raw",mode:"text",string:n.text}:null;case"primitive":if(r)throw new i("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new i("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new i("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var a,n="";"EOF"!==(a=this.fetch()).text;)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,t){for(var r,a=this.fetch(),n=a,o="";"EOF"!==(r=this.fetch()).text&&e.test(o+r.text);)o+=(n=r).text,this.consume();if(""===o)throw new i("Invalid "+t+": '"+a.text+"'",a);return a.range(n,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new i("Invalid color: '"+t.text+"'",t);var a=r[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new i("Invalid size: '"+t.text+"'",t);var n={number:+(a[1]+a[2]),unit:a[3]};if(!P(n))throw new i("Invalid unit: '"+n.unit+"'",t);return{type:"size",mode:this.mode,value:n,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var a=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var n=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:n};return t&&this.switchMode(a),i}parseGroup(e,t){var r,n=this.fetch(),o=n.text;if("{"===o||"\\begingroup"===o){this.consume();var s="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,s),h=this.fetch();this.expect(s),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:a.range(n,h),body:l,semisimple:"\\begingroup"===o||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!Fa.hasOwnProperty(o)){if(this.settings.throwOnError)throw new i("Undefined control sequence: "+o,n);r=this.formatUnsupportedCmd(o),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],i=n.text;"-"===i&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:a.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:a.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==i&&"`"!==i||e[r+1].text!==i||(e.splice(r,2,{type:"textord",mode:"text",loc:a.range(n,e[r+1]),text:i+i}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new i("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}Wa.hasOwnProperty(t[0])&&!ne[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Wa[t[0]]+t.slice(1));var o,s=Na.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="\u0131":"j"===t&&(t="\u0237")),ne[this.mode][t]){this.settings.strict&&"math"===this.mode&&Ee.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,h=ne[this.mode][t].group,m=a.range(e);if(re.hasOwnProperty(h)){var c=h;l={type:"atom",mode:this.mode,family:c,loc:m,text:t}}else l={type:h,mode:this.mode,loc:m,text:t};o=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(z(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:a.range(e),text:t}}if(this.consume(),s)for(var p=0;p<s[0].length;p++){var u=s[0][p];if(!Xa[u])throw new i("Unknown accent ' "+u+"'",e);var d=Xa[u][this.mode]||Xa[u].text;if(!d)throw new i("Accent "+u+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:a.range(e),label:d,isStretchy:!1,isShifty:!0,base:o}}return o}}_a.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ja=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new _a(e,t);delete r.gullet.macros.current["\\df@tag"];var a=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new i("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:r.subparse([new n("\\df@tag")])}]}return a},$a=function(e,t,r){t.textContent="";var a=Ka(e,r).toNode();t.appendChild(a)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$a=function(){throw new i("KaTeX doesn't work in quirks mode.")});var Za=function(e,t,r){if(r.throwOnError||!(e instanceof i))throw e;var a=Ke.makeSpan(["katex-error"],[new K(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+r.errorColor),a},Ka=function(e,t){var r=new u(t);try{return function(e,t,r){var a,n=Ot(r);if("mathml"===r.output)return Ht(e,t,n,r.displayMode,!0);if("html"===r.output){var i=St(e,n);a=Ke.makeSpan(["katex"],[i])}else{var o=Ht(e,t,n,r.displayMode,!1),s=St(e,n);a=Ke.makeSpan(["katex"],[o,s])}return Et(a,r)}(ja(e,r),e,r)}catch(a){return Za(a,e,r)}},Ja={version:"0.16.10",render:$a,renderToString:function(e,t){return Ka(e,t).toMarkup()},ParseError:i,SETTINGS_SCHEMA:c,__parse:function(e,t){var r=new u(t);return ja(e,r)},__renderToDomTree:Ka,__renderToHTMLTree:function(e,t){var r=new u(t);try{return function(e,t,r){var a=St(e,Ot(r)),n=Ke.makeSpan(["katex"],[a]);return Et(n,r)}(ja(e,r),0,r)}catch(a){return Za(a,e,r)}},__setFontMetrics:function(e,t){C[e]=t},__defineSymbol:ie,__defineFunction:ot,__defineMacro:Vr,__domTree:{Span:_,Anchor:j,SymbolNode:K,SvgNode:J,PathNode:Q,LineNode:ee}}}}]); \ No newline at end of file diff --git a/website/assets/js/22544e41.cb76717c.js b/website/assets/js/22544e41.cb76717c.js new file mode 100644 index 000000000..0646e4f77 --- /dev/null +++ b/website/assets/js/22544e41.cb76717c.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8120],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>p});const r={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=t(7119),s=t(6487),a=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=t(7020),d=t(4848);const u={};function p(e){let{source:n,data:p=u,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,d.jsxs)("div",{className:r.FormExample,children:[(0,d.jsxs)(o.A,{children:[(0,d.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,d.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,d.jsx)(s.A,{value:"data",label:"Data",children:(0,d.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,d.jsxs)(o.A,{children:[(0,d.jsx)(s.A,{value:"code",label:"Code",children:(0,d.jsx)(a.A,{language:"tsx",className:r.FormExampleCode,children:g?c:i})}),(0,d.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,d.jsx)("div",{className:r.FormExampleRender,children:(0,d.jsx)(l.A,{fallback:(0,d.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?t(5152).g:t(3314).S;return(0,d.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>s});var r=t(1999),o=t(4848);function s(e){let{source:n,data:t}=e;const{getComponents:s,Provider:a}=(0,r.O1)(n,t,{initialPage:"1"});return(0,o.jsx)(a,{children:(0,o.jsx)(r.R2,{components:s()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>a});var r=t(1999),o=t(6540),s=t(4848);function a(e){let{source:n,data:t,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:d,goNextPage:u,Provider:p,compileControls:m}=(0,r.O1)(n,t,{initialPage:"1",...a}),[g,x]=(0,o.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(r.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:d,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=m();e.currentErrors?x(e):u()},children:"Suivant"})]}),g&&(0,s.jsx)(r.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),u()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},1784:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"components/fields/datepicker","title":"Datepicker","description":"Le composant Datepicker permet \xe0 l\'utilisateur de s\xe9lectionner une date.","source":"@site/docs/components/fields/datepicker.mdx","sourceDirName":"components/fields","slug":"/components/fields/datepicker","permalink":"/Lunatic/docs/components/fields/datepicker","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/datepicker.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Textarea","permalink":"/Lunatic/docs/components/fields/textarea"},"next":{"title":"Duration","permalink":"/Lunatic/docs/components/fields/duration"}}');var o=t(4848),s=t(8453);const a=JSON.parse('{"components":[{"componentType":"Datepicker","max":"2100-01-01","dateFormat":"YYYY-MM-DD","conditionFilter":{"type":"VTL","value":"true"},"label":{"type":"VTL|MD","value":"\\"\u27a1 1. \\" || \\"Birth day\\""},"mandatory":false,"min":"1900-01-01","response":{"name":"Q1"},"id":"l7ovm2rv","page":"1","controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"Le format de la date YYYY-MM-DD n\'est pas respect\xe9.\\""},"control":{"type":"VTL","value":"cast(Q1, date, \\"YYYY-MM-DD\\")"},"id":"l7ovm2rv-format"},{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"La date saisie doit \xeatre comprise entre 1900-01-01 et 2100-01-01.\\""},"control":{"type":"VTL","value":"not(cast(Q1, date, \\"YYYY-MM-DD\\")>cast(\\"2100-01-01\\", date, \\"YYYY-MM-DD\\") or cast(Q1, date,\\"YYYY-MM-DD\\")<cast(\\"1900-01-01\\", date, \\"YYYY-MM-DD\\"))"},"id":"l7ovm2rv-formatborne"}]}],"variables":[{"variableType":"COLLECTED","values":{"COLLECTED":"1974-03-15","EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"Q1"}],"pagination":"question","resizing":{},"label":{"type":"VTL|MD","value":"\\"Example DatePicker\\""},"lunaticModelVersion":"2.2.13","modele":"DATEPICKER","enoCoreVersion":"2.3.10","generatingDate":"05-09-2022 14:37:43","missing":false,"id":"l7ovbqou","maxPage":"1"}');var i=t(4264);const c={},l="Datepicker",d={},u=[];function p(e){const n={code:"code",h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"datepicker",children:"Datepicker"})}),"\n",(0,o.jsxs)(n.p,{children:["Le composant ",(0,o.jsx)(n.strong,{children:"Datepicker"})," permet \xe0 l'utilisateur de s\xe9lectionner une date."]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"dateFormat"}),", format d'entr\xe9e de la date (",(0,o.jsx)(n.code,{children:"YYYY-MM-DD"})," | ",(0,o.jsx)(n.code,{children:"YYYY"})," | ",(0,o.jsx)(n.code,{children:"YYYY-MM"}),")"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"min"}),", date minimale"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"max"}),", date maximale"]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"Le choix a \xe9t\xe9 fait pour ce composant de ne plus utiliser un datepicker natif, car le comportement \xe9tait trop diff\xe9rent en fonction des navigateurs et frein\xe9 l'entr\xe9e des informations par les enqu\xeateurs. Aussi, cela permet le support de format qui n'\xe9tait pas forc\xe9ment pris en charge par les navigateurs \xe0 l'heure actuelle."}),"\n","\n",(0,o.jsx)(i.L,{source:a})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/2334.ba613eb0.js b/website/assets/js/2334.ba613eb0.js new file mode 100644 index 000000000..597a8f9f6 --- /dev/null +++ b/website/assets/js/2334.ba613eb0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2334],{2334:(e,n,t)=>{t.d(n,{Zp:()=>Rn});var r=t(8058),o=t(8894),i=0;const u=function(e){var n=++i;return(0,o.A)(e)+n};var a=t(9142),s=t(4098),d=t(4722),c=Math.ceil,h=Math.max;const f=function(e,n,t,r){for(var o=-1,i=h(c((n-e)/(t||1)),0),u=Array(i);i--;)u[r?i:++o]=e,e+=t;return u};var v=t(6832),l=t(4342);const g=function(e){return function(n,t,r){return r&&"number"!=typeof r&&(0,v.A)(n,t,r)&&(t=r=void 0),n=(0,l.A)(n),void 0===t?(t=n,n=0):t=(0,l.A)(t),r=void 0===r?n<t?1:-1:(0,l.A)(r),f(n,t,r,e)}}();var p=t(697);class A{constructor(){var e={};e._next=e._prev=e,this._sentinel=e}dequeue(){var e=this._sentinel,n=e._prev;if(n!==e)return w(n),n}enqueue(e){var n=this._sentinel;e._prev&&e._next&&w(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){for(var e=[],n=this._sentinel,t=n._prev;t!==n;)e.push(JSON.stringify(t,b)),t=t._prev;return"["+e.join(", ")+"]"}}function w(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function b(e,n){if("_next"!==e&&"_prev"!==e)return n}var m=a.A(1);function y(e,n){if(e.nodeCount()<=1)return[];var t=function(e,n){var t=new p.T,o=0,i=0;r.A(e.nodes(),(function(e){t.setNode(e,{v:e,in:0,out:0})})),r.A(e.edges(),(function(e){var r=t.edge(e.v,e.w)||0,u=n(e),a=r+u;t.setEdge(e.v,e.w,a),i=Math.max(i,t.node(e.v).out+=u),o=Math.max(o,t.node(e.w).in+=u)}));var u=g(i+o+3).map((function(){return new A})),a=o+1;return r.A(t.nodes(),(function(e){E(u,a,t.node(e))})),{graph:t,buckets:u,zeroIdx:a}}(e,n||m),o=function(e,n,t){var r,o=[],i=n[n.length-1],u=n[0];for(;e.nodeCount();){for(;r=u.dequeue();)_(e,n,t,r);for(;r=i.dequeue();)_(e,n,t,r);if(e.nodeCount())for(var a=n.length-2;a>0;--a)if(r=n[a].dequeue()){o=o.concat(_(e,n,t,r,!0));break}}return o}(t.graph,t.buckets,t.zeroIdx);return s.A(d.A(o,(function(n){return e.outEdges(n.v,n.w)})))}function _(e,n,t,o,i){var u=i?[]:void 0;return r.A(e.inEdges(o.v),(function(r){var o=e.edge(r),a=e.node(r.v);i&&u.push({v:r.v,w:r.w}),a.out-=o,E(n,t,a)})),r.A(e.outEdges(o.v),(function(r){var o=e.edge(r),i=r.w,u=e.node(i);u.in-=o,E(n,t,u)})),e.removeNode(o.v),u}function E(e,n,t){t.out?t.in?e[t.out-t.in+n].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}function x(e){var n="greedy"===e.graph().acyclicer?y(e,function(e){return function(n){return e.edge(n).weight}}(e)):function(e){var n=[],t={},o={};function i(u){Object.prototype.hasOwnProperty.call(o,u)||(o[u]=!0,t[u]=!0,r.A(e.outEdges(u),(function(e){Object.prototype.hasOwnProperty.call(t,e.w)?n.push(e):i(e.w)})),delete t[u])}return r.A(e.nodes(),i),n}(e);r.A(n,(function(n){var t=e.edge(n);e.removeEdge(n),t.forwardName=n.name,t.reversed=!0,e.setEdge(n.w,n.v,t,u("rev"))}))}var O=t(2837),k=t(9354),N=t(9188);const P=function(e,n){return(0,k.A)(e,n,(function(n,t){return(0,N.A)(e,t)}))};var j=t(6875),C=t(7525);const I=function(e){return(0,C.A)((0,j.A)(e,void 0,s.A),e+"")}((function(e,n){return null==e?{}:P(e,n)}));var L=t(3068),T=t(2559);const M=function(e,n){return e>n};var R=t(9008);const F=function(e){return e&&e.length?(0,T.A)(e,R.A,M):void 0};var D=t(6666),S=t(2528),G=t(9841),V=t(3958);const B=function(e,n){var t={};return n=(0,V.A)(n,3),(0,G.A)(e,(function(e,r,o){(0,S.A)(t,r,n(e,r,o))})),t};var q=t(9592),Y=t(6452),z=t(8585),$=t(1917);const J=function(){return $.A.Date.now()};function Z(e,n,t,r){var o;do{o=u(r)}while(e.hasNode(o));return t.dummy=n,e.setNode(o,t),o}function H(e){var n=new p.T({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.A(e.nodes(),(function(t){e.children(t).length||n.setNode(t,e.node(t))})),r.A(e.edges(),(function(t){n.setEdge(t,e.edge(t))})),n}function K(e,n){var t,r,o=e.x,i=e.y,u=n.x-o,a=n.y-i,s=e.width/2,d=e.height/2;if(!u&&!a)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*s>Math.abs(u)*d?(a<0&&(d=-d),t=d*u/a,r=d):(u<0&&(s=-s),t=s,r=s*a/u),{x:o+t,y:i+r}}function Q(e){var n=d.A(g(W(e)+1),(function(){return[]}));return r.A(e.nodes(),(function(t){var r=e.node(t),o=r.rank;q.A(o)||(n[o][r.order]=t)})),n}function U(e,n,t,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=t,o.order=r),Z(e,"border",o,n)}function W(e){return F(d.A(e.nodes(),(function(n){var t=e.node(n).rank;if(!q.A(t))return t})))}function X(e,n){var t=J();try{return n()}finally{console.log(e+" time: "+(J()-t)+"ms")}}function ee(e,n){return n()}function ne(e,n,t,r,o,i){var u={width:0,height:0,rank:i,borderType:n},a=o[n][i-1],s=Z(e,"border",u,t);o[n][i]=s,e.setParent(s,r),a&&e.setEdge(a,s,{weight:1})}function te(e){var n=e.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(e){r.A(e.nodes(),(function(n){ie(e.node(n))})),r.A(e.edges(),(function(n){var t=e.edge(n);r.A(t.points,ie),Object.prototype.hasOwnProperty.call(t,"y")&&ie(t)}))}(e),"lr"!==n&&"rl"!==n||(!function(e){r.A(e.nodes(),(function(n){ue(e.node(n))})),r.A(e.edges(),(function(n){var t=e.edge(n);r.A(t.points,ue),Object.prototype.hasOwnProperty.call(t,"x")&&ue(t)}))}(e),re(e))}function re(e){r.A(e.nodes(),(function(n){oe(e.node(n))})),r.A(e.edges(),(function(n){oe(e.edge(n))}))}function oe(e){var n=e.width;e.width=e.height,e.height=n}function ie(e){e.y=-e.y}function ue(e){var n=e.x;e.x=e.y,e.y=n}function ae(e){e.graph().dummyChains=[],r.A(e.edges(),(function(n){!function(e,n){var t=n.v,r=e.node(t).rank,o=n.w,i=e.node(o).rank,u=n.name,a=e.edge(n),s=a.labelRank;if(i===r+1)return;e.removeEdge(n);var d,c,h=void 0;for(c=0,++r;r<i;++c,++r)a.points=[],d=Z(e,"edge",h={width:0,height:0,edgeLabel:a,edgeObj:n,rank:r},"_d"),r===s&&(h.width=a.width,h.height=a.height,h.dummy="edge-label",h.labelpos=a.labelpos),e.setEdge(t,d,{weight:a.weight},u),0===c&&e.graph().dummyChains.push(d),t=d;e.setEdge(t,o,{weight:a.weight},u)}(e,n)}))}var se=t(6224);const de=function(e,n){return e&&e.length?(0,T.A)(e,(0,V.A)(n,2),se.A):void 0};function ce(e){var n={};r.A(e.sources(),(function t(r){var o=e.node(r);if(Object.prototype.hasOwnProperty.call(n,r))return o.rank;n[r]=!0;var i=Y.A(d.A(e.outEdges(r),(function(n){return t(n.w)-e.edge(n).minlen})));return i!==Number.POSITIVE_INFINITY&&null!=i||(i=0),o.rank=i}))}function he(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function fe(e){var n,t,r=new p.T({directed:!1}),o=e.nodes()[0],i=e.nodeCount();for(r.setNode(o,{});ve(r,e)<i;)n=le(r,e),t=r.hasNode(n.v)?he(e,n):-he(e,n),ge(r,e,t);return r}function ve(e,n){return r.A(e.nodes(),(function t(o){r.A(n.nodeEdges(o),(function(r){var i=r.v,u=o===i?r.w:i;e.hasNode(u)||he(n,r)||(e.setNode(u,{}),e.setEdge(o,u,{}),t(u))}))})),e.nodeCount()}function le(e,n){return de(n.edges(),(function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return he(n,t)}))}function ge(e,n,t){r.A(e.nodes(),(function(e){n.node(e).rank+=t}))}var pe=t(6145),Ae=t(4092);a.A(1);a.A(1);t(1852),t(9779),t(8446),t(9703);(0,t(805).A)("length");RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var we="\\ud800-\\udfff",be="["+we+"]",me="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ye="\\ud83c[\\udffb-\\udfff]",_e="[^"+we+"]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="(?:"+me+"|"+ye+")"+"?",ke="[\\ufe0e\\ufe0f]?",Ne=ke+Oe+("(?:\\u200d(?:"+[_e,Ee,xe].join("|")+")"+ke+Oe+")*"),Pe="(?:"+[_e+me+"?",me,Ee,xe,be].join("|")+")";RegExp(ye+"(?="+ye+")|"+Pe+Ne,"g");function je(){}je.prototype=new Error;var Ce=t(2049);function Ie(e,n,t){Ce.A(n)||(n=[n]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],u={};return r.A(n,(function(n){if(!e.hasNode(n))throw new Error("Graph does not have node: "+n);Le(e,n,"post"===t,u,o,i)})),i}function Le(e,n,t,o,i,u){Object.prototype.hasOwnProperty.call(o,n)||(o[n]=!0,t||u.push(n),r.A(i(n),(function(n){Le(e,n,t,o,i,u)})),t&&u.push(n))}t(7981);function Te(e){e=function(e){var n=(new p.T).setGraph(e.graph());return r.A(e.nodes(),(function(t){n.setNode(t,e.node(t))})),r.A(e.edges(),(function(t){var r=n.edge(t.v,t.w)||{weight:0,minlen:1},o=e.edge(t);n.setEdge(t.v,t.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),n}(e),ce(e);var n,t=fe(e);for(Fe(t),Me(t,e);n=Se(t);)Ve(t,e,n,Ge(t,e,n))}function Me(e,n){var t=function(e,n){return Ie(e,n,"post")}(e,e.nodes());t=t.slice(0,t.length-1),r.A(t,(function(t){!function(e,n,t){var r=e.node(t),o=r.parent;e.edge(t,o).cutvalue=Re(e,n,t)}(e,n,t)}))}function Re(e,n,t){var o=e.node(t).parent,i=!0,u=n.edge(t,o),a=0;return u||(i=!1,u=n.edge(o,t)),a=u.weight,r.A(n.nodeEdges(t),(function(r){var u,s,d=r.v===t,c=d?r.w:r.v;if(c!==o){var h=d===i,f=n.edge(r).weight;if(a+=h?f:-f,u=t,s=c,e.hasEdge(u,s)){var v=e.edge(t,c).cutvalue;a+=h?-v:v}}})),a}function Fe(e,n){arguments.length<2&&(n=e.nodes()[0]),De(e,{},1,n)}function De(e,n,t,o,i){var u=t,a=e.node(o);return n[o]=!0,r.A(e.neighbors(o),(function(r){Object.prototype.hasOwnProperty.call(n,r)||(t=De(e,n,t,r,o))})),a.low=u,a.lim=t++,i?a.parent=i:delete a.parent,t}function Se(e){return pe.A(e.edges(),(function(n){return e.edge(n).cutvalue<0}))}function Ge(e,n,t){var r=t.v,o=t.w;n.hasEdge(r,o)||(r=t.w,o=t.v);var i=e.node(r),u=e.node(o),a=i,s=!1;i.lim>u.lim&&(a=u,s=!0);var d=Ae.A(n.edges(),(function(n){return s===Be(e,e.node(n.v),a)&&s!==Be(e,e.node(n.w),a)}));return de(d,(function(e){return he(n,e)}))}function Ve(e,n,t,o){var i=t.v,u=t.w;e.removeEdge(i,u),e.setEdge(o.v,o.w,{}),Fe(e),Me(e,n),function(e,n){var t=pe.A(e.nodes(),(function(e){return!n.node(e).parent})),o=function(e,n){return Ie(e,n,"pre")}(e,t);o=o.slice(1),r.A(o,(function(t){var r=e.node(t).parent,o=n.edge(t,r),i=!1;o||(o=n.edge(r,t),i=!0),n.node(t).rank=n.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,n)}function Be(e,n,t){return t.low<=n.lim&&n.lim<=t.lim}function qe(e){switch(e.graph().ranker){case"network-simplex":default:ze(e);break;case"tight-tree":!function(e){ce(e),fe(e)}(e);break;case"longest-path":Ye(e)}}Te.initLowLimValues=Fe,Te.initCutValues=Me,Te.calcCutValue=Re,Te.leaveEdge=Se,Te.enterEdge=Ge,Te.exchangeEdges=Ve;var Ye=ce;function ze(e){Te(e)}var $e=t(8207),Je=t(9463);function Ze(e){var n=Z(e,"root",{},"_root"),t=function(e){var n={};function t(o,i){var u=e.children(o);u&&u.length&&r.A(u,(function(e){t(e,i+1)})),n[o]=i}return r.A(e.children(),(function(e){t(e,1)})),n}(e),o=F($e.A(t))-1,i=2*o+1;e.graph().nestingRoot=n,r.A(e.edges(),(function(n){e.edge(n).minlen*=i}));var u=function(e){return Je.A(e.edges(),(function(n,t){return n+e.edge(t).weight}),0)}(e)+1;r.A(e.children(),(function(r){He(e,n,i,u,o,t,r)})),e.graph().nodeRankFactor=i}function He(e,n,t,o,i,u,a){var s=e.children(a);if(s.length){var d=U(e,"_bt"),c=U(e,"_bb"),h=e.node(a);e.setParent(d,a),h.borderTop=d,e.setParent(c,a),h.borderBottom=c,r.A(s,(function(r){He(e,n,t,o,i,u,r);var s=e.node(r),h=s.borderTop?s.borderTop:r,f=s.borderBottom?s.borderBottom:r,v=s.borderTop?o:2*o,l=h!==f?1:i-u[a]+1;e.setEdge(d,h,{weight:v,minlen:l,nestingEdge:!0}),e.setEdge(f,c,{weight:v,minlen:l,nestingEdge:!0})})),e.parent(a)||e.setEdge(n,d,{weight:0,minlen:i+u[a]})}else a!==n&&e.setEdge(n,a,{weight:0,minlen:t})}var Ke=t(8675);const Qe=function(e){return(0,Ke.A)(e,5)};function Ue(e,n,t){var o=function(e){var n;for(;e.hasNode(n=u("_root")););return n}(e),i=new p.T({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(n){return e.node(n)}));return r.A(e.nodes(),(function(u){var a=e.node(u),s=e.parent(u);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(u),i.setParent(u,s||o),r.A(e[t](u),(function(n){var t=n.v===u?n.w:n.v,r=i.edge(t,u),o=q.A(r)?0:r.weight;i.setEdge(t,u,{weight:e.edge(n).weight+o})})),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(u,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))})),i}var We=t(2851);const Xe=function(e,n,t){for(var r=-1,o=e.length,i=n.length,u={};++r<o;){var a=r<i?n[r]:void 0;t(u,e[r],a)}return u};const en=function(e,n){return Xe(e||[],n||[],We.A)};var nn=t(3588),tn=t(5572),rn=t(6318),on=t(2568);const un=function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e};var an=t(2789),sn=t(1882);const dn=function(e,n){if(e!==n){var t=void 0!==e,r=null===e,o=e==e,i=(0,sn.A)(e),u=void 0!==n,a=null===n,s=n==n,d=(0,sn.A)(n);if(!a&&!d&&!i&&e>n||i&&u&&s&&!a&&!d||r&&u&&s||!t&&s||!o)return 1;if(!r&&!i&&!d&&e<n||d&&t&&o&&!r&&!i||a&&t&&o||!u&&o||!s)return-1}return 0};const cn=function(e,n,t){for(var r=-1,o=e.criteria,i=n.criteria,u=o.length,a=t.length;++r<u;){var s=dn(o[r],i[r]);if(s)return r>=a?s:s*("desc"==t[r]?-1:1)}return e.index-n.index};const hn=function(e,n,t){n=n.length?(0,tn.A)(n,(function(e){return(0,Ce.A)(e)?function(n){return(0,rn.A)(n,1===e.length?e[0]:e)}:e})):[R.A];var r=-1;n=(0,tn.A)(n,(0,an.A)(V.A));var o=(0,on.A)(e,(function(e,t,o){return{criteria:(0,tn.A)(n,(function(n){return n(e)})),index:++r,value:e}}));return un(o,(function(e,n){return cn(e,n,t)}))};const fn=(0,t(4326).A)((function(e,n){if(null==e)return[];var t=n.length;return t>1&&(0,v.A)(e,n[0],n[1])?n=[]:t>2&&(0,v.A)(n[0],n[1],n[2])&&(n=[n[0]]),hn(e,(0,nn.A)(n,1),[])}));function vn(e,n){for(var t=0,r=1;r<n.length;++r)t+=ln(e,n[r-1],n[r]);return t}function ln(e,n,t){for(var o=en(t,d.A(t,(function(e,n){return n}))),i=s.A(d.A(n,(function(n){return fn(d.A(e.outEdges(n),(function(n){return{pos:o[n.w],weight:e.edge(n).weight}})),"pos")}))),u=1;u<t.length;)u<<=1;var a=2*u-1;u-=1;var c=d.A(new Array(a),(function(){return 0})),h=0;return r.A(i.forEach((function(e){var n=e.pos+u;c[n]+=e.weight;for(var t=0;n>0;)n%2&&(t+=c[n+1]),c[n=n-1>>1]+=e.weight;h+=e.weight*t}))),h}function gn(e,n){var t={};return r.A(e,(function(e,n){var r=t[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};q.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)})),r.A(n.edges(),(function(e){var n=t[e.v],r=t[e.w];q.A(n)||q.A(r)||(r.indegree++,n.out.push(t[e.w]))})),function(e){var n=[];function t(e){return function(n){n.merged||(q.A(n.barycenter)||q.A(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var t=0,r=0;e.weight&&(t+=e.barycenter*e.weight,r+=e.weight);n.weight&&(t+=n.barycenter*n.weight,r+=n.weight);e.vs=n.vs.concat(e.vs),e.barycenter=t/r,e.weight=r,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}function o(n){return function(t){t.in.push(n),0==--t.indegree&&e.push(t)}}for(;e.length;){var i=e.pop();n.push(i),r.A(i.in.reverse(),t(i)),r.A(i.out,o(i))}return d.A(Ae.A(n,(function(e){return!e.merged})),(function(e){return I(e,["vs","i","barycenter","weight"])}))}(Ae.A(t,(function(e){return!e.indegree})))}function pn(e,n){var t,o=function(e,n){var t={lhs:[],rhs:[]};return r.A(e,(function(e){n(e)?t.lhs.push(e):t.rhs.push(e)})),t}(e,(function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")})),i=o.lhs,u=fn(o.rhs,(function(e){return-e.i})),a=[],d=0,c=0,h=0;i.sort((t=!!n,function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i})),h=An(a,u,h),r.A(i,(function(e){h+=e.vs.length,a.push(e.vs),d+=e.barycenter*e.weight,c+=e.weight,h=An(a,u,h)}));var f={vs:s.A(a)};return c&&(f.barycenter=d/c,f.weight=c),f}function An(e,n,t){for(var r;n.length&&(r=D.A(n)).i<=t;)n.pop(),e.push(r.vs),t++;return t}function wn(e,n,t,o){var i=e.children(n),u=e.node(n),a=u?u.borderLeft:void 0,c=u?u.borderRight:void 0,h={};a&&(i=Ae.A(i,(function(e){return e!==a&&e!==c})));var f=function(e,n){return d.A(n,(function(n){var t=e.inEdges(n);if(t.length){var r=Je.A(t,(function(n,t){var r=e.edge(t),o=e.node(t.v);return{sum:n.sum+r.weight*o.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}}))}(e,i);r.A(f,(function(n){if(e.children(n.v).length){var r=wn(e,n.v,t,o);h[n.v]=r,Object.prototype.hasOwnProperty.call(r,"barycenter")&&(i=n,u=r,q.A(i.barycenter)?(i.barycenter=u.barycenter,i.weight=u.weight):(i.barycenter=(i.barycenter*i.weight+u.barycenter*u.weight)/(i.weight+u.weight),i.weight+=u.weight))}var i,u}));var v=gn(f,t);!function(e,n){r.A(e,(function(e){e.vs=s.A(e.vs.map((function(e){return n[e]?n[e].vs:e})))}))}(v,h);var l=pn(v,o);if(a&&(l.vs=s.A([a,l.vs,c]),e.predecessors(a).length)){var g=e.node(e.predecessors(a)[0]),p=e.node(e.predecessors(c)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+g.order+p.order)/(l.weight+2),l.weight+=2}return l}function bn(e){var n=W(e),t=mn(e,g(1,n+1),"inEdges"),o=mn(e,g(n-1,-1,-1),"outEdges"),i=function(e){var n={},t=Ae.A(e.nodes(),(function(n){return!e.children(n).length})),o=F(d.A(t,(function(n){return e.node(n).rank}))),i=d.A(g(o+1),(function(){return[]})),u=fn(t,(function(n){return e.node(n).rank}));return r.A(u,(function t(o){if(!z.A(n,o)){n[o]=!0;var u=e.node(o);i[u.rank].push(o),r.A(e.successors(o),t)}})),i}(e);_n(e,i);for(var u,a=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){yn(s%2?t:o,s%4>=2);var h=vn(e,i=Q(e));h<a&&(c=0,u=Qe(i),a=h)}_n(e,u)}function mn(e,n,t){return d.A(n,(function(n){return Ue(e,n,t)}))}function yn(e,n){var t=new p.T;r.A(e,(function(e){var o=e.graph().root,i=wn(e,o,t,n);r.A(i.vs,(function(n,t){e.node(n).order=t})),function(e,n,t){var o,i={};r.A(t,(function(t){for(var r,u,a=e.parent(t);a;){if((r=e.parent(a))?(u=i[r],i[r]=a):(u=o,o=a),u&&u!==a)return void n.setEdge(u,a);a=r}}))}(e,t,i.vs)}))}function _n(e,n){r.A(n,(function(n){r.A(n,(function(n,t){e.node(n).order=t}))}))}function En(e){var n=function(e){var n={},t=0;function o(i){var u=t;r.A(e.children(i),o),n[i]={low:u,lim:t++}}return r.A(e.children(),o),n}(e);r.A(e.graph().dummyChains,(function(t){for(var r=e.node(t),o=r.edgeObj,i=function(e,n,t,r){var o,i,u=[],a=[],s=Math.min(n[t].low,n[r].low),d=Math.max(n[t].lim,n[r].lim);o=t;do{o=e.parent(o),u.push(o)}while(o&&(n[o].low>s||d>n[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)a.push(o);return{path:u.concat(a.reverse()),lca:i}}(e,n,o.v,o.w),u=i.path,a=i.lca,s=0,d=u[s],c=!0;t!==o.w;){if(r=e.node(t),c){for(;(d=u[s])!==a&&e.node(d).maxRank<r.rank;)s++;d===a&&(c=!1)}if(!c){for(;s<u.length-1&&e.node(d=u[s+1]).minRank<=r.rank;)s++;d=u[s]}e.setParent(t,d),t=e.successors(t)[0]}}))}var xn=t(9922);const On=function(e,n){return e&&(0,G.A)(e,(0,xn.A)(n))};var kn=t(4574),Nn=t(5615);const Pn=function(e,n){return null==e?e:(0,kn.A)(e,(0,xn.A)(n),Nn.A)};function jn(e,n){var t={};return Je.A(n,(function(n,o){var i=0,u=0,a=n.length,s=D.A(o);return r.A(o,(function(n,d){var c=function(e,n){if(e.node(n).dummy)return pe.A(e.predecessors(n),(function(n){return e.node(n).dummy}))}(e,n),h=c?e.node(c).order:a;(c||n===s)&&(r.A(o.slice(u,d+1),(function(n){r.A(e.predecessors(n),(function(r){var o=e.node(r),u=o.order;!(u<i||h<u)||o.dummy&&e.node(n).dummy||Cn(t,r,n)}))})),u=d+1,i=h)})),o})),t}function Cn(e,n,t){if(n>t){var r=n;n=t,t=r}var o=e[n];o||(e[n]=o={}),o[t]=!0}function In(e,n,t){if(n>t){var r=n;n=t,t=r}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],t)}function Ln(e,n,t,o,i){var u={},a=function(e,n,t,o){var i=new p.T,u=e.graph(),a=function(e,n,t){return function(r,o,i){var u,a=r.node(o),s=r.node(i),d=0;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":u=-a.width/2;break;case"r":u=a.width/2}if(u&&(d+=t?u:-u),u=0,d+=(a.dummy?n:e)/2,d+=(s.dummy?n:e)/2,d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=s.width/2;break;case"r":u=-s.width/2}return u&&(d+=t?u:-u),u=0,d}}(u.nodesep,u.edgesep,o);return r.A(n,(function(n){var o;r.A(n,(function(n){var r=t[n];if(i.setNode(r),o){var u=t[o],s=i.edge(u,r);i.setEdge(u,r,Math.max(a(e,n,o),s||0))}o=n}))})),i}(e,n,t,i),s=i?"borderLeft":"borderRight";function d(e,n){for(var t=a.nodes(),r=t.pop(),o={};r;)o[r]?e(r):(o[r]=!0,t.push(r),t=t.concat(n(r))),r=t.pop()}return d((function(e){u[e]=a.inEdges(e).reduce((function(e,n){return Math.max(e,u[n.v]+a.edge(n))}),0)}),a.predecessors.bind(a)),d((function(n){var t=a.outEdges(n).reduce((function(e,n){return Math.min(e,u[n.w]-a.edge(n))}),Number.POSITIVE_INFINITY),r=e.node(n);t!==Number.POSITIVE_INFINITY&&r.borderType!==s&&(u[n]=Math.max(u[n],t))}),a.successors.bind(a)),r.A(o,(function(e){u[e]=u[t[e]]})),u}function Tn(e){var n,t=Q(e),o=O.A(jn(e,t),function(e,n){var t={};function o(n,o,i,u,a){var s;r.A(g(o,i),(function(o){s=n[o],e.node(s).dummy&&r.A(e.predecessors(s),(function(n){var r=e.node(n);r.dummy&&(r.order<u||r.order>a)&&Cn(t,n,s)}))}))}return Je.A(n,(function(n,t){var i,u=-1,a=0;return r.A(t,(function(r,s){if("border"===e.node(r).dummy){var d=e.predecessors(r);d.length&&(i=e.node(d[0]).order,o(t,a,s,u,i),a=s,u=i)}o(t,a,t.length,i,n.length)})),t})),t}(e,t)),i={};r.A(["u","d"],(function(u){n="u"===u?t:$e.A(t).reverse(),r.A(["l","r"],(function(t){"r"===t&&(n=d.A(n,(function(e){return $e.A(e).reverse()})));var a=("u"===u?e.predecessors:e.successors).bind(e),s=function(e,n,t,o){var i={},u={},a={};return r.A(n,(function(e){r.A(e,(function(e,n){i[e]=e,u[e]=e,a[e]=n}))})),r.A(n,(function(e){var n=-1;r.A(e,(function(e){var r=o(e);if(r.length){r=fn(r,(function(e){return a[e]}));for(var s=(r.length-1)/2,d=Math.floor(s),c=Math.ceil(s);d<=c;++d){var h=r[d];u[e]===e&&n<a[h]&&!In(t,e,h)&&(u[h]=e,u[e]=i[e]=i[h],n=a[h])}}}))})),{root:i,align:u}}(0,n,o,a),c=Ln(e,n,s.root,s.align,"r"===t);"r"===t&&(c=B(c,(function(e){return-e}))),i[u+t]=c}))}));var u=function(e,n){return de($e.A(n),(function(n){var t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return Pn(n,(function(n,o){var i=function(e,n){return e.node(n).width}(e,o)/2;t=Math.max(n+i,t),r=Math.min(n-i,r)})),t-r}))}(e,i);return function(e,n){var t=$e.A(n),o=Y.A(t),i=F(t);r.A(["u","d"],(function(t){r.A(["l","r"],(function(r){var u,a=t+r,s=e[a];if(s!==n){var d=$e.A(s);(u="l"===r?o-Y.A(d):i-F(d))&&(e[a]=B(s,(function(e){return e+u})))}}))}))}(i,u),function(e,n){return B(e.ul,(function(t,r){if(n)return e[n.toLowerCase()][r];var o=fn(d.A(e,r));return(o[1]+o[2])/2}))}(i,e.graph().align)}function Mn(e){(function(e){var n=Q(e),t=e.graph().ranksep,o=0;r.A(n,(function(n){var i=F(d.A(n,(function(n){return e.node(n).height})));r.A(n,(function(n){e.node(n).y=o+i/2})),o+=i+t}))})(e=H(e)),On(Tn(e),(function(n,t){e.node(t).x=n}))}function Rn(e,n){var t=n&&n.debugTiming?X:ee;t("layout",(()=>{var n=t(" buildLayoutGraph",(()=>function(e){var n=new p.T({multigraph:!0,compound:!0}),t=$n(e.graph());return n.setGraph(O.A({},Dn,zn(t,Fn),I(t,Sn))),r.A(e.nodes(),(function(t){var r=$n(e.node(t));n.setNode(t,L.A(zn(r,Gn),Vn)),n.setParent(t,e.parent(t))})),r.A(e.edges(),(function(t){var r=$n(e.edge(t));n.setEdge(t,O.A({},qn,zn(r,Bn),I(r,Yn)))})),n}(e)));t(" runLayout",(()=>function(e,n){n(" makeSpaceForEdgeLabels",(()=>function(e){var n=e.graph();n.ranksep/=2,r.A(e.edges(),(function(t){var r=e.edge(t);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e))),n(" removeSelfEdges",(()=>function(e){r.A(e.edges(),(function(n){if(n.v===n.w){var t=e.node(n.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}}))}(e))),n(" acyclic",(()=>x(e))),n(" nestingGraph.run",(()=>Ze(e))),n(" rank",(()=>qe(H(e)))),n(" injectEdgeLabelProxies",(()=>function(e){r.A(e.edges(),(function(n){var t=e.edge(n);if(t.width&&t.height){var r=e.node(n.v),o={rank:(e.node(n.w).rank-r.rank)/2+r.rank,e:n};Z(e,"edge-proxy",o,"_ep")}}))}(e))),n(" removeEmptyRanks",(()=>function(e){var n=Y.A(d.A(e.nodes(),(function(n){return e.node(n).rank}))),t=[];r.A(e.nodes(),(function(r){var o=e.node(r).rank-n;t[o]||(t[o]=[]),t[o].push(r)}));var o=0,i=e.graph().nodeRankFactor;r.A(t,(function(n,t){q.A(n)&&t%i!=0?--o:o&&r.A(n,(function(n){e.node(n).rank+=o}))}))}(e))),n(" nestingGraph.cleanup",(()=>function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,r.A(e.edges(),(function(n){e.edge(n).nestingEdge&&e.removeEdge(n)}))}(e))),n(" normalizeRanks",(()=>function(e){var n=Y.A(d.A(e.nodes(),(function(n){return e.node(n).rank})));r.A(e.nodes(),(function(t){var r=e.node(t);z.A(r,"rank")&&(r.rank-=n)}))}(e))),n(" assignRankMinMax",(()=>function(e){var n=0;r.A(e.nodes(),(function(t){var r=e.node(t);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=F(n,r.maxRank))})),e.graph().maxRank=n}(e))),n(" removeEdgeLabelProxies",(()=>function(e){r.A(e.nodes(),(function(n){var t=e.node(n);"edge-proxy"===t.dummy&&(e.edge(t.e).labelRank=t.rank,e.removeNode(n))}))}(e))),n(" normalize.run",(()=>ae(e))),n(" parentDummyChains",(()=>En(e))),n(" addBorderSegments",(()=>function(e){r.A(e.children(),(function n(t){var o=e.children(t),i=e.node(t);if(o.length&&r.A(o,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var u=i.minRank,a=i.maxRank+1;u<a;++u)ne(e,"borderLeft","_bl",t,i,u),ne(e,"borderRight","_br",t,i,u)}}))}(e))),n(" order",(()=>bn(e))),n(" insertSelfEdges",(()=>function(e){var n=Q(e);r.A(n,(function(n){var t=0;r.A(n,(function(n,o){var i=e.node(n);i.order=o+t,r.A(i.selfEdges,(function(n){Z(e,"selfedge",{width:n.label.width,height:n.label.height,rank:i.rank,order:o+ ++t,e:n.e,label:n.label},"_se")})),delete i.selfEdges}))}))}(e))),n(" adjustCoordinateSystem",(()=>function(e){var n=e.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||re(e)}(e))),n(" position",(()=>Mn(e))),n(" positionSelfEdges",(()=>function(e){r.A(e.nodes(),(function(n){var t=e.node(n);if("selfedge"===t.dummy){var r=e.node(t.e.v),o=r.x+r.width/2,i=r.y,u=t.x-o,a=r.height/2;e.setEdge(t.e,t.label),e.removeNode(n),t.label.points=[{x:o+2*u/3,y:i-a},{x:o+5*u/6,y:i-a},{x:o+u,y:i},{x:o+5*u/6,y:i+a},{x:o+2*u/3,y:i+a}],t.label.x=t.x,t.label.y=t.y}}))}(e))),n(" removeBorderNodes",(()=>function(e){r.A(e.nodes(),(function(n){if(e.children(n).length){var t=e.node(n),r=e.node(t.borderTop),o=e.node(t.borderBottom),i=e.node(D.A(t.borderLeft)),u=e.node(D.A(t.borderRight));t.width=Math.abs(u.x-i.x),t.height=Math.abs(o.y-r.y),t.x=i.x+t.width/2,t.y=r.y+t.height/2}})),r.A(e.nodes(),(function(n){"border"===e.node(n).dummy&&e.removeNode(n)}))}(e))),n(" normalize.undo",(()=>function(e){r.A(e.graph().dummyChains,(function(n){var t,r=e.node(n),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)t=e.successors(n)[0],e.removeNode(n),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),n=t,r=e.node(n)}))}(e))),n(" fixupEdgeLabelCoords",(()=>function(e){r.A(e.edges(),(function(n){var t=e.edge(n);if(Object.prototype.hasOwnProperty.call(t,"x"))switch("l"!==t.labelpos&&"r"!==t.labelpos||(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset}}))}(e))),n(" undoCoordinateSystem",(()=>te(e))),n(" translateGraph",(()=>function(e){var n=Number.POSITIVE_INFINITY,t=0,o=Number.POSITIVE_INFINITY,i=0,u=e.graph(),a=u.marginx||0,s=u.marginy||0;function d(e){var r=e.x,u=e.y,a=e.width,s=e.height;n=Math.min(n,r-a/2),t=Math.max(t,r+a/2),o=Math.min(o,u-s/2),i=Math.max(i,u+s/2)}r.A(e.nodes(),(function(n){d(e.node(n))})),r.A(e.edges(),(function(n){var t=e.edge(n);Object.prototype.hasOwnProperty.call(t,"x")&&d(t)})),n-=a,o-=s,r.A(e.nodes(),(function(t){var r=e.node(t);r.x-=n,r.y-=o})),r.A(e.edges(),(function(t){var i=e.edge(t);r.A(i.points,(function(e){e.x-=n,e.y-=o})),Object.prototype.hasOwnProperty.call(i,"x")&&(i.x-=n),Object.prototype.hasOwnProperty.call(i,"y")&&(i.y-=o)})),u.width=t-n+a,u.height=i-o+s}(e))),n(" assignNodeIntersects",(()=>function(e){r.A(e.edges(),(function(n){var t,r,o=e.edge(n),i=e.node(n.v),u=e.node(n.w);o.points?(t=o.points[0],r=o.points[o.points.length-1]):(o.points=[],t=u,r=i),o.points.unshift(K(i,t)),o.points.push(K(u,r))}))}(e))),n(" reversePoints",(()=>function(e){r.A(e.edges(),(function(n){var t=e.edge(n);t.reversed&&t.points.reverse()}))}(e))),n(" acyclic.undo",(()=>function(e){r.A(e.edges(),(function(n){var t=e.edge(n);if(t.reversed){e.removeEdge(n);var r=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(n.w,n.v,t,r)}}))}(e)))}(n,t))),t(" updateInputGraph",(()=>function(e,n){r.A(e.nodes(),(function(t){var r=e.node(t),o=n.node(t);r&&(r.x=o.x,r.y=o.y,n.children(t).length&&(r.width=o.width,r.height=o.height))})),r.A(e.edges(),(function(t){var r=e.edge(t),o=n.edge(t);r.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(r.x=o.x,r.y=o.y)})),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(e,n)))}))}var Fn=["nodesep","edgesep","ranksep","marginx","marginy"],Dn={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Sn=["acyclicer","ranker","rankdir","align"],Gn=["width","height"],Vn={width:0,height:0},Bn=["minlen","weight","width","height","labeloffset"],qn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Yn=["labelpos"];function zn(e,n){return B(I(e,n),Number)}function $n(e){var n={};return r.A(e,(function(e,t){n[t.toLowerCase()]=e})),n}},7981:(e,n,t)=>{t.d(n,{T:()=>m});var r=t(9142),o=t(9610),i=t(7422),u=t(4092),a=t(6401),s=t(8058),d=t(9592),c=t(3588),h=t(4326),f=t(9902),v=t(3533);const l=(0,h.A)((function(e){return(0,f.A)((0,c.A)(e,1,v.A,!0))}));var g=t(8207),p=t(9463),A="\0",w="\0",b="\x01";class m{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,"directed")||e.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.A(void 0),this._defaultEdgeLabelFn=r.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[w]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return o.A(e)||(e=r.A(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return i.A(this._nodes)}sources(){var e=this;return u.A(this.nodes(),(function(n){return a.A(e._in[n])}))}sinks(){var e=this;return u.A(this.nodes(),(function(n){return a.A(e._out[n])}))}setNodes(e,n){var t=arguments,r=this;return s.A(e,(function(e){t.length>1?r.setNode(e,n):r.setNode(e)})),this}setNode(e,n){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=n),this):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=w,this._children[e]={},this._children[w][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var n=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],s.A(this.children(e),(e=>{this.setParent(e)})),delete this._children[e]),s.A(i.A(this._in[e]),n),delete this._in[e],delete this._preds[e],s.A(i.A(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(d.A(n))n=w;else{for(var t=n+="";!d.A(t);t=this.parent(t))if(t===e)throw new Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var n=this._parent[e];if(n!==w)return n}}children(e){if(d.A(e)&&(e=w),this._isCompound){var n=this._children[e];if(n)return i.A(n)}else{if(e===w)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var n=this._preds[e];if(n)return i.A(n)}successors(e){var n=this._sucs[e];if(n)return i.A(n)}neighbors(e){var n=this.predecessors(e);if(n)return l(n,this.successors(e))}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var t=this;s.A(this._nodes,(function(t,r){e(r)&&n.setNode(r,t)})),s.A(this._edgeObjs,(function(e){n.hasNode(e.v)&&n.hasNode(e.w)&&n.setEdge(e,t.edge(e))}));var r={};function o(e){var i=t.parent(e);return void 0===i||n.hasNode(i)?(r[e]=i,i):i in r?r[i]:o(i)}return this._isCompound&&s.A(n.nodes(),(function(e){n.setParent(e,o(e))})),n}setDefaultEdgeLabel(e){return o.A(e)||(e=r.A(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return g.A(this._edgeObjs)}setPath(e,n){var t=this,r=arguments;return p.A(e,(function(e,o){return r.length>1?t.setEdge(e,o,n):t.setEdge(e,o),o})),this}setEdge(){var e,n,t,r,o=!1,i=arguments[0];"object"==typeof i&&null!==i&&"v"in i?(e=i.v,n=i.w,t=i.name,2===arguments.length&&(r=arguments[1],o=!0)):(e=i,n=arguments[1],t=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),e=""+e,n=""+n,d.A(t)||(t=""+t);var u=E(this._isDirected,e,n,t);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,u))return o&&(this._edgeLabels[u]=r),this;if(!d.A(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[u]=o?r:this._defaultEdgeLabelFn(e,n,t);var a=function(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var u=o;o=i,i=u}var a={v:o,w:i};r&&(a.name=r);return a}(this._isDirected,e,n,t);return e=a.v,n=a.w,Object.freeze(a),this._edgeObjs[u]=a,y(this._preds[n],e),y(this._sucs[e],n),this._in[n][u]=a,this._out[e][u]=a,this._edgeCount++,this}edge(e,n,t){var r=1===arguments.length?x(this._isDirected,arguments[0]):E(this._isDirected,e,n,t);return this._edgeLabels[r]}hasEdge(e,n,t){var r=1===arguments.length?x(this._isDirected,arguments[0]):E(this._isDirected,e,n,t);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,n,t){var r=1===arguments.length?x(this._isDirected,arguments[0]):E(this._isDirected,e,n,t),o=this._edgeObjs[r];return o&&(e=o.v,n=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],_(this._preds[n],e),_(this._sucs[e],n),delete this._in[n][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,n){var t=this._in[e];if(t){var r=g.A(t);return n?u.A(r,(function(e){return e.v===n})):r}}outEdges(e,n){var t=this._out[e];if(t){var r=g.A(t);return n?u.A(r,(function(e){return e.w===n})):r}}nodeEdges(e,n){var t=this.inEdges(e,n);if(t)return t.concat(this.outEdges(e,n))}}function y(e,n){e[n]?e[n]++:e[n]=1}function _(e,n){--e[n]||delete e[n]}function E(e,n,t,r){var o=""+n,i=""+t;if(!e&&o>i){var u=o;o=i,i=u}return o+b+i+b+(d.A(r)?A:r)}function x(e,n){return E(e,n.v,n.w,n.name)}m.prototype._nodeCount=0,m.prototype._edgeCount=0},697:(e,n,t)=>{t.d(n,{T:()=>r.T});var r=t(7981)},2559:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(1882);const o=function(e,n,t){for(var o=-1,i=e.length;++o<i;){var u=e[o],a=n(u);if(null!=a&&(void 0===s?a==a&&!(0,r.A)(a):t(a,s)))var s=a,d=u}return d}},6224:(e,n,t)=>{t.d(n,{A:()=>r});const r=function(e,n){return e<n}},2568:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(6240),o=t(8446);const i=function(e,n){var t=-1,i=(0,o.A)(e)?Array(e.length):[];return(0,r.A)(e,(function(e,r,o){i[++t]=n(e,r,o)})),i}},9354:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(6318),o=t(2851),i=t(7819),u=t(5353),a=t(3149),s=t(901);const d=function(e,n,t,r){if(!(0,a.A)(e))return e;for(var d=-1,c=(n=(0,i.A)(n,e)).length,h=c-1,f=e;null!=f&&++d<c;){var v=(0,s.A)(n[d]),l=t;if("__proto__"===v||"constructor"===v||"prototype"===v)return e;if(d!=h){var g=f[v];void 0===(l=r?r(g,v,f):void 0)&&(l=(0,a.A)(g)?g:(0,u.A)(n[d+1])?[]:{})}(0,o.A)(f,v,l),f=f[v]}return e};const c=function(e,n,t){for(var o=-1,u=n.length,a={};++o<u;){var s=n[o],c=(0,r.A)(e,s);t(c,s)&&d(a,(0,i.A)(s,e),c)}return a}},3068:(e,n,t)=>{t.d(n,{A:()=>d});var r=t(4326),o=t(6984),i=t(6832),u=t(5615),a=Object.prototype,s=a.hasOwnProperty;const d=(0,r.A)((function(e,n){e=Object(e);var t=-1,r=n.length,d=r>2?n[2]:void 0;for(d&&(0,i.A)(n[0],n[1],d)&&(r=1);++t<r;)for(var c=n[t],h=(0,u.A)(c),f=-1,v=h.length;++f<v;){var l=h[f],g=e[l];(void 0===g||(0,o.A)(g,a[l])&&!s.call(e,l))&&(e[l]=c[l])}return e}))},6145:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(3958),o=t(8446),i=t(7422);const u=function(e){return function(n,t,u){var a=Object(n);if(!(0,o.A)(n)){var s=(0,r.A)(t,3);n=(0,i.A)(n),t=function(e){return s(a[e],e,a)}}var d=e(n,t,u);return d>-1?a[s?n[d]:d]:void 0}};var a=t(5707),s=t(8593),d=Math.max;const c=u((function(e,n,t){var o=null==e?0:e.length;if(!o)return-1;var i=null==t?0:(0,s.A)(t);return i<0&&(i=d(o+i,0)),(0,a.A)(e,(0,r.A)(n,3),i)}))},4098:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(3588);const o=function(e){return(null==e?0:e.length)?(0,r.A)(e,1):[]}},8585:(e,n,t)=>{t.d(n,{A:()=>u});var r=Object.prototype.hasOwnProperty;const o=function(e,n){return null!=e&&r.call(e,n)};var i=t(2673);const u=function(e,n){return null!=e&&(0,i.A)(e,n,o)}},9703:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(8496),o=t(2049),i=t(3098);const u=function(e){return"string"==typeof e||!(0,o.A)(e)&&(0,i.A)(e)&&"[object String]"==(0,r.A)(e)}},6666:(e,n,t)=>{t.d(n,{A:()=>r});const r=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0}},4722:(e,n,t)=>{t.d(n,{A:()=>a});var r=t(5572),o=t(3958),i=t(2568),u=t(2049);const a=function(e,n){return((0,u.A)(e)?r.A:i.A)(e,(0,o.A)(n,3))}},6452:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(2559),o=t(6224),i=t(9008);const u=function(e){return e&&e.length?(0,r.A)(e,i.A,o.A):void 0}},4342:(e,n,t)=>{t.d(n,{A:()=>g});var r=/\s/;const o=function(e){for(var n=e.length;n--&&r.test(e.charAt(n)););return n};var i=/^\s+/;const u=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e};var a=t(3149),s=t(1882),d=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt;const v=function(e){if("number"==typeof e)return e;if((0,s.A)(e))return NaN;if((0,a.A)(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=u(e);var t=c.test(e);return t||h.test(e)?f(e.slice(2),t?2:8):d.test(e)?NaN:+e};var l=1/0;const g=function(e){return e?(e=v(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8593:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(4342);const o=function(e){var n=(0,r.A)(e),t=n%1;return n==n?t?n-t:n:0}}}]); \ No newline at end of file diff --git a/website/assets/js/2387.b95425bc.js b/website/assets/js/2387.b95425bc.js new file mode 100644 index 000000000..c529bcfcb --- /dev/null +++ b/website/assets/js/2387.b95425bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2387],{2387:(e,s,c)=>{c.d(s,{createGitGraphServices:()=>a.b});var a=c(2785);c(9369)}}]); \ No newline at end of file diff --git a/website/assets/js/2664.ef877a3c.js b/website/assets/js/2664.ef877a3c.js new file mode 100644 index 000000000..e4c8ace8c --- /dev/null +++ b/website/assets/js/2664.ef877a3c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2664],{2664:(t,e,a)=>{a.d(e,{diagram:()=>Nt});var n=a(3814),i=a(540),r=a(9),s=a(7),l=a(6750),o=function(){var t=(0,r.K2)((function(t,e,a,n){for(a=a||{},n=t.length;n--;a[t[n]]=e);return a}),"o"),e=[1,24],a=[1,25],n=[1,26],i=[1,27],s=[1,28],l=[1,63],o=[1,64],h=[1,65],d=[1,66],u=[1,67],p=[1,68],y=[1,69],g=[1,29],f=[1,30],b=[1,31],x=[1,32],_=[1,33],m=[1,34],E=[1,35],S=[1,36],A=[1,37],C=[1,38],w=[1,39],k=[1,40],O=[1,41],T=[1,42],v=[1,43],R=[1,44],D=[1,45],N=[1,46],P=[1,47],B=[1,48],I=[1,50],M=[1,51],j=[1,52],K=[1,53],L=[1,54],Y=[1,55],U=[1,56],F=[1,57],X=[1,58],z=[1,59],W=[1,60],Q=[14,42],$=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],H=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],q=[1,82],V=[1,83],G=[1,84],J=[1,85],Z=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],at=[12,33],nt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],it={trace:(0,r.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,r.K2)((function(t,e,a,n,i,r,s){var l=r.length-1;switch(i){case 3:n.setDirection("TB");break;case 4:n.setDirection("BT");break;case 5:n.setDirection("RL");break;case 6:n.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:n.setC4Type(r[l-3]);break;case 19:n.setTitle(r[l].substring(6)),this.$=r[l].substring(6);break;case 20:n.setAccDescription(r[l].substring(15)),this.$=r[l].substring(15);break;case 21:this.$=r[l].trim(),n.setTitle(this.$);break;case 22:case 23:this.$=r[l].trim(),n.setAccDescription(this.$);break;case 28:r[l].splice(2,0,"ENTERPRISE"),n.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 29:r[l].splice(2,0,"SYSTEM"),n.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 30:n.addPersonOrSystemBoundary(...r[l]),this.$=r[l];break;case 31:r[l].splice(2,0,"CONTAINER"),n.addContainerBoundary(...r[l]),this.$=r[l];break;case 32:n.addDeploymentNode("node",...r[l]),this.$=r[l];break;case 33:n.addDeploymentNode("nodeL",...r[l]),this.$=r[l];break;case 34:n.addDeploymentNode("nodeR",...r[l]),this.$=r[l];break;case 35:n.popBoundaryParseStack();break;case 39:n.addPersonOrSystem("person",...r[l]),this.$=r[l];break;case 40:n.addPersonOrSystem("external_person",...r[l]),this.$=r[l];break;case 41:n.addPersonOrSystem("system",...r[l]),this.$=r[l];break;case 42:n.addPersonOrSystem("system_db",...r[l]),this.$=r[l];break;case 43:n.addPersonOrSystem("system_queue",...r[l]),this.$=r[l];break;case 44:n.addPersonOrSystem("external_system",...r[l]),this.$=r[l];break;case 45:n.addPersonOrSystem("external_system_db",...r[l]),this.$=r[l];break;case 46:n.addPersonOrSystem("external_system_queue",...r[l]),this.$=r[l];break;case 47:n.addContainer("container",...r[l]),this.$=r[l];break;case 48:n.addContainer("container_db",...r[l]),this.$=r[l];break;case 49:n.addContainer("container_queue",...r[l]),this.$=r[l];break;case 50:n.addContainer("external_container",...r[l]),this.$=r[l];break;case 51:n.addContainer("external_container_db",...r[l]),this.$=r[l];break;case 52:n.addContainer("external_container_queue",...r[l]),this.$=r[l];break;case 53:n.addComponent("component",...r[l]),this.$=r[l];break;case 54:n.addComponent("component_db",...r[l]),this.$=r[l];break;case 55:n.addComponent("component_queue",...r[l]),this.$=r[l];break;case 56:n.addComponent("external_component",...r[l]),this.$=r[l];break;case 57:n.addComponent("external_component_db",...r[l]),this.$=r[l];break;case 58:n.addComponent("external_component_queue",...r[l]),this.$=r[l];break;case 60:n.addRel("rel",...r[l]),this.$=r[l];break;case 61:n.addRel("birel",...r[l]),this.$=r[l];break;case 62:n.addRel("rel_u",...r[l]),this.$=r[l];break;case 63:n.addRel("rel_d",...r[l]),this.$=r[l];break;case 64:n.addRel("rel_l",...r[l]),this.$=r[l];break;case 65:n.addRel("rel_r",...r[l]),this.$=r[l];break;case 66:n.addRel("rel_b",...r[l]),this.$=r[l];break;case 67:r[l].splice(0,1),n.addRel("rel",...r[l]),this.$=r[l];break;case 68:n.updateElStyle("update_el_style",...r[l]),this.$=r[l];break;case 69:n.updateRelStyle("update_rel_style",...r[l]),this.$=r[l];break;case 70:n.updateLayoutConfig("update_layout_config",...r[l]),this.$=r[l];break;case 71:this.$=[r[l]];break;case 72:r[l].unshift(r[l-1]),this.$=r[l];break;case 73:case 75:this.$=r[l].trim();break;case 74:let t={};t[r[l-1].trim()]=r[l].trim(),this.$=t;break;case 76:this.$=""}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:70,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:71,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:72,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:73,19:20,20:21,21:22,22:e,23:a,24:n,26:i,28:s,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{14:[1,74]},t(Q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:l,36:o,37:h,38:d,39:u,40:p,41:y,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W}),t(Q,[2,14]),t($,[2,16],{12:[1,76]}),t(Q,[2,36],{12:[1,77]}),t(H,[2,19]),t(H,[2,20]),{25:[1,78]},{27:[1,79]},t(H,[2,23]),{35:80,75:81,76:q,77:V,79:G,80:J},{35:86,75:81,76:q,77:V,79:G,80:J},{35:87,75:81,76:q,77:V,79:G,80:J},{35:88,75:81,76:q,77:V,79:G,80:J},{35:89,75:81,76:q,77:V,79:G,80:J},{35:90,75:81,76:q,77:V,79:G,80:J},{35:91,75:81,76:q,77:V,79:G,80:J},{35:92,75:81,76:q,77:V,79:G,80:J},{35:93,75:81,76:q,77:V,79:G,80:J},{35:94,75:81,76:q,77:V,79:G,80:J},{35:95,75:81,76:q,77:V,79:G,80:J},{35:96,75:81,76:q,77:V,79:G,80:J},{35:97,75:81,76:q,77:V,79:G,80:J},{35:98,75:81,76:q,77:V,79:G,80:J},{35:99,75:81,76:q,77:V,79:G,80:J},{35:100,75:81,76:q,77:V,79:G,80:J},{35:101,75:81,76:q,77:V,79:G,80:J},{35:102,75:81,76:q,77:V,79:G,80:J},{35:103,75:81,76:q,77:V,79:G,80:J},{35:104,75:81,76:q,77:V,79:G,80:J},t(Z,[2,59]),{35:105,75:81,76:q,77:V,79:G,80:J},{35:106,75:81,76:q,77:V,79:G,80:J},{35:107,75:81,76:q,77:V,79:G,80:J},{35:108,75:81,76:q,77:V,79:G,80:J},{35:109,75:81,76:q,77:V,79:G,80:J},{35:110,75:81,76:q,77:V,79:G,80:J},{35:111,75:81,76:q,77:V,79:G,80:J},{35:112,75:81,76:q,77:V,79:G,80:J},{35:113,75:81,76:q,77:V,79:G,80:J},{35:114,75:81,76:q,77:V,79:G,80:J},{35:115,75:81,76:q,77:V,79:G,80:J},{20:116,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:y,43:23,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{12:[1,118],33:[1,117]},{35:119,75:81,76:q,77:V,79:G,80:J},{35:120,75:81,76:q,77:V,79:G,80:J},{35:121,75:81,76:q,77:V,79:G,80:J},{35:122,75:81,76:q,77:V,79:G,80:J},{35:123,75:81,76:q,77:V,79:G,80:J},{35:124,75:81,76:q,77:V,79:G,80:J},{35:125,75:81,76:q,77:V,79:G,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Q,[2,15]),t($,[2,17],{21:22,19:130,22:e,23:a,24:n,26:i,28:s}),t(Q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:n,26:i,28:s,34:l,36:o,37:h,38:d,39:u,40:p,41:y,44:g,45:f,46:b,47:x,48:_,49:m,50:E,51:S,52:A,53:C,54:w,55:k,56:O,57:T,58:v,59:R,60:D,61:N,62:P,63:B,64:I,65:M,66:j,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W}),t(H,[2,21]),t(H,[2,22]),t(Z,[2,39]),t(tt,[2,71],{75:81,35:132,76:q,77:V,79:G,80:J}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(Z,[2,40]),t(Z,[2,41]),t(Z,[2,42]),t(Z,[2,43]),t(Z,[2,44]),t(Z,[2,45]),t(Z,[2,46]),t(Z,[2,47]),t(Z,[2,48]),t(Z,[2,49]),t(Z,[2,50]),t(Z,[2,51]),t(Z,[2,52]),t(Z,[2,53]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(Z,[2,58]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,64]),t(Z,[2,65]),t(Z,[2,66]),t(Z,[2,67]),t(Z,[2,68]),t(Z,[2,69]),t(Z,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(at,[2,28]),t(at,[2,29]),t(at,[2,30]),t(at,[2,31]),t(at,[2,32]),t(at,[2,33]),t(at,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t($,[2,18]),t(Q,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(Z,[2,24]),t(Z,[2,35]),t(nt,[2,25]),t(nt,[2,26],{12:[1,138]}),t(nt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,r.K2)((function(t,e){if(!e.recoverable){var a=new Error(t);throw a.hash=e,a}this.trace(t)}),"parseError"),parse:(0,r.K2)((function(t){var e=this,a=[0],n=[],i=[null],s=[],l=this.table,o="",c=0,h=0,d=0,u=s.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;s.push(f);var b=p.options&&p.options.ranges;function x(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K2)((function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t}),"popStack"),(0,r.K2)(x,"lex");for(var _,m,E,S,A,C,w,k,O,T={};;){if(E=a[a.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(null==_&&(_=x()),S=l[E]&&l[E][_]),void 0===S||!S.length||!S[0]){var v="";for(C in O=[],l[E])this.terminals_[C]&&C>2&&O.push("'"+this.terminals_[C]+"'");v=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(v,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:f,expected:O})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(S[0]){case 1:a.push(_),i.push(p.yytext),s.push(p.yylloc),a.push(S[1]),_=null,m?(_=m,m=null):(h=p.yyleng,o=p.yytext,c=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(w=this.productions_[S[1]][1],T.$=i[i.length-w],T._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},b&&(T._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(A=this.performAction.apply(T,[o,h,c,y.yy,S[1],i,s].concat(u))))return A;w&&(a=a.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[S[1]][0]),i.push(T.$),s.push(T._$),k=l[a[a.length-2]][a[a.length-1]],a.push(k);break;case 3:return!0}}return!0}),"parse")},rt=function(){return{EOF:1,parseError:(0,r.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,r.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,r.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,r.K2)((function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,r.K2)((function(){return this._more=!0,this}),"more"),reject:(0,r.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,r.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,r.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,r.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,r.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,r.K2)((function(t,e){var a,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var r in i)this[r]=i[r];return!1}return!1}),"test_match"),next:(0,r.K2)((function(){if(this.done)return this.EOF;var t,e,a,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;r<i.length;r++)if((a=this._input.match(this.rules[i[r]]))&&(!e||a[0].length>e[0].length)){if(e=a,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,r.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,r.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,r.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,r.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,r.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,r.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,r.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,r.K2)((function(t,e,a,n){switch(a){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}}}();function st(){this.yy={}}return it.lexer=rt,(0,r.K2)(st,"Parser"),st.prototype=it,it.Parser=st,new st}();o.parser=o;var h,d=o,u=[],p=[""],y="global",g="",f=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],b=[],x="",_=!1,m=4,E=2,S=(0,r.K2)((function(){return h}),"getC4Type"),A=(0,r.K2)((function(t){let e=(0,r.jZ)(t,(0,r.D7)());h=e}),"setC4Type"),C=(0,r.K2)((function(t,e,a,n,i,r,s,l,o){if(null==t||null==e||null==a||null==n)return;let c={};const h=b.find((t=>t.from===e&&t.to===a));if(h?c=h:b.push(c),c.type=t,c.from=e,c.to=a,c.label={text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.sprite=s;if("object"==typeof l){let[t,e]=Object.entries(l)[0];c[t]=e}else c.tags=l;if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.link=o;c.wrap=$()}),"addRel"),w=(0,r.K2)((function(t,e,a,n,i,r,s){if(null===e||null===a)return;let l={};const o=u.find((t=>t.alias===e));if(o&&e===o.alias?l=o:(l.alias=e,u.push(l)),l.label=null==a?{text:""}:{text:a},null==n)l.descr={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]={text:e}}else l.descr={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.sprite=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=e}else l.tags=r;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.link=s;l.typeC4Shape={text:t},l.parentBoundary=y,l.wrap=$()}),"addPersonOrSystem"),k=(0,r.K2)((function(t,e,a,n,i,r,s,l){if(null===e||null===a)return;let o={};const c=u.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,u.push(o)),o.label=null==a?{text:""}:{text:a},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.sprite=r;if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.tags=s;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=$(),o.typeC4Shape={text:t},o.parentBoundary=y}),"addContainer"),O=(0,r.K2)((function(t,e,a,n,i,r,s,l){if(null===e||null===a)return;let o={};const c=u.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,u.push(o)),o.label=null==a?{text:""}:{text:a},null==n)o.techn={text:""};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.techn={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.sprite=r;if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.tags=s;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.wrap=$(),o.typeC4Shape={text:t},o.parentBoundary=y}),"addComponent"),T=(0,r.K2)((function(t,e,a,n,i){if(null===t||null===e)return;let r={};const s=f.find((e=>e.alias===t));if(s&&t===s.alias?r=s:(r.alias=t,f.push(r)),r.label=null==e?{text:""}:{text:e},null==a)r.type={text:"system"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];r[t]={text:e}}else r.type={text:a};if("object"==typeof n){let[t,e]=Object.entries(n)[0];r[t]=e}else r.tags=n;if("object"==typeof i){let[t,e]=Object.entries(i)[0];r[t]=e}else r.link=i;r.parentBoundary=y,r.wrap=$(),g=y,y=t,p.push(g)}),"addPersonOrSystemBoundary"),v=(0,r.K2)((function(t,e,a,n,i){if(null===t||null===e)return;let r={};const s=f.find((e=>e.alias===t));if(s&&t===s.alias?r=s:(r.alias=t,f.push(r)),r.label=null==e?{text:""}:{text:e},null==a)r.type={text:"container"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];r[t]={text:e}}else r.type={text:a};if("object"==typeof n){let[t,e]=Object.entries(n)[0];r[t]=e}else r.tags=n;if("object"==typeof i){let[t,e]=Object.entries(i)[0];r[t]=e}else r.link=i;r.parentBoundary=y,r.wrap=$(),g=y,y=t,p.push(g)}),"addContainerBoundary"),R=(0,r.K2)((function(t,e,a,n,i,r,s,l){if(null===e||null===a)return;let o={};const c=f.find((t=>t.alias===e));if(c&&e===c.alias?o=c:(o.alias=e,f.push(o)),o.label=null==a?{text:""}:{text:a},null==n)o.type={text:"node"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.type={text:n};if(null==i)o.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else o.descr={text:i};if("object"==typeof s){let[t,e]=Object.entries(s)[0];o[t]=e}else o.tags=s;if("object"==typeof l){let[t,e]=Object.entries(l)[0];o[t]=e}else o.link=l;o.nodeType=t,o.parentBoundary=y,o.wrap=$(),g=y,y=e,p.push(g)}),"addDeploymentNode"),D=(0,r.K2)((function(){y=g,p.pop(),g=p.pop(),p.push(g)}),"popBoundaryParseStack"),N=(0,r.K2)((function(t,e,a,n,i,r,s,l,o,c,h){let d=u.find((t=>t.alias===e));if(void 0!==d||(d=f.find((t=>t.alias===e)),void 0!==d)){if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];d[t]=e}else d.bgColor=a;if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];d[t]=e}else d.fontColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];d[t]=e}else d.borderColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];d[t]=e}else d.shadowing=r;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];d[t]=e}else d.shape=s;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];d[t]=e}else d.sprite=l;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];d[t]=e}else d.techn=o;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];d[t]=e}else d.legendText=c;if(null!=h)if("object"==typeof h){let[t,e]=Object.entries(h)[0];d[t]=e}else d.legendSprite=h}}),"updateElStyle"),P=(0,r.K2)((function(t,e,a,n,i,r,s){const l=b.find((t=>t.from===e&&t.to===a));if(void 0!==l){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];l[t]=e}else l.textColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=e}else l.lineColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=parseInt(e)}else l.offsetX=parseInt(r);if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else l.offsetY=parseInt(s)}}),"updateRelStyle"),B=(0,r.K2)((function(t,e,a){let n=m,i=E;if("object"==typeof e){const t=Object.values(e)[0];n=parseInt(t)}else n=parseInt(e);if("object"==typeof a){const t=Object.values(a)[0];i=parseInt(t)}else i=parseInt(a);n>=1&&(m=n),i>=1&&(E=i)}),"updateLayoutConfig"),I=(0,r.K2)((function(){return m}),"getC4ShapeInRow"),M=(0,r.K2)((function(){return E}),"getC4BoundaryInRow"),j=(0,r.K2)((function(){return y}),"getCurrentBoundaryParse"),K=(0,r.K2)((function(){return g}),"getParentBoundaryParse"),L=(0,r.K2)((function(t){return null==t?u:u.filter((e=>e.parentBoundary===t))}),"getC4ShapeArray"),Y=(0,r.K2)((function(t){return u.find((e=>e.alias===t))}),"getC4Shape"),U=(0,r.K2)((function(t){return Object.keys(L(t))}),"getC4ShapeKeys"),F=(0,r.K2)((function(t){return null==t?f:f.filter((e=>e.parentBoundary===t))}),"getBoundaries"),X=F,z=(0,r.K2)((function(){return b}),"getRels"),W=(0,r.K2)((function(){return x}),"getTitle"),Q=(0,r.K2)((function(t){_=t}),"setWrap"),$=(0,r.K2)((function(){return _}),"autoWrap"),H=(0,r.K2)((function(){u=[],f=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],g="",y="global",p=[""],b=[],p=[""],x="",_=!1,m=4,E=2}),"clear"),q=(0,r.K2)((function(t){let e=(0,r.jZ)(t,(0,r.D7)());x=e}),"setTitle"),V={addPersonOrSystem:w,addPersonOrSystemBoundary:T,addContainer:k,addContainerBoundary:v,addComponent:O,addDeploymentNode:R,popBoundaryParseStack:D,addRel:C,updateElStyle:N,updateRelStyle:P,updateLayoutConfig:B,autoWrap:$,setWrap:Q,getC4ShapeArray:L,getC4Shape:Y,getC4ShapeKeys:U,getBoundaries:F,getBoundarys:X,getCurrentBoundaryParse:j,getParentBoundaryParse:K,getRels:z,getTitle:W,getC4Type:S,getC4ShapeInRow:I,getC4BoundaryInRow:M,setAccTitle:r.SV,getAccTitle:r.iN,getAccDescription:r.m7,setAccDescription:r.EI,getConfig:(0,r.K2)((()=>(0,r.D7)().c4),"getConfig"),clear:H,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:q,setC4Type:A},G=(0,r.K2)((function(t,e){return(0,n.tk)(t,e)}),"drawRect"),J=(0,r.K2)((function(t,e,a,n,i,r){const s=t.append("image");s.attr("width",e),s.attr("height",a),s.attr("x",n),s.attr("y",i);let o=r.startsWith("data:image/png;base64")?r:(0,l.J)(r);s.attr("xlink:href",o)}),"drawImage"),Z=(0,r.K2)(((t,e,a)=>{const n=t.append("g");let i=0;for(let r of e){let t=r.textColor?r.textColor:"#444444",e=r.lineColor?r.lineColor:"#444444",s=r.offsetX?parseInt(r.offsetX):0,l=r.offsetY?parseInt(r.offsetY):0,o="";if(0===i){let t=n.append("line");t.attr("x1",r.startPoint.x),t.attr("y1",r.startPoint.y),t.attr("x2",r.endPoint.x),t.attr("y2",r.endPoint.y),t.attr("stroke-width","1"),t.attr("stroke",e),t.style("fill","none"),"rel_b"!==r.type&&t.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||t.attr("marker-start","url("+o+"#arrowend)"),i=-1}else{let t=n.append("path");t.attr("fill","none").attr("stroke-width","1").attr("stroke",e).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",r.startPoint.x).replaceAll("starty",r.startPoint.y).replaceAll("controlx",r.startPoint.x+(r.endPoint.x-r.startPoint.x)/2-(r.endPoint.x-r.startPoint.x)/4).replaceAll("controly",r.startPoint.y+(r.endPoint.y-r.startPoint.y)/2).replaceAll("stopx",r.endPoint.x).replaceAll("stopy",r.endPoint.y)),"rel_b"!==r.type&&t.attr("marker-end","url("+o+"#arrowhead)"),"birel"!==r.type&&"rel_b"!==r.type||t.attr("marker-start","url("+o+"#arrowend)")}let c=a.messageFont();dt(a)(r.label.text,n,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+s,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+l,r.label.width,r.label.height,{fill:t},c),r.techn&&""!==r.techn.text&&(c=a.messageFont(),dt(a)("["+r.techn.text+"]",n,Math.min(r.startPoint.x,r.endPoint.x)+Math.abs(r.endPoint.x-r.startPoint.x)/2+s,Math.min(r.startPoint.y,r.endPoint.y)+Math.abs(r.endPoint.y-r.startPoint.y)/2+a.messageFontSize+5+l,Math.max(r.label.width,r.techn.width),r.techn.height,{fill:t,"font-style":"italic"},c))}}),"drawRels"),tt=(0,r.K2)((function(t,e,a){const n=t.append("g");let i=e.bgColor?e.bgColor:"none",r=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1});let o={x:e.x,y:e.y,fill:i,stroke:r,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};G(n,o);let c=a.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=s,dt(a)(e.label.text,n,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c),e.type&&""!==e.type.text&&(c=a.boundaryFont(),c.fontColor=s,dt(a)(e.type.text,n,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)),e.descr&&""!==e.descr.text&&(c=a.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=s,dt(a)(e.descr.text,n,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c))}),"drawBoundary"),et=(0,r.K2)((function(t,e,a){let i=e.bgColor?e.bgColor:a[e.typeC4Shape.text+"_bg_color"],r=e.borderColor?e.borderColor:a[e.typeC4Shape.text+"_border_color"],s=e.fontColor?e.fontColor:"#FFFFFF",l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const o=t.append("g");o.attr("class","person-man");const c=(0,n.PB)();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x,c.y=e.y,c.fill=i,c.width=e.width,c.height=e.height,c.stroke=r,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},G(o,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",r).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}let h=ht(a,e.typeC4Shape.text);switch(o.append("text").attr("fill",s).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":J(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,l)}let d=a[e.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=s,dt(a)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:s},d),d=a[e.typeC4Shape.text+"Font"](),d.fontColor=s,e.techn&&""!==e.techn?.text?dt(a)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:s,"font-style":"italic"},d):e.type&&""!==e.type.text&&dt(a)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:s,"font-style":"italic"},d),e.descr&&""!==e.descr.text&&(d=a.personFont(),d.fontColor=s,dt(a)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:s},d)),e.height}),"drawC4Shape"),at=(0,r.K2)((function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}),"insertDatabaseIcon"),nt=(0,r.K2)((function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}),"insertComputerIcon"),it=(0,r.K2)((function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}),"insertClockIcon"),rt=(0,r.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}),"insertArrowHead"),st=(0,r.K2)((function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}),"insertArrowEnd"),lt=(0,r.K2)((function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"insertArrowFilledHead"),ot=(0,r.K2)((function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}),"insertDynamicNumber"),ct=(0,r.K2)((function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}),"insertArrowCrossHead"),ht=(0,r.K2)(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"getC4ShapeFont"),dt=function(){function t(t,e,a,i,r,s,l){n(e.append("text").attr("x",a+r/2).attr("y",i+s/2+5).style("text-anchor","middle").text(t),l)}function e(t,e,a,i,s,l,o,c){const{fontSize:h,fontFamily:d,fontWeight:u}=c,p=t.split(r.Y2.lineBreakRegex);for(let r=0;r<p.length;r++){const t=r*h-h*(p.length-1)/2,l=e.append("text").attr("x",a+s/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",h).style("font-weight",u).style("font-family",d);l.append("tspan").attr("dy",t).text(p[r]).attr("alignment-baseline","mathematical"),n(l,o)}}function a(t,a,i,r,s,l,o,c){const h=a.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",s).attr("height",l).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,i,r,s,0,o,c),n(d,o)}function n(t,e){for(const a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,r.K2)(t,"byText"),(0,r.K2)(e,"byTspan"),(0,r.K2)(a,"byFo"),(0,r.K2)(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?a:"old"===n.textPlacement?t:e}}(),ut={drawRect:G,drawBoundary:tt,drawC4Shape:et,drawRels:Z,drawImage:J,insertArrowHead:rt,insertArrowEnd:st,insertArrowFilledHead:lt,insertDynamicNumber:ot,insertArrowCrossHead:ct,insertDatabaseIcon:at,insertComputerIcon:nt,insertClockIcon:it},pt=0,yt=0,gt=4,ft=2;o.yy=V;var bt={},xt=class{static{(0,r.K2)(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,_t(t.db.getConfig())}setData(t,e,a,n){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=a,this.nextData.stopy=this.data.stopy=n}updateVal(t,e,a,n){void 0===t[e]?t[e]=a:t[e]=n(a,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,a=e+t.width,n=this.nextData.starty+2*t.margin,i=n+t.height;(e>=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>gt)&&(e=this.nextData.startx+t.margin+bt.nextLinePaddingX,n=this.nextData.stopy+2*t.margin,this.nextData.stopx=a=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=n+t.height,this.nextData.cnt=1),t.x=e,t.y=n,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",n,Math.min),this.updateVal(this.data,"stopx",a,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",n,Math.min),this.updateVal(this.nextData,"stopx",a,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},_t(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},_t=(0,r.K2)((function(t){(0,r.hH)(bt,t),t.fontFamily&&(bt.personFontFamily=bt.systemFontFamily=bt.messageFontFamily=t.fontFamily),t.fontSize&&(bt.personFontSize=bt.systemFontSize=bt.messageFontSize=t.fontSize),t.fontWeight&&(bt.personFontWeight=bt.systemFontWeight=bt.messageFontWeight=t.fontWeight)}),"setConf"),mt=(0,r.K2)(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"c4ShapeFont"),Et=(0,r.K2)((t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight})),"boundaryFont"),St=(0,r.K2)((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");function At(t,e,a,n,s){if(!e[t].width)if(a)e[t].text=(0,i.bH)(e[t].text,s,n),e[t].textLines=e[t].text.split(r.Y2.lineBreakRegex).length,e[t].width=s,e[t].height=(0,i.ru)(e[t].text,n);else{let a=e[t].text.split(r.Y2.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0,e[t].width=0;for(const r of a)e[t].width=Math.max((0,i.Un)(r,n),e[t].width),s=(0,i.ru)(r,n),e[t].height=e[t].height+s}}(0,r.K2)(At,"calcC4ShapeTextWH");var Ct=(0,r.K2)((function(t,e,a){e.x=a.data.startx,e.y=a.data.starty,e.width=a.data.stopx-a.data.startx,e.height=a.data.stopy-a.data.starty,e.label.y=bt.c4ShapeMargin-35;let n=e.wrap&&bt.wrap,r=Et(bt);r.fontSize=r.fontSize+2,r.fontWeight="bold",At("label",e,n,r,(0,i.Un)(e.label.text,r)),ut.drawBoundary(t,e,bt)}),"drawBoundary"),wt=(0,r.K2)((function(t,e,a,n){let r=0;for(const s of n){r=0;const n=a[s];let l=mt(bt,n.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,n.typeC4Shape.width=(0,i.Un)("\xab"+n.typeC4Shape.text+"\xbb",l),n.typeC4Shape.height=l.fontSize+2,n.typeC4Shape.Y=bt.c4ShapePadding,r=n.typeC4Shape.Y+n.typeC4Shape.height-4,n.image={width:0,height:0,Y:0},n.typeC4Shape.text){case"person":case"external_person":n.image.width=48,n.image.height=48,n.image.Y=r,r=n.image.Y+n.image.height}n.sprite&&(n.image.width=48,n.image.height=48,n.image.Y=r,r=n.image.Y+n.image.height);let o=n.wrap&&bt.wrap,c=bt.width-2*bt.c4ShapePadding,h=mt(bt,n.typeC4Shape.text);if(h.fontSize=h.fontSize+2,h.fontWeight="bold",At("label",n,o,h,c),n.label.Y=r+8,r=n.label.Y+n.label.height,n.type&&""!==n.type.text){n.type.text="["+n.type.text+"]",At("type",n,o,mt(bt,n.typeC4Shape.text),c),n.type.Y=r+5,r=n.type.Y+n.type.height}else if(n.techn&&""!==n.techn.text){n.techn.text="["+n.techn.text+"]",At("techn",n,o,mt(bt,n.techn.text),c),n.techn.Y=r+5,r=n.techn.Y+n.techn.height}let d=r,u=n.label.width;if(n.descr&&""!==n.descr.text){At("descr",n,o,mt(bt,n.typeC4Shape.text),c),n.descr.Y=r+20,r=n.descr.Y+n.descr.height,u=Math.max(n.label.width,n.descr.width),d=r-5*n.descr.textLines}u+=bt.c4ShapePadding,n.width=Math.max(n.width||bt.width,u,bt.width),n.height=Math.max(n.height||bt.height,d,bt.height),n.margin=n.margin||bt.c4ShapeMargin,t.insert(n),ut.drawC4Shape(e,n,bt)}t.bumpLastMargin(bt.c4ShapeMargin)}),"drawC4ShapeArray"),kt=class{static{(0,r.K2)(this,"Point")}constructor(t,e){this.x=t,this.y=e}},Ot=(0,r.K2)((function(t,e){let a=t.x,n=t.y,i=e.x,r=e.y,s=a+t.width/2,l=n+t.height/2,o=Math.abs(a-i),c=Math.abs(n-r),h=c/o,d=t.height/t.width,u=null;return n==r&&a<i?u=new kt(a+t.width,l):n==r&&a>i?u=new kt(a,l):a==i&&n<r?u=new kt(s,n+t.height):a==i&&n>r&&(u=new kt(s,n)),a>i&&n<r?u=d>=h?new kt(a,l+h*t.width/2):new kt(s-o/c*t.height/2,n+t.height):a<i&&n<r?u=d>=h?new kt(a+t.width,l+h*t.width/2):new kt(s+o/c*t.height/2,n+t.height):a<i&&n>r?u=d>=h?new kt(a+t.width,l-h*t.width/2):new kt(s+t.height/2*o/c,n):a>i&&n>r&&(u=d>=h?new kt(a,l-t.width/2*h):new kt(s-t.height/2*o/c,n)),u}),"getIntersectPoint"),Tt=(0,r.K2)((function(t,e){let a={x:0,y:0};a.x=e.x+e.width/2,a.y=e.y+e.height/2;let n=Ot(t,a);return a.x=t.x+t.width/2,a.y=t.y+t.height/2,{startPoint:n,endPoint:Ot(e,a)}}),"getIntersectPoints"),vt=(0,r.K2)((function(t,e,a,n){let r=0;for(let s of e){r+=1;let t=s.wrap&&bt.wrap,e=St(bt);"C4Dynamic"===n.db.getC4Type()&&(s.label.text=r+": "+s.label.text);let l=(0,i.Un)(s.label.text,e);At("label",s,t,e,l),s.techn&&""!==s.techn.text&&(l=(0,i.Un)(s.techn.text,e),At("techn",s,t,e,l)),s.descr&&""!==s.descr.text&&(l=(0,i.Un)(s.descr.text,e),At("descr",s,t,e,l));let o=a(s.from),c=a(s.to),h=Tt(o,c);s.startPoint=h.startPoint,s.endPoint=h.endPoint}ut.drawRels(t,e,bt)}),"drawRels");function Rt(t,e,a,n,i){let r=new xt(i);r.data.widthLimit=a.data.widthLimit/Math.min(ft,n.length);for(let[s,l]of n.entries()){let n=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=n,n=l.image.Y+l.image.height);let o=l.wrap&&bt.wrap,c=Et(bt);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",At("label",l,o,c,r.data.widthLimit),l.label.Y=n+8,n=l.label.Y+l.label.height,l.type&&""!==l.type.text){l.type.text="["+l.type.text+"]",At("type",l,o,Et(bt),r.data.widthLimit),l.type.Y=n+5,n=l.type.Y+l.type.height}if(l.descr&&""!==l.descr.text){let t=Et(bt);t.fontSize=t.fontSize-2,At("descr",l,o,t,r.data.widthLimit),l.descr.Y=n+20,n=l.descr.Y+l.descr.height}if(0==s||s%ft==0){let t=a.data.startx+bt.diagramMarginX,e=a.data.stopy+bt.diagramMarginY+n;r.setData(t,t,e,e)}else{let t=r.data.stopx!==r.data.startx?r.data.stopx+bt.diagramMarginX:r.data.startx,e=r.data.starty;r.setData(t,t,e,e)}r.name=l.alias;let h=i.db.getC4ShapeArray(l.alias),d=i.db.getC4ShapeKeys(l.alias);d.length>0&&wt(r,t,h,d),e=l.alias;let u=i.db.getBoundarys(e);u.length>0&&Rt(t,e,r,u,i),"global"!==l.alias&&Ct(t,l,r),a.data.stopy=Math.max(r.data.stopy+bt.c4ShapeMargin,a.data.stopy),a.data.stopx=Math.max(r.data.stopx+bt.c4ShapeMargin,a.data.stopx),pt=Math.max(pt,a.data.stopx),yt=Math.max(yt,a.data.stopy)}}(0,r.K2)(Rt,"drawInsideBoundary");var Dt={drawPersonOrSystemArray:wt,drawBoundary:Ct,setConf:_t,draw:(0,r.K2)((function(t,e,a,n){bt=(0,r.D7)().c4;const i=(0,r.D7)().securityLevel;let l;"sandbox"===i&&(l=(0,s.Ltv)("#i"+e));const o="sandbox"===i?(0,s.Ltv)(l.nodes()[0].contentDocument.body):(0,s.Ltv)("body");let c=n.db;n.db.setWrap(bt.wrap),gt=c.getC4ShapeInRow(),ft=c.getC4BoundaryInRow(),r.Rm.debug(`C:${JSON.stringify(bt,null,2)}`);const h="sandbox"===i?o.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`);ut.insertComputerIcon(h),ut.insertDatabaseIcon(h),ut.insertClockIcon(h);let d=new xt(n);d.setData(bt.diagramMarginX,bt.diagramMarginX,bt.diagramMarginY,bt.diagramMarginY),d.data.widthLimit=screen.availWidth,pt=bt.diagramMarginX,yt=bt.diagramMarginY;const u=n.db.getTitle();Rt(h,"",d,n.db.getBoundarys(""),n),ut.insertArrowHead(h),ut.insertArrowEnd(h),ut.insertArrowCrossHead(h),ut.insertArrowFilledHead(h),vt(h,n.db.getRels(),n.db.getC4Shape,n),d.data.stopx=pt,d.data.stopy=yt;const p=d.data;let y=p.stopy-p.starty+2*bt.diagramMarginY;const g=p.stopx-p.startx+2*bt.diagramMarginX;u&&h.append("text").text(u).attr("x",(p.stopx-p.startx)/2-4*bt.diagramMarginX).attr("y",p.starty+bt.diagramMarginY),(0,r.a$)(h,y,g,bt.useMaxWidth);const f=u?60:0;h.attr("viewBox",p.startx-bt.diagramMarginX+" -"+(bt.diagramMarginY+f)+" "+g+" "+(y+f)),r.Rm.debug("models:",p)}),"draw")},Nt={parser:d,db:V,renderer:Dt,styles:(0,r.K2)((t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`),"getStyles"),init:(0,r.K2)((({c4:t,wrap:e})=>{Dt.setConf(t),V.setWrap(e)}),"init")}},3814:(t,e,a)=>{a.d(e,{CP:()=>c,HT:()=>d,PB:()=>h,aC:()=>o,lC:()=>s,m:()=>l,tk:()=>r});var n=a(9),i=a(6750),r=(0,n.K2)(((t,e)=>{const a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),e.name&&a.attr("name",e.name),e.rx&&a.attr("rx",e.rx),e.ry&&a.attr("ry",e.ry),void 0!==e.attrs)for(const n in e.attrs)a.attr(n,e.attrs[n]);return e.class&&a.attr("class",e.class),a}),"drawRect"),s=(0,n.K2)(((t,e)=>{const a={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};r(t,a).lower()}),"drawBackgroundRect"),l=(0,n.K2)(((t,e)=>{const a=e.text.replace(n.H1," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(a),i}),"drawText"),o=(0,n.K2)(((t,e,a,n)=>{const r=t.append("image");r.attr("x",e),r.attr("y",a);const s=(0,i.J)(n);r.attr("xlink:href",s)}),"drawImage"),c=(0,n.K2)(((t,e,a,n)=>{const r=t.append("use");r.attr("x",e),r.attr("y",a);const s=(0,i.J)(n);r.attr("xlink:href",`#${s}`)}),"drawEmbeddedImage"),h=(0,n.K2)((()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0})),"getNoteRect"),d=(0,n.K2)((()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})),"getTextObj")}}]); \ No newline at end of file diff --git a/website/assets/js/2a2339b9.9c8926bc.js b/website/assets/js/2a2339b9.9c8926bc.js new file mode 100644 index 000000000..0d2b8b69d --- /dev/null +++ b/website/assets/js/2a2339b9.9c8926bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8074],{8156:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>l,contentTitle:()=>t,default:()=>a,frontMatter:()=>i,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"api/classes/VTLInterpretationError","title":"Class: VTLInterpretationError","description":"Extends","source":"@site/docs/api/classes/VTLInterpretationError.md","sourceDirName":"api/classes","slug":"/api/classes/VTLInterpretationError","permalink":"/Lunatic/docs/api/classes/VTLInterpretationError","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/classes/VTLInterpretationError.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"VTLExpressionError","permalink":"/Lunatic/docs/api/classes/VTLExpressionError"},"next":{"title":"VTLMissingDependencies","permalink":"/Lunatic/docs/api/classes/VTLMissingDependencies"}}');var c=s(4848),d=s(8453);const i={},t="Class: VTLInterpretationError",l={},o=[{value:"Extends",id:"extends",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new VTLInterpretationError()",id:"new-vtlinterpretationerror",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2},{value:"captureStackTrace()",id:"capturestacktrace",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.header,{children:(0,c.jsx)(r.h1,{id:"class-vtlinterpretationerror",children:"Class: VTLInterpretationError"})}),"\n",(0,c.jsx)(r.h2,{id:"extends",children:"Extends"}),"\n",(0,c.jsxs)(r.ul,{children:["\n",(0,c.jsx)(r.li,{children:(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})})}),"\n"]}),"\n",(0,c.jsx)(r.h2,{id:"constructors",children:"Constructors"}),"\n",(0,c.jsx)(r.h3,{id:"new-vtlinterpretationerror",children:"new VTLInterpretationError()"}),"\n",(0,c.jsxs)(r.blockquote,{children:["\n",(0,c.jsxs)(r.p,{children:[(0,c.jsx)(r.strong,{children:"new VTLInterpretationError"}),"(",(0,c.jsx)(r.code,{children:"expression"}),", ",(0,c.jsx)(r.code,{children:"bindings"}),"): ",(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLInterpretationError",children:(0,c.jsx)(r.code,{children:"VTLInterpretationError"})})]}),"\n"]}),"\n",(0,c.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,c.jsxs)(r.table,{children:[(0,c.jsx)(r.thead,{children:(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.th,{children:"Parameter"}),(0,c.jsx)(r.th,{children:"Type"})]})}),(0,c.jsxs)(r.tbody,{children:[(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"expression"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"string"})})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"bindings"})}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.code,{children:"Record"}),"<",(0,c.jsx)(r.code,{children:"string"}),", ",(0,c.jsx)(r.code,{children:"unknown"}),">"]})]})]})]}),"\n",(0,c.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,c.jsx)(r.p,{children:(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLInterpretationError",children:(0,c.jsx)(r.code,{children:"VTLInterpretationError"})})}),"\n",(0,c.jsx)(r.h4,{id:"overrides",children:"Overrides"}),"\n",(0,c.jsxs)(r.p,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#constructors",children:(0,c.jsx)(r.code,{children:"constructor"})})]}),"\n",(0,c.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,c.jsx)(r.p,{children:(0,c.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L11",children:"src/use-lunatic/commons/variables/errors.ts:11"})}),"\n",(0,c.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,c.jsxs)(r.table,{children:[(0,c.jsx)(r.thead,{children:(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.th,{children:"Property"}),(0,c.jsx)(r.th,{children:"Modifier"}),(0,c.jsx)(r.th,{children:"Type"}),(0,c.jsx)(r.th,{children:"Description"}),(0,c.jsx)(r.th,{children:"Inherited from"}),(0,c.jsx)(r.th,{children:"Defined in"})]})}),(0,c.jsxs)(r.tbody,{children:[(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"bindings"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"readonly"})}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.code,{children:"Record"}),"<",(0,c.jsx)(r.code,{children:"string"}),", ",(0,c.jsx)(r.code,{children:"unknown"}),">"]}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L13",children:"src/use-lunatic/commons/variables/errors.ts:13"})})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"cause?"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"public"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"unknown"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"cause"})]}),(0,c.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es2022.error.d.ts:24"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"expression"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"readonly"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"string"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"expression"})]}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L12",children:"src/use-lunatic/commons/variables/errors.ts:12"})})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"message"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"public"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"string"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"message"})]}),(0,c.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1077"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"name"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"public"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"string"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"name"})]}),(0,c.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1076"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"stack?"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"public"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"string"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"stack"})]}),(0,c.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1078"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"prepareStackTrace?"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"static"})}),(0,c.jsxs)(r.td,{children:["(",(0,c.jsx)(r.code,{children:"err"}),": ",(0,c.jsx)(r.code,{children:"Error"}),", ",(0,c.jsx)(r.code,{children:"stackTraces"}),": ",(0,c.jsx)(r.code,{children:"CallSite"}),"[]) => ",(0,c.jsx)(r.code,{children:"any"})]}),(0,c.jsxs)(r.td,{children:["Optional override for formatting stack traces ",(0,c.jsx)(r.strong,{children:"See"})," ",(0,c.jsx)(r.a,{href:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces",children:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces"})]}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"prepareStackTrace"})]}),(0,c.jsx)(r.td,{children:"node_modules/@types/node/globals.d.ts:143"})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"stackTraceLimit"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"static"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"number"})}),(0,c.jsx)(r.td,{children:"-"}),(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.code,{children:"stackTraceLimit"})]}),(0,c.jsx)(r.td,{children:"node_modules/@types/node/globals.d.ts:145"})]})]})]}),"\n",(0,c.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,c.jsx)(r.h3,{id:"capturestacktrace",children:"captureStackTrace()"}),"\n",(0,c.jsxs)(r.blockquote,{children:["\n",(0,c.jsxs)(r.p,{children:[(0,c.jsx)(r.code,{children:"static"})," ",(0,c.jsx)(r.strong,{children:"captureStackTrace"}),"(",(0,c.jsx)(r.code,{children:"targetObject"}),", ",(0,c.jsx)(r.code,{children:"constructorOpt"}),"?): ",(0,c.jsx)(r.code,{children:"void"})]}),"\n"]}),"\n",(0,c.jsx)(r.p,{children:"Create .stack property on a target object"}),"\n",(0,c.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,c.jsxs)(r.table,{children:[(0,c.jsx)(r.thead,{children:(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.th,{children:"Parameter"}),(0,c.jsx)(r.th,{children:"Type"})]})}),(0,c.jsxs)(r.tbody,{children:[(0,c.jsxs)(r.tr,{children:[(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"targetObject"})}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"object"})})]}),(0,c.jsxs)(r.tr,{children:[(0,c.jsxs)(r.td,{children:[(0,c.jsx)(r.code,{children:"constructorOpt"}),"?"]}),(0,c.jsx)(r.td,{children:(0,c.jsx)(r.code,{children:"Function"})})]})]})]}),"\n",(0,c.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,c.jsx)(r.p,{children:(0,c.jsx)(r.code,{children:"void"})}),"\n",(0,c.jsx)(r.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,c.jsxs)(r.p,{children:[(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(r.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#capturestacktrace",children:(0,c.jsx)(r.code,{children:"captureStackTrace"})})]}),"\n",(0,c.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,c.jsx)(r.p,{children:"node_modules/@types/node/globals.d.ts:136"})]})}function a(e={}){const{wrapper:r}={...(0,d.R)(),...e.components};return r?(0,c.jsx)(r,{...e,children:(0,c.jsx)(h,{...e})}):h(e)}},8453:(e,r,s)=>{s.d(r,{R:()=>i,x:()=>t});var n=s(6540);const c={},d=n.createContext(c);function i(e){const r=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function t(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),n.createElement(d.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/3056.f856834f.js b/website/assets/js/3056.f856834f.js new file mode 100644 index 000000000..8163a107e --- /dev/null +++ b/website/assets/js/3056.f856834f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3056],{3056:(s,r,e)=>{e.d(r,{diagram:()=>l});var a=e(3859),c=(e(6474),e(7308),e(7938),e(1282),e(4532),e(7588),e(3115),e(483),e(540),e(9)),l={parser:a._$,db:a.z2,renderer:a.Lh,styles:a.tM,init:(0,c.K2)((s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,a.z2.clear()}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/3175.4be10d35.js b/website/assets/js/3175.4be10d35.js new file mode 100644 index 000000000..e17667952 --- /dev/null +++ b/website/assets/js/3175.4be10d35.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3175],{6527:function(t,e,i){var r;r=function(t){return(()=>{"use strict";var e={658:t=>{t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.forEach((function(e){Object.keys(e).forEach((function(i){return t[i]=e[i]}))})),t}},548:(t,e,i)=>{var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],r=!0,n=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);r=!0);}catch(h){n=!0,o=h}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=i(140).layoutBase.LinkedList,o={getTopMostNodes:function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;var r=t.filter((function(t,i){"number"==typeof t&&(t=i);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0}));return r},connectComponents:function(t,e,i,r){var o=new n,s=new Set,a=[],h=void 0,l=void 0,c=void 0,d=!1,g=1,u=[],p=[],f=function(){var r=t.collection();p.push(r);var n=i[0],f=t.collection();f.merge(n).merge(n.descendants().intersection(e)),a.push(n),f.forEach((function(t){o.push(t),s.add(t),r.merge(t)}));for(var v=function(){n=o.shift();var l=t.collection();n.neighborhood().nodes().forEach((function(t){e.intersection(n.edgesWith(t)).length>0&&l.merge(t)}));for(var c=0;c<l.length;c++){var d=l[c];null==(h=i.intersection(d.union(d.ancestors())))||s.has(h[0])||h.union(h.descendants()).forEach((function(t){o.push(t),s.add(t),r.merge(t),i.has(t)&&a.push(t)}))}};0!=o.length;)v();if(r.forEach((function(t){e.intersection(t.connectedEdges()).forEach((function(t){r.has(t.source())&&r.has(t.target())&&r.merge(t)}))})),a.length==i.length&&(d=!0),!d||d&&g>1){l=a[0],c=l.connectedEdges().length,a.forEach((function(t){t.connectedEdges().length<c&&(c=t.connectedEdges().length,l=t)})),u.push(l.id());var y=t.collection();y.merge(a[0]),a.forEach((function(t){y.merge(t)})),a=[],i=i.difference(y),g++}};do{f()}while(!d);return r&&u.length>0&&r.set("dummy"+(r.size+1),u),p},relocateComponent:function(t,e,i){if(!i.fixedNodeConstraint){var n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;if("draft"==i.quality){var h=!0,l=!1,c=void 0;try{for(var d,g=e.nodeIndexes[Symbol.iterator]();!(h=(d=g.next()).done);h=!0){var u=d.value,p=r(u,2),f=p[0],v=p[1],y=i.cy.getElementById(f);if(y){var m=y.boundingBox(),E=e.xCoords[v]-m.w/2,N=e.xCoords[v]+m.w/2,T=e.yCoords[v]-m.h/2,A=e.yCoords[v]+m.h/2;E<n&&(n=E),N>o&&(o=N),T<s&&(s=T),A>a&&(a=A)}}}catch(C){l=!0,c=C}finally{try{!h&&g.return&&g.return()}finally{if(l)throw c}}var w=t.x-(o+n)/2,L=t.y-(a+s)/2;e.xCoords=e.xCoords.map((function(t){return t+w})),e.yCoords=e.yCoords.map((function(t){return t+L}))}else{Object.keys(e).forEach((function(t){var i=e[t],r=i.getRect().x,h=i.getRect().x+i.getRect().width,l=i.getRect().y,c=i.getRect().y+i.getRect().height;r<n&&(n=r),h>o&&(o=h),l<s&&(s=l),c>a&&(a=c)}));var I=t.x-(o+n)/2,_=t.y-(a+s)/2;Object.keys(e).forEach((function(t){var i=e[t];i.setCenter(i.getCenterX()+I,i.getCenterY()+_)}))}}},calcBoundingBox:function(t,e,i,r){for(var n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,h=void 0,l=void 0,c=void 0,d=void 0,g=t.descendants().not(":parent"),u=g.length,p=0;p<u;p++){var f=g[p];n>(h=e[r.get(f.id())]-f.width()/2)&&(n=h),o<(l=e[r.get(f.id())]+f.width()/2)&&(o=l),s>(c=i[r.get(f.id())]-f.height()/2)&&(s=c),a<(d=i[r.get(f.id())]+f.height()/2)&&(a=d)}var v={};return v.topLeftX=n,v.topLeftY=s,v.width=o-n,v.height=a-s,v},calcParentsWithoutChildren:function(t,e){var i=t.collection();return e.nodes(":parent").forEach((function(t){var e=!1;t.children().forEach((function(t){"none"!=t.css("display")&&(e=!0)})),e||i.merge(t)})),i}};t.exports=o},816:(t,e,i)=>{var r=i(548),n=i(140).CoSELayout,o=i(140).CoSENode,s=i(140).layoutBase.PointD,a=i(140).layoutBase.DimensionD,h=i(140).layoutBase.LayoutConstants,l=i(140).layoutBase.FDLayoutConstants,c=i(140).CoSEConstants;t.exports={coseLayout:function(t,e){var i=t.cy,d=t.eles,g=d.nodes(),u=d.edges(),p=void 0,f=void 0,v=void 0,y={};t.randomize&&(p=e.nodeIndexes,f=e.xCoords,v=e.yCoords);var m=function(t){return"function"==typeof t},E=function(t,e){return m(t)?t(e):t},N=r.calcParentsWithoutChildren(i,d);null!=t.nestingFactor&&(c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(c.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(c.MAX_ITERATIONS=l.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(c.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(c.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),null!=t.tilingCompareBy&&(c.TILING_COMPARE_BY=t.tilingCompareBy),"proof"==t.quality?h.QUALITY=2:h.QUALITY=0,c.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!t.randomize,c.ANIMATE=l.ANIMATE=h.ANIMATE=t.animate,c.TILE=t.tile,c.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,c.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal,c.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,c.PURE_INCREMENTAL=!t.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=t.uniformNodeDimensions,"transformed"==t.step&&(c.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,c.ENFORCE_CONSTRAINTS=!1,c.APPLY_LAYOUT=!1),"enforced"==t.step&&(c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,c.ENFORCE_CONSTRAINTS=!0,c.APPLY_LAYOUT=!1),"cose"==t.step&&(c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,c.ENFORCE_CONSTRAINTS=!1,c.APPLY_LAYOUT=!0),"all"==t.step&&(t.randomize?c.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,c.ENFORCE_CONSTRAINTS=!0,c.APPLY_LAYOUT=!0),t.fixedNodeConstraint||t.alignmentConstraint||t.relativePlacementConstraint?c.TREE_REDUCTION_ON_INCREMENTAL=!1:c.TREE_REDUCTION_ON_INCREMENTAL=!0;var T=new n,A=T.newGraphManager();return function t(e,i,n,h){for(var l=i.length,c=0;c<l;c++){var d=i[c],g=null;0==d.intersection(N).length&&(g=d.children());var u=void 0,m=d.layoutDimensions({nodeDimensionsIncludeLabels:h.nodeDimensionsIncludeLabels});if(null!=d.outerWidth()&&null!=d.outerHeight())if(h.randomize)if(d.isParent()){var T=r.calcBoundingBox(d,f,v,p);u=0==d.intersection(N).length?e.add(new o(n.graphManager,new s(T.topLeftX,T.topLeftY),new a(T.width,T.height))):e.add(new o(n.graphManager,new s(T.topLeftX,T.topLeftY),new a(parseFloat(m.w),parseFloat(m.h))))}else u=e.add(new o(n.graphManager,new s(f[p.get(d.id())]-m.w/2,v[p.get(d.id())]-m.h/2),new a(parseFloat(m.w),parseFloat(m.h))));else u=e.add(new o(n.graphManager,new s(d.position("x")-m.w/2,d.position("y")-m.h/2),new a(parseFloat(m.w),parseFloat(m.h))));else u=e.add(new o(this.graphManager));u.id=d.data("id"),u.nodeRepulsion=E(h.nodeRepulsion,d),u.paddingLeft=parseInt(d.css("padding")),u.paddingTop=parseInt(d.css("padding")),u.paddingRight=parseInt(d.css("padding")),u.paddingBottom=parseInt(d.css("padding")),h.nodeDimensionsIncludeLabels&&(u.labelWidth=d.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,u.labelHeight=d.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,u.labelPosVertical=d.css("text-valign"),u.labelPosHorizontal=d.css("text-halign")),y[d.data("id")]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),null!=g&&g.length>0&&t(n.getGraphManager().add(n.newGraph(),u),g,n,h)}}(A.addRoot(),r.getTopMostNodes(g),T,t),function(e,i,r){for(var n=0,o=0,s=0;s<r.length;s++){var a=r[s],h=y[a.data("source")],d=y[a.data("target")];if(h&&d&&h!==d&&0==h.getEdgesBetween(d).length){var g=i.add(e.newEdge(),h,d);g.id=a.id(),g.idealLength=E(t.idealEdgeLength,a),g.edgeElasticity=E(t.edgeElasticity,a),n+=g.idealLength,o++}}null!=t.idealEdgeLength&&(o>0?c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=n/o:m(t.idealEdgeLength)?c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=50:c.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=t.idealEdgeLength,c.MIN_REPULSION_DIST=l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,c.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH)}(T,A,u),function(t,e){e.fixedNodeConstraint&&(t.constraints.fixedNodeConstraint=e.fixedNodeConstraint),e.alignmentConstraint&&(t.constraints.alignmentConstraint=e.alignmentConstraint),e.relativePlacementConstraint&&(t.constraints.relativePlacementConstraint=e.relativePlacementConstraint)}(T,t),T.runLayout(),y}}},212:(t,e,i)=>{var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(658),o=i(548),s=i(657).spectralLayout,a=i(816).coseLayout,h=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(t){return 4500},idealEdgeLength:function(t){return 50},edgeElasticity:function(t){return.45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=n({},h,e)}return r(t,[{key:"run",value:function(){var t=this.options,e=t.cy,i=t.eles,r=[],n=[],h=void 0,l=[];!t.fixedNodeConstraint||Array.isArray(t.fixedNodeConstraint)&&0!=t.fixedNodeConstraint.length||(t.fixedNodeConstraint=void 0),t.alignmentConstraint&&(!t.alignmentConstraint.vertical||Array.isArray(t.alignmentConstraint.vertical)&&0!=t.alignmentConstraint.vertical.length||(t.alignmentConstraint.vertical=void 0),!t.alignmentConstraint.horizontal||Array.isArray(t.alignmentConstraint.horizontal)&&0!=t.alignmentConstraint.horizontal.length||(t.alignmentConstraint.horizontal=void 0)),!t.relativePlacementConstraint||Array.isArray(t.relativePlacementConstraint)&&0!=t.relativePlacementConstraint.length||(t.relativePlacementConstraint=void 0),(t.fixedNodeConstraint||t.alignmentConstraint||t.relativePlacementConstraint)&&(t.tile=!1,t.packComponents=!1);var c=void 0,d=!1;if(e.layoutUtilities&&t.packComponents&&((c=e.layoutUtilities("get"))||(c=e.layoutUtilities()),d=!0),i.nodes().length>0)if(d){var g=o.getTopMostNodes(t.eles.nodes());if((h=o.connectComponents(e,t.eles,g)).forEach((function(t){var e=t.boundingBox();l.push({x:e.x1+e.w/2,y:e.y1+e.h/2})})),t.randomize&&h.forEach((function(e){t.eles=e,r.push(s(t))})),"default"==t.quality||"proof"==t.quality){var u=e.collection();if(t.tile){var p=new Map,f=0,v={nodeIndexes:p,xCoords:[],yCoords:[]},y=[];if(h.forEach((function(t,e){0==t.edges().length&&(t.nodes().forEach((function(e,i){u.merge(t.nodes()[i]),e.isParent()||(v.nodeIndexes.set(t.nodes()[i].id(),f++),v.xCoords.push(t.nodes()[0].position().x),v.yCoords.push(t.nodes()[0].position().y))})),y.push(e))})),u.length>1){var m=u.boundingBox();l.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),h.push(u),r.push(v);for(var E=y.length-1;E>=0;E--)h.splice(y[E],1),r.splice(y[E],1),l.splice(y[E],1)}}h.forEach((function(e,i){t.eles=e,n.push(a(t,r[i])),o.relocateComponent(l[i],n[i],t)}))}else h.forEach((function(e,i){o.relocateComponent(l[i],r[i],t)}));var N=new Set;if(h.length>1){var T=[],A=i.filter((function(t){return"none"==t.css("display")}));h.forEach((function(e,i){var s=void 0;if("draft"==t.quality&&(s=r[i].nodeIndexes),e.nodes().not(A).length>0){var a={edges:[],nodes:[]},h=void 0;e.nodes().not(A).forEach((function(e){if("draft"==t.quality)if(e.isParent()){var l=o.calcBoundingBox(e,r[i].xCoords,r[i].yCoords,s);a.nodes.push({x:l.topLeftX,y:l.topLeftY,width:l.width,height:l.height})}else h=s.get(e.id()),a.nodes.push({x:r[i].xCoords[h]-e.boundingbox().w/2,y:r[i].yCoords[h]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else n[i][e.id()]&&a.nodes.push({x:n[i][e.id()].getLeft(),y:n[i][e.id()].getTop(),width:n[i][e.id()].getWidth(),height:n[i][e.id()].getHeight()})})),e.edges().forEach((function(e){var h=e.source(),l=e.target();if("none"!=h.css("display")&&"none"!=l.css("display"))if("draft"==t.quality){var c=s.get(h.id()),d=s.get(l.id()),g=[],u=[];if(h.isParent()){var p=o.calcBoundingBox(h,r[i].xCoords,r[i].yCoords,s);g.push(p.topLeftX+p.width/2),g.push(p.topLeftY+p.height/2)}else g.push(r[i].xCoords[c]),g.push(r[i].yCoords[c]);if(l.isParent()){var f=o.calcBoundingBox(l,r[i].xCoords,r[i].yCoords,s);u.push(f.topLeftX+f.width/2),u.push(f.topLeftY+f.height/2)}else u.push(r[i].xCoords[d]),u.push(r[i].yCoords[d]);a.edges.push({startX:g[0],startY:g[1],endX:u[0],endY:u[1]})}else n[i][h.id()]&&n[i][l.id()]&&a.edges.push({startX:n[i][h.id()].getCenterX(),startY:n[i][h.id()].getCenterY(),endX:n[i][l.id()].getCenterX(),endY:n[i][l.id()].getCenterY()})})),a.nodes.length>0&&(T.push(a),N.add(i))}}));var w=c.packComponents(T,t.randomize).shifts;if("draft"==t.quality)r.forEach((function(t,e){var i=t.xCoords.map((function(t){return t+w[e].dx})),r=t.yCoords.map((function(t){return t+w[e].dy}));t.xCoords=i,t.yCoords=r}));else{var L=0;N.forEach((function(t){Object.keys(n[t]).forEach((function(e){var i=n[t][e];i.setCenter(i.getCenterX()+w[L].dx,i.getCenterY()+w[L].dy)})),L++}))}}}else{var I=t.eles.boundingBox();if(l.push({x:I.x1+I.w/2,y:I.y1+I.h/2}),t.randomize){var _=s(t);r.push(_)}"default"==t.quality||"proof"==t.quality?(n.push(a(t,r[0])),o.relocateComponent(l[0],n[0],t)):o.relocateComponent(l[0],r[0],t)}var C=function(e,i){if("default"==t.quality||"proof"==t.quality){"number"==typeof e&&(e=i);var o=void 0,s=void 0,a=e.data("id");return n.forEach((function(t){a in t&&(o={x:t[a].getRect().getCenterX(),y:t[a].getRect().getCenterY()},s=t[a])})),t.nodeDimensionsIncludeLabels&&(s.labelWidth&&("left"==s.labelPosHorizontal?o.x+=s.labelWidth/2:"right"==s.labelPosHorizontal&&(o.x-=s.labelWidth/2)),s.labelHeight&&("top"==s.labelPosVertical?o.y+=s.labelHeight/2:"bottom"==s.labelPosVertical&&(o.y-=s.labelHeight/2))),null==o&&(o={x:e.position("x"),y:e.position("y")}),{x:o.x,y:o.y}}var h=void 0;return r.forEach((function(t){var i=t.nodeIndexes.get(e.id());null!=i&&(h={x:t.xCoords[i],y:t.yCoords[i]})})),null==h&&(h={x:e.position("x"),y:e.position("y")}),{x:h.x,y:h.y}};if("default"==t.quality||"proof"==t.quality||t.randomize){var M=o.calcParentsWithoutChildren(e,i),x=i.filter((function(t){return"none"==t.css("display")}));t.eles=i.not(x),i.nodes().not(":parent").not(x).layoutPositions(this,t,C),M.length>0&&M.forEach((function(t){t.position(C(t))}))}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),t}();t.exports=l},657:(t,e,i)=>{var r=i(548),n=i(140).layoutBase.Matrix,o=i(140).layoutBase.SVD;t.exports={spectralLayout:function(t){var e=t.cy,i=t.eles,s=i.nodes(),a=i.nodes(":parent"),h=new Map,l=new Map,c=new Map,d=[],g=[],u=[],p=[],f=[],v=[],y=[],m=[],E=void 0,N=1e8,T=1e-9,A=t.piTol,w=t.samplingType,L=t.nodeSeparation,I=void 0,_=function(t,e,i){for(var r=[],n=0,o=0,s=0,a=void 0,h=[],c=0,g=1,u=0;u<E;u++)h[u]=N;for(r[o]=t,h[t]=0;o>=n;){s=r[n++];for(var p=d[s],y=0;y<p.length;y++)h[a=l.get(p[y])]==N&&(h[a]=h[s]+1,r[++o]=a);v[s][e]=h[s]*L}if(i){for(var m=0;m<E;m++)v[m][e]<f[m]&&(f[m]=v[m][e]);for(var T=0;T<E;T++)f[T]>c&&(c=f[T],g=T)}return g};r.connectComponents(e,i,r.getTopMostNodes(s),h),a.forEach((function(t){r.connectComponents(e,i,r.getTopMostNodes(t.descendants().intersection(i)),h)}));for(var C=0,M=0;M<s.length;M++)s[M].isParent()||l.set(s[M].id(),C++);var x=!0,O=!1,D=void 0;try{for(var R,b=h.keys()[Symbol.iterator]();!(x=(R=b.next()).done);x=!0){var G=R.value;l.set(G,C++)}}catch(K){O=!0,D=K}finally{try{!x&&b.return&&b.return()}finally{if(O)throw D}}for(var F=0;F<l.size;F++)d[F]=[];a.forEach((function(t){for(var e=t.children().intersection(i);0==e.nodes(":childless").length;)e=e.nodes()[0].children().intersection(i);var r=0,n=e.nodes(":childless")[0].connectedEdges().length;e.nodes(":childless").forEach((function(t,e){t.connectedEdges().length<n&&(n=t.connectedEdges().length,r=e)})),c.set(t.id(),e.nodes(":childless")[r].id())})),s.forEach((function(t){var e=void 0;e=t.isParent()?l.get(c.get(t.id())):l.get(t.id()),t.neighborhood().nodes().forEach((function(r){i.intersection(t.edgesWith(r)).length>0&&(r.isParent()?d[e].push(c.get(r.id())):d[e].push(r.id()))}))}));var S=function(t){var i=l.get(t),r=void 0;h.get(t).forEach((function(n){r=e.getElementById(n).isParent()?c.get(n):n,d[i].push(r),d[l.get(r)].push(t)}))},P=!0,U=!1,Y=void 0;try{for(var k,H=h.keys()[Symbol.iterator]();!(P=(k=H.next()).done);P=!0)S(k.value)}catch(K){U=!0,Y=K}finally{try{!P&&H.return&&H.return()}finally{if(U)throw Y}}var X=void 0;if((E=l.size)>2){I=E<t.sampleSize?E:t.sampleSize;for(var z=0;z<E;z++)v[z]=[];for(var V=0;V<I;V++)m[V]=[];return"draft"==t.quality||"all"==t.step?(function(t){var e=void 0;if(t){e=Math.floor(Math.random()*E);for(var i=0;i<E;i++)f[i]=N;for(var r=0;r<I;r++)p[r]=e,e=_(e,r,t)}else{!function(){for(var t=0,e=0,i=!1;e<I;){t=Math.floor(Math.random()*E),i=!1;for(var r=0;r<e;r++)if(p[r]==t){i=!0;break}i||(p[e]=t,e++)}}();for(var n=0;n<I;n++)_(p[n],n,t)}for(var o=0;o<E;o++)for(var s=0;s<I;s++)v[o][s]*=v[o][s];for(var a=0;a<I;a++)y[a]=[];for(var h=0;h<I;h++)for(var l=0;l<I;l++)y[h][l]=v[p[l]][h]}(w),function(){for(var t=o.svd(y),e=t.S,i=t.U,r=t.V,s=e[0]*e[0]*e[0],a=[],h=0;h<I;h++){a[h]=[];for(var l=0;l<I;l++)a[h][l]=0,h==l&&(a[h][l]=e[h]/(e[h]*e[h]+s/(e[h]*e[h])))}m=n.multMat(n.multMat(r,a),n.transpose(i))}(),function(){for(var t=void 0,e=void 0,i=[],r=[],o=[],s=[],a=0;a<E;a++)i[a]=Math.random(),r[a]=Math.random();i=n.normalize(i),r=n.normalize(r);for(var h=T,l=T,c=void 0;;){for(var d=0;d<E;d++)o[d]=i[d];if(i=n.multGamma(n.multL(n.multGamma(o),v,m)),t=n.dotProduct(o,i),i=n.normalize(i),h=n.dotProduct(o,i),(c=Math.abs(h/l))<=1+A&&c>=1)break;l=h}for(var p=0;p<E;p++)o[p]=i[p];for(l=T;;){for(var f=0;f<E;f++)s[f]=r[f];if(s=n.minusOp(s,n.multCons(o,n.dotProduct(o,s))),r=n.multGamma(n.multL(n.multGamma(s),v,m)),e=n.dotProduct(s,r),r=n.normalize(r),h=n.dotProduct(s,r),(c=Math.abs(h/l))<=1+A&&c>=1)break;l=h}for(var y=0;y<E;y++)s[y]=r[y];g=n.multCons(o,Math.sqrt(Math.abs(t))),u=n.multCons(s,Math.sqrt(Math.abs(e)))}(),X={nodeIndexes:l,xCoords:g,yCoords:u}):(l.forEach((function(t,i){g.push(e.getElementById(i).position("x")),u.push(e.getElementById(i).position("y"))})),X={nodeIndexes:l,xCoords:g,yCoords:u}),X}var B=l.keys(),W=e.getElementById(B.next().value),j=W.position(),q=W.outerWidth();if(g.push(j.x),u.push(j.y),2==E){var $=e.getElementById(B.next().value).outerWidth();g.push(j.x+q/2+$/2+t.idealEdgeLength),u.push(j.y)}return X={nodeIndexes:l,xCoords:g,yCoords:u}}}},579:(t,e,i)=>{var r=i(212),n=function(t){t&&t("layout","fcose",r)};"undefined"!=typeof cytoscape&&n(cytoscape),t.exports=n},140:e=>{e.exports=t}},i={},r=function t(r){var n=i[r];if(void 0!==n)return n.exports;var o=i[r]={exports:{}};return e[r](o,o.exports,t),o.exports}(579);return r})()},t.exports=r(i(1709))},1709:function(t,e,i){var r;r=function(t){return(()=>{"use strict";var e={45:(t,e,i)=>{var r={};r.layoutBase=i(551),r.CoSEConstants=i(806),r.CoSEEdge=i(767),r.CoSEGraph=i(880),r.CoSEGraphManager=i(578),r.CoSELayout=i(765),r.CoSENode=i(991),r.ConstraintHandler=i(902),t.exports=r},806:(t,e,i)=>{var r=i(551).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,n.ENFORCE_CONSTRAINTS=!0,n.APPLY_LAYOUT=!0,n.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,n.TREE_REDUCTION_ON_INCREMENTAL=!0,n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL,t.exports=n},767:(t,e,i)=>{var r=i(551).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},880:(t,e,i)=>{var r=i(551).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},578:(t,e,i)=>{var r=i(551).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},765:(t,e,i)=>{var r=i(551).FDLayout,n=i(578),o=i(880),s=i(991),a=i(767),h=i(806),l=i(902),c=i(551).FDLayoutConstants,d=i(551).LayoutConstants,g=i(551).Point,u=i(551).PointD,p=i(551).DimensionD,f=i(551).Layout,v=i(551).Integer,y=i(551).IGeometry,m=i(551).LGraph,E=i(551).Transform,N=i(551).LinkedList;function T(){r.call(this),this.toBeTiled={},this.constraints={}}for(var A in T.prototype=Object.create(r.prototype),r)T[A]=r[A];T.prototype.newGraphManager=function(){var t=new n(this);return this.graphManager=t,t},T.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},T.prototype.newNode=function(t){return new s(this.graphManager,t)},T.prototype.newEdge=function(t){return new a(null,null,t)},T.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},T.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},T.prototype.layout=function(){return d.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},T.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)h.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(i));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(l.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},T.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),h.PURE_INCREMENTAL?this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},T.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,n=t[i].id;e[n]={id:n,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},T.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===c.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},T.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].calculateDisplacement();for(Object.keys(this.constraints).length>0&&this.updateDisplacements(),e=0;e<t.length;e++)t[e].move()},T.prototype.initConstraintVariables=function(){var t=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var e=this.graphManager.getAllNodes(),i=0;i<e.length;i++){var r=e[i];this.idToNodeMap.set(r.id,r)}var n=function e(i){for(var r,n=i.getChild().getNodes(),o=0,s=0;s<n.length;s++)null==(r=n[s]).getChild()?t.fixedNodeSet.has(r.id)&&(o+=100):o+=e(r);return o};if(this.constraints.fixedNodeConstraint)for(this.constraints.fixedNodeConstraint.forEach((function(e){t.fixedNodeSet.add(e.nodeId)})),e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)if(null!=(r=e[i]).getChild()){var o=n(r);o>0&&(r.fixedNodeWeight=o)}if(this.constraints.relativePlacementConstraint){var s=new Map,a=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach((function(e){t.fixedNodesOnHorizontal.add(e),t.fixedNodesOnVertical.add(e)})),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var l=this.constraints.alignmentConstraint.vertical;for(i=0;i<l.length;i++)this.dummyToNodeForVerticalAlignment.set("dummy"+i,[]),l[i].forEach((function(e){s.set(e,"dummy"+i),t.dummyToNodeForVerticalAlignment.get("dummy"+i).push(e),t.fixedNodeSet.has(e)&&t.fixedNodesOnHorizontal.add("dummy"+i)}))}if(this.constraints.alignmentConstraint.horizontal){var c=this.constraints.alignmentConstraint.horizontal;for(i=0;i<c.length;i++)this.dummyToNodeForHorizontalAlignment.set("dummy"+i,[]),c[i].forEach((function(e){a.set(e,"dummy"+i),t.dummyToNodeForHorizontalAlignment.get("dummy"+i).push(e),t.fixedNodeSet.has(e)&&t.fixedNodesOnVertical.add("dummy"+i)}))}}if(h.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(t){var e,i,r;for(r=t.length-1;r>=2*t.length/3;r--)e=Math.floor(Math.random()*(r+1)),i=t[r],t[r]=t[e],t[e]=i;return t},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach((function(e){if(e.left){var i=s.has(e.left)?s.get(e.left):e.left,r=s.has(e.right)?s.get(e.right):e.right;t.nodesInRelativeHorizontal.includes(i)||(t.nodesInRelativeHorizontal.push(i),t.nodeToRelativeConstraintMapHorizontal.set(i,[]),t.dummyToNodeForVerticalAlignment.has(i)?t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(i)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(i).getCenterX())),t.nodesInRelativeHorizontal.includes(r)||(t.nodesInRelativeHorizontal.push(r),t.nodeToRelativeConstraintMapHorizontal.set(r,[]),t.dummyToNodeForVerticalAlignment.has(r)?t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(r).getCenterX())),t.nodeToRelativeConstraintMapHorizontal.get(i).push({right:r,gap:e.gap}),t.nodeToRelativeConstraintMapHorizontal.get(r).push({left:i,gap:e.gap})}else{var n=a.has(e.top)?a.get(e.top):e.top,o=a.has(e.bottom)?a.get(e.bottom):e.bottom;t.nodesInRelativeVertical.includes(n)||(t.nodesInRelativeVertical.push(n),t.nodeToRelativeConstraintMapVertical.set(n,[]),t.dummyToNodeForHorizontalAlignment.has(n)?t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(n)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(n).getCenterY())),t.nodesInRelativeVertical.includes(o)||(t.nodesInRelativeVertical.push(o),t.nodeToRelativeConstraintMapVertical.set(o,[]),t.dummyToNodeForHorizontalAlignment.has(o)?t.nodeToTempPositionMapVertical.set(o,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(o)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(o,t.idToNodeMap.get(o).getCenterY())),t.nodeToRelativeConstraintMapVertical.get(n).push({bottom:o,gap:e.gap}),t.nodeToRelativeConstraintMapVertical.get(o).push({top:n,gap:e.gap})}}));else{var d=new Map,g=new Map;this.constraints.relativePlacementConstraint.forEach((function(t){if(t.left){var e=s.has(t.left)?s.get(t.left):t.left,i=s.has(t.right)?s.get(t.right):t.right;d.has(e)?d.get(e).push(i):d.set(e,[i]),d.has(i)?d.get(i).push(e):d.set(i,[e])}else{var r=a.has(t.top)?a.get(t.top):t.top,n=a.has(t.bottom)?a.get(t.bottom):t.bottom;g.has(r)?g.get(r).push(n):g.set(r,[n]),g.has(n)?g.get(n).push(r):g.set(n,[r])}}));var u=function(t,e){var i=[],r=[],n=new N,o=new Set,s=0;return t.forEach((function(a,h){if(!o.has(h)){i[s]=[],r[s]=!1;var l=h;for(n.push(l),o.add(l),i[s].push(l);0!=n.length;)l=n.shift(),e.has(l)&&(r[s]=!0),t.get(l).forEach((function(t){o.has(t)||(n.push(t),o.add(t),i[s].push(t))}));s++}})),{components:i,isFixed:r}},p=u(d,t.fixedNodesOnHorizontal);this.componentsOnHorizontal=p.components,this.fixedComponentsOnHorizontal=p.isFixed;var f=u(g,t.fixedNodesOnVertical);this.componentsOnVertical=f.components,this.fixedComponentsOnVertical=f.isFixed}}},T.prototype.updateDisplacements=function(){var t=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach((function(e){var i=t.idToNodeMap.get(e.nodeId);i.displacementX=0,i.displacementY=0})),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var e=this.constraints.alignmentConstraint.vertical,i=0;i<e.length;i++){for(var r=0,n=0;n<e[i].length;n++){if(this.fixedNodeSet.has(e[i][n])){r=0;break}r+=this.idToNodeMap.get(e[i][n]).displacementX}var o=r/e[i].length;for(n=0;n<e[i].length;n++)this.idToNodeMap.get(e[i][n]).displacementX=o}if(this.constraints.alignmentConstraint.horizontal){var s=this.constraints.alignmentConstraint.horizontal;for(i=0;i<s.length;i++){var a=0;for(n=0;n<s[i].length;n++){if(this.fixedNodeSet.has(s[i][n])){a=0;break}a+=this.idToNodeMap.get(s[i][n]).displacementY}var l=a/s[i].length;for(n=0;n<s[i].length;n++)this.idToNodeMap.get(s[i][n]).displacementY=l}}}if(this.constraints.relativePlacementConstraint)if(h.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach((function(e){if(!t.fixedNodesOnHorizontal.has(e)){var i=0;i=t.dummyToNodeForVerticalAlignment.has(e)?t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(e)[0]).displacementX:t.idToNodeMap.get(e).displacementX,t.nodeToRelativeConstraintMapHorizontal.get(e).forEach((function(r){var n;r.right?(n=t.nodeToTempPositionMapHorizontal.get(r.right)-t.nodeToTempPositionMapHorizontal.get(e)-i)<r.gap&&(i-=r.gap-n):(n=t.nodeToTempPositionMapHorizontal.get(e)-t.nodeToTempPositionMapHorizontal.get(r.left)+i)<r.gap&&(i+=r.gap-n)})),t.nodeToTempPositionMapHorizontal.set(e,t.nodeToTempPositionMapHorizontal.get(e)+i),t.dummyToNodeForVerticalAlignment.has(e)?t.dummyToNodeForVerticalAlignment.get(e).forEach((function(e){t.idToNodeMap.get(e).displacementX=i})):t.idToNodeMap.get(e).displacementX=i}})),this.nodesInRelativeVertical.forEach((function(e){if(!t.fixedNodesOnHorizontal.has(e)){var i=0;i=t.dummyToNodeForHorizontalAlignment.has(e)?t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(e)[0]).displacementY:t.idToNodeMap.get(e).displacementY,t.nodeToRelativeConstraintMapVertical.get(e).forEach((function(r){var n;r.bottom?(n=t.nodeToTempPositionMapVertical.get(r.bottom)-t.nodeToTempPositionMapVertical.get(e)-i)<r.gap&&(i-=r.gap-n):(n=t.nodeToTempPositionMapVertical.get(e)-t.nodeToTempPositionMapVertical.get(r.top)+i)<r.gap&&(i+=r.gap-n)})),t.nodeToTempPositionMapVertical.set(e,t.nodeToTempPositionMapVertical.get(e)+i),t.dummyToNodeForHorizontalAlignment.has(e)?t.dummyToNodeForHorizontalAlignment.get(e).forEach((function(e){t.idToNodeMap.get(e).displacementY=i})):t.idToNodeMap.get(e).displacementY=i}}));else{for(i=0;i<this.componentsOnHorizontal.length;i++){var c=this.componentsOnHorizontal[i];if(this.fixedComponentsOnHorizontal[i])for(n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?this.dummyToNodeForVerticalAlignment.get(c[n]).forEach((function(e){t.idToNodeMap.get(e).displacementX=0})):this.idToNodeMap.get(c[n]).displacementX=0;else{var d=0,g=0;for(n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?(d+=(p=this.dummyToNodeForVerticalAlignment.get(c[n])).length*this.idToNodeMap.get(p[0]).displacementX,g+=p.length):(d+=this.idToNodeMap.get(c[n]).displacementX,g++);var u=d/g;for(n=0;n<c.length;n++)this.dummyToNodeForVerticalAlignment.has(c[n])?this.dummyToNodeForVerticalAlignment.get(c[n]).forEach((function(e){t.idToNodeMap.get(e).displacementX=u})):this.idToNodeMap.get(c[n]).displacementX=u}}for(i=0;i<this.componentsOnVertical.length;i++)if(c=this.componentsOnVertical[i],this.fixedComponentsOnVertical[i])for(n=0;n<c.length;n++)this.dummyToNodeForHorizontalAlignment.has(c[n])?this.dummyToNodeForHorizontalAlignment.get(c[n]).forEach((function(e){t.idToNodeMap.get(e).displacementY=0})):this.idToNodeMap.get(c[n]).displacementY=0;else{for(d=0,g=0,n=0;n<c.length;n++){var p;this.dummyToNodeForHorizontalAlignment.has(c[n])?(d+=(p=this.dummyToNodeForHorizontalAlignment.get(c[n])).length*this.idToNodeMap.get(p[0]).displacementY,g+=p.length):(d+=this.idToNodeMap.get(c[n]).displacementY,g++)}for(u=d/g,n=0;n<c.length;n++)this.dummyToNodeForHorizontalAlignment.has(c[n])?this.dummyToNodeForHorizontalAlignment.get(c[n]).forEach((function(e){t.idToNodeMap.get(e).displacementY=u})):this.idToNodeMap.get(c[n]).displacementY=u}}},T.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],r=this.graphManager.getGraphs(),n=r.length;for(e=0;e<n;e++)(t=r[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},T.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,i=new Set;for(e=0;e<t.length;e++){var r=t[e];if(!i.has(r)){var n=r.getSource(),o=r.getTarget();if(n==o)r.getBendpoints().push(new u),r.getBendpoints().push(new u),this.createDummyNodesForBendpoints(r),i.add(r);else{var s=[];if(s=(s=s.concat(n.getEdgeListToNode(o))).concat(o.getEdgeListToNode(n)),!i.has(s[0])){var a;if(s.length>1)for(a=0;a<s.length;a++){var h=s[a];h.getBendpoints().push(new u),this.createDummyNodesForBendpoints(h)}s.forEach((function(t){i.add(t)}))}}}if(i.size==t.length)break}},T.prototype.positionNodesRadially=function(t){for(var e=new g(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,n=0,o=0,s=new u(0,0),a=0;a<t.length;a++){a%i==0&&(o=0,n=r,0!=a&&(n+=h.DEFAULT_COMPONENT_SEPERATION),r=0);var l=t[a],c=f.findCenterOfTree(l);e.x=o,e.y=n,(s=T.radialLayout(l,c,e)).y>r&&(r=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(d.WORLD_CENTER_X-s.x/2,d.WORLD_CENTER_Y-s.y/2))},T.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);T.branchRadialLayout(e,null,0,359,0,r);var n=m.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var s=0;s<t.length;s++)t[s].transform(o);var a=new u(n.getMaxX(),n.getMaxY());return o.inverseTransformPoint(a)},T.branchRadialLayout=function(t,e,i,r,n,o){var s=(r-i+1)/2;s<0&&(s+=180);var a=(s+i)%360*y.TWO_PI/360,h=(Math.cos(a),n*Math.cos(a)),l=n*Math.sin(a);t.setCenter(h,l);var c=[],d=(c=c.concat(t.getEdges())).length;null!=e&&d--;for(var g,u=0,p=c.length,f=t.getEdgesBetween(e);f.length>1;){var v=f[0];f.splice(0,1);var m=c.indexOf(v);m>=0&&c.splice(m,1),p--,d--}g=null!=e?(c.indexOf(f[0])+1)%p:0;for(var E=Math.abs(r-i)/d,N=g;u!=d;N=++N%p){var A=c[N].getOtherEnd(t);if(A!=e){var w=(i+u*E)%360,L=(w+E)%360;T.branchRadialLayout(A,t,w,L,n+o,o),u++}}},T.maxDiagonalInTree=function(t){for(var e=v.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();r>e&&(e=r)}return e},T.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},T.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n<r.length;n++){var o=(a=r[n]).getParent();0!==this.getNodeDegreeWithChildren(a)||null!=o.id&&this.getToBeTiled(o)||i.push(a)}for(n=0;n<i.length;n++){var a,h=(a=i[n]).getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(a)}Object.keys(e).forEach((function(i){if(e[i].length>1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new s(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var c=e[i][l];h.remove(c),a.add(c)}}}))},T.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},T.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(i){var r=t.idToDummyNode[i];if(e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height,r.setCenter(e[i].centerX,e[i].centerY),r.labelMarginLeft=0,r.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var n=r.rect.width,o=r.rect.height;r.labelWidth&&("left"==r.labelPosHorizontal?(r.rect.x-=r.labelWidth,r.setWidth(n+r.labelWidth),r.labelMarginLeft=r.labelWidth):"center"==r.labelPosHorizontal&&r.labelWidth>n?(r.rect.x-=(r.labelWidth-n)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-n)/2):"right"==r.labelPosHorizontal&&r.setWidth(n+r.labelWidth)),r.labelHeight&&("top"==r.labelPosVertical?(r.rect.y-=r.labelHeight,r.setHeight(o+r.labelHeight),r.labelMarginTop=r.labelHeight):"center"==r.labelPosVertical&&r.labelHeight>o?(r.rect.y-=(r.labelHeight-o)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-o)/2):"bottom"==r.labelPosVertical&&r.setHeight(o+r.labelHeight))}}))},T.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop,o=e.labelMarginLeft,s=e.labelMarginTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n,o,s)}},T.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop,s=r.labelMarginLeft,a=r.labelMarginTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o,s,a)}))},T.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n<r.length;n++){var o=r[n];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[e]=!0,!0},T.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var n=e[r];n.getSource().id!==n.getTarget().id&&(i+=1)}return i},T.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var n=i[r];e+=this.getNodeDegreeWithChildren(n)}return e},T.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},T.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},T.prototype.adjustLocations=function(t,e,i,r,n,o,s){i+=n+s;for(var a=e+=r+o,h=0;h<t.rows.length;h++){var l=t.rows[h];e=a;for(var c=0,d=0;d<l.length;d++){var g=l[d];g.rect.x=e,g.rect.y=i,e+=g.rect.width+t.horizontalPadding,g.rect.height>c&&(c=g.rect.height)}i+=c+t.verticalPadding}},T.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(r){var n=e[r];if(i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height,n.setCenter(i.tiledMemberPack[r].centerX,i.tiledMemberPack[r].centerY),n.labelMarginLeft=0,n.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var o=n.rect.width,s=n.rect.height;n.labelWidth&&("left"==n.labelPosHorizontal?(n.rect.x-=n.labelWidth,n.setWidth(o+n.labelWidth),n.labelMarginLeft=n.labelWidth):"center"==n.labelPosHorizontal&&n.labelWidth>o?(n.rect.x-=(n.labelWidth-o)/2,n.setWidth(n.labelWidth),n.labelMarginLeft=(n.labelWidth-o)/2):"right"==n.labelPosHorizontal&&n.setWidth(o+n.labelWidth)),n.labelHeight&&("top"==n.labelPosVertical?(n.rect.y-=n.labelHeight,n.setHeight(s+n.labelHeight),n.labelMarginTop=n.labelHeight):"center"==n.labelPosVertical&&n.labelHeight>s?(n.rect.y-=(n.labelHeight-s)/2,n.setHeight(n.labelHeight),n.labelMarginTop=(n.labelHeight-s)/2):"bottom"==n.labelPosVertical&&n.setHeight(s+n.labelHeight))}}))},T.prototype.tileNodes=function(t,e){var i=this.tileNodesByFavoringDim(t,e,!0),r=this.tileNodesByFavoringDim(t,e,!1),n=this.getOrgRatio(i);return this.getOrgRatio(r)<n?r:i},T.prototype.getOrgRatio=function(t){var e=t.width/t.height;return e<1&&(e=1/e),e},T.prototype.calcIdealRowWidth=function(t,e){var i=h.TILING_PADDING_VERTICAL,r=h.TILING_PADDING_HORIZONTAL,n=t.length,o=0,s=0,a=0;t.forEach((function(t){o+=t.getWidth(),s+=t.getHeight(),t.getWidth()>a&&(a=t.getWidth())}));var l,c=o/n,d=s/n,g=Math.pow(i-r,2)+4*(c+r)*(d+i)*n,u=(r-i+Math.sqrt(g))/(2*(c+r));e?(l=Math.ceil(u))==u&&l++:l=Math.floor(u);var p=l*(c+r)-r;return a>p&&(p=a),p+=2*r},T.prototype.tileNodesByFavoringDim=function(t,e,i){var r=h.TILING_PADDING_VERTICAL,n=h.TILING_PADDING_HORIZONTAL,o=h.TILING_COMPARE_BY,s={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:r,horizontalPadding:n,centerX:0,centerY:0};o&&(s.idealRowWidth=this.calcIdealRowWidth(t,i));var a=function(t){return t.rect.width*t.rect.height},l=function(t,e){return a(e)-a(t)};t.sort((function(t,e){var i=l;return s.idealRowWidth?(i=o)(t.id,e.id):i(t,e)}));for(var c=0,d=0,g=0;g<t.length;g++)c+=(u=t[g]).getCenterX(),d+=u.getCenterY();for(s.centerX=c/t.length,s.centerY=d/t.length,g=0;g<t.length;g++){var u=t[g];if(0==s.rows.length)this.insertNodeToRow(s,u,0,e);else if(this.canAddHorizontal(s,u.rect.width,u.rect.height)){var p=s.rows.length-1;s.idealRowWidth||(p=this.getShortestRowIndex(s)),this.insertNodeToRow(s,u,p,e)}else this.insertNodeToRow(s,u,s.rows.length,e);this.shiftToLastRow(s)}return s},T.prototype.insertNodeToRow=function(t,e,i,r){var n=r;i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(n),t.rowHeight.push(0));var o=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(o+=t.horizontalPadding),t.rowWidth[i]=o,t.width<o&&(t.width=o);var s=e.rect.height;i>0&&(s+=t.verticalPadding);var a=0;s>t.rowHeight[i]&&(a=t.rowHeight[i],t.rowHeight[i]=s,a=t.rowHeight[i]-a),t.height+=a,t.rows[i].push(e)},T.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},T.prototype.getLongestRowIndex=function(t){for(var e=-1,i=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},T.prototype.canAddHorizontal=function(t,e,i){if(t.idealRowWidth){var r=t.rows.length-1;return t.rowWidth[r]+e+t.horizontalPadding<=t.idealRowWidth}var n=this.getShortestRowIndex(t);if(n<0)return!0;var o=t.rowWidth[n];if(o+t.horizontalPadding+e<=t.width)return!0;var s,a,h=0;return t.rowHeight[n]<i&&n>0&&(h=i+t.verticalPadding-t.rowHeight[n]),s=t.width-o>=e+t.horizontalPadding?(t.height+h)/(o+e+t.horizontalPadding):(t.height+h)/t.width,h=i+t.verticalPadding,(a=t.width<e?(t.height+h)/e:(t.height+h)/t.width)<1&&(a=1/a),s<1&&(s=1/s),s<a},T.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],n=r[r.length-1],o=n.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;a<r.length;a++)r[a].height>s&&(s=r[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=s,t.rowHeight[i]<n.height+t.verticalPadding&&(t.rowHeight[i]=n.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[i];t.height+=l-h,this.shiftToLastRow(t)}},T.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},T.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},T.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var r=this.graphManager.getAllNodes(),n=[];i=!1;for(var o=0;o<r.length;o++)if(1==(t=r[o]).getEdges().length&&!t.getEdges()[0].isInterGraph&&null==t.getChild()){if(h.PURE_INCREMENTAL){var s=t.getEdges()[0].getOtherEnd(t),a=new p(t.getCenterX()-s.getCenterX(),t.getCenterY()-s.getCenterY());n.push([t,t.getEdges()[0],t.getOwner(),a])}else n.push([t,t.getEdges()[0],t.getOwner()]);i=!0}if(1==i){for(var l=[],c=0;c<n.length;c++)1==n[c][0].getEdges().length&&(l.push(n[c]),n[c][0].getOwner().remove(n[c][0]));e.push(l),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},T.prototype.growTree=function(t){for(var e,i=t[t.length-1],r=0;r<i.length;r++)e=i[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},T.prototype.findPlaceforPrunedNode=function(t){var e,i,r=t[0];if(i=r==t[1].source?t[1].target:t[1].source,h.PURE_INCREMENTAL)r.setCenter(i.getCenterX()+t[3].getWidth(),i.getCenterY()+t[3].getHeight());else{var n=i.startX,o=i.finishX,s=i.startY,a=i.finishY,l=[0,0,0,0];if(s>0)for(var d=n;d<=o;d++)l[0]+=this.grid[d][s-1].length+this.grid[d][s].length-1;if(o<this.grid.length-1)for(d=s;d<=a;d++)l[1]+=this.grid[o+1][d].length+this.grid[o][d].length-1;if(a<this.grid[0].length-1)for(d=n;d<=o;d++)l[2]+=this.grid[d][a+1].length+this.grid[d][a].length-1;if(n>0)for(d=s;d<=a;d++)l[3]+=this.grid[n-1][d].length+this.grid[n][d].length-1;for(var g,u,p=v.MAX_VALUE,f=0;f<l.length;f++)l[f]<p?(p=l[f],g=1,u=f):l[f]==p&&g++;if(3==g&&0==p)0==l[0]&&0==l[1]&&0==l[2]?e=1:0==l[0]&&0==l[1]&&0==l[3]?e=0:0==l[0]&&0==l[2]&&0==l[3]?e=3:0==l[1]&&0==l[2]&&0==l[3]&&(e=2);else if(2==g&&0==p){var y=Math.floor(2*Math.random());e=0==l[0]&&0==l[1]?0==y?0:1:0==l[0]&&0==l[2]?0==y?0:2:0==l[0]&&0==l[3]?0==y?0:3:0==l[1]&&0==l[2]?0==y?1:2:0==l[1]&&0==l[3]?0==y?1:3:0==y?2:3}else e=4==g&&0==p?y=Math.floor(4*Math.random()):u;0==e?r.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-c.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==e?r.setCenter(i.getCenterX()+i.getWidth()/2+c.DEFAULT_EDGE_LENGTH+r.getWidth()/2,i.getCenterY()):2==e?r.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+c.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(i.getCenterX()-i.getWidth()/2-c.DEFAULT_EDGE_LENGTH-r.getWidth()/2,i.getCenterY())}},t.exports=T},991:(t,e,i)=>{var r=i(551).FDLayoutNode,n=i(551).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.calculateDisplacement=function(){var t=this.graphManager.getLayout();null!=this.getChild()&&this.fixedNodeWeight?(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n<r.length;n++)null==(i=r[n]).getChild()?(i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},o.prototype.move=function(){var t=this.graphManager.getLayout();null!=this.child&&0!=this.child.getNodes().length||(this.moveBy(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},902:(t,e,i)=>{function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var n=i(806),o=i(551).LinkedList,s=i(551).Matrix,a=i(551).SVD;function h(){}h.handleConstraints=function(t){var e={};e.fixedNodeConstraint=t.constraints.fixedNodeConstraint,e.alignmentConstraint=t.constraints.alignmentConstraint,e.relativePlacementConstraint=t.constraints.relativePlacementConstraint;for(var i=new Map,h=new Map,l=[],c=[],d=t.getAllNodes(),g=0,u=0;u<d.length;u++){var p=d[u];null==p.getChild()&&(h.set(p.id,g++),l.push(p.getCenterX()),c.push(p.getCenterY()),i.set(p.id,p))}e.relativePlacementConstraint&&e.relativePlacementConstraint.forEach((function(t){t.gap||0==t.gap||(t.left?t.gap=n.DEFAULT_EDGE_LENGTH+i.get(t.left).getWidth()/2+i.get(t.right).getWidth()/2:t.gap=n.DEFAULT_EDGE_LENGTH+i.get(t.top).getHeight()/2+i.get(t.bottom).getHeight()/2)}));var f=function(t){var e=0,i=0;return t.forEach((function(t){e+=l[h.get(t)],i+=c[h.get(t)]})),{x:e/t.size,y:i/t.size}},v=function(t,e,i,n,s){var a=new Map;t.forEach((function(t,e){a.set(e,0)})),t.forEach((function(t,e){t.forEach((function(t){a.set(t.id,a.get(t.id)+1)}))}));var d=new Map,g=new Map,u=new o;a.forEach((function(t,r){0==t?(u.push(r),i||("horizontal"==e?d.set(r,h.has(r)?l[h.get(r)]:n.get(r)):d.set(r,h.has(r)?c[h.get(r)]:n.get(r)))):d.set(r,Number.NEGATIVE_INFINITY),i&&g.set(r,new Set([r]))})),i&&s.forEach((function(t){var r=[];if(t.forEach((function(t){i.has(t)&&r.push(t)})),r.length>0){var o=0;r.forEach((function(t){"horizontal"==e?(d.set(t,h.has(t)?l[h.get(t)]:n.get(t)),o+=d.get(t)):(d.set(t,h.has(t)?c[h.get(t)]:n.get(t)),o+=d.get(t))})),o/=r.length,t.forEach((function(t){i.has(t)||d.set(t,o)}))}else{var s=0;t.forEach((function(t){s+="horizontal"==e?h.has(t)?l[h.get(t)]:n.get(t):h.has(t)?c[h.get(t)]:n.get(t)})),s/=t.length,t.forEach((function(t){d.set(t,s)}))}}));for(var p=function(){var r=u.shift();t.get(r).forEach((function(t){if(d.get(t.id)<d.get(r)+t.gap)if(i&&i.has(t.id)){var o=void 0;if(o="horizontal"==e?h.has(t.id)?l[h.get(t.id)]:n.get(t.id):h.has(t.id)?c[h.get(t.id)]:n.get(t.id),d.set(t.id,o),o<d.get(r)+t.gap){var s=d.get(r)+t.gap-o;g.get(r).forEach((function(t){d.set(t,d.get(t)-s)}))}}else d.set(t.id,d.get(r)+t.gap);a.set(t.id,a.get(t.id)-1),0==a.get(t.id)&&u.push(t.id),i&&g.set(t.id,function(t,e){var i=new Set(t),r=!0,n=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var h=s.value;i.add(h)}}catch(l){n=!0,o=l}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return i}(g.get(r),g.get(t.id)))}))};0!=u.length;)p();if(i){var f=new Set;t.forEach((function(t,e){0==t.length&&f.add(e)}));var v=[];g.forEach((function(t,e){if(f.has(e)){var n=!1,o=!0,s=!1,a=void 0;try{for(var h,l=t[Symbol.iterator]();!(o=(h=l.next()).done);o=!0){var c=h.value;i.has(c)&&(n=!0)}}catch(u){s=!0,a=u}finally{try{!o&&l.return&&l.return()}finally{if(s)throw a}}if(!n){var d=!1,g=void 0;v.forEach((function(e,i){e.has([].concat(r(t))[0])&&(d=!0,g=i)})),d?t.forEach((function(t){v[g].add(t)})):v.push(new Set(t))}}})),v.forEach((function(t,i){var r=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY,a=Number.NEGATIVE_INFINITY,g=!0,u=!1,p=void 0;try{for(var f,v=t[Symbol.iterator]();!(g=(f=v.next()).done);g=!0){var y=f.value,m=void 0;m="horizontal"==e?h.has(y)?l[h.get(y)]:n.get(y):h.has(y)?c[h.get(y)]:n.get(y);var E=d.get(y);m<r&&(r=m),m>s&&(s=m),E<o&&(o=E),E>a&&(a=E)}}catch(C){u=!0,p=C}finally{try{!g&&v.return&&v.return()}finally{if(u)throw p}}var N=(r+s)/2-(o+a)/2,T=!0,A=!1,w=void 0;try{for(var L,I=t[Symbol.iterator]();!(T=(L=I.next()).done);T=!0){var _=L.value;d.set(_,d.get(_)+N)}}catch(C){A=!0,w=C}finally{try{!T&&I.return&&I.return()}finally{if(A)throw w}}}))}return d},y=function(t){var e=0,i=0,r=0,n=0;if(t.forEach((function(t){t.left?l[h.get(t.left)]-l[h.get(t.right)]>=0?e++:i++:c[h.get(t.top)]-c[h.get(t.bottom)]>=0?r++:n++})),e>i&&r>n)for(var o=0;o<h.size;o++)l[o]=-1*l[o],c[o]=-1*c[o];else if(e>i)for(var s=0;s<h.size;s++)l[s]=-1*l[s];else if(r>n)for(var a=0;a<h.size;a++)c[a]=-1*c[a]},m=function(t){var e=[],i=new o,r=new Set,n=0;return t.forEach((function(o,s){if(!r.has(s)){e[n]=[];var a=s;for(i.push(a),r.add(a),e[n].push(a);0!=i.length;)a=i.shift(),t.get(a).forEach((function(t){r.has(t.id)||(i.push(t.id),r.add(t.id),e[n].push(t.id))}));n++}})),e},E=function(t){var e=new Map;return t.forEach((function(t,i){e.set(i,[])})),t.forEach((function(t,i){t.forEach((function(t){e.get(i).push(t),e.get(t.id).push({id:i,gap:t.gap,direction:t.direction})}))})),e},N=function(t){var e=new Map;return t.forEach((function(t,i){e.set(i,[])})),t.forEach((function(t,i){t.forEach((function(t){e.get(t.id).push({id:i,gap:t.gap,direction:t.direction})}))})),e},T=[],A=[],w=!1,L=!1,I=new Set,_=new Map,C=new Map,M=[];if(e.fixedNodeConstraint&&e.fixedNodeConstraint.forEach((function(t){I.add(t.nodeId)})),e.relativePlacementConstraint&&(e.relativePlacementConstraint.forEach((function(t){t.left?(_.has(t.left)?_.get(t.left).push({id:t.right,gap:t.gap,direction:"horizontal"}):_.set(t.left,[{id:t.right,gap:t.gap,direction:"horizontal"}]),_.has(t.right)||_.set(t.right,[])):(_.has(t.top)?_.get(t.top).push({id:t.bottom,gap:t.gap,direction:"vertical"}):_.set(t.top,[{id:t.bottom,gap:t.gap,direction:"vertical"}]),_.has(t.bottom)||_.set(t.bottom,[]))})),C=E(_),M=m(C)),n.TRANSFORM_ON_CONSTRAINT_HANDLING){if(e.fixedNodeConstraint&&e.fixedNodeConstraint.length>1)e.fixedNodeConstraint.forEach((function(t,e){T[e]=[t.position.x,t.position.y],A[e]=[l[h.get(t.nodeId)],c[h.get(t.nodeId)]]})),w=!0;else if(e.alignmentConstraint)!function(){var t=0;if(e.alignmentConstraint.vertical){for(var i=e.alignmentConstraint.vertical,n=function(e){var n=new Set;i[e].forEach((function(t){n.add(t)}));var o=new Set([].concat(r(n)).filter((function(t){return I.has(t)}))),s=void 0;s=o.size>0?l[h.get(o.values().next().value)]:f(n).x,i[e].forEach((function(e){T[t]=[s,c[h.get(e)]],A[t]=[l[h.get(e)],c[h.get(e)]],t++}))},o=0;o<i.length;o++)n(o);w=!0}if(e.alignmentConstraint.horizontal){for(var s=e.alignmentConstraint.horizontal,a=function(e){var i=new Set;s[e].forEach((function(t){i.add(t)}));var n=new Set([].concat(r(i)).filter((function(t){return I.has(t)}))),o=void 0;o=n.size>0?l[h.get(n.values().next().value)]:f(i).y,s[e].forEach((function(e){T[t]=[l[h.get(e)],o],A[t]=[l[h.get(e)],c[h.get(e)]],t++}))},d=0;d<s.length;d++)a(d);w=!0}e.relativePlacementConstraint&&(L=!0)}();else if(e.relativePlacementConstraint){for(var x=0,O=0,D=0;D<M.length;D++)M[D].length>x&&(x=M[D].length,O=D);if(x<C.size/2)y(e.relativePlacementConstraint),w=!1,L=!1;else{var R=new Map,b=new Map,G=[];M[O].forEach((function(t){_.get(t).forEach((function(e){"horizontal"==e.direction?(R.has(t)?R.get(t).push(e):R.set(t,[e]),R.has(e.id)||R.set(e.id,[]),G.push({left:t,right:e.id})):(b.has(t)?b.get(t).push(e):b.set(t,[e]),b.has(e.id)||b.set(e.id,[]),G.push({top:t,bottom:e.id}))}))})),y(G),L=!1;var F=v(R,"horizontal"),S=v(b,"vertical");M[O].forEach((function(t,e){A[e]=[l[h.get(t)],c[h.get(t)]],T[e]=[],F.has(t)?T[e][0]=F.get(t):T[e][0]=l[h.get(t)],S.has(t)?T[e][1]=S.get(t):T[e][1]=c[h.get(t)]})),w=!0}}if(w){for(var P,U=s.transpose(T),Y=s.transpose(A),k=0;k<U.length;k++)U[k]=s.multGamma(U[k]),Y[k]=s.multGamma(Y[k]);var H=s.multMat(U,s.transpose(Y)),X=a.svd(H);P=s.multMat(X.V,s.transpose(X.U));for(var z=0;z<h.size;z++){var V=[l[z],c[z]],B=[P[0][0],P[1][0]],W=[P[0][1],P[1][1]];l[z]=s.dotProduct(V,B),c[z]=s.dotProduct(V,W)}L&&y(e.relativePlacementConstraint)}}if(n.ENFORCE_CONSTRAINTS){if(e.fixedNodeConstraint&&e.fixedNodeConstraint.length>0){var j={x:0,y:0};e.fixedNodeConstraint.forEach((function(t,e){var i,r,n={x:l[h.get(t.nodeId)],y:c[h.get(t.nodeId)]},o=t.position,s=(r=n,{x:(i=o).x-r.x,y:i.y-r.y});j.x+=s.x,j.y+=s.y})),j.x/=e.fixedNodeConstraint.length,j.y/=e.fixedNodeConstraint.length,l.forEach((function(t,e){l[e]+=j.x})),c.forEach((function(t,e){c[e]+=j.y})),e.fixedNodeConstraint.forEach((function(t){l[h.get(t.nodeId)]=t.position.x,c[h.get(t.nodeId)]=t.position.y}))}if(e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var q=e.alignmentConstraint.vertical,$=function(t){var e=new Set;q[t].forEach((function(t){e.add(t)}));var i=new Set([].concat(r(e)).filter((function(t){return I.has(t)}))),n=void 0;n=i.size>0?l[h.get(i.values().next().value)]:f(e).x,e.forEach((function(t){I.has(t)||(l[h.get(t)]=n)}))},K=0;K<q.length;K++)$(K);if(e.alignmentConstraint.horizontal)for(var Z=e.alignmentConstraint.horizontal,Q=function(t){var e=new Set;Z[t].forEach((function(t){e.add(t)}));var i=new Set([].concat(r(e)).filter((function(t){return I.has(t)}))),n=void 0;n=i.size>0?c[h.get(i.values().next().value)]:f(e).y,e.forEach((function(t){I.has(t)||(c[h.get(t)]=n)}))},J=0;J<Z.length;J++)Q(J)}e.relativePlacementConstraint&&function(){var t=new Map,i=new Map,r=new Map,n=new Map,o=new Map,s=new Map,a=new Set,d=new Set;if(I.forEach((function(t){a.add(t),d.add(t)})),e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var g=e.alignmentConstraint.vertical,u=function(e){r.set("dummy"+e,[]),g[e].forEach((function(i){t.set(i,"dummy"+e),r.get("dummy"+e).push(i),I.has(i)&&a.add("dummy"+e)})),o.set("dummy"+e,l[h.get(g[e][0])])},p=0;p<g.length;p++)u(p);if(e.alignmentConstraint.horizontal)for(var f=e.alignmentConstraint.horizontal,y=function(t){n.set("dummy"+t,[]),f[t].forEach((function(e){i.set(e,"dummy"+t),n.get("dummy"+t).push(e),I.has(e)&&d.add("dummy"+t)})),s.set("dummy"+t,c[h.get(f[t][0])])},T=0;T<f.length;T++)y(T)}var A=new Map,w=new Map,L=function(e){_.get(e).forEach((function(r){var n=void 0,o=void 0;"horizontal"==r.direction?(n=t.get(e)?t.get(e):e,o=t.get(r.id)?{id:t.get(r.id),gap:r.gap,direction:r.direction}:r,A.has(n)?A.get(n).push(o):A.set(n,[o]),A.has(o.id)||A.set(o.id,[])):(n=i.get(e)?i.get(e):e,o=i.get(r.id)?{id:i.get(r.id),gap:r.gap,direction:r.direction}:r,w.has(n)?w.get(n).push(o):w.set(n,[o]),w.has(o.id)||w.set(o.id,[]))}))},C=!0,M=!1,x=void 0;try{for(var O,D=_.keys()[Symbol.iterator]();!(C=(O=D.next()).done);C=!0)L(O.value)}catch(tt){M=!0,x=tt}finally{try{!C&&D.return&&D.return()}finally{if(M)throw x}}var R=E(A),b=E(w),G=m(R),F=m(b),S=N(A),P=N(w),U=[],Y=[];G.forEach((function(t,e){U[e]=[],t.forEach((function(t){0==S.get(t).length&&U[e].push(t)}))})),F.forEach((function(t,e){Y[e]=[],t.forEach((function(t){0==P.get(t).length&&Y[e].push(t)}))}));var k=v(A,"horizontal",a,o,U),H=v(w,"vertical",d,s,Y),X=function(t){r.get(t)?r.get(t).forEach((function(e){l[h.get(e)]=k.get(t)})):l[h.get(t)]=k.get(t)},z=!0,V=!1,B=void 0;try{for(var W,j=k.keys()[Symbol.iterator]();!(z=(W=j.next()).done);z=!0)X(W.value)}catch(tt){V=!0,B=tt}finally{try{!z&&j.return&&j.return()}finally{if(V)throw B}}var q=function(t){n.get(t)?n.get(t).forEach((function(e){c[h.get(e)]=H.get(t)})):c[h.get(t)]=H.get(t)},$=!0,K=!1,Z=void 0;try{for(var Q,J=H.keys()[Symbol.iterator]();!($=(Q=J.next()).done);$=!0)q(Q.value)}catch(tt){K=!0,Z=tt}finally{try{!$&&J.return&&J.return()}finally{if(K)throw Z}}}()}for(var tt=0;tt<d.length;tt++){var et=d[tt];null==et.getChild()&&et.setCenter(l[h.get(et.id)],c[h.get(et.id)])}},t.exports=h},551:e=>{e.exports=t}},i={},r=function t(r){var n=i[r];if(void 0!==n)return n.exports;var o=i[r]={exports:{}};return e[r](o,o.exports,t),o.exports}(45);return r})()},t.exports=r(i(4298))},4298:function(t){var e;e=function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=28)}([function(t,e,i){"use strict";function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(8),o=i(9);function s(t,e,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(r.prototype),r)s[a]=r[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(13),s=i(0),a=i(16),h=i(5);function l(t,e,i,s){null==i&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=i&&null!=e?new o(e.x,e.y,i.width,i.height):new o}for(var c in l.prototype=Object.create(r.prototype),r)l[c]=r[c];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach((function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}})),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach((function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";r.target!=t&&r.source!=t||e.push(r)})),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach((function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}})),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach((function(e){t.add(e)}));return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var t,e,i=-s.INITIAL_WORLD_BOUNDARY,r=s.INITIAL_WORLD_BOUNDARY;t=s.WORLD_CENTER_X+a.nextDouble()*(r-i)+i;var n=-s.INITIAL_WORLD_BOUNDARY,o=s.INITIAL_WORLD_BOUNDARY;e=s.WORLD_CENTER_Y+a.nextDouble()*(o-n)+n,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),s.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),i=t.getBottom()-t.getTop();this.labelWidth&&("left"==this.labelPosHorizontal?(this.rect.x-=this.labelWidth,this.setWidth(e+this.labelWidth)):"center"==this.labelPosHorizontal&&this.labelWidth>e?(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)):"right"==this.labelPosHorizontal&&this.setWidth(e+this.labelWidth)),this.labelHeight&&("top"==this.labelPosVertical?(this.rect.y-=this.labelHeight,this.setHeight(i+this.labelHeight)):"center"==this.labelPosVertical&&this.labelHeight>i?(this.rect.y-=(this.labelHeight-i)/2,this.setHeight(this.labelHeight)):"bottom"==this.labelPosVertical&&this.setHeight(i+this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var i=this.rect.y;i>s.WORLD_BOUNDARY?i=s.WORLD_BOUNDARY:i<-s.WORLD_BOUNDARY&&(i=-s.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";var r=i(0);function n(){}for(var o in r)n[o]=r[o];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=3*n.MAX_NODE_DISPLACEMENT_INCREMENTAL,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=n},function(t,e,i){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(0),s=i(7),a=i(3),h=i(1),l=i(13),c=i(12),d=i(11);function g(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var u in g.prototype=Object.create(r.prototype),r)g[u]=r[u];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(t,e,i){if(null==e&&null==i){var r=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var n=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(n.source=e,n.target=i,n.isInterGraph=!1,this.getEdges().push(n),e.edges.push(n),i!=e&&i.edges.push(n),n)},g.prototype.remove=function(t){var e=t;if(t instanceof a){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i=e.edges.slice(),r=i.length,n=0;n<r;n++)(o=i[n]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(s=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(t instanceof h){var o;if(null==(o=t))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var s,l=o.source.edges.indexOf(o),c=o.target.edges.indexOf(o);if(!(l>-1&&c>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(l,1),o.target!=o.source&&o.target.edges.splice(c,1),-1==(s=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(s,1)}},g.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;h<a;h++){var l=s[h];r>(t=l.getTop())&&(r=t),o>(e=l.getLeft())&&(o=e)}return r==n.MAX_VALUE?null:(i=null!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new c(this.left,this.top))},g.prototype.updateBounds=function(t){for(var e,i,r,o,s,a=n.MAX_VALUE,h=-n.MAX_VALUE,c=n.MAX_VALUE,d=-n.MAX_VALUE,g=this.nodes,u=g.length,p=0;p<u;p++){var f=g[p];t&&null!=f.child&&f.updateBounds(),a>(e=f.getLeft())&&(a=e),h<(i=f.getRight())&&(h=i),c>(r=f.getTop())&&(c=r),d<(o=f.getBottom())&&(d=o)}var v=new l(a,c,h-a,d-c);a==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),s=null!=g[0].getParent().paddingLeft?g[0].getParent().paddingLeft:this.margin,this.left=v.x-s,this.right=v.x+v.width+s,this.top=v.y-s,this.bottom=v.y+v.height+s},g.calculateBounds=function(t){for(var e,i,r,o,s=n.MAX_VALUE,a=-n.MAX_VALUE,h=n.MAX_VALUE,c=-n.MAX_VALUE,d=t.length,g=0;g<d;g++){var u=t[g];s>(e=u.getLeft())&&(s=e),a<(i=u.getRight())&&(a=i),h>(r=u.getTop())&&(h=r),c<(o=u.getBottom())&&(c=o)}return new l(s,h,a-s,c-h)},g.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},g.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},g.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,r=0;r<i;r++)t+=e[r].calcEstimatedSize();return this.estimatedSize=0==t?o.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},g.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,i,r=new d,n=new Set,o=this.nodes[0];for(o.withChildren().forEach((function(t){r.push(t),n.add(t)}));0!==r.length;)for(var s=(e=(o=r.shift()).getEdges()).length,a=0;a<s;a++)null==(i=e[a].getOtherEndInGraph(o,this))||n.has(i)||i.withChildren().forEach((function(t){r.push(t),n.add(t)}));if(this.isConnected=!1,n.size>=this.nodes.length){var h=0;n.forEach((function(e){e.owner==t&&h++})),h==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=g},function(t,e,i){"use strict";var r,n=i(1);function o(t){r=i(6),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,i=t;var o=(r=e).getOwner(),s=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==s||s.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==s)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var i,o=[],s=(o=o.concat(e.getEdges())).length,a=0;a<s;a++)i=o[a],e.remove(i);var h,l=[];for(s=(l=l.concat(e.getNodes())).length,a=0;a<s;a++)h=l[a],e.remove(h);e==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(e);this.graphs.splice(c,1),e.parent=null}else if(t instanceof n){if(null==(i=t))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";if(c=i.source.edges.indexOf(i),i.source.edges.splice(c,1),c=i.target.edges.indexOf(i),i.target.edges.splice(c,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";c=i.source.owner.getGraphManager().edges.indexOf(i),i.source.owner.getGraphManager().edges.splice(c,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,r=0;r<i;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){for(var t=[],e=this.getGraphs(),i=(e.length,0);i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,r=t.getOwner();null!=(i=r.getParent());){if(i==e)return!0;if(null==(r=i.getOwner()))break}for(r=e.getOwner();null!=(i=r.getParent());){if(i==t)return!0;if(null==(r=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,r,n,o=this.getAllEdges(),s=o.length,a=0;a<s;a++)if(e=(t=o[a]).source,i=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=i,e!=i){for(r=e.getOwner();null==t.lca;){for(t.targetInLca=i,n=i.getOwner();null==t.lca;){if(n==r){t.lca=n;break}if(n==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=n.getParent(),n=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var r=e.getOwner();null!=r;){if(r==i)return r;r=r.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){var i;null==t&&null==e&&(t=this.rootGraph,e=1);for(var r=t.getNodes(),n=r.length,o=0;o<n;o++)(i=r[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=[],i=this.edges.length,r=0;r<i;r++)t=this.edges[r],this.isOneAncestorOfOther(t.source,t.target)&&e.push(t);for(r=0;r<e.length;r++)this.remove(e[r]);return!1},t.exports=o},function(t,e,i){"use strict";var r=i(12);function n(){}n.calcSeparationAmount=function(t,e,i,r){if(!t.intersects(e))throw"assert failed";var n=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,n),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]<a?a=i[0]:s=i[1],i[0]=-1*n[0]*(a/2+r),i[1]=-1*n[1]*(s/2+r)},n.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(t,e,i){var r=t.getCenterX(),n=t.getCenterY(),o=e.getCenterX(),s=e.getCenterY();if(t.intersects(e))return i[0]=r,i[1]=n,i[2]=o,i[3]=s,!0;var a=t.getX(),h=t.getY(),l=t.getRight(),c=t.getX(),d=t.getBottom(),g=t.getRight(),u=t.getWidthHalf(),p=t.getHeightHalf(),f=e.getX(),v=e.getY(),y=e.getRight(),m=e.getX(),E=e.getBottom(),N=e.getRight(),T=e.getWidthHalf(),A=e.getHeightHalf(),w=!1,L=!1;if(r===o){if(n>s)return i[0]=r,i[1]=h,i[2]=o,i[3]=E,!1;if(n<s)return i[0]=r,i[1]=d,i[2]=o,i[3]=v,!1}else if(n===s){if(r>o)return i[0]=a,i[1]=n,i[2]=y,i[3]=s,!1;if(r<o)return i[0]=l,i[1]=n,i[2]=f,i[3]=s,!1}else{var I=t.height/t.width,_=e.height/e.width,C=(s-n)/(o-r),M=void 0,x=void 0,O=void 0,D=void 0,R=void 0,b=void 0;if(-I===C?r>o?(i[0]=c,i[1]=d,w=!0):(i[0]=l,i[1]=h,w=!0):I===C&&(r>o?(i[0]=a,i[1]=h,w=!0):(i[0]=g,i[1]=d,w=!0)),-_===C?o>r?(i[2]=m,i[3]=E,L=!0):(i[2]=y,i[3]=v,L=!0):_===C&&(o>r?(i[2]=f,i[3]=v,L=!0):(i[2]=N,i[3]=E,L=!0)),w&&L)return!1;if(r>o?n>s?(M=this.getCardinalDirection(I,C,4),x=this.getCardinalDirection(_,C,2)):(M=this.getCardinalDirection(-I,C,3),x=this.getCardinalDirection(-_,C,1)):n>s?(M=this.getCardinalDirection(-I,C,1),x=this.getCardinalDirection(-_,C,3)):(M=this.getCardinalDirection(I,C,2),x=this.getCardinalDirection(_,C,4)),!w)switch(M){case 1:D=h,O=r+-p/C,i[0]=O,i[1]=D;break;case 2:O=g,D=n+u*C,i[0]=O,i[1]=D;break;case 3:D=d,O=r+p/C,i[0]=O,i[1]=D;break;case 4:O=c,D=n+-u*C,i[0]=O,i[1]=D}if(!L)switch(x){case 1:b=v,R=o+-A/C,i[2]=R,i[3]=b;break;case 2:R=N,b=s+T*C,i[2]=R,i[3]=b;break;case 3:b=E,R=o+A/C,i[2]=R,i[3]=b;break;case 4:R=m,b=s+-T*C,i[2]=R,i[3]=b}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o,s,a,h,l,c,d,g=t.x,u=t.y,p=e.x,f=e.y,v=i.x,y=i.y,m=n.x,E=n.y;return 0==(d=(o=f-u)*(h=v-m)-(s=E-y)*(a=g-p))?null:new r((a*(c=m*y-v*E)-h*(l=p*u-g*f))/d,(s*l-o*c)/d)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i<t?n+=Math.PI:r<e&&(n+=this.TWO_PI)):n=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,n},n.doIntersect=function(t,e,i,r){var n=t.x,o=t.y,s=e.x,a=e.y,h=i.x,l=i.y,c=r.x,d=r.y,g=(s-n)*(d-l)-(c-h)*(a-o);if(0===g)return!1;var u=((d-l)*(c-n)+(h-c)*(d-o))/g,p=((o-a)*(c-n)+(s-n)*(d-o))/g;return 0<u&&u<1&&0<p&&p<1},n.findCircleLineIntersections=function(t,e,i,r,n,o,s){var a=(i-t)*(i-t)+(r-e)*(r-e),h=2*((t-n)*(i-t)+(e-o)*(r-e)),l=(t-n)*(t-n)+(e-o)*(e-o)-s*s;if(h*h-4*a*l>=0){var c=(-h+Math.sqrt(h*h-4*a*l))/(2*a),d=(-h-Math.sqrt(h*h-4*a*l))/(2*a);return c>=0&&c<=1?[c]:d>=0&&d<=1?[d]:null}return null},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){"use strict";function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){"use strict";function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){return{value:t,next:null,prev:null}},o=function(t,e,i,r){return null!==t?t.next=e:r.head=e,null!==i?i.prev=e:r.tail=e,e.prev=t,e.next=i,r.length++,e},s=function(t,e){var i=t.prev,r=t.next;return null!==i?i.next=r:e.head=r,null!==r?r.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t},a=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach((function(t){return i.push(t)}))}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,n(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,n(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,n(t),null,this)}},{key:"unshift",value:function(t){return o(null,n(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,r=this.head;i<t;)r=r.next,i++;r.value=e}}}]),t}();t.exports=a},function(t,e,i){"use strict";function r(t,e,i){this.x=null,this.y=null,null==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(i=t,this.x=i.x,this.y=i.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?(i=t,this.setLocation(i.x,i.y)):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,i){"use strict";function r(t,e,i,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=r&&(this.x=t,this.y=e,this.width=i,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function n(){}n.lastID=0,n.createID=function(t){return n.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=n.getString(),n.lastID++),t.uniqueID)},n.getString=function(t){return null==t&&(t=n.lastID),"Object#"+t},n.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=n},function(t,e,i){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var n=i(0),o=i(7),s=i(3),a=i(1),h=i(6),l=i(5),c=i(17),d=i(29);function g(t){d.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}g.RANDOM_SEED=1,g.prototype=Object.create(d.prototype),g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},g.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},g.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},g.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},g.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},g.prototype.newNode=function(t){return new s(this.graphManager,t)},g.prototype.newEdge=function(t){return new a(null,null,t)},g.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},g.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},g.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},g.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var i=this.graphManager.getRoot().getNodes();for(e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},g.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof s){var e=t;if(null!=e.getChild())for(var i=e.getChild().getNodes(),r=0;r<i.length;r++)update(i[r]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof a){var n=t;null!=n.vGraphObject&&n.vGraphObject.update(n)}else if(t instanceof h){var o=t;null!=o.vGraphObject&&o.vGraphObject.update(o)}},g.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},g.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new c,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var r=this.getAllNodes(),n=0;n<r.length;n++)r[n].transform(e)}}},g.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,r=t.getNodes(),n=0;n<r.length;n++)null==(i=(e=r[n]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},g.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),n=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(n=!1);if(!n)return t;var s=new Set,a=[],h=new Map,l=[];for(l=l.concat(i);l.length>0&&e;){for(a.push(l[0]);a.length>0&&e;){var c=a[0];a.splice(0,1),s.add(c);var d=c.getEdges();for(o=0;o<d.length;o++){var g=d[o].getOtherEnd(c);if(h.get(c)!=g){if(s.has(g)){e=!1;break}a.push(g),h.set(g,c)}}}if(e){var u=[].concat(r(s));for(t.push(u),o=0;o<u.length;o++){var p=u[o],f=l.indexOf(p);f>-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},g.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n<t.bendpoints.length;n++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var s=this.newEdge(null);this.graphManager.add(s,i,o),e.add(o),i=o}return s=this.newEdge(null),this.graphManager.add(s,i,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},g.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(i.bendpoints.length>0){for(var n=this.edgeToDummyNodes.get(i),o=0;o<n.length;o++){var s=n[o],a=new l(s.getCenterX(),s.getCenterY()),h=i.bendpoints.get(o);h.x=a.x,h.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},g.transform=function(t,e,i,r){if(null!=i&&null!=r){var n=e;return t<=50?n-=(e-e/i)/50*(50-t):n+=(e*r-e)/50*(t-50),n}var o,s;return t<=50?(o=9*e/500,s=e/10):(o=9*e/50,s=-8*e),o*t+s},g.findCenterOfTree=function(t){var e=[];e=e.concat(t);var i=[],r=new Map,n=!1,o=null;1!=e.length&&2!=e.length||(n=!0,o=e[0]);for(var s=0;s<e.length;s++){var a=(c=e[s]).getNeighborsList().size;r.set(c,c.getNeighborsList().size),1==a&&i.push(c)}var h=[];for(h=h.concat(i);!n;){var l=[];for(l=l.concat(h),h=[],s=0;s<e.length;s++){var c=e[s],d=e.indexOf(c);d>=0&&e.splice(d,1),c.getNeighborsList().forEach((function(t){if(i.indexOf(t)<0){var e=r.get(t)-1;1==e&&h.push(t),r.set(t,e)}}))}i=i.concat(h),1!=e.length&&2!=e.length||(n=!0,o=e[0])}return o},g.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=g},function(t,e,i){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){"use strict";var r=i(5);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){"use strict";var r=i(15),n=i(4),o=i(0),s=i(8),a=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,s,a,h,l=this.getGraphManager().getAllEdges(),c=0;c<l.length;c++)e=(t=l[c]).idealLength,t.isInterGraph&&(r=t.getSource(),s=t.getTarget(),a=t.getSourceInLca().getEstimatedSize(),h=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=a+h-2*o.SIMPLE_NODE_SIZE),i=t.getLca().getInclusionTreeDepth(),t.idealLength+=e*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(r.getInclusionTreeDepth()+s.getInclusionTreeDepth()-2*i))},h.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},h.prototype.calcRepulsionForces=function(){var t,e,i,r,o,s=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,o,s,a),o.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)r=h[e],i.getOwner()==r.getOwner()&&this.calcRepulsionForce(i,r)},h.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},h.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},h.prototype.calcSpringForce=function(t,e){var i,r,n,o,s=t.getSource(),a=t.getTarget();if(this.uniformLeafNodeSizes&&null==s.getChild()&&null==a.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(n=(r=t.edgeElasticity*(i-e))*(t.lengthX/i),o=r*(t.lengthY/i),s.springForceX+=n,s.springForceY+=o,a.springForceX-=n,a.springForceY-=o)},h.prototype.calcRepulsionForce=function(t,e){var i,r,o,h,l,c,d,g=t.getRect(),u=e.getRect(),p=new Array(2),f=new Array(4);if(g.intersects(u)){s.calcSeparationAmount(g,u,p,n.DEFAULT_EDGE_LENGTH/2),c=2*p[0],d=2*p[1];var v=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=v*c,t.repulsionForceY-=v*d,e.repulsionForceX+=v*c,e.repulsionForceY+=v*d}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=u.getCenterX()-g.getCenterX(),r=u.getCenterY()-g.getCenterY()):(s.getIntersection(g,u,f),i=f[2]-f[0],r=f[3]-f[1]),Math.abs(i)<n.MIN_REPULSION_DIST&&(i=a.sign(i)*n.MIN_REPULSION_DIST),Math.abs(r)<n.MIN_REPULSION_DIST&&(r=a.sign(r)*n.MIN_REPULSION_DIST),o=i*i+r*r,h=Math.sqrt(o),c=(l=(t.nodeRepulsion/2+e.nodeRepulsion/2)*t.noOfChildren*e.noOfChildren/o)*i/h,d=l*r/h,t.repulsionForceX-=c,t.repulsionForceY-=d,e.repulsionForceX+=c,e.repulsionForceY+=d},h.prototype.calcGravitationalForce=function(t){var e,i,r,n,o,s,a,h;i=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,n=t.getCenterX()-i,o=t.getCenterY()-r,s=Math.abs(n)+t.getWidth()/2,a=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(s>(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},h.prototype.calcGrid=function(t){var e,i;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(i);for(n=0;n<e;n++)for(var o=0;o<i;o++)r[n][o]=new Array;return r},h.prototype.addNodeToGrid=function(t,e,i){var r,n,o,s;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),n=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),s=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange));for(var a=r;a<=n;a++)for(var h=o;h<=s;h++)this.grid[a][h].push(t),t.setGridCoordinates(r,n,o,s)},h.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(t,e,i,r){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&i||r){var o,s=new Set;t.surrounding=new Array;for(var a=this.grid,h=t.startX-1;h<t.finishX+2;h++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(h<0||l<0||h>=a.length||l>=a[0].length))for(var c=0;c<a[h][l].length;c++)if(o=a[h][l][c],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!s.has(o)){var d=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),g=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);d<=this.repulsionRange&&g<=this.repulsionRange&&s.add(o)}t.surrounding=[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(s))}for(h=0;h<t.surrounding.length;h++)this.calcRepulsionForce(t,t.surrounding[h])},h.prototype.calcRepulsionRange=function(){return 0},t.exports=h},function(t,e,i){"use strict";var r=i(1),n=i(4);function o(t,e,i){r.call(this,t,e,i),this.idealLength=n.DEFAULT_EDGE_LENGTH,this.edgeElasticity=n.DEFAULT_SPRING_STRENGTH}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];t.exports=o},function(t,e,i){"use strict";var r=i(3),n=i(4);function o(t,e,i,o){r.call(this,t,e,i,o),this.nodeRepulsion=n.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.setGridCoordinates=function(t,e,i,r){this.startX=t,this.finishX=e,this.startY=i,this.finishY=r},t.exports=o},function(t,e,i){"use strict";function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,i){"use strict";var r=i(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(t,e){var i=r.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},n.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},n.prototype.get=function(t){var e=r.createID(t);return this.map[e]},n.prototype.keySet=function(){return this.keys},t.exports=n},function(t,e,i){"use strict";var r=i(14);function n(){this.set={}}n.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},n.prototype.remove=function(t){delete this.set[r.createID(t)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(t){return this.set[r.createID(t)]==t},n.prototype.isEmpty=function(){return 0===this.size()},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,r=0;r<i;r++)t.push(this.set[e[r]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.add(r)}},t.exports=n},function(t,e,i){"use strict";function r(){}r.multMat=function(t,e){for(var i=[],r=0;r<t.length;r++){i[r]=[];for(var n=0;n<e[0].length;n++){i[r][n]=0;for(var o=0;o<t[0].length;o++)i[r][n]+=t[r][o]*e[o][n]}}return i},r.transpose=function(t){for(var e=[],i=0;i<t[0].length;i++){e[i]=[];for(var r=0;r<t.length;r++)e[i][r]=t[r][i]}return e},r.multCons=function(t,e){for(var i=[],r=0;r<t.length;r++)i[r]=t[r]*e;return i},r.minusOp=function(t,e){for(var i=[],r=0;r<t.length;r++)i[r]=t[r]-e[r];return i},r.dotProduct=function(t,e){for(var i=0,r=0;r<t.length;r++)i+=t[r]*e[r];return i},r.mag=function(t){return Math.sqrt(this.dotProduct(t,t))},r.normalize=function(t){for(var e=[],i=this.mag(t),r=0;r<t.length;r++)e[r]=t[r]/i;return e},r.multGamma=function(t){for(var e=[],i=0,r=0;r<t.length;r++)i+=t[r];i*=-1/t.length;for(var n=0;n<t.length;n++)e[n]=i+t[n];return e},r.multL=function(t,e,i){for(var r=[],n=[],o=[],s=0;s<e[0].length;s++){for(var a=0,h=0;h<e.length;h++)a+=-.5*e[h][s]*t[h];n[s]=a}for(var l=0;l<i.length;l++){for(var c=0,d=0;d<i.length;d++)c+=i[l][d]*n[d];o[l]=c}for(var g=0;g<e.length;g++){for(var u=0,p=0;p<e[0].length;p++)u+=e[g][p]*o[p];r[g]=u}return r},t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(11),o=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===i&&void 0===i||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof n?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,i){if(e<i){var r=this._partition(t,e,i);this._quicksort(t,e,r),this._quicksort(t,r+1,i)}}},{key:"_partition",value:function(t,e,i){for(var r=this._get(t,e),n=e,o=i;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,n),r);)n++;if(!(n<o))return o;this._swap(t,n,o),n++,o--}}},{key:"_get",value:function(t,e){return t instanceof n?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof n?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var r=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=o},function(t,e,i){"use strict";function r(){}r.svd=function(t){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=t.length,this.n=t[0].length;var e=Math.min(this.m,this.n);this.s=function(t){for(var e=[];t-- >0;)e.push(0);return e}(Math.min(this.m+1,this.n)),this.U=function t(e){if(0==e.length)return 0;for(var i=[],r=0;r<e[0];r++)i.push(t(e.slice(1)));return i}([this.m,e]),this.V=function(t){return function t(e){if(0==e.length)return 0;for(var i=[],r=0;r<e[0];r++)i.push(t(e.slice(1)));return i}(t)}([this.n,this.n]);for(var i,n,o=function(t){for(var e=[];t-- >0;)e.push(0);return e}(this.n),s=function(t){for(var e=[];t-- >0;)e.push(0);return e}(this.m),a=Math.min(this.m-1,this.n),h=Math.max(0,Math.min(this.n-2,this.m)),l=0;l<Math.max(a,h);l++){if(l<a){this.s[l]=0;for(var c=l;c<this.m;c++)this.s[l]=r.hypot(this.s[l],t[c][l]);if(0!==this.s[l]){t[l][l]<0&&(this.s[l]=-this.s[l]);for(var d=l;d<this.m;d++)t[d][l]/=this.s[l];t[l][l]+=1}this.s[l]=-this.s[l]}for(var g=l+1;g<this.n;g++){if(i=l<a,n=0!==this.s[l],i&&n){for(var u=0,p=l;p<this.m;p++)u+=t[p][l]*t[p][g];u=-u/t[l][l];for(var f=l;f<this.m;f++)t[f][g]+=u*t[f][l]}o[g]=t[l][g]}if(function(t,e){return e}(0,l<a))for(var v=l;v<this.m;v++)this.U[v][l]=t[v][l];if(l<h){o[l]=0;for(var y=l+1;y<this.n;y++)o[l]=r.hypot(o[l],o[y]);if(0!==o[l]){o[l+1]<0&&(o[l]=-o[l]);for(var m=l+1;m<this.n;m++)o[m]/=o[l];o[l+1]+=1}if(o[l]=-o[l],function(t,e){return t&&e}(l+1<this.m,0!==o[l])){for(var E=l+1;E<this.m;E++)s[E]=0;for(var N=l+1;N<this.n;N++)for(var T=l+1;T<this.m;T++)s[T]+=o[N]*t[T][N];for(var A=l+1;A<this.n;A++)for(var w=-o[A]/o[l+1],L=l+1;L<this.m;L++)t[L][A]+=w*s[L]}for(var I=l+1;I<this.n;I++)this.V[I][l]=o[I]}}var _=Math.min(this.n,this.m+1);a<this.n&&(this.s[a]=t[a][a]),this.m<_&&(this.s[_-1]=0),h+1<_&&(o[h]=t[h][_-1]),o[_-1]=0;for(var C=a;C<e;C++){for(var M=0;M<this.m;M++)this.U[M][C]=0;this.U[C][C]=1}for(var x=a-1;x>=0;x--)if(0!==this.s[x]){for(var O=x+1;O<e;O++){for(var D=0,R=x;R<this.m;R++)D+=this.U[R][x]*this.U[R][O];D=-D/this.U[x][x];for(var b=x;b<this.m;b++)this.U[b][O]+=D*this.U[b][x]}for(var G=x;G<this.m;G++)this.U[G][x]=-this.U[G][x];this.U[x][x]=1+this.U[x][x];for(var F=0;F<x-1;F++)this.U[F][x]=0}else{for(var S=0;S<this.m;S++)this.U[S][x]=0;this.U[x][x]=1}for(var P=this.n-1;P>=0;P--){if(function(t,e){return t&&e}(P<h,0!==o[P]))for(var U=P+1;U<e;U++){for(var Y=0,k=P+1;k<this.n;k++)Y+=this.V[k][P]*this.V[k][U];Y=-Y/this.V[P+1][P];for(var H=P+1;H<this.n;H++)this.V[H][U]+=Y*this.V[H][P]}for(var X=0;X<this.n;X++)this.V[X][P]=0;this.V[P][P]=1}for(var z=_-1,V=Math.pow(2,-52),B=Math.pow(2,-966);_>0;){var W=void 0,j=void 0;for(W=_-2;W>=-1&&-1!==W;W--)if(Math.abs(o[W])<=B+V*(Math.abs(this.s[W])+Math.abs(this.s[W+1]))){o[W]=0;break}if(W===_-2)j=4;else{var q=void 0;for(q=_-1;q>=W&&q!==W;q--){var $=(q!==_?Math.abs(o[q]):0)+(q!==W+1?Math.abs(o[q-1]):0);if(Math.abs(this.s[q])<=B+V*$){this.s[q]=0;break}}q===W?j=3:q===_-1?j=1:(j=2,W=q)}switch(W++,j){case 1:var K=o[_-2];o[_-2]=0;for(var Z=_-2;Z>=W;Z--){var Q=r.hypot(this.s[Z],K),J=this.s[Z]/Q,tt=K/Q;this.s[Z]=Q,Z!==W&&(K=-tt*o[Z-1],o[Z-1]=J*o[Z-1]);for(var et=0;et<this.n;et++)Q=J*this.V[et][Z]+tt*this.V[et][_-1],this.V[et][_-1]=-tt*this.V[et][Z]+J*this.V[et][_-1],this.V[et][Z]=Q}break;case 2:var it=o[W-1];o[W-1]=0;for(var rt=W;rt<_;rt++){var nt=r.hypot(this.s[rt],it),ot=this.s[rt]/nt,st=it/nt;this.s[rt]=nt,it=-st*o[rt],o[rt]=ot*o[rt];for(var at=0;at<this.m;at++)nt=ot*this.U[at][rt]+st*this.U[at][W-1],this.U[at][W-1]=-st*this.U[at][rt]+ot*this.U[at][W-1],this.U[at][rt]=nt}break;case 3:var ht=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[_-1]),Math.abs(this.s[_-2])),Math.abs(o[_-2])),Math.abs(this.s[W])),Math.abs(o[W])),lt=this.s[_-1]/ht,ct=this.s[_-2]/ht,dt=o[_-2]/ht,gt=this.s[W]/ht,ut=o[W]/ht,pt=((ct+lt)*(ct-lt)+dt*dt)/2,ft=lt*dt*(lt*dt),vt=0;(function(t,e){return t||e})(0!==pt,0!==ft)&&(vt=Math.sqrt(pt*pt+ft),pt<0&&(vt=-vt),vt=ft/(pt+vt));for(var yt=(gt+lt)*(gt-lt)+vt,mt=gt*ut,Et=W;Et<_-1;Et++){var Nt=r.hypot(yt,mt),Tt=yt/Nt,At=mt/Nt;Et!==W&&(o[Et-1]=Nt),yt=Tt*this.s[Et]+At*o[Et],o[Et]=Tt*o[Et]-At*this.s[Et],mt=At*this.s[Et+1],this.s[Et+1]=Tt*this.s[Et+1];for(var wt=0;wt<this.n;wt++)Nt=Tt*this.V[wt][Et]+At*this.V[wt][Et+1],this.V[wt][Et+1]=-At*this.V[wt][Et]+Tt*this.V[wt][Et+1],this.V[wt][Et]=Nt;if(Tt=yt/(Nt=r.hypot(yt,mt)),At=mt/Nt,this.s[Et]=Nt,yt=Tt*o[Et]+At*this.s[Et+1],this.s[Et+1]=-At*o[Et]+Tt*this.s[Et+1],mt=At*o[Et+1],o[Et+1]=Tt*o[Et+1],Et<this.m-1)for(var Lt=0;Lt<this.m;Lt++)Nt=Tt*this.U[Lt][Et]+At*this.U[Lt][Et+1],this.U[Lt][Et+1]=-At*this.U[Lt][Et]+Tt*this.U[Lt][Et+1],this.U[Lt][Et]=Nt}o[_-2]=yt;break;case 4:if(this.s[W]<=0){this.s[W]=this.s[W]<0?-this.s[W]:0;for(var It=0;It<=z;It++)this.V[It][W]=-this.V[It][W]}for(;W<z&&!(this.s[W]>=this.s[W+1]);){var _t=this.s[W];if(this.s[W]=this.s[W+1],this.s[W+1]=_t,W<this.n-1)for(var Ct=0;Ct<this.n;Ct++)_t=this.V[Ct][W+1],this.V[Ct][W+1]=this.V[Ct][W],this.V[Ct][W]=_t;if(W<this.m-1)for(var Mt=0;Mt<this.m;Mt++)_t=this.U[Mt][W+1],this.U[Mt][W+1]=this.U[Mt][W],this.U[Mt][W]=_t;W++}_--}}return{U:this.U,V:this.V,S:this.s}},r.hypot=function(t,e){var i=void 0;return Math.abs(t)>Math.abs(e)?(i=e/t,i=Math.abs(t)*Math.sqrt(1+i*i)):0!=e?(i=t/e,i=Math.abs(e)*Math.sqrt(1+i*i)):i=0,i},t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var r=1;r<this.jMax;r++){var n=[this.sequence1[i-1]===this.sequence2[r-1]?this.grid[i-1][r-1]+this.match_score:this.grid[i-1][r-1]+this.mismatch_penalty,this.grid[i-1][r]+this.gap_penalty,this.grid[i][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(n);this.grid[i][r]=n[o[0]],this.tracebackGrid[i][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],r=-1;-1!==(r=t.indexOf(e,r+1));)i.push(r);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=n},function(t,e,i){"use strict";var r=function(){};r.FDLayout=i(18),r.FDLayoutConstants=i(4),r.FDLayoutEdge=i(19),r.FDLayoutNode=i(20),r.DimensionD=i(21),r.HashMap=i(22),r.HashSet=i(23),r.IGeometry=i(8),r.IMath=i(9),r.Integer=i(10),r.Point=i(12),r.PointD=i(5),r.RandomSeed=i(16),r.RectangleD=i(13),r.Transform=i(17),r.UniqueIDGeneretor=i(14),r.Quicksort=i(25),r.LinkedList=i(11),r.LGraphObject=i(2),r.LGraph=i(6),r.LEdge=i(1),r.LGraphManager=i(7),r.LNode=i(3),r.Layout=i(15),r.LayoutConstants=i(0),r.NeedlemanWunsch=i(27),r.Matrix=i(24),r.SVD=i(26),t.exports=r},function(t,e,i){"use strict";function r(){this.listeners=[]}var n=r.prototype;n.addListener=function(t,e){this.listeners.push({event:t,callback:e})},n.removeListener=function(t,e){for(var i=this.listeners.length;i>=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];t===r.event&&r.callback(e)}},t.exports=r}])},t.exports=e()},3175:(t,e,i)=>{"use strict";i.d(e,{diagram:()=>dt});var r=i(4532),n=i(483),o=i(3933),s=i(8160),a=(i(540),i(7286)),h=i(9),l=i(8731),c=i(165),d=i(6527),g=i(7),u={L:"left",R:"right",T:"top",B:"bottom"},p={L:(0,h.K2)((t=>`${t},${t/2} 0,${t} 0,0`),"L"),R:(0,h.K2)((t=>`0,${t/2} ${t},0 ${t},${t}`),"R"),T:(0,h.K2)((t=>`0,0 ${t},0 ${t/2},${t}`),"T"),B:(0,h.K2)((t=>`${t/2},0 ${t},${t} 0,${t}`),"B")},f={L:(0,h.K2)(((t,e)=>t-e+2),"L"),R:(0,h.K2)(((t,e)=>t-2),"R"),T:(0,h.K2)(((t,e)=>t-e+2),"T"),B:(0,h.K2)(((t,e)=>t-2),"B")},v=(0,h.K2)((function(t){return m(t)?"L"===t?"R":"L":"T"===t?"B":"T"}),"getOppositeArchitectureDirection"),y=(0,h.K2)((function(t){return"L"===t||"R"===t||"T"===t||"B"===t}),"isArchitectureDirection"),m=(0,h.K2)((function(t){return"L"===t||"R"===t}),"isArchitectureDirectionX"),E=(0,h.K2)((function(t){return"T"===t||"B"===t}),"isArchitectureDirectionY"),N=(0,h.K2)((function(t,e){const i=m(t)&&E(e),r=E(t)&&m(e);return i||r}),"isArchitectureDirectionXY"),T=(0,h.K2)((function(t){const e=t[0],i=t[1],r=m(e)&&E(i),n=E(e)&&m(i);return r||n}),"isArchitecturePairXY"),A=(0,h.K2)((function(t){return"LL"!==t&&"RR"!==t&&"TT"!==t&&"BB"!==t}),"isValidArchitectureDirectionPair"),w=(0,h.K2)((function(t,e){const i=`${t}${e}`;return A(i)?i:void 0}),"getArchitectureDirectionPair"),L=(0,h.K2)((function([t,e],i){const r=i[0],n=i[1];return m(r)?E(n)?[t+("L"===r?-1:1),e+("T"===n?1:-1)]:[t+("L"===r?-1:1),e]:m(n)?[t+("L"===n?1:-1),e+("T"===r?1:-1)]:[t,e+("T"===r?1:-1)]}),"shiftPositionByArchitectureDirectionPair"),I=(0,h.K2)((function(t){return"LT"===t||"TL"===t?[1,1]:"BL"===t||"LB"===t?[1,-1]:"BR"===t||"RB"===t?[-1,-1]:[-1,1]}),"getArchitectureDirectionXYFactors"),_=(0,h.K2)((function(t){return"service"===t.type}),"isArchitectureService"),C=(0,h.K2)((function(t){return"junction"===t.type}),"isArchitectureJunction"),M=(0,h.K2)((t=>t.data()),"edgeData"),x=(0,h.K2)((t=>t.data()),"nodeData"),O=h.UI.architecture,D=new s.m((()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:O,dataStructures:void 0,elements:{}}))),R=(0,h.K2)((()=>{D.reset(),(0,h.IU)()}),"clear"),b=(0,h.K2)((function({id:t,icon:e,in:i,title:r,iconText:n}){if(void 0!==D.records.registeredIds[t])throw new Error(`The service id [${t}] is already in use by another ${D.records.registeredIds[t]}`);if(void 0!==i){if(t===i)throw new Error(`The service [${t}] cannot be placed within itself`);if(void 0===D.records.registeredIds[i])throw new Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===D.records.registeredIds[i])throw new Error(`The service [${t}]'s parent is not a group`)}D.records.registeredIds[t]="node",D.records.nodes[t]={id:t,type:"service",icon:e,iconText:n,title:r,edges:[],in:i}}),"addService"),G=(0,h.K2)((()=>Object.values(D.records.nodes).filter(_)),"getServices"),F=(0,h.K2)((function({id:t,in:e}){D.records.registeredIds[t]="node",D.records.nodes[t]={id:t,type:"junction",edges:[],in:e}}),"addJunction"),S=(0,h.K2)((()=>Object.values(D.records.nodes).filter(C)),"getJunctions"),P=(0,h.K2)((()=>Object.values(D.records.nodes)),"getNodes"),U=(0,h.K2)((t=>D.records.nodes[t]),"getNode"),Y=(0,h.K2)((function({id:t,icon:e,in:i,title:r}){if(void 0!==D.records.registeredIds[t])throw new Error(`The group id [${t}] is already in use by another ${D.records.registeredIds[t]}`);if(void 0!==i){if(t===i)throw new Error(`The group [${t}] cannot be placed within itself`);if(void 0===D.records.registeredIds[i])throw new Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===D.records.registeredIds[i])throw new Error(`The group [${t}]'s parent is not a group`)}D.records.registeredIds[t]="group",D.records.groups[t]={id:t,icon:e,title:r,in:i}}),"addGroup"),k=(0,h.K2)((()=>Object.values(D.records.groups)),"getGroups"),H=(0,h.K2)((function({lhsId:t,rhsId:e,lhsDir:i,rhsDir:r,lhsInto:n,rhsInto:o,lhsGroup:s,rhsGroup:a,title:h}){if(!y(i))throw new Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${i}`);if(!y(r))throw new Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${r}`);if(void 0===D.records.nodes[t]&&void 0===D.records.groups[t])throw new Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(void 0===D.records.nodes[e]&&void 0===D.records.groups[t])throw new Error(`The right-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);const l=D.records.nodes[t].in,c=D.records.nodes[e].in;if(s&&l&&c&&l==c)throw new Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(a&&l&&c&&l==c)throw new Error(`The right-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const d={lhsId:t,lhsDir:i,lhsInto:n,lhsGroup:s,rhsId:e,rhsDir:r,rhsInto:o,rhsGroup:a,title:h};D.records.edges.push(d),D.records.nodes[t]&&D.records.nodes[e]&&(D.records.nodes[t].edges.push(D.records.edges[D.records.edges.length-1]),D.records.nodes[e].edges.push(D.records.edges[D.records.edges.length-1]))}),"addEdge"),X=(0,h.K2)((()=>D.records.edges),"getEdges"),z=(0,h.K2)((()=>{if(void 0===D.records.dataStructures){const t=Object.entries(D.records.nodes).reduce(((t,[e,i])=>(t[e]=i.edges.reduce(((t,i)=>{if(i.lhsId===e){const e=w(i.lhsDir,i.rhsDir);e&&(t[e]=i.rhsId)}else{const e=w(i.rhsDir,i.lhsDir);e&&(t[e]=i.lhsId)}return t}),{}),t)),{}),e=Object.keys(t)[0],i={[e]:1},r=Object.keys(t).reduce(((t,i)=>i===e?t:{...t,[i]:1}),{}),n=(0,h.K2)((e=>{const n={[e]:[0,0]},o=[e];for(;o.length>0;){const e=o.shift();if(e){i[e]=1,delete r[e];const s=t[e],[a,h]=n[e];Object.entries(s).forEach((([t,e])=>{i[e]||(n[e]=L([a,h],t),o.push(e))}))}}return n}),"BFS"),o=[n(e)];for(;Object.keys(r).length>0;)o.push(n(Object.keys(r)[0]));D.records.dataStructures={adjList:t,spatialMaps:o}}return D.records.dataStructures}),"getDataStructures"),V=(0,h.K2)(((t,e)=>{D.records.elements[t]=e}),"setElementForId"),B=(0,h.K2)((t=>D.records.elements[t]),"getElementById"),W={clear:R,setDiagramTitle:h.ke,getDiagramTitle:h.ab,setAccTitle:h.SV,getAccTitle:h.iN,setAccDescription:h.EI,getAccDescription:h.m7,addService:b,getServices:G,addJunction:F,getJunctions:S,getNodes:P,getNode:U,addGroup:Y,getGroups:k,addEdge:H,getEdges:X,setElementForId:V,getElementById:B,getDataStructures:z};function j(t){const e=(0,h.D7)().architecture;return e?.[t]?e[t]:O[t]}(0,h.K2)(j,"getConfigField");var q=(0,h.K2)(((t,e)=>{(0,o.S)(t,e),t.groups.map(e.addGroup),t.services.map((t=>e.addService({...t,type:"service"}))),t.junctions.map((t=>e.addJunction({...t,type:"junction"}))),t.edges.map(e.addEdge)}),"populateDb"),$={parse:(0,h.K2)((async t=>{const e=await(0,l.qg)("architecture",t);h.Rm.debug(e),q(e,W)}),"parse")},K=(0,h.K2)((t=>`\n .edge {\n stroke-width: ${t.archEdgeWidth};\n stroke: ${t.archEdgeColor};\n fill: none;\n }\n\n .arrow {\n fill: ${t.archEdgeArrowColor};\n }\n\n .node-bkg {\n fill: none;\n stroke: ${t.archGroupBorderColor};\n stroke-width: ${t.archGroupBorderWidth};\n stroke-dasharray: 8;\n }\n .node-icon-text {\n display: flex; \n align-items: center;\n }\n \n .node-icon-text > div {\n color: #fff;\n margin: 1px;\n height: fit-content;\n text-align: center;\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n }\n`),"getStyles"),Z=(0,h.K2)((t=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${t}</g>`),"wrapIcon"),Q={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Z('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:Z('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:Z('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:Z('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:Z('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:r.Gc,blank:{body:Z("")}}},J=(0,h.K2)((async function(t,e){const i=j("padding"),r=j("iconSize"),o=r/2,s=r/6,a=s/2;await Promise.all(e.edges().map((async e=>{const{source:r,sourceDir:l,sourceArrow:c,sourceGroup:d,target:g,targetDir:u,targetArrow:v,targetGroup:y,label:A}=M(e);let{x:L,y:_}=e[0].sourceEndpoint();const{x:C,y:x}=e[0].midpoint();let{x:O,y:D}=e[0].targetEndpoint();const R=i+4;if(d&&(m(l)?L+="L"===l?-R:R:_+="T"===l?-R:R+18),y&&(m(u)?O+="L"===u?-R:R:D+="T"===u?-R:R+18),d||"junction"!==W.getNode(r)?.type||(m(l)?L+="L"===l?o:-o:_+="T"===l?o:-o),y||"junction"!==W.getNode(g)?.type||(m(u)?O+="L"===u?o:-o:D+="T"===u?o:-o),e[0]._private.rscratch){const e=t.insert("g");if(e.insert("path").attr("d",`M ${L},${_} L ${C},${x} L${O},${D} `).attr("class","edge"),c){const t=m(l)?f[l](L,s):L-a,i=E(l)?f[l](_,s):_-a;e.insert("polygon").attr("points",p[l](s)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(v){const t=m(u)?f[u](O,s):O-a,i=E(u)?f[u](D,s):D-a;e.insert("polygon").attr("points",p[u](s)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(A){const t=N(l,u)?"XY":m(l)?"X":"Y";let i=0;i="X"===t?Math.abs(L-O):"Y"===t?Math.abs(_-D)/1.5:Math.abs(L-O)/2;const r=e.append("g");if(await(0,n.GZ)(r,A,{useHtmlLabels:!1,width:i,classes:"architecture-service-label"},(0,h.D7)()),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===t)r.attr("transform","translate("+C+", "+x+")");else if("Y"===t)r.attr("transform","translate("+C+", "+x+") rotate(-90)");else if("XY"===t){const t=w(l,u);if(t&&T(t)){const e=r.node().getBoundingClientRect(),[i,n]=I(t);r.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*i*n*45})`);const o=r.node().getBoundingClientRect();r.attr("transform",`\n translate(${C}, ${x-e.height/2})\n translate(${i*o.width/2}, ${n*o.height/2})\n rotate(${-1*i*n*45}, 0, ${e.height/2})\n `)}}}}})))}),"drawEdges"),tt=(0,h.K2)((async function(t,e){const i=.75*j("padding"),o=j("fontSize"),s=j("iconSize")/2;await Promise.all(e.nodes().map((async e=>{const a=x(e);if("group"===a.type){const{h:l,w:c,x1:d,y1:g}=e.boundingBox();t.append("rect").attr("x",d+s).attr("y",g+s).attr("width",c).attr("height",l).attr("class","node-bkg");const u=t.append("g");let p=d,f=g;if(a.icon){const t=u.append("g");t.html(`<g>${await(0,r.WY)(a.icon,{height:i,width:i,fallbackPrefix:Q.prefix})}</g>`),t.attr("transform","translate("+(p+s+1)+", "+(f+s+1)+")"),p+=i,f+=o/2-1-2}if(a.label){const t=u.append("g");await(0,n.GZ)(t,a.label,{useHtmlLabels:!1,width:c,classes:"architecture-service-label"},(0,h.D7)()),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),t.attr("transform","translate("+(p+s+4)+", "+(f+s+2)+")")}}})))}),"drawGroups"),et=(0,h.K2)((async function(t,e,i){for(const o of i){const i=e.append("g"),s=j("iconSize");if(o.title){const t=i.append("g");await(0,n.GZ)(t,o.title,{useHtmlLabels:!1,width:1.5*s,classes:"architecture-service-label"},(0,h.D7)()),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),t.attr("transform","translate("+s/2+", "+s+")")}const a=i.append("g");if(o.icon)a.html(`<g>${await(0,r.WY)(o.icon,{height:s,width:s,fallbackPrefix:Q.prefix})}</g>`);else if(o.iconText){a.html(`<g>${await(0,r.WY)("blank",{height:s,width:s,fallbackPrefix:Q.prefix})}</g>`);const t=a.append("g").append("foreignObject").attr("width",s).attr("height",s).append("div").attr("class","node-icon-text").attr("style",`height: ${s}px;`).append("div").html(o.iconText),e=parseInt(window.getComputedStyle(t.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;t.attr("style",`-webkit-line-clamp: ${Math.floor((s-2)/e)};`)}else a.append("path").attr("class","node-bkg").attr("id","node-"+o.id).attr("d",`M0 ${s} v${-s} q0,-5 5,-5 h${s} q5,0 5,5 v${s} H0 Z`);i.attr("class","architecture-service");const{width:l,height:c}=i._groups[0][0].getBBox();o.width=l,o.height=c,t.setElementForId(o.id,i)}return 0}),"drawServices"),it=(0,h.K2)((function(t,e,i){i.forEach((i=>{const r=e.append("g"),n=j("iconSize");r.append("g").append("rect").attr("id","node-"+i.id).attr("fill-opacity","0").attr("width",n).attr("height",n),r.attr("class","architecture-junction");const{width:o,height:s}=r._groups[0][0].getBBox();r.width=o,r.height=s,t.setElementForId(i.id,r)}))}),"drawJunctions");function rt(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:j("iconSize"),height:j("iconSize")},classes:"node-service"})}))}function nt(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:j("iconSize"),height:j("iconSize")},classes:"node-junction"})}))}function ot(t,e){e.nodes().map((e=>{const i=x(e);if("group"===i.type)return;i.x=e.position().x,i.y=e.position().y;t.getElementById(i.id).attr("transform","translate("+(i.x||0)+","+(i.y||0)+")")}))}function st(t,e){t.forEach((t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})}))}function at(t,e){t.forEach((t=>{const{lhsId:i,rhsId:r,lhsInto:n,lhsGroup:o,rhsInto:s,lhsDir:a,rhsDir:h,rhsGroup:l,title:c}=t,d=N(t.lhsDir,t.rhsDir)?"segments":"straight",g={id:`${i}-${r}`,label:c,source:i,sourceDir:a,sourceArrow:n,sourceGroup:o,sourceEndpoint:"L"===a?"0 50%":"R"===a?"100% 50%":"T"===a?"50% 0":"50% 100%",target:r,targetDir:h,targetArrow:s,targetGroup:l,targetEndpoint:"L"===h?"0 50%":"R"===h?"100% 50%":"T"===h?"50% 0":"50% 100%"};e.add({group:"edges",data:g,classes:d})}))}function ht(t){const e=t.map((t=>{const e={},i={};return Object.entries(t).forEach((([t,[r,n]])=>{e[n]||(e[n]=[]),i[r]||(i[r]=[]),e[n].push(t),i[r].push(t)})),{horiz:Object.values(e).filter((t=>t.length>1)),vert:Object.values(i).filter((t=>t.length>1))}})),[i,r]=e.reduce((([t,e],{horiz:i,vert:r})=>[[...t,...i],[...e,...r]]),[[],[]]);return{horizontal:i,vertical:r}}function lt(t){const e=[],i=(0,h.K2)((t=>`${t[0]},${t[1]}`),"posToStr"),r=(0,h.K2)((t=>t.split(",").map((t=>parseInt(t)))),"strToPos");return t.forEach((t=>{const n=Object.fromEntries(Object.entries(t).map((([t,e])=>[i(e),t]))),o=[i([0,0])],s={},a={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;o.length>0;){const t=o.shift();if(t){s[t]=1;const h=n[t];if(h){const l=r(t);Object.entries(a).forEach((([t,r])=>{const a=i([l[0]+r[0],l[1]+r[1]]),c=n[a];c&&!s[a]&&(o.push(a),e.push({[u[t]]:c,[u[v(t)]]:h,gap:1.5*j("iconSize")}))}))}}}})),e}function ct(t,e,i,r,{spatialMaps:n}){return new Promise((o=>{const s=(0,g.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),a=(0,c.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight",label:"data(label)","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${j("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${j("padding")}px`}}]});s.remove(),st(i,a),rt(t,a),nt(e,a),at(r,a);const l=ht(n),d=lt(n),u=a.layout({name:"fcose",quality:"proof",styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(t){const[e,i]=t.connectedNodes(),{parent:r}=x(e),{parent:n}=x(i);return r===n?1.5*j("iconSize"):.5*j("iconSize")},edgeElasticity(t){const[e,i]=t.connectedNodes(),{parent:r}=x(e),{parent:n}=x(i);return r===n?.45:.001},alignmentConstraint:l,relativePlacementConstraint:d});u.one("layoutstop",(()=>{function t(t,e,i,r){let n,o;const{x:s,y:a}=t,{x:h,y:l}=e;o=(r-a+(s-i)*(a-l)/(s-h))/Math.sqrt(1+Math.pow((a-l)/(s-h),2)),n=Math.sqrt(Math.pow(r-a,2)+Math.pow(i-s,2)-Math.pow(o,2));n/=Math.sqrt(Math.pow(h-s,2)+Math.pow(l-a,2));let c=(h-s)*(r-a)-(l-a)*(i-s);switch(!0){case c>=0:c=1;break;case c<0:c=-1}let d=(h-s)*(i-s)+(l-a)*(r-a);switch(!0){case d>=0:d=1;break;case d<0:d=-1}return o=Math.abs(o)*c,n*=d,{distances:o,weights:n}}(0,h.K2)(t,"getSegmentWeights"),a.startBatch();for(const e of Object.values(a.edges()))if(e.data?.()){const{x:i,y:r}=e.source().position(),{x:n,y:o}=e.target().position();if(i!==n&&r!==o){const i=e.sourceEndpoint(),r=e.targetEndpoint(),{sourceDir:n}=M(e),[o,s]=E(n)?[i.x,r.y]:[r.x,i.y],{weights:a,distances:h}=t(i,r,o,s);e.style("segment-distances",h),e.style("segment-weights",a)}}a.endBatch(),u.run()})),u.run(),a.ready((t=>{h.Rm.info("Ready",t),o(a)}))}))}(0,r.pC)([{name:Q.prefix,icons:Q}]),c.A.use(d),(0,h.K2)(rt,"addServices"),(0,h.K2)(nt,"addJunctions"),(0,h.K2)(ot,"positionNodes"),(0,h.K2)(st,"addGroups"),(0,h.K2)(at,"addEdges"),(0,h.K2)(ht,"getAlignments"),(0,h.K2)(lt,"getRelativeConstraints"),(0,h.K2)(ct,"layoutArchitecture");var dt={parser:$,db:W,renderer:{draw:(0,h.K2)((async(t,e,i,r)=>{const n=r.db,o=n.getServices(),s=n.getJunctions(),l=n.getGroups(),c=n.getEdges(),d=n.getDataStructures(),g=(0,a.D)(e),u=g.append("g");u.attr("class","architecture-edges");const p=g.append("g");p.attr("class","architecture-services");const f=g.append("g");f.attr("class","architecture-groups"),await et(n,p,o),it(n,p,s);const v=await ct(o,s,l,c,d);await J(u,v),await tt(f,v),ot(n,v),(0,h.ot)(void 0,g,j("padding"),j("useMaxWidth"))}),"draw")},styles:K}},8160:(t,e,i)=>{"use strict";i.d(e,{m:()=>n});var r=i(9),n=class{constructor(t){this.init=t,this.records=this.init()}static{(0,r.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},3933:(t,e,i)=>{"use strict";function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}i.d(e,{S:()=>r}),(0,i(9).K2)(r,"populateCommonDb")}}]); \ No newline at end of file diff --git a/website/assets/js/32530c60.706b2cd0.js b/website/assets/js/32530c60.706b2cd0.js new file mode 100644 index 000000000..51b33bae5 --- /dev/null +++ b/website/assets/js/32530c60.706b2cd0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2633],{783:e=>{e.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"Agr\xe9gateurs","description":"Ces composants permettent d\'agr\xe9ger des informations complexes","slug":"/category/agr\xe9gateurs","permalink":"/Lunatic/docs/category/agr\xe9gateurs","sidebar":"docs","navigation":{"previous":{"title":"Text","permalink":"/Lunatic/docs/components/fields/text"},"next":{"title":"Loop","permalink":"/Lunatic/docs/components/aggregators/loop"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/3624.55293744.js b/website/assets/js/3624.55293744.js new file mode 100644 index 000000000..b697084ac --- /dev/null +++ b/website/assets/js/3624.55293744.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3624],{2062:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(9471);const o=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const c=function(t){return this.__data__.has(t)};function u(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e.A;++n<r;)this.add(t[n])}u.prototype.add=u.prototype.push=o,u.prototype.has=c;const a=u},2641:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e&&!1!==n(t[r],r,t););return t}},2634:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,c=[];++r<e;){var u=t[r];n(u,r,t)&&(c[o++]=u)}return c}},5530:(t,n,r)=>{r.d(n,{A:()=>o});var e=r(818);const o=function(t,n){return!!(null==t?0:t.length)&&(0,e.A)(t,n,0)>-1}},7809:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n,r){for(var e=-1,o=null==t?0:t.length;++e<o;)if(r(n,t[e]))return!0;return!1}},5572:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},6912:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},3736:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}},8675:(t,n,r)=>{r.d(n,{A:()=>Q});var e=r(1754),o=r(2641),c=r(2851),u=r(2031),a=r(7422);const i=function(t,n){return t&&(0,u.A)(n,(0,a.A)(n),t)};var f=r(5615);const A=function(t,n){return t&&(0,u.A)(n,(0,f.A)(n),t)};var s=r(154),v=r(9759),l=r(4792);const b=function(t,n){return(0,u.A)(t,(0,l.A)(t),n)};var d=r(3511);const j=function(t,n){return(0,u.A)(t,(0,d.A)(t),n)};var p=r(9042),h=r(3973),y=r(9779),g=Object.prototype.hasOwnProperty;const w=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&g.call(t,"index")&&(r.index=t.index,r.input=t.input),r};var _=r(565);const O=function(t,n){var r=n?(0,_.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)};var m=/\w*$/;const S=function(t){var n=new t.constructor(t.source,m.exec(t));return n.lastIndex=t.lastIndex,n};var k=r(241),E=k.A?k.A.prototype:void 0,x=E?E.valueOf:void 0;const I=function(t){return x?Object(x.call(t)):{}};var U=r(1801);const B=function(t,n,r){var e=t.constructor;switch(n){case"[object ArrayBuffer]":return(0,_.A)(t);case"[object Boolean]":case"[object Date]":return new e(+t);case"[object DataView]":return O(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,U.A)(t,r);case"[object Map]":case"[object Set]":return new e;case"[object Number]":case"[object String]":return new e(t);case"[object RegExp]":return S(t);case"[object Symbol]":return I(t)}};var C=r(8598),D=r(2049),F=r(9912),M=r(3098);const z=function(t){return(0,M.A)(t)&&"[object Map]"==(0,y.A)(t)};var L=r(2789),P=r(4841),$=P.A&&P.A.isMap;const N=$?(0,L.A)($):z;var R=r(3149);const V=function(t){return(0,M.A)(t)&&"[object Set]"==(0,y.A)(t)};var G=P.A&&P.A.isSet;const W=G?(0,L.A)(G):V;var q="[object Arguments]",H="[object Function]",J="[object Object]",K={};K[q]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object DataView]"]=K["[object Boolean]"]=K["[object Date]"]=K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Map]"]=K["[object Number]"]=K[J]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object Symbol]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Error]"]=K[H]=K["[object WeakMap]"]=!1;const Q=function t(n,r,u,l,d,g){var _,O=1&r,m=2&r,S=4&r;if(u&&(_=d?u(n,l,d,g):u(n)),void 0!==_)return _;if(!(0,R.A)(n))return n;var k=(0,D.A)(n);if(k){if(_=w(n),!O)return(0,v.A)(n,_)}else{var E=(0,y.A)(n),x=E==H||"[object GeneratorFunction]"==E;if((0,F.A)(n))return(0,s.A)(n,O);if(E==J||E==q||x&&!d){if(_=m||x?{}:(0,C.A)(n),!O)return m?j(n,A(_,n)):b(n,i(_,n))}else{if(!K[E])return d?n:{};_=B(n,E,O)}}g||(g=new e.A);var I=g.get(n);if(I)return I;g.set(n,_),W(n)?n.forEach((function(e){_.add(t(e,r,u,e,n,g))})):N(n)&&n.forEach((function(e,o){_.set(o,t(e,r,u,o,n,g))}));var U=S?m?h.A:p.A:m?f.A:a.A,M=k?void 0:U(n);return(0,o.A)(M||n,(function(e,o){M&&(e=n[o=e]),(0,c.A)(_,o,t(e,r,u,o,n,g))})),_}},6240:(t,n,r)=>{r.d(n,{A:()=>c});var e=r(9841),o=r(8446);const c=function(t,n){return function(r,e){if(null==r)return r;if(!(0,o.A)(r))return t(r,e);for(var c=r.length,u=n?c:-1,a=Object(r);(n?u--:++u<c)&&!1!==e(a[u],u,a););return r}}(e.A)},1790:(t,n,r)=>{r.d(n,{A:()=>o});var e=r(6240);const o=function(t,n){var r=[];return(0,e.A)(t,(function(t,e,o){n(t,e,o)&&r.push(t)})),r}},5707:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n,r,e){for(var o=t.length,c=r+(e?1:-1);e?c--:++c<o;)if(n(t[c],c,t))return c;return-1}},3588:(t,n,r)=>{r.d(n,{A:()=>f});var e=r(6912),o=r(241),c=r(2274),u=r(2049),a=o.A?o.A.isConcatSpreadable:void 0;const i=function(t){return(0,u.A)(t)||(0,c.A)(t)||!!(a&&t&&t[a])};const f=function t(n,r,o,c,u){var a=-1,f=n.length;for(o||(o=i),u||(u=[]);++a<f;){var A=n[a];r>0&&o(A)?r>1?t(A,r-1,o,c,u):(0,e.A)(u,A):c||(u[u.length]=A)}return u}},9841:(t,n,r)=>{r.d(n,{A:()=>c});var e=r(4574),o=r(7422);const c=function(t,n){return t&&(0,e.A)(t,n,o.A)}},6318:(t,n,r)=>{r.d(n,{A:()=>c});var e=r(7819),o=r(901);const c=function(t,n){for(var r=0,c=(n=(0,e.A)(n,t)).length;null!=t&&r<c;)t=t[(0,o.A)(n[r++])];return r&&r==c?t:void 0}},3831:(t,n,r)=>{r.d(n,{A:()=>c});var e=r(6912),o=r(2049);const c=function(t,n,r){var c=n(t);return(0,o.A)(t)?c:(0,e.A)(c,r(t))}},818:(t,n,r)=>{r.d(n,{A:()=>u});var e=r(5707);const o=function(t){return t!=t};const c=function(t,n,r){for(var e=r-1,o=t.length;++e<o;)if(t[e]===n)return e;return-1};const u=function(t,n,r){return n==n?c(t,n,r):(0,e.A)(t,o,r)}},3958:(t,n,r)=>{r.d(n,{A:()=>J});var e=r(1754),o=r(2062),c=r(3736),u=r(4099);const a=function(t,n,r,e,a,i){var f=1&r,A=t.length,s=n.length;if(A!=s&&!(f&&s>A))return!1;var v=i.get(t),l=i.get(n);if(v&&l)return v==n&&l==t;var b=-1,d=!0,j=2&r?new o.A:void 0;for(i.set(t,n),i.set(n,t);++b<A;){var p=t[b],h=n[b];if(e)var y=f?e(h,p,b,n,t,i):e(p,h,b,t,n,i);if(void 0!==y){if(y)continue;d=!1;break}if(j){if(!(0,c.A)(n,(function(t,n){if(!(0,u.A)(j,n)&&(p===t||a(p,t,r,e,i)))return j.push(n)}))){d=!1;break}}else if(p!==h&&!a(p,h,r,e,i)){d=!1;break}}return i.delete(t),i.delete(n),d};var i=r(241),f=r(3988),A=r(6984);const s=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r};var v=r(9959),l=i.A?i.A.prototype:void 0,b=l?l.valueOf:void 0;const d=function(t,n,r,e,o,c,u){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!c(new f.A(t),new f.A(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,A.A)(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var i=s;case"[object Set]":var l=1&e;if(i||(i=v.A),t.size!=n.size&&!l)return!1;var d=u.get(t);if(d)return d==n;e|=2,u.set(t,n);var j=a(i(t),i(n),e,o,c,u);return u.delete(t),j;case"[object Symbol]":if(b)return b.call(t)==b.call(n)}return!1};var j=r(9042),p=Object.prototype.hasOwnProperty;const h=function(t,n,r,e,o,c){var u=1&r,a=(0,j.A)(t),i=a.length;if(i!=(0,j.A)(n).length&&!u)return!1;for(var f=i;f--;){var A=a[f];if(!(u?A in n:p.call(n,A)))return!1}var s=c.get(t),v=c.get(n);if(s&&v)return s==n&&v==t;var l=!0;c.set(t,n),c.set(n,t);for(var b=u;++f<i;){var d=t[A=a[f]],h=n[A];if(e)var y=u?e(h,d,A,n,t,c):e(d,h,A,t,n,c);if(!(void 0===y?d===h||o(d,h,r,e,c):y)){l=!1;break}b||(b="constructor"==A)}if(l&&!b){var g=t.constructor,w=n.constructor;g==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(l=!1)}return c.delete(t),c.delete(n),l};var y=r(9779),g=r(2049),w=r(9912),_=r(3858),O="[object Arguments]",m="[object Array]",S="[object Object]",k=Object.prototype.hasOwnProperty;const E=function(t,n,r,o,c,u){var i=(0,g.A)(t),f=(0,g.A)(n),A=i?m:(0,y.A)(t),s=f?m:(0,y.A)(n),v=(A=A==O?S:A)==S,l=(s=s==O?S:s)==S,b=A==s;if(b&&(0,w.A)(t)){if(!(0,w.A)(n))return!1;i=!0,v=!1}if(b&&!v)return u||(u=new e.A),i||(0,_.A)(t)?a(t,n,r,o,c,u):d(t,n,A,r,o,c,u);if(!(1&r)){var j=v&&k.call(t,"__wrapped__"),p=l&&k.call(n,"__wrapped__");if(j||p){var E=j?t.value():t,x=p?n.value():n;return u||(u=new e.A),c(E,x,r,o,u)}}return!!b&&(u||(u=new e.A),h(t,n,r,o,c,u))};var x=r(3098);const I=function t(n,r,e,o,c){return n===r||(null==n||null==r||!(0,x.A)(n)&&!(0,x.A)(r)?n!=n&&r!=r:E(n,r,e,o,t,c))};const U=function(t,n,r,o){var c=r.length,u=c,a=!o;if(null==t)return!u;for(t=Object(t);c--;){var i=r[c];if(a&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++c<u;){var f=(i=r[c])[0],A=t[f],s=i[1];if(a&&i[2]){if(void 0===A&&!(f in t))return!1}else{var v=new e.A;if(o)var l=o(A,s,f,t,n,v);if(!(void 0===l?I(s,A,3,o,v):l))return!1}}return!0};var B=r(3149);const C=function(t){return t==t&&!(0,B.A)(t)};var D=r(7422);const F=function(t){for(var n=(0,D.A)(t),r=n.length;r--;){var e=n[r],o=t[e];n[r]=[e,o,C(o)]}return n};const M=function(t,n){return function(r){return null!=r&&(r[t]===n&&(void 0!==n||t in Object(r)))}};const z=function(t){var n=F(t);return 1==n.length&&n[0][2]?M(n[0][0],n[0][1]):function(r){return r===t||U(r,t,n)}};var L=r(6318);const P=function(t,n,r){var e=null==t?void 0:(0,L.A)(t,n);return void 0===e?r:e};var $=r(9188),N=r(6586),R=r(901);const V=function(t,n){return(0,N.A)(t)&&C(n)?M((0,R.A)(t),n):function(r){var e=P(r,t);return void 0===e&&e===n?(0,$.A)(r,t):I(n,e,3)}};var G=r(9008),W=r(805);const q=function(t){return function(n){return(0,L.A)(n,t)}};const H=function(t){return(0,N.A)(t)?(0,W.A)((0,R.A)(t)):q(t)};const J=function(t){return"function"==typeof t?t:null==t?G.A:"object"==typeof t?(0,g.A)(t)?V(t[0],t[1]):z(t):H(t)}},805:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t){return function(n){return null==n?void 0:n[t]}}},9902:(t,n,r)=>{r.d(n,{A:()=>s});var e=r(2062),o=r(5530),c=r(7809),u=r(4099),a=r(9857),i=r(2302),f=r(9959);const A=a.A&&1/(0,f.A)(new a.A([,-0]))[1]==1/0?function(t){return new a.A(t)}:i.A;const s=function(t,n,r){var a=-1,i=o.A,s=t.length,v=!0,l=[],b=l;if(r)v=!1,i=c.A;else if(s>=200){var d=n?null:A(t);if(d)return(0,f.A)(d);v=!1,i=u.A,b=new e.A}else b=n?[]:l;t:for(;++a<s;){var j=t[a],p=n?n(j):j;if(j=r||0!==j?j:0,v&&p==p){for(var h=b.length;h--;)if(b[h]===p)continue t;n&&b.push(p),l.push(j)}else i(b,p,r)||(b!==l&&b.push(p),l.push(j))}return l}},4099:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t,n){return t.has(n)}},9922:(t,n,r)=>{r.d(n,{A:()=>o});var e=r(9008);const o=function(t){return"function"==typeof t?t:e.A}},7819:(t,n,r)=>{r.d(n,{A:()=>A});var e=r(2049),o=r(6586),c=r(6632);var u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=function(t){var n=(0,c.A)(t,(function(t){return 500===r.size&&r.clear(),t})),r=n.cache;return n}((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(u,(function(t,r,e,o){n.push(e?o.replace(a,"$1"):r||t)})),n}));var f=r(8894);const A=function(t,n){return(0,e.A)(t)?t:(0,o.A)(t,n)?[t]:i((0,f.A)(t))}},9042:(t,n,r)=>{r.d(n,{A:()=>u});var e=r(3831),o=r(4792),c=r(7422);const u=function(t){return(0,e.A)(t,c.A,o.A)}},3973:(t,n,r)=>{r.d(n,{A:()=>u});var e=r(3831),o=r(3511),c=r(5615);const u=function(t){return(0,e.A)(t,c.A,o.A)}},4792:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(2634),o=r(3153),c=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;const a=u?function(t){return null==t?[]:(t=Object(t),(0,e.A)(u(t),(function(n){return c.call(t,n)})))}:o.A},3511:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(6912),o=r(5647),c=r(4792),u=r(3153);const a=Object.getOwnPropertySymbols?function(t){for(var n=[];t;)(0,e.A)(n,(0,c.A)(t)),t=(0,o.A)(t);return n}:u.A},2673:(t,n,r)=>{r.d(n,{A:()=>f});var e=r(7819),o=r(2274),c=r(2049),u=r(5353),a=r(5254),i=r(901);const f=function(t,n,r){for(var f=-1,A=(n=(0,e.A)(n,t)).length,s=!1;++f<A;){var v=(0,i.A)(n[f]);if(!(s=null!=t&&r(t,v)))break;t=t[v]}return s||++f!=A?s:!!(A=null==t?0:t.length)&&(0,a.A)(A)&&(0,u.A)(v,A)&&((0,c.A)(t)||(0,o.A)(t))}},6586:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(2049),o=r(1882),c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;const a=function(t,n){if((0,e.A)(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!(0,o.A)(t))||(u.test(t)||!c.test(t)||null!=n&&t in Object(n))}},9959:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r}},901:(t,n,r)=>{r.d(n,{A:()=>o});var e=r(1882);const o=function(t){if("string"==typeof t||(0,e.A)(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4092:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(2634),o=r(1790),c=r(3958),u=r(2049);const a=function(t,n){return((0,u.A)(t)?e.A:o.A)(t,(0,c.A)(n,3))}},8058:(t,n,r)=>{r.d(n,{A:()=>a});var e=r(2641),o=r(6240),c=r(9922),u=r(2049);const a=function(t,n){return((0,u.A)(t)?e.A:o.A)(t,(0,c.A)(n))}},9188:(t,n,r)=>{r.d(n,{A:()=>c});const e=function(t,n){return null!=t&&n in Object(t)};var o=r(2673);const c=function(t,n){return null!=t&&(0,o.A)(t,n,e)}},1882:(t,n,r)=>{r.d(n,{A:()=>c});var e=r(8496),o=r(3098);const c=function(t){return"symbol"==typeof t||(0,o.A)(t)&&"[object Symbol]"==(0,e.A)(t)}},9592:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(t){return void 0===t}},7422:(t,n,r)=>{r.d(n,{A:()=>u});var e=r(3607),o=r(1852),c=r(8446);const u=function(t){return(0,c.A)(t)?(0,e.A)(t):(0,o.A)(t)}},2302:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(){}},9463:(t,n,r)=>{r.d(n,{A:()=>i});const e=function(t,n,r,e){var o=-1,c=null==t?0:t.length;for(e&&c&&(r=t[++o]);++o<c;)r=n(r,t[o],o,t);return r};var o=r(6240),c=r(3958);const u=function(t,n,r,e,o){return o(t,(function(t,o,c){r=e?(e=!1,t):n(r,t,o,c)})),r};var a=r(2049);const i=function(t,n,r){var i=(0,a.A)(t)?e:u,f=arguments.length<3;return i(t,(0,c.A)(n,4),r,f,o.A)}},3153:(t,n,r)=>{r.d(n,{A:()=>e});const e=function(){return[]}},8894:(t,n,r)=>{r.d(n,{A:()=>A});var e=r(241),o=r(5572),c=r(2049),u=r(1882),a=e.A?e.A.prototype:void 0,i=a?a.toString:void 0;const f=function t(n){if("string"==typeof n)return n;if((0,c.A)(n))return(0,o.A)(n,t)+"";if((0,u.A)(n))return i?i.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r};const A=function(t){return null==t?"":f(t)}},8207:(t,n,r)=>{r.d(n,{A:()=>u});var e=r(5572);const o=function(t,n){return(0,e.A)(n,(function(n){return t[n]}))};var c=r(7422);const u=function(t){return null==t?[]:o(t,(0,c.A)(t))}}}]); \ No newline at end of file diff --git a/website/assets/js/391.41923806.js b/website/assets/js/391.41923806.js new file mode 100644 index 000000000..6721488db --- /dev/null +++ b/website/assets/js/391.41923806.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[391],{391:(s,r,e)=>{e.d(r,{diagram:()=>l});var a=e(3859),c=(e(6474),e(7308),e(7938),e(1282),e(4532),e(7588),e(3115),e(483),e(540),e(9)),l={parser:a._$,db:a.z2,renderer:a.Lh,styles:a.tM,init:(0,c.K2)((s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,a.z2.clear()}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/3b33ea71.83d43384.js b/website/assets/js/3b33ea71.83d43384.js new file mode 100644 index 000000000..3c6375373 --- /dev/null +++ b/website/assets/js/3b33ea71.83d43384.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8164],{3176:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>o,toc:()=>p});const o=JSON.parse('{"id":"api/type-aliases/LunaticComponentProps","title":"Type Alias: LunaticComponentProps\\\\<T\\\\>","description":"LunaticComponentProps\\\\: ComponentPropsByType\\\\[T\\\\]","source":"@site/docs/api/type-aliases/LunaticComponentProps.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticComponentProps","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentProps","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticComponentProps.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticComponentDefinition","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition"},"next":{"title":"LunaticControl","permalink":"/Lunatic/docs/api/type-aliases/LunaticControl"}}');var s=t(4848),i=t(8453);const r={},c="Type Alias: LunaticComponentProps<T>",a={},p=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Defined in",id:"defined-in",level:2}];function d(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"type-alias-lunaticcomponentpropst",children:"Type Alias: LunaticComponentProps<T>"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"LunaticComponentProps"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"ComponentPropsByType"}),"[",(0,s.jsx)(n.code,{children:"T"}),"]"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Type Parameter"}),(0,s.jsx)(n.th,{children:"Default type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"T"})," ",(0,s.jsx)(n.em,{children:"extends"})," ",(0,s.jsx)(n.code,{children:"LunaticComponentType"})]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"LunaticComponentType"})})]})})]}),"\n",(0,s.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/type.ts#L318",children:"src/components/type.ts:318"})})]})}function l(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>r,x:()=>c});var o=t(6540);const s={},i=o.createContext(s);function r(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/43f86adf.979da35d.js b/website/assets/js/43f86adf.979da35d.js new file mode 100644 index 000000000..f91db00cb --- /dev/null +++ b/website/assets/js/43f86adf.979da35d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5891],{3129:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>c,metadata:()=>a,toc:()=>p});const a=JSON.parse('{"id":"api/interfaces/LunaticExtraProps","title":"Interface: LunaticExtraProps","description":"","source":"@site/docs/api/interfaces/LunaticExtraProps.md","sourceDirName":"api/interfaces","slug":"/api/interfaces/LunaticExtraProps","permalink":"/Lunatic/docs/api/interfaces/LunaticExtraProps","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/interfaces/LunaticExtraProps.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"VTLMissingDependency","permalink":"/Lunatic/docs/api/classes/VTLMissingDependency"},"next":{"title":"LunaticChangesHandler","permalink":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler"}}');var r=n(4848),s=n(8453);const c={},i="Interface: LunaticExtraProps",o={},p=[];function u(e){const t={h1:"h1",header:"header",...(0,s.R)(),...e.components};return(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"interface-lunaticextraprops",children:"Interface: LunaticExtraProps"})})}function d(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>i});var a=n(6540);const r={},s=a.createContext(r);function c(e){const t=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:c(e.components),a.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/4445d26b.29966862.js b/website/assets/js/4445d26b.29966862.js new file mode 100644 index 000000000..139f7b3cc --- /dev/null +++ b/website/assets/js/4445d26b.29966862.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1648],{4820:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>h,frontMatter:()=>d,metadata:()=>i,toc:()=>o});const i=JSON.parse('{"id":"api/type-aliases/LunaticOptions","title":"Type Alias: LunaticOptions","description":"LunaticOptions: object","source":"@site/docs/api/type-aliases/LunaticOptions.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticOptions","permalink":"/Lunatic/docs/api/type-aliases/LunaticOptions","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticOptions.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticExpression","permalink":"/Lunatic/docs/api/type-aliases/LunaticExpression"},"next":{"title":"LunaticPager","permalink":"/Lunatic/docs/api/type-aliases/LunaticPager"}}');var l=s(4848),t=s(8453);const d={},c="Type Alias: LunaticOptions",r={},o=[{value:"Type declaration",id:"type-declaration",level:2},{value:"activeControls?",id:"activecontrols",level:3},{value:"autoSuggesterLoading?",id:"autosuggesterloading",level:3},{value:"componentsOptions?",id:"componentsoptions",level:3},{value:"componentsOptions.detailAlwaysDisplayed?",id:"componentsoptionsdetailalwaysdisplayed",level:3},{value:"disableFilters?",id:"disablefilters",level:3},{value:"dontKnowButton?",id:"dontknowbutton",level:3},{value:"features?",id:"features",level:3},{value:"getReferentiel()?",id:"getreferentiel",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"initialPage?",id:"initialpage",level:3},{value:"lastReachedPage?",id:"lastreachedpage",level:3},{value:"logger?",id:"logger",level:3},{value:"management?",id:"management",level:3},{value:"missing?",id:"missing",level:3},{value:"missingShortcut?",id:"missingshortcut",level:3},{value:"missingShortcut.dontKnow",id:"missingshortcutdontknow",level:3},{value:"missingShortcut.refused",id:"missingshortcutrefused",level:3},{value:"missingStrategy()?",id:"missingstrategy",level:3},{value:"Returns",id:"returns-1",level:4},{value:"onChange?",id:"onchange",level:3},{value:"onVariableChange()?",id:"onvariablechange",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"preferences?",id:"preferences",level:3},{value:"refusedButton?",id:"refusedbutton",level:3},{value:"savingType?",id:"savingtype",level:3},{value:"shortcut?",id:"shortcut",level:3},{value:"trackChanges?",id:"trackchanges",level:3},{value:"withOverview?",id:"withoverview",level:3},{value:"Defined in",id:"defined-in",level:2}];function a(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"type-alias-lunaticoptions",children:"Type Alias: LunaticOptions"})}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"LunaticOptions"}),": ",(0,l.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Specific behaviour options defined in the ",(0,l.jsx)(n.a,{href:"/Lunatic/docs/api/functions/useLunatic",children:"useLunatic"})," hook."]}),"\n",(0,l.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,l.jsx)(n.h3,{id:"activecontrols",children:"activeControls?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"activeControls"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable data controls (form validation). (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"autosuggesterloading",children:"autoSuggesterLoading?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"autoSuggesterLoading"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable the preemptive loading of suggester data on Lunatic initialization. (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"componentsoptions",children:"componentsOptions?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"componentsOptions"}),": ",(0,l.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"componentsoptionsdetailalwaysdisplayed",children:"componentsOptions.detailAlwaysDisplayed?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"detailAlwaysDisplayed"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"disablefilters",children:"disableFilters?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"disableFilters"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Ignore filters. (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"dontknowbutton",children:"dontKnowButton?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"dontKnowButton"}),": ",(0,l.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:'"Don\'t know" button label.'}),"\n",(0,l.jsx)(n.h3,{id:"features",children:"features?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"features"}),": (",(0,l.jsx)(n.code,{children:'"MD"'})," | ",(0,l.jsx)(n.code,{children:'"VTL"'}),")[]"]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Enable VTL and Markdown support."}),"\n",(0,l.jsx)(n.h3,{id:"getreferentiel",children:"getReferentiel()?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"getReferentiel"}),": (",(0,l.jsx)(n.code,{children:"name"}),") => ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"IndexEntry"}),"[]>"]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Function called to fetch nomenclatures used by the suggesters."}),"\n",(0,l.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{children:"Parameter"}),(0,l.jsx)(n.th,{children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"name"})}),(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"IndexEntry"}),"[]>"]}),"\n",(0,l.jsx)(n.h3,{id:"initialpage",children:"initialPage?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"initialPage"}),": ",(0,l.jsx)(n.code,{children:"PageTag"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Starting page at launch. (default: ",(0,l.jsx)(n.code,{children:'"1"'}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"lastreachedpage",children:"lastReachedPage?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"lastReachedPage"}),": ",(0,l.jsx)(n.code,{children:"PageTag"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Furthest page the user ever reached."}),"\n",(0,l.jsx)(n.h3,{id:"logger",children:"logger?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"logger"}),": ",(0,l.jsx)(n.code,{children:"LunaticLogger"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"management",children:"management?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"management"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Not yet implemented."}),"\n",(0,l.jsx)(n.p,{children:"Enable management mode which allow to handle multiple states of the same variable (used by recovery positions)."}),"\n",(0,l.jsxs)(n.p,{children:["The administrator can switch between ",(0,l.jsx)(n.code,{children:"COLLECTED"}),", ",(0,l.jsx)(n.code,{children:"EDITED"}),", ",(0,l.jsx)(n.code,{children:"INPUTTED"})," modes. (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"missing",children:"missing?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"missing"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable missing system. (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"missingshortcut",children:"missingShortcut?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"missingShortcut"}),": ",(0,l.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Keyboard shortcut that triggers missing buttons."}),"\n",(0,l.jsx)(n.h3,{id:"missingshortcutdontknow",children:"missingShortcut.dontKnow"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"dontKnow"}),": ",(0,l.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"missingshortcutrefused",children:"missingShortcut.refused"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"refused"}),": ",(0,l.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"missingstrategy",children:"missingStrategy()?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"missingStrategy"}),": () => ",(0,l.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:"Function triggered when a missing button is clicked."}),"\n",(0,l.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.code,{children:"void"})}),"\n",(0,l.jsx)(n.h3,{id:"onchange",children:"onChange?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"onChange"}),": ",(0,l.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticChangesHandler",children:(0,l.jsx)(n.code,{children:"LunaticChangesHandler"})})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Function called when a variable is changed by a user input (must be memoized as it is used in dependency of a ",(0,l.jsx)(n.code,{children:"useCallback"})," by the library)."]}),"\n",(0,l.jsx)(n.h3,{id:"onvariablechange",children:"onVariableChange()?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"onVariableChange"}),": (",(0,l.jsx)(n.code,{children:"event"}),") => ",(0,l.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{children:"Parameter"}),(0,l.jsx)(n.th,{children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{children:(0,l.jsx)(n.code,{children:"event"})}),(0,l.jsxs)(n.td,{children:[(0,l.jsx)(n.code,{children:"LunaticVariablesStoreEvents"}),"[",(0,l.jsx)(n.code,{children:'"change"'}),"]"]})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.code,{children:"void"})}),"\n",(0,l.jsx)(n.h3,{id:"preferences",children:"preferences?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"preferences"}),": [",(0,l.jsx)(n.code,{children:'"COLLECTED"'}),"]"]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"refusedbutton",children:"refusedButton?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"refusedButton"}),": ",(0,l.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,l.jsx)(n.p,{children:'"Refused" button label.'}),"\n",(0,l.jsx)(n.h3,{id:"savingtype",children:"savingType?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"savingType"}),": ",(0,l.jsx)(n.code,{children:'"COLLECTED"'})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Key in which the data is saved. (default: ",(0,l.jsx)(n.code,{children:'"COLLECTED"'}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"shortcut",children:"shortcut?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"shortcut"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable keyboard shortcuts for checkboxes, radio buttons and missing buttons (default: ",(0,l.jsx)(n.code,{children:"false"}),")."]}),"\n",(0,l.jsx)(n.h3,{id:"trackchanges",children:"trackChanges?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"trackChanges"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable change tracking to keep a track of what variable changed (allow using getChangedData()). (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h3,{id:"withoverview",children:"withOverview?"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"optional"})," ",(0,l.jsx)(n.strong,{children:"withOverview"}),": ",(0,l.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:["Enable overview system. (default: ",(0,l.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,l.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L190",children:"src/use-lunatic/type.ts:190"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(a,{...e})}):a(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>c});var i=s(6540);const l={},t=i.createContext(l);function d(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:d(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/4485.ec35ec73.js b/website/assets/js/4485.ec35ec73.js new file mode 100644 index 000000000..e9a25425a --- /dev/null +++ b/website/assets/js/4485.ec35ec73.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4485],{5937:(t,e,s)=>{s.d(e,{A:()=>i});var n=s(2453),r=s(4886);const i=(t,e)=>n.A.lang.round(r.A.parse(t)[e])},6474:(t,e,s)=>{s.d(e,{A:()=>i,P:()=>u});var n=s(9),r=s(7),i=(0,n.K2)(((t,e)=>{let s;"sandbox"===e&&(s=(0,r.Ltv)("#i"+t));return("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)}),"getDiagramElement"),u=(0,n.K2)(((t,e,s,r)=>{t.attr("class",s);const{width:i,height:u,x:c,y:l}=a(t,e);(0,n.a$)(t,u,i,r);const h=o(c,l,i,u,e);t.attr("viewBox",h),n.Rm.debug(`viewBox configured: ${h} with padding: ${e}`)}),"setupViewPortForSVG"),a=(0,n.K2)(((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}}),"calculateDimensionsWithPadding"),o=(0,n.K2)(((t,e,s,n,r)=>`${t-r} ${e-r} ${s} ${n}`),"createViewBox")},4485:(t,e,s)=>{s.d(e,{diagram:()=>Dt});var n,r,i=s(6474),u=s(9874),a=s(7308),o=(s(7938),s(1282)),c=(s(4532),s(7588),s(3115),s(483),s(540)),l=s(9),h=s(7),d=s(5937),p=s(5582),A=0,g=(0,l.D7)(),f=new Map,y=[],k=new Map,b=[],E=new Map,m=new Map,D=0,x=!0,C=[],T=(0,l.K2)((t=>l.Y2.sanitizeText(t,g)),"sanitizeText"),S=(0,l.K2)((function(t){for(const e of f.values())if(e.id===t)return e.domId;return t}),"lookUpDomId"),F=(0,l.K2)((function(t,e,s,n,r,i,a={},c){if(!t||0===t.trim().length)return;let h,d=f.get(t);if(void 0===d&&(d={id:t,labelType:"text",domId:"flowchart-"+t+"-"+A,styles:[],classes:[]},f.set(t,d)),A++,void 0!==e?(g=(0,l.D7)(),h=T(e.text.trim()),d.labelType=e.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),d.text=h):void 0===d.text&&(d.text=t),void 0!==s&&(d.type=s),null!=n&&n.forEach((function(t){d.styles.push(t)})),null!=r&&r.forEach((function(t){d.classes.push(t)})),void 0!==i&&(d.dir=i),void 0===d.props?d.props=a:void 0!==a&&Object.assign(d.props,a),void 0!==c){let e;e=c.includes("\n")?c+"\n":"{\n"+c+"\n}";const s=(0,u.H)(e,{schema:u.r});if(s.shape){if(s.shape!==s.shape.toLowerCase()||s.shape.includes("_"))throw new Error(`No such shape: ${s.shape}. Shape names should be lowercase.`);if(!(0,o.aP)(s.shape))throw new Error(`No such shape: ${s.shape}.`);d.type=s?.shape}s?.label&&(d.text=s?.label),s?.icon&&(d.icon=s?.icon,s.label?.trim()||d.text!==t||(d.text="")),s?.form&&(d.form=s?.form),s?.pos&&(d.pos=s?.pos),s?.img&&(d.img=s?.img,s.label?.trim()||d.text!==t||(d.text="")),s?.constraint&&(d.constraint=s.constraint),s.w&&(d.assetWidth=Number(s.w)),s.h&&(d.assetHeight=Number(s.h))}}),"addVertex"),_=(0,l.K2)((function(t,e,s){const n={start:t,end:e,type:void 0,text:"",labelType:"text"};l.Rm.info("abc78 Got edge...",n);const r=s.text;if(void 0!==r&&(n.text=T(r.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=r.type),void 0!==s&&(n.type=s.type,n.stroke=s.stroke,n.length=s.length>10?10:s.length),!(y.length<(g.maxEdges??500)))throw new Error(`Edge limit exceeded. ${y.length} edges found, but the limit is ${g.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);l.Rm.info("Pushing edge..."),y.push(n)}),"addSingleLink"),B=(0,l.K2)((function(t,e,s){l.Rm.info("addLink",t,e,s);for(const n of t)for(const t of e)_(n,t,s)}),"addLink"),v=(0,l.K2)((function(t,e){t.forEach((function(t){"default"===t?y.defaultInterpolate=e:y[t].interpolate=e}))}),"updateLinkInterpolate"),w=(0,l.K2)((function(t,e){t.forEach((function(t){if("number"==typeof t&&t>=y.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${y.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?y.defaultStyle=e:(y[t].style=e,(y[t]?.style?.length??0)>0&&!y[t]?.style?.some((t=>t?.startsWith("fill")))&&y[t]?.style?.push("fill:none"))}))}),"updateLink"),$=(0,l.K2)((function(t,e){t.split(",").forEach((function(t){let s=k.get(t);void 0===s&&(s={id:t,styles:[],textStyles:[]},k.set(t,s)),null!=e&&e.forEach((function(t){if(/color/.exec(t)){const e=t.replace("fill","bgFill");s.textStyles.push(e)}s.styles.push(t)}))}))}),"addClass"),L=(0,l.K2)((function(t){/.*</.exec(n=t)&&(n="RL"),/.*\^/.exec(n)&&(n="BT"),/.*>/.exec(n)&&(n="LR"),/.*v/.exec(n)&&(n="TB"),"TD"===n&&(n="TB")}),"setDirection"),R=(0,l.K2)((function(t,e){for(const s of t.split(",")){const t=f.get(s);t&&t.classes.push(e);const n=E.get(s);n&&n.classes.push(e)}}),"setClass"),I=(0,l.K2)((function(t,e){if(void 0!==e){e=T(e);for(const s of t.split(","))m.set("gen-1"===r?S(s):s,e)}}),"setTooltip"),K=(0,l.K2)((function(t,e,s){const n=S(t);if("loose"!==(0,l.D7)().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof s){r=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t);const i=f.get(t);i&&(i.haveCallback=!0,C.push((function(){const t=document.querySelector(`[id="${n}"]`);null!==t&&t.addEventListener("click",(function(){c._K.runFunc(e,...r)}),!1)})))}),"setClickFun"),N=(0,l.K2)((function(t,e,s){t.split(",").forEach((function(t){const n=f.get(t);void 0!==n&&(n.link=c._K.formatUrl(e,g),n.linkTarget=s)})),R(t,"clickable")}),"setLink"),P=(0,l.K2)((function(t){return m.get(t)}),"getTooltip"),O=(0,l.K2)((function(t,e,s){t.split(",").forEach((function(t){K(t,e,s)})),R(t,"clickable")}),"setClickEvent"),M=(0,l.K2)((function(t){C.forEach((function(e){e(t)}))}),"bindFunctions"),V=(0,l.K2)((function(){return n.trim()}),"getDirection"),U=(0,l.K2)((function(){return f}),"getVertices"),G=(0,l.K2)((function(){return y}),"getEdges"),W=(0,l.K2)((function(){return k}),"getClasses"),Y=(0,l.K2)((function(t){let e=(0,h.Ltv)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=(0,h.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0));(0,h.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=(0,h.Ltv)(this);if(null===t.attr("title"))return;const s=this?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+s.left+(s.right-s.left)/2+"px").style("top",window.scrollY+s.bottom+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);(0,h.Ltv)(this).classed("hover",!1)}))}),"setupToolTips");C.push(Y);var j=(0,l.K2)((function(t="gen-1"){f=new Map,k=new Map,y=[],C=[Y],b=[],E=new Map,D=0,m=new Map,x=!0,r=t,g=(0,l.D7)(),(0,l.IU)()}),"clear"),X=(0,l.K2)((t=>{r=t||"gen-2"}),"setGen"),z=(0,l.K2)((function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}),"defaultStyle"),H=(0,l.K2)((function(t,e,s){let n=t.text.trim(),i=s.text;function u(t){const e={boolean:{},number:{},string:{}},s=[];let n;return{nodeList:t.filter((function(t){const r=typeof t;return t.stmt&&"dir"===t.stmt?(n=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!s.includes(t)&&s.push(t))})),dir:n}}t===s&&/\s/.exec(s.text)&&(n=void 0),(0,l.K2)(u,"uniq");const{nodeList:a,dir:o}=u(e.flat());if("gen-1"===r)for(let r=0;r<a.length;r++)a[r]=S(a[r]);n=n??"subGraph"+D,i=i||"",i=T(i),D+=1;const c={id:n,nodes:a,title:i.trim(),classes:[],dir:o,labelType:s.type};return l.Rm.info("Adding",c.id,c.nodes,c.dir),c.nodes=ct(c,b).nodes,b.push(c),E.set(n,c),n}),"addSubGraph"),q=(0,l.K2)((function(t){for(const[e,s]of b.entries())if(s.id===t)return e;return-1}),"getPosForId"),Q=-1,Z=[],J=(0,l.K2)((function(t,e){const s=b[e].nodes;if((Q+=1)>2e3)return{result:!1,count:0};if(Z[Q]=e,b[e].id===t)return{result:!0,count:0};let n=0,r=1;for(;n<s.length;){const e=q(s[n]);if(e>=0){const s=J(t,e);if(s.result)return{result:!0,count:r+s.count};r+=s.count}n+=1}return{result:!1,count:r}}),"indexNodes2"),tt=(0,l.K2)((function(t){return Z[t]}),"getDepthFirstPos"),et=(0,l.K2)((function(){Q=-1,b.length>0&&J("none",b.length-1)}),"indexNodes"),st=(0,l.K2)((function(){return b}),"getSubGraphs"),nt=(0,l.K2)((()=>!!x&&(x=!1,!0)),"firstGraph"),rt=(0,l.K2)((t=>{let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let n="normal";return e.includes("=")&&(n="thick"),e.includes(".")&&(n="dotted"),{type:s,stroke:n}}),"destructStartLink"),it=(0,l.K2)(((t,e)=>{const s=e.length;let n=0;for(let r=0;r<s;++r)e[r]===t&&++n;return n}),"countChar"),ut=(0,l.K2)((t=>{const e=t.trim();let s=e.slice(0,-1),n="arrow_open";switch(e.slice(-1)){case"x":n="arrow_cross",e.startsWith("x")&&(n="double_"+n,s=s.slice(1));break;case">":n="arrow_point",e.startsWith("<")&&(n="double_"+n,s=s.slice(1));break;case"o":n="arrow_circle",e.startsWith("o")&&(n="double_"+n,s=s.slice(1))}let r="normal",i=s.length-1;s.startsWith("=")&&(r="thick"),s.startsWith("~")&&(r="invisible");const u=it(".",s);return u&&(r="dotted",i=u),{type:n,stroke:r,length:i}}),"destructEndLink"),at=(0,l.K2)(((t,e)=>{const s=ut(t);let n;if(e){if(n=rt(e),n.stroke!==s.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=s.type;else{if(n.type!==s.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=s.length,n}return s}),"destructLink"),ot=(0,l.K2)(((t,e)=>{for(const s of t)if(s.nodes.includes(e))return!0;return!1}),"exists"),ct=(0,l.K2)(((t,e)=>{const s=[];return t.nodes.forEach(((n,r)=>{ot(e,n)||s.push(t.nodes[r])})),{nodes:s}}),"makeUniq"),lt={firstGraph:nt},ht=(0,l.K2)((t=>{if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}),"getTypeFromVertex"),dt=(0,l.K2)(((t,e)=>t.find((t=>t.id===e))),"findNode"),pt=(0,l.K2)((t=>{let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}),"destructEdgeType"),At=(0,l.K2)(((t,e,s,n,r,i)=>{const u=s.get(t.id),a=n.get(t.id)??!1,o=dt(e,t.id);if(o)o.cssStyles=t.styles,o.cssCompiledStyles=gt(t.classes),o.cssClasses=t.classes.join(" ");else{const s={id:t.id,label:t.text,labelStyle:"",parentId:u,padding:r.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:gt(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:i,link:t.link,linkTarget:t.linkTarget,tooltip:P(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};a?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:ht(t)})}}),"addNodeFromVertex");function gt(t){let e=[];for(const s of t){const t=k.get(s);t?.styles&&(e=[...e,...t.styles??[]].map((t=>t.trim()))),t?.textStyles&&(e=[...e,...t.textStyles??[]].map((t=>t.trim())))}return e}(0,l.K2)(gt,"getCompiledStyles");var ft=(0,l.K2)((()=>{const t=(0,l.D7)(),e=[],s=[],n=st(),r=new Map,i=new Map;for(let a=n.length-1;a>=0;a--){const t=n[a];t.nodes.length>0&&i.set(t.id,!0);for(const e of t.nodes)r.set(e,t.id)}for(let a=n.length-1;a>=0;a--){const s=n[a];e.push({id:s.id,label:s.title,labelStyle:"",parentId:r.get(s.id),padding:8,cssCompiledStyles:gt(s.classes),cssClasses:s.classes.join(" "),shape:"rect",dir:s.dir,isGroup:!0,look:t.look})}U().forEach((s=>{At(s,e,r,i,t,t.look||"classic")}));const u=G();return u.forEach(((e,n)=>{const{arrowTypeStart:r,arrowTypeEnd:i}=pt(e.type),a=[...u.defaultStyle??[]];e.style&&a.push(...e.style);const o={id:(0,c.rY)(e.start,e.end,{counter:n,prefix:"L"}),start:e.start,end:e.end,type:e.type??"normal",label:e.text,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke?"none":r,arrowTypeEnd:"invisible"===e?.stroke?"none":i,arrowheadStyle:"fill: #333",labelStyle:a,style:a,pattern:e.stroke,look:t.look};s.push(o)})),{nodes:e,edges:s,other:{},config:t}}),"getData"),yt={defaultConfig:(0,l.K2)((()=>l.ME.flowchart),"defaultConfig"),setAccTitle:l.SV,getAccTitle:l.iN,getAccDescription:l.m7,getData:ft,setAccDescription:l.EI,addVertex:F,lookUpDomId:S,addLink:B,updateLinkInterpolate:v,updateLink:w,addClass:$,setDirection:L,setClass:R,setTooltip:I,getTooltip:P,setClickEvent:O,setLink:N,bindFunctions:M,getDirection:V,getVertices:U,getEdges:G,getClasses:W,clear:j,setGen:X,defaultStyle:z,addSubGraph:H,getDepthFirstPos:tt,indexNodes:et,getSubGraphs:st,destructLink:at,lex:lt,exists:ot,makeUniq:ct,setDiagramTitle:l.ke,getDiagramTitle:l.ab},kt={getClasses:(0,l.K2)((function(t,e){return e.db.getClasses()}),"getClasses"),draw:(0,l.K2)((async function(t,e,s,n){l.Rm.info("REF0:"),l.Rm.info("Drawing state diagram (v2)",e);const{securityLevel:r,flowchart:u,layout:o}=(0,l.D7)();let d;"sandbox"===r&&(d=(0,h.Ltv)("#i"+e));const p="sandbox"===r?d.nodes()[0].contentDocument:document;l.Rm.debug("Before getData: ");const A=n.db.getData();l.Rm.debug("Data: ",A);const g=(0,i.A)(e,r),f=V();A.type=n.type,A.layoutAlgorithm=(0,a.q7)(o),"dagre"===A.layoutAlgorithm&&"elk"===o&&l.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),A.direction=f,A.nodeSpacing=u?.nodeSpacing||50,A.rankSpacing=u?.rankSpacing||50,A.markers=["point","circle","cross"],A.diagramId=e,l.Rm.debug("REF1:",A),await(0,a.XX)(A,g);const y=A.config.flowchart?.diagramPadding??8;c._K.insertTitle(g,"flowchartTitleText",u?.titleTopMargin||0,n.db.getDiagramTitle()),(0,i.P)(g,y,"flowchart",u?.useMaxWidth||!1);for(const i of A.nodes){const t=(0,h.Ltv)(`#${e} [id="${i.id}"]`);if(!t||!i.link)continue;const s=p.createElementNS("http://www.w3.org/2000/svg","a");s.setAttributeNS("http://www.w3.org/2000/svg","class",i.cssClasses),s.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===r?s.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):i.linkTarget&&s.setAttributeNS("http://www.w3.org/2000/svg","target",i.linkTarget);const n=t.insert((function(){return s}),":first-child"),u=t.select(".label-container");u&&n.append((function(){return u.node()}));const a=t.select(".label");a&&n.append((function(){return a.node()}))}}),"draw")},bt=function(){var t=(0,l.K2)((function(t,e,s,n){for(s=s||{},n=t.length;n--;s[t[n]]=e);return s}),"o"),e=[1,4],s=[1,3],n=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],i=[2,2],u=[1,13],a=[1,14],o=[1,15],c=[1,16],h=[1,23],d=[1,25],p=[1,26],A=[1,27],g=[1,49],f=[1,48],y=[1,29],k=[1,30],b=[1,31],E=[1,32],m=[1,33],D=[1,44],x=[1,46],C=[1,42],T=[1,47],S=[1,43],F=[1,50],_=[1,45],B=[1,51],v=[1,52],w=[1,34],$=[1,35],L=[1,36],R=[1,37],I=[1,57],K=[1,8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],N=[1,61],P=[1,60],O=[1,62],M=[8,9,11,75,77],V=[1,77],U=[1,90],G=[1,95],W=[1,94],Y=[1,91],j=[1,87],X=[1,93],z=[1,89],H=[1,96],q=[1,92],Q=[1,97],Z=[1,88],J=[8,9,10,11,40,75,77],tt=[8,9,10,11,40,46,75,77],et=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,88,101,104,105,108,110,113,114,115],st=[8,9,11,44,60,75,77,88,101,104,105,108,110,113,114,115],nt=[44,60,88,101,104,105,108,110,113,114,115],rt=[1,123],it=[1,122],ut=[1,130],at=[1,144],ot=[1,145],ct=[1,146],lt=[1,147],ht=[1,132],dt=[1,134],pt=[1,138],At=[1,139],gt=[1,140],ft=[1,141],yt=[1,142],kt=[1,143],bt=[1,148],Et=[1,149],mt=[1,128],Dt=[1,129],xt=[1,136],Ct=[1,131],Tt=[1,135],St=[1,133],Ft=[8,9,10,11,27,32,34,36,38,44,60,83,84,85,86,87,88,101,104,105,108,110,113,114,115,120,121,122,123],_t=[1,151],Bt=[1,153],vt=[8,9,11],wt=[8,9,10,11,14,44,60,88,104,105,108,110,113,114,115],$t=[1,173],Lt=[1,169],Rt=[1,170],It=[1,174],Kt=[1,171],Nt=[1,172],Pt=[77,115,118],Ot=[8,9,10,11,12,14,27,29,32,44,60,75,83,84,85,86,87,88,89,104,108,110,113,114,115],Mt=[10,105],Vt=[31,49,51,53,55,57,62,64,66,67,69,71,115,116,117],Ut=[1,242],Gt=[1,240],Wt=[1,244],Yt=[1,238],jt=[1,239],Xt=[1,241],zt=[1,243],Ht=[1,245],qt=[1,263],Qt=[8,9,11,105],Zt=[8,9,10,11,60,83,104,105,108,109,110,111],Jt={trace:(0,l.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,edgeTextToken:78,STR:79,MD_STR:80,textToken:81,keywords:82,STYLE:83,LINKSTYLE:84,CLASSDEF:85,CLASS:86,CLICK:87,DOWN:88,UP:89,textNoTagsToken:90,stylesOpt:91,"idString[vertex]":92,"idString[class]":93,CALLBACKNAME:94,CALLBACKARGS:95,HREF:96,LINK_TARGET:97,"STR[link]":98,"STR[tooltip]":99,alphaNum:100,DEFAULT:101,numList:102,INTERPOLATE:103,NUM:104,COMMA:105,style:106,styleComponent:107,NODE_STRING:108,UNIT:109,BRKT:110,PCT:111,idStringToken:112,MINUS:113,MULT:114,UNICODE_TEXT:115,TEXT:116,TAGSTART:117,EDGE_TEXT:118,alphaNumToken:119,direction_tb:120,direction_bt:121,direction_rl:122,direction_lr:123,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",79:"STR",80:"MD_STR",83:"STYLE",84:"LINKSTYLE",85:"CLASSDEF",86:"CLASS",87:"CLICK",88:"DOWN",89:"UP",92:"idString[vertex]",93:"idString[class]",94:"CALLBACKNAME",95:"CALLBACKARGS",96:"HREF",97:"LINK_TARGET",98:"STR[link]",99:"STR[tooltip]",101:"DEFAULT",103:"INTERPOLATE",104:"NUM",105:"COMMA",108:"NODE_STRING",109:"UNIT",110:"BRKT",111:"PCT",113:"MINUS",114:"MULT",115:"UNICODE_TEXT",116:"TEXT",117:"TAGSTART",118:"EDGE_TEXT",120:"direction_tb",121:"direction_bt",122:"direction_rl",123:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[76,1],[76,2],[76,1],[76,1],[72,1],[73,3],[30,1],[30,2],[30,1],[30,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[102,1],[102,3],[91,1],[91,3],[106,1],[106,2],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[107,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[81,1],[81,1],[81,1],[81,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[90,1],[78,1],[78,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[119,1],[47,1],[47,2],[100,1],[100,2],[33,1],[33,1],[33,1],[33,1]],performAction:(0,l.K2)((function(t,e,s,n,r,i,u){var a=i.length-1;switch(r){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(i[a])||i[a].length>0)&&i[a-1].push(i[a]),this.$=i[a-1];break;case 4:case 181:case 44:case 54:case 76:case 179:this.$=i[a];break;case 11:n.setDirection("TB"),this.$="TB";break;case 12:n.setDirection(i[a-1]),this.$=i[a-1];break;case 27:this.$=i[a-1].nodes;break;case 33:this.$=n.addSubGraph(i[a-6],i[a-1],i[a-4]);break;case 34:this.$=n.addSubGraph(i[a-3],i[a-1],i[a-3]);break;case 35:this.$=n.addSubGraph(void 0,i[a-1],void 0);break;case 37:this.$=i[a].trim(),n.setAccTitle(this.$);break;case 38:case 39:this.$=i[a].trim(),n.setAccDescription(this.$);break;case 43:case 131:this.$=i[a-1]+i[a];break;case 45:n.addVertex(i[a-1][0],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),n.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 46:n.addLink(i[a-2].stmt,i[a],i[a-1]),this.$={stmt:i[a],nodes:i[a].concat(i[a-2].nodes)};break;case 47:n.addLink(i[a-3].stmt,i[a-1],i[a-2]),this.$={stmt:i[a-1],nodes:i[a-1].concat(i[a-3].nodes)};break;case 48:this.$={stmt:i[a-1],nodes:i[a-1]};break;case 49:n.addVertex(i[a-1][0],void 0,void 0,void 0,void 0,void 0,void 0,i[a]),this.$={stmt:i[a-1],nodes:i[a-1],shapeData:i[a]};break;case 50:this.$={stmt:i[a],nodes:i[a]};break;case 51:case 126:case 128:this.$=[i[a]];break;case 52:n.addVertex(i[a-5][0],void 0,void 0,void 0,void 0,void 0,void 0,i[a-4]),this.$=i[a-5].concat(i[a]);break;case 53:this.$=i[a-4].concat(i[a]);break;case 55:this.$=i[a-2],n.setClass(i[a-2],i[a]);break;case 56:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"square");break;case 57:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"doublecircle");break;case 58:this.$=i[a-5],n.addVertex(i[a-5],i[a-2],"circle");break;case 59:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"ellipse");break;case 60:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"stadium");break;case 61:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"subroutine");break;case 62:this.$=i[a-7],n.addVertex(i[a-7],i[a-1],"rect",void 0,void 0,void 0,Object.fromEntries([[i[a-5],i[a-3]]]));break;case 63:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"cylinder");break;case 64:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"round");break;case 65:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"diamond");break;case 66:this.$=i[a-5],n.addVertex(i[a-5],i[a-2],"hexagon");break;case 67:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"odd");break;case 68:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"trapezoid");break;case 69:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"inv_trapezoid");break;case 70:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"lean_right");break;case 71:this.$=i[a-3],n.addVertex(i[a-3],i[a-1],"lean_left");break;case 72:this.$=i[a],n.addVertex(i[a]);break;case 73:i[a-1].text=i[a],this.$=i[a-1];break;case 74:case 75:i[a-2].text=i[a-1],this.$=i[a-2];break;case 77:var o=n.destructLink(i[a],i[a-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:i[a-1]};break;case 78:case 84:case 99:case 101:this.$={text:i[a],type:"text"};break;case 79:case 85:case 100:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 80:case 86:this.$={text:i[a],type:"string"};break;case 81:case 87:case 102:this.$={text:i[a],type:"markdown"};break;case 82:o=n.destructLink(i[a]);this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 83:this.$=i[a-1];break;case 103:this.$=i[a-4],n.addClass(i[a-2],i[a]);break;case 104:this.$=i[a-4],n.setClass(i[a-2],i[a]);break;case 105:case 113:this.$=i[a-1],n.setClickEvent(i[a-1],i[a]);break;case 106:case 114:this.$=i[a-3],n.setClickEvent(i[a-3],i[a-2]),n.setTooltip(i[a-3],i[a]);break;case 107:this.$=i[a-2],n.setClickEvent(i[a-2],i[a-1],i[a]);break;case 108:this.$=i[a-4],n.setClickEvent(i[a-4],i[a-3],i[a-2]),n.setTooltip(i[a-4],i[a]);break;case 109:this.$=i[a-2],n.setLink(i[a-2],i[a]);break;case 110:this.$=i[a-4],n.setLink(i[a-4],i[a-2]),n.setTooltip(i[a-4],i[a]);break;case 111:this.$=i[a-4],n.setLink(i[a-4],i[a-2],i[a]);break;case 112:this.$=i[a-6],n.setLink(i[a-6],i[a-4],i[a]),n.setTooltip(i[a-6],i[a-2]);break;case 115:this.$=i[a-1],n.setLink(i[a-1],i[a]);break;case 116:this.$=i[a-3],n.setLink(i[a-3],i[a-2]),n.setTooltip(i[a-3],i[a]);break;case 117:this.$=i[a-3],n.setLink(i[a-3],i[a-2],i[a]);break;case 118:this.$=i[a-5],n.setLink(i[a-5],i[a-4],i[a]),n.setTooltip(i[a-5],i[a-2]);break;case 119:this.$=i[a-4],n.addVertex(i[a-2],void 0,void 0,i[a]);break;case 120:this.$=i[a-4],n.updateLink([i[a-2]],i[a]);break;case 121:this.$=i[a-4],n.updateLink(i[a-2],i[a]);break;case 122:this.$=i[a-8],n.updateLinkInterpolate([i[a-6]],i[a-2]),n.updateLink([i[a-6]],i[a]);break;case 123:this.$=i[a-8],n.updateLinkInterpolate(i[a-6],i[a-2]),n.updateLink(i[a-6],i[a]);break;case 124:this.$=i[a-6],n.updateLinkInterpolate([i[a-4]],i[a]);break;case 125:this.$=i[a-6],n.updateLinkInterpolate(i[a-4],i[a]);break;case 127:case 129:i[a-2].push(i[a]),this.$=i[a-2];break;case 180:case 182:this.$=i[a-1]+""+i[a];break;case 183:this.$={stmt:"dir",value:"TB"};break;case 184:this.$={stmt:"dir",value:"BT"};break;case 185:this.$={stmt:"dir",value:"RL"};break;case 186:this.$={stmt:"dir",value:"LR"}}}),"anonymous"),table:[{3:1,4:2,9:e,10:s,12:n},{1:[3]},t(r,i,{5:6}),{4:7,9:e,10:s,12:n},{4:8,9:e,10:s,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:a,10:o,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:k,85:b,86:E,87:m,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:R},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,54],9:[1,55],10:I,15:53,18:56},t(K,[2,3]),t(K,[2,4]),t(K,[2,5]),t(K,[2,6]),t(K,[2,7]),t(K,[2,8]),{8:N,9:P,11:O,21:58,41:59,72:63,75:[1,64],77:[1,65]},{8:N,9:P,11:O,21:66},{8:N,9:P,11:O,21:67},{8:N,9:P,11:O,21:68},{8:N,9:P,11:O,21:69},{8:N,9:P,11:O,21:70},{8:N,9:P,10:[1,71],11:O,21:72},t(K,[2,36]),{35:[1,73]},{37:[1,74]},t(K,[2,39]),t(M,[2,50],{18:75,39:76,10:I,40:V}),{10:[1,78]},{10:[1,79]},{10:[1,80]},{10:[1,81]},{14:U,44:G,60:W,79:[1,85],88:Y,94:[1,82],96:[1,83],100:84,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z,119:86},t(K,[2,183]),t(K,[2,184]),t(K,[2,185]),t(K,[2,186]),t(J,[2,51]),t(J,[2,54],{46:[1,98]}),t(tt,[2,72],{112:111,29:[1,99],44:g,48:[1,100],50:[1,101],52:[1,102],54:[1,103],56:[1,104],58:[1,105],60:f,63:[1,106],65:[1,107],67:[1,108],68:[1,109],70:[1,110],88:D,101:x,104:C,105:T,108:S,110:F,113:_,114:B,115:v}),t(et,[2,179]),t(et,[2,140]),t(et,[2,141]),t(et,[2,142]),t(et,[2,143]),t(et,[2,144]),t(et,[2,145]),t(et,[2,146]),t(et,[2,147]),t(et,[2,148]),t(et,[2,149]),t(et,[2,150]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,112]},t(st,[2,26],{18:113,10:I}),t(K,[2,27]),{42:114,43:38,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(nt,[2,76],{73:115,62:[1,117],74:[1,116]}),{76:118,78:119,79:[1,120],80:[1,121],115:rt,118:it},t([44,60,62,74,88,101,104,105,108,110,113,114,115],[2,82]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),{10:ut,12:at,14:ot,27:ct,28:124,32:lt,44:ht,60:dt,75:pt,79:[1,126],80:[1,127],82:137,83:At,84:gt,85:ft,86:yt,87:kt,88:bt,89:Et,90:125,104:mt,108:Dt,110:xt,113:Ct,114:Tt,115:St},t(Ft,i,{5:150}),t(K,[2,37]),t(K,[2,38]),t(M,[2,48],{44:_t}),t(M,[2,49],{18:152,10:I,40:Bt}),t(J,[2,44]),{44:g,47:154,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},{101:[1,155],102:156,104:[1,157]},{44:g,47:158,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},{44:g,47:159,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},t(vt,[2,105],{10:[1,160],95:[1,161]}),{79:[1,162]},t(vt,[2,113],{119:164,10:[1,163],14:U,44:G,60:W,88:Y,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z}),t(vt,[2,115],{10:[1,165]}),t(wt,[2,181]),t(wt,[2,168]),t(wt,[2,169]),t(wt,[2,170]),t(wt,[2,171]),t(wt,[2,172]),t(wt,[2,173]),t(wt,[2,174]),t(wt,[2,175]),t(wt,[2,176]),t(wt,[2,177]),t(wt,[2,178]),{44:g,47:166,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},{30:167,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:175,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:177,50:[1,176],67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:178,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:179,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:180,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{108:[1,181]},{30:182,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:183,65:[1,184],67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:185,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:186,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{30:187,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},t(et,[2,180]),t(r,[2,20]),t(st,[2,25]),t(M,[2,46],{39:188,18:189,10:I,40:V}),t(nt,[2,73],{10:[1,190]}),{10:[1,191]},{30:192,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{77:[1,193],78:194,115:rt,118:it},t(Pt,[2,78]),t(Pt,[2,80]),t(Pt,[2,81]),t(Pt,[2,166]),t(Pt,[2,167]),{8:N,9:P,10:ut,11:O,12:at,14:ot,21:196,27:ct,29:[1,195],32:lt,44:ht,60:dt,75:pt,82:137,83:At,84:gt,85:ft,86:yt,87:kt,88:bt,89:Et,90:197,104:mt,108:Dt,110:xt,113:Ct,114:Tt,115:St},t(Ot,[2,99]),t(Ot,[2,101]),t(Ot,[2,102]),t(Ot,[2,155]),t(Ot,[2,156]),t(Ot,[2,157]),t(Ot,[2,158]),t(Ot,[2,159]),t(Ot,[2,160]),t(Ot,[2,161]),t(Ot,[2,162]),t(Ot,[2,163]),t(Ot,[2,164]),t(Ot,[2,165]),t(Ot,[2,88]),t(Ot,[2,89]),t(Ot,[2,90]),t(Ot,[2,91]),t(Ot,[2,92]),t(Ot,[2,93]),t(Ot,[2,94]),t(Ot,[2,95]),t(Ot,[2,96]),t(Ot,[2,97]),t(Ot,[2,98]),{6:11,7:12,8:u,9:a,10:o,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,198],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:k,85:b,86:E,87:m,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:R},{10:I,18:199},{44:[1,200]},t(J,[2,43]),{10:[1,201],44:g,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:111,113:_,114:B,115:v},{10:[1,202]},{10:[1,203],105:[1,204]},t(Mt,[2,126]),{10:[1,205],44:g,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:111,113:_,114:B,115:v},{10:[1,206],44:g,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:111,113:_,114:B,115:v},{79:[1,207]},t(vt,[2,107],{10:[1,208]}),t(vt,[2,109],{10:[1,209]}),{79:[1,210]},t(wt,[2,182]),{79:[1,211],97:[1,212]},t(J,[2,55],{112:111,44:g,60:f,88:D,101:x,104:C,105:T,108:S,110:F,113:_,114:B,115:v}),{31:[1,213],67:$t,81:214,115:It,116:Kt,117:Nt},t(Vt,[2,84]),t(Vt,[2,86]),t(Vt,[2,87]),t(Vt,[2,151]),t(Vt,[2,152]),t(Vt,[2,153]),t(Vt,[2,154]),{49:[1,215],67:$t,81:214,115:It,116:Kt,117:Nt},{30:216,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{51:[1,217],67:$t,81:214,115:It,116:Kt,117:Nt},{53:[1,218],67:$t,81:214,115:It,116:Kt,117:Nt},{55:[1,219],67:$t,81:214,115:It,116:Kt,117:Nt},{57:[1,220],67:$t,81:214,115:It,116:Kt,117:Nt},{60:[1,221]},{64:[1,222],67:$t,81:214,115:It,116:Kt,117:Nt},{66:[1,223],67:$t,81:214,115:It,116:Kt,117:Nt},{30:224,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},{31:[1,225],67:$t,81:214,115:It,116:Kt,117:Nt},{67:$t,69:[1,226],71:[1,227],81:214,115:It,116:Kt,117:Nt},{67:$t,69:[1,229],71:[1,228],81:214,115:It,116:Kt,117:Nt},t(M,[2,45],{18:152,10:I,40:Bt}),t(M,[2,47],{44:_t}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,230],67:$t,81:214,115:It,116:Kt,117:Nt},t(nt,[2,77]),t(Pt,[2,79]),{30:231,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},t(Ft,i,{5:232}),t(Ot,[2,100]),t(K,[2,35]),{43:233,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},{10:I,18:234},{10:Ut,60:Gt,83:Wt,91:235,104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},{10:Ut,60:Gt,83:Wt,91:246,103:[1,247],104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},{10:Ut,60:Gt,83:Wt,91:248,103:[1,249],104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},{104:[1,250]},{10:Ut,60:Gt,83:Wt,91:251,104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},{44:g,47:252,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},t(vt,[2,106]),{79:[1,253]},{79:[1,254],97:[1,255]},t(vt,[2,114]),t(vt,[2,116],{10:[1,256]}),t(vt,[2,117]),t(tt,[2,56]),t(Vt,[2,85]),t(tt,[2,57]),{51:[1,257],67:$t,81:214,115:It,116:Kt,117:Nt},t(tt,[2,64]),t(tt,[2,59]),t(tt,[2,60]),t(tt,[2,61]),{108:[1,258]},t(tt,[2,63]),t(tt,[2,65]),{66:[1,259],67:$t,81:214,115:It,116:Kt,117:Nt},t(tt,[2,67]),t(tt,[2,68]),t(tt,[2,70]),t(tt,[2,69]),t(tt,[2,71]),t([10,44,60,88,101,104,105,108,110,113,114,115],[2,83]),{31:[1,260],67:$t,81:214,115:It,116:Kt,117:Nt},{6:11,7:12,8:u,9:a,10:o,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,261],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:k,85:b,86:E,87:m,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:R},t(J,[2,53]),{43:262,44:g,45:39,47:40,60:f,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v},t(vt,[2,119],{105:qt}),t(Qt,[2,128],{107:264,10:Ut,60:Gt,83:Wt,104:Yt,108:jt,109:Xt,110:zt,111:Ht}),t(Zt,[2,130]),t(Zt,[2,132]),t(Zt,[2,133]),t(Zt,[2,134]),t(Zt,[2,135]),t(Zt,[2,136]),t(Zt,[2,137]),t(Zt,[2,138]),t(Zt,[2,139]),t(vt,[2,120],{105:qt}),{10:[1,265]},t(vt,[2,121],{105:qt}),{10:[1,266]},t(Mt,[2,127]),t(vt,[2,103],{105:qt}),t(vt,[2,104],{112:111,44:g,60:f,88:D,101:x,104:C,105:T,108:S,110:F,113:_,114:B,115:v}),t(vt,[2,108]),t(vt,[2,110],{10:[1,267]}),t(vt,[2,111]),{97:[1,268]},{51:[1,269]},{62:[1,270]},{66:[1,271]},{8:N,9:P,11:O,21:272},t(K,[2,34]),t(J,[2,52]),{10:Ut,60:Gt,83:Wt,104:Yt,106:273,107:237,108:jt,109:Xt,110:zt,111:Ht},t(Zt,[2,131]),{14:U,44:G,60:W,88:Y,100:274,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z,119:86},{14:U,44:G,60:W,88:Y,100:275,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z,119:86},{97:[1,276]},t(vt,[2,118]),t(tt,[2,58]),{30:277,67:$t,79:Lt,80:Rt,81:168,115:It,116:Kt,117:Nt},t(tt,[2,66]),t(Ft,i,{5:278}),t(Qt,[2,129],{107:264,10:Ut,60:Gt,83:Wt,104:Yt,108:jt,109:Xt,110:zt,111:Ht}),t(vt,[2,124],{119:164,10:[1,279],14:U,44:G,60:W,88:Y,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z}),t(vt,[2,125],{119:164,10:[1,280],14:U,44:G,60:W,88:Y,104:j,105:X,108:z,110:H,113:q,114:Q,115:Z}),t(vt,[2,112]),{31:[1,281],67:$t,81:214,115:It,116:Kt,117:Nt},{6:11,7:12,8:u,9:a,10:o,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,282],33:24,34:d,36:p,38:A,42:28,43:38,44:g,45:39,47:40,60:f,83:y,84:k,85:b,86:E,87:m,88:D,101:x,104:C,105:T,108:S,110:F,112:41,113:_,114:B,115:v,120:w,121:$,122:L,123:R},{10:Ut,60:Gt,83:Wt,91:283,104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},{10:Ut,60:Gt,83:Wt,91:284,104:Yt,106:236,107:237,108:jt,109:Xt,110:zt,111:Ht},t(tt,[2,62]),t(K,[2,33]),t(vt,[2,122],{105:qt}),t(vt,[2,123],{105:qt})],defaultActions:{},parseError:(0,l.K2)((function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)}),"parseError"),parse:(0,l.K2)((function(t){var e=this,s=[0],n=[],r=[null],i=[],u=this.table,a="",o=0,c=0,h=0,d=i.slice.call(arguments,1),p=Object.create(this.lexer),A={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(A.yy[g]=this.yy[g]);p.setInput(t,A.yy),A.yy.lexer=p,A.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;i.push(f);var y=p.options&&p.options.ranges;function k(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof A.yy.parseError?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K2)((function(t){s.length=s.length-2*t,r.length=r.length-t,i.length=i.length-t}),"popStack"),(0,l.K2)(k,"lex");for(var b,E,m,D,x,C,T,S,F,_={};;){if(m=s[s.length-1],this.defaultActions[m]?D=this.defaultActions[m]:(null==b&&(b=k()),D=u[m]&&u[m][b]),void 0===D||!D.length||!D[0]){var B="";for(C in F=[],u[m])this.terminals_[C]&&C>2&&F.push("'"+this.terminals_[C]+"'");B=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(B,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:f,expected:F})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+b);switch(D[0]){case 1:s.push(b),r.push(p.yytext),i.push(p.yylloc),s.push(D[1]),b=null,E?(b=E,E=null):(c=p.yyleng,a=p.yytext,o=p.yylineno,f=p.yylloc,h>0&&h--);break;case 2:if(T=this.productions_[D[1]][1],_.$=r[r.length-T],_._$={first_line:i[i.length-(T||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(T||1)].first_column,last_column:i[i.length-1].last_column},y&&(_._$.range=[i[i.length-(T||1)].range[0],i[i.length-1].range[1]]),void 0!==(x=this.performAction.apply(_,[a,c,o,A.yy,D[1],r,i].concat(d))))return x;T&&(s=s.slice(0,-1*T*2),r=r.slice(0,-1*T),i=i.slice(0,-1*T)),s.push(this.productions_[D[1]][0]),r.push(_.$),i.push(_._$),S=u[s[s.length-2]][s[s.length-1]],s.push(S);break;case 3:return!0}}return!0}),"parse")},te=function(){return{EOF:1,parseError:(0,l.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,l.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,l.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,l.K2)((function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===n.length?this.yylloc.first_column:0)+n[n.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,l.K2)((function(){return this._more=!0,this}),"more"),reject:(0,l.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,l.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,l.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,l.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,l.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,l.K2)((function(t,e){var s,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1}),"test_match"),next:(0,l.K2)((function(){if(this.done)return this.EOF;var t,e,s,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if((s=this._input.match(this.rules[r[i]]))&&(!e||s[0].length>e[0].length)){if(e=s,n=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,l.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,l.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,l.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,l.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,l.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,l.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,l.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,l.K2)((function(t,e,s,n){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const s=/\n\s*/g;return e.yytext=e.yytext.replace(s,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 94;case 18:return 95;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 83;case 26:return 101;case 27:return 84;case 28:return 103;case 29:return 85;case 30:return 86;case 31:return 96;case 32:this.begin("click");break;case 34:return 87;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),12;case 38:return 27;case 39:return 32;case 40:case 41:case 42:case 43:return 97;case 44:return this.popState(),13;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),14;case 55:return 120;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 104;case 60:case 101:return 110;case 61:return 46;case 62:return 60;case 63:case 102:return 44;case 64:return 8;case 65:return 105;case 66:case 100:return 114;case 67:case 70:case 73:return this.popState(),77;case 68:return this.pushState("edgeText"),75;case 69:case 72:case 75:return 118;case 71:return this.pushState("thickEdgeText"),75;case 74:return this.pushState("dottedEdgeText"),75;case 76:return 77;case 77:return this.popState(),53;case 78:case 114:return"TEXT";case 79:return this.pushState("ellipseText"),52;case 80:return this.popState(),55;case 81:return this.pushState("text"),54;case 82:return this.popState(),57;case 83:return this.pushState("text"),56;case 84:return 58;case 85:return this.pushState("text"),67;case 86:return this.popState(),64;case 87:return this.pushState("text"),63;case 88:return this.popState(),49;case 89:return this.pushState("text"),48;case 90:return this.popState(),69;case 91:return this.popState(),71;case 92:return 116;case 93:return this.pushState("trapText"),68;case 94:return this.pushState("trapText"),70;case 95:return 117;case 96:return 67;case 97:return 89;case 98:return"SEP";case 99:return 88;case 103:return 108;case 104:return 113;case 105:return 115;case 106:return this.popState(),62;case 107:return this.pushState("text"),62;case 108:return this.popState(),51;case 109:return this.pushState("text"),50;case 110:return this.popState(),31;case 111:return this.pushState("text"),29;case 112:return this.popState(),66;case 113:return this.pushState("text"),65;case 115:return"QUOTE";case 116:return 9;case 117:return 10;case 118:return 11}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},href:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},click:{rules:[21,24,33,34,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dottedEdgeText:{rules:[21,24,73,75,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},thickEdgeText:{rules:[21,24,70,72,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},edgeText:{rules:[21,24,67,69,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},trapText:{rules:[21,24,76,79,81,83,87,89,90,91,92,93,94,107,109,111,113],inclusive:!1},ellipseText:{rules:[21,24,76,77,78,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},text:{rules:[21,24,76,79,80,81,82,83,86,87,88,89,93,94,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_descr:{rules:[3,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},acc_title:{rules:[1,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},md_string:{rules:[19,20,21,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},string:{rules:[21,22,23,24,76,79,81,83,87,89,93,94,107,109,111,113],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,70,71,73,74,76,79,81,83,84,85,87,89,93,94,95,96,97,98,99,100,101,102,103,104,105,107,109,111,113,115,116,117,118],inclusive:!0}}}}();function ee(){this.yy={}}return Jt.lexer=te,(0,l.K2)(ee,"Parser"),ee.prototype=Jt,Jt.Parser=ee,new ee}();bt.parser=bt;var Et=bt,mt=(0,l.K2)(((t,e)=>{const s=d.A,n=s(t,"r"),r=s(t,"g"),i=s(t,"b");return p.A(n,r,i,e)}),"fade"),Dt={parser:Et,db:yt,renderer:kt,styles:(0,l.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${t.lineColor} !important;\n stroke-width: 0;\n stroke: ${t.lineColor};\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${mt(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n padding: 2px;\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n`),"getStyles"),init:(0,l.K2)((t=>{t.flowchart||(t.flowchart={}),t.layout&&(0,l.XV)({layout:t.layout}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,(0,l.XV)({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),yt.clear(),yt.setGen("gen-2")}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/4492.d716b7b0.js b/website/assets/js/4492.d716b7b0.js new file mode 100644 index 000000000..d7b2bc569 --- /dev/null +++ b/website/assets/js/4492.d716b7b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4492],{53:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(8675);const i=function(e){return(0,r.A)(e,4)}},4492:(e,n,t)=>{t.r(n),t.d(n,{render:()=>O});var r=t(7938),i=t(1282),a=(t(4532),t(7588),t(3115)),o=(t(483),t(540),t(9)),d=t(2334),s=t(9592),c=t(53),g=t(4722);t(7981);function l(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:f(e),edges:h(e)};return s.A(e.graph())||(n.value=c.A(e.graph())),n}function f(e){return g.A(e.nodes(),(function(n){var t=e.node(n),r=e.parent(n),i={v:n};return s.A(t)||(i.value=t),s.A(r)||(i.parent=r),i}))}function h(e){return g.A(e.edges(),(function(n){var t=e.edge(n),r={v:n.v,w:n.w};return s.A(n.name)||(r.name=n.name),s.A(t)||(r.value=t),r}))}var u=t(697),p=new Map,m=new Map,w=new Map,R=(0,o.K2)((()=>{m.clear(),w.clear(),p.clear()}),"clear"),v=(0,o.K2)(((e,n)=>{const t=m.get(n)||[];return o.Rm.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)}),"isDescendant"),y=(0,o.K2)(((e,n)=>{const t=m.get(n)||[];return o.Rm.info("Descendants of ",n," is ",t),o.Rm.info("Edge is ",e),e.v!==n&&e.w!==n&&(t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.Rm.debug("Tilt, ",n,",not in descendants"),!1))}),"edgeInCluster"),X=(0,o.K2)(((e,n,t,r)=>{o.Rm.warn("Copying children of ",e,"root",r,"data",n.node(e),r);const i=n.children(e)||[];e!==r&&i.push(e),o.Rm.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach((i=>{if(n.children(i).length>0)X(i,n,t,r);else{const a=n.node(i);o.Rm.info("cp ",i," to ",r," with parent ",e),t.setNode(i,a),r!==n.parent(i)&&(o.Rm.warn("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.Rm.debug("Setting parent",i,e),t.setParent(i,e)):(o.Rm.info("In copy ",e,"root",r,"data",n.node(e),r),o.Rm.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const d=n.edges(i);o.Rm.debug("Copying Edges",d),d.forEach((i=>{o.Rm.info("Edge",i);const a=n.edge(i.v,i.w,i.name);o.Rm.info("Edge data",a,r);try{y(i,r)?(o.Rm.info("Copying as ",i.v,i.w,a,i.name),t.setEdge(i.v,i.w,a,i.name),o.Rm.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.Rm.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(d){o.Rm.error(d)}}))}o.Rm.debug("Removing node",i),n.removeNode(i)}))}),"copy"),b=(0,o.K2)(((e,n)=>{const t=n.children(e);let r=[...t];for(const i of t)w.set(i,e),r=[...r,...b(i,n)];return r}),"extractDescendants"),E=(0,o.K2)(((e,n,t)=>{const r=e.edges().filter((e=>e.v===n||e.w===n)),i=e.edges().filter((e=>e.v===t||e.w===t)),a=r.map((e=>({v:e.v===n?t:e.v,w:e.w===n?n:e.w}))),o=i.map((e=>({v:e.v,w:e.w})));return a.filter((e=>o.some((n=>e.v===n.v&&e.w===n.w))))}),"findCommonEdges"),N=(0,o.K2)(((e,n,t)=>{const r=n.children(e);if(o.Rm.trace("Searching children of id ",e,r),r.length<1)return e;let i;for(const a of r){const e=N(a,n,t),r=E(n,t,e);if(e){if(!(r.length>0))return e;i=e}}return i}),"findNonClusterChild"),C=(0,o.K2)((e=>p.has(e)&&p.get(e).externalConnections&&p.has(e)?p.get(e).id:e),"getAnchorId"),x=(0,o.K2)(((e,n)=>{if(!e||n>10)o.Rm.debug("Opting out, no graph ");else{o.Rm.debug("Opting in, graph "),e.nodes().forEach((function(n){e.children(n).length>0&&(o.Rm.warn("Cluster identified",n," Replacement id in edges: ",N(n,e,n)),m.set(n,b(n,e)),p.set(n,{id:N(n,e,n),clusterData:e.node(n)}))})),e.nodes().forEach((function(n){const t=e.children(n),r=e.edges();t.length>0?(o.Rm.debug("Cluster identified",n,m),r.forEach((e=>{v(e.v,n)^v(e.w,n)&&(o.Rm.warn("Edge: ",e," leaves cluster ",n),o.Rm.warn("Descendants of XXX ",n,": ",m.get(n)),p.get(n).externalConnections=!0)}))):o.Rm.debug("Not a cluster ",n,m)}));for(let n of p.keys()){const t=p.get(n).id,r=e.parent(t);r!==n&&p.has(r)&&!p.get(r).externalConnections&&(p.get(n).id=r)}e.edges().forEach((function(n){const t=e.edge(n);o.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),o.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,i=n.w;if(o.Rm.warn("Fix XXX",p,"ids:",n.v,n.w,"Translating: ",p.get(n.v)," --- ",p.get(n.w)),p.get(n.v)||p.get(n.w)){if(o.Rm.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),r=C(n.v),i=C(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const i=e.parent(r);p.get(i).externalConnections=!0,t.fromCluster=n.v}if(i!==n.w){const r=e.parent(i);p.get(r).externalConnections=!0,t.toCluster=n.w}o.Rm.warn("Fix Replacing with XXX",r,i,n.name),e.setEdge(r,i,t,n.name)}})),o.Rm.warn("Adjusted Graph",l(e)),I(e,0),o.Rm.trace(p)}}),"adjustClustersAndEdges"),I=(0,o.K2)(((e,n)=>{if(o.Rm.warn("extractor - ",n,l(e),e.children("D")),n>10)return void o.Rm.error("Bailing out");let t=e.nodes(),r=!1;for(const i of t){const n=e.children(i);r=r||n.length>0}if(r){o.Rm.debug("Nodes = ",t,n);for(const r of t)if(o.Rm.debug("Extracting node",r,p,p.has(r)&&!p.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),p.has(r))if(!p.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){o.Rm.warn("Cluster without external connections, without a parent and with children",r,n);let t="TB"===e.graph().rankdir?"LR":"TB";p.get(r)?.clusterData?.dir&&(t=p.get(r).clusterData.dir,o.Rm.warn("Fixing dir",p.get(r).clusterData.dir,t));const i=new u.T({multigraph:!0,compound:!0}).setGraph({rankdir:t,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));o.Rm.warn("Old graph before copy",l(e)),X(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:p.get(r).clusterData,label:p.get(r).label,graph:i}),o.Rm.warn("New graph after copy node: (",r,")",l(i)),o.Rm.debug("Old graph after copy",l(e))}else o.Rm.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!p.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),o.Rm.debug(p);else o.Rm.debug("Not a cluster",r,n);t=e.nodes(),o.Rm.warn("New list of nodes",t);for(const r of t){const t=e.node(r);o.Rm.warn(" Now next level",r,t),t?.clusterNode&&I(t.graph,n+1)}}else o.Rm.debug("Done, no node has children",e.nodes())}),"extractor"),S=(0,o.K2)(((e,n)=>{if(0===n.length)return[];let t=Object.assign([],n);return n.forEach((n=>{const r=e.children(n),i=S(e,r);t=[...t,...i]})),t}),"sorter"),D=(0,o.K2)((e=>S(e,e.children())),"sortNodesByHierarchy"),A=(0,o.K2)((async(e,n,t,s,c,g)=>{o.Rm.warn("Graph in recursive render:XAX",l(n),c);const f=n.graph().rankdir;o.Rm.trace("Dir in recursive render - dir:",f);const h=e.insert("g").attr("class","root");n.nodes()?o.Rm.info("Recursive render XXX",n.nodes()):o.Rm.info("No nodes found for",n),n.edges().length>0&&o.Rm.info("Recursive edges",n.edge(n.edges()[0]));const u=h.insert("g").attr("class","clusters"),m=h.insert("g").attr("class","edgePaths"),w=h.insert("g").attr("class","edgeLabels"),R=h.insert("g").attr("class","nodes");await Promise.all(n.nodes().map((async function(e){const r=n.node(e);if(void 0!==c){const t=JSON.parse(JSON.stringify(c.clusterData));o.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",c.height),n.setNode(c.id,t),n.parent(e)||(o.Rm.trace("Setting parent",e,c.id),n.setParent(e,c.id,t))}if(o.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e))),r?.clusterNode){o.Rm.info("Cluster identified XBX",e,r.width,n.node(e));const{ranksep:a,nodesep:d}=n.graph();r.graph.setGraph({...r.graph.graph(),ranksep:a+25,nodesep:d});const c=await A(R,r.graph,t,s,n.node(e),g),l=c.elem;(0,i.lC)(r,l),r.diff=c.diff||0,o.Rm.info("New compound node after recursive render XAX",e,"width",r.width,"height",r.height),(0,i.U7)(l,r)}else n.children(e).length>0?(o.Rm.trace("Cluster - the non recursive path XBX",e,r.id,r,r.width,"Graph:",n),o.Rm.trace(N(r.id,n)),p.set(r.id,{id:N(r.id,n),node:r})):(o.Rm.trace("Node - the non recursive path XAX",e,R,n.node(e),f),await(0,i.on)(R,n.node(e),{config:g,dir:f}))})));const v=(0,o.K2)((async()=>{const e=n.edges().map((async function(e){const t=n.edge(e.v,e.w,e.name);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),o.Rm.info("Fix",p,"ids:",e.v,e.w,"Translating: ",p.get(e.v),p.get(e.w)),await(0,r.jP)(w,t)}));await Promise.all(e)}),"processEdges");await v(),o.Rm.info("Graph before layout:",JSON.stringify(l(n))),o.Rm.info("############################################# XXX"),o.Rm.info("### Layout ### XXX"),o.Rm.info("############################################# XXX"),(0,d.Zp)(n),o.Rm.info("Graph after layout:",JSON.stringify(l(n)));let y=0,{subGraphTitleTotalMargin:X}=(0,a.O)(g);return await Promise.all(D(n).map((async function(e){const t=n.node(e);if(o.Rm.info("Position XBX => "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t?.clusterNode)t.y+=X,o.Rm.info("A tainted cluster node XBX1",e,t.id,t.width,t.height,t.x,t.y,n.parent(e)),p.get(t.id).node=t,(0,i.U_)(t);else if(n.children(e).length>0){o.Rm.info("A pure cluster node XBX1",e,t.id,t.x,t.y,t.width,t.height,n.parent(e)),t.height+=X,n.node(t.parentId);const r=t?.padding/2||0,a=t?.labelBBox?.height||0,d=a-r||0;o.Rm.debug("OffsetY",d,"labelHeight",a,"halfPadding",r),await(0,i.U)(u,t),p.get(t.id).node=t}else{const e=n.node(t.parentId);t.y+=X/2,o.Rm.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",e,e?.offsetY,t),(0,i.U_)(t)}}))),n.edges().forEach((function(e){const i=n.edge(e);o.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i),i.points.forEach((e=>e.y+=X/2));const a=n.node(e.v);var d=n.node(e.w);const c=(0,r.Jo)(m,i,p,t,a,d,s);(0,r.T_)(i,c)})),n.nodes().forEach((function(e){const t=n.node(e);o.Rm.info(e,t.type,t.diff),t.isGroup&&(y=t.diff)})),o.Rm.warn("Returning from recursive render XAX",h,y),{elem:h,diff:y}}),"recursiveRender"),O=(0,o.K2)((async(e,n)=>{const t=new u.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),a=n.select("g");(0,r.g0)(a,e.markers,e.type,e.diagramId),(0,i.gh)(),(0,r.IU)(),(0,i.IU)(),R(),e.nodes.forEach((e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)})),o.Rm.debug("Edges:",e.edges),e.edges.forEach((e=>{if(e.start===e.end){const n=e.start,r=n+"---"+n+"---1",i=n+"---"+n+"---2",a=t.node(n);t.setNode(r,{domId:r,id:r,parentId:a.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),t.setParent(r,a.parentId),t.setNode(i,{domId:i,id:i,parentId:a.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),t.setParent(i,a.parentId);const o=structuredClone(e),d=structuredClone(e),s=structuredClone(e);o.label="",o.arrowTypeEnd="none",o.id=n+"-cyclic-special-1",d.arrowTypeEnd="none",d.id=n+"-cyclic-special-mid",s.label="",a.isGroup&&(o.fromCluster=n,s.toCluster=n),s.id=n+"-cyclic-special-2",t.setEdge(n,r,o,n+"-cyclic-special-0"),t.setEdge(r,i,d,n+"-cyclic-special-1"),t.setEdge(i,n,s,n+"-cyc<lic-special-2")}else t.setEdge(e.start,e.end,{...e},e.id)})),o.Rm.warn("Graph at first:",JSON.stringify(l(t))),x(t),o.Rm.warn("Graph after XAX:",JSON.stringify(l(t)));const d=(0,o.D7)();await A(a,t,e.type,e.diagramId,void 0,d)}),"render")}}]); \ No newline at end of file diff --git a/website/assets/js/45833858.6039e53f.js b/website/assets/js/45833858.6039e53f.js new file mode 100644 index 000000000..ec89db23a --- /dev/null +++ b/website/assets/js/45833858.6039e53f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7675],{440:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>d,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>o});const i=JSON.parse('{"id":"api/type-aliases/LunaticCollectedValue","title":"Type Alias: LunaticCollectedValue","description":"LunaticCollectedValue: Partial\\\\","source":"@site/docs/api/type-aliases/LunaticCollectedValue.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticCollectedValue","permalink":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticCollectedValue.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticChangesHandler","permalink":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler"},"next":{"title":"LunaticComponentDefinition","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition"}}');var l=t(4848),c=t(8453);const s={},d="Type Alias: LunaticCollectedValue",a={},o=[{value:"Type declaration",id:"type-declaration",level:2},{value:"COLLECTED",id:"collected",level:3},{value:"EDITED",id:"edited",level:3},{value:"FORCED",id:"forced",level:3},{value:"INPUTTED",id:"inputted",level:3},{value:"PREVIOUS",id:"previous",level:3},{value:"Defined in",id:"defined-in",level:2}];function r(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,c.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"type-alias-lunaticcollectedvalue",children:"Type Alias: LunaticCollectedValue"})}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"LunaticCollectedValue"}),": ",(0,l.jsx)(n.code,{children:"Partial"}),"<",(0,l.jsx)(n.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,l.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,l.jsx)(n.h3,{id:"collected",children:"COLLECTED"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"COLLECTED"}),": ",(0,l.jsx)(n.code,{children:"unknown"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"edited",children:"EDITED"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"EDITED"}),": ",(0,l.jsx)(n.code,{children:"unknown"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"forced",children:"FORCED"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"FORCED"}),": ",(0,l.jsx)(n.code,{children:"unknown"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"inputted",children:"INPUTTED"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"INPUTTED"}),": ",(0,l.jsx)(n.code,{children:"unknown"})]}),"\n"]}),"\n",(0,l.jsx)(n.h3,{id:"previous",children:"PREVIOUS"}),"\n",(0,l.jsxs)(n.blockquote,{children:["\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"PREVIOUS"}),": ",(0,l.jsx)(n.code,{children:"unknown"})]}),"\n"]}),"\n",(0,l.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L75",children:"src/use-lunatic/type.ts:75"})})]})}function u(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(r,{...e})}):r(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>d});var i=t(6540);const l={},c=i.createContext(l);function s(e){const n=i.useContext(c);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:s(e.components),i.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/4632.2a4030f3.js b/website/assets/js/4632.2a4030f3.js new file mode 100644 index 000000000..946fdd9db --- /dev/null +++ b/website/assets/js/4632.2a4030f3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4632],{4632:(t,e,i)=>{i.d(e,{diagram:()=>v});var a=i(9),n=i(7),s=function(){var t=(0,a.K2)((function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i}),"o"),e=[1,3],i=[1,4],n=[1,5],s=[1,6],r=[1,7],o=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],g=[1,35],f=[1,43],p=[1,41],y=[1,14],T=[1,23],m=[1,18],q=[1,19],A=[1,20],_=[1,21],b=[1,22],S=[1,24],k=[1,25],F=[1,26],P=[1,27],C=[1,28],L=[1,29],v=[1,32],I=[1,33],E=[1,34],D=[1,39],z=[1,40],w=[1,42],K=[1,44],U=[1,62],N=[1,61],R=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],B=[1,65],W=[1,66],$=[1,67],Q=[1,68],O=[1,69],X=[1,70],H=[1,71],M=[1,72],Y=[1,73],j=[1,74],G=[1,75],V=[1,76],Z=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],tt=[1,91],et=[1,92],it=[1,99],at=[1,93],nt=[1,96],st=[1,94],rt=[1,95],ot=[1,97],lt=[1,98],ht=[1,102],ct=[10,55,56,57],dt=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],ut={trace:(0,a.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,a.K2)((function(t,e,i,a,n,s,r){var o=s.length-1;switch(n){case 23:case 68:this.$=s[o];break;case 24:case 69:this.$=s[o-1]+""+s[o];break;case 26:this.$=s[o-1]+s[o];break;case 27:this.$=[s[o].trim()];break;case 28:s[o-2].push(s[o].trim()),this.$=s[o-2];break;case 29:this.$=s[o-4],a.addClass(s[o-2],s[o]);break;case 37:this.$=[];break;case 42:this.$=s[o].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[o].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[o].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 47:a.addPoint(s[o-3],"",s[o-1],s[o],[]);break;case 48:a.addPoint(s[o-4],s[o-3],s[o-1],s[o],[]);break;case 49:a.addPoint(s[o-4],"",s[o-2],s[o-1],s[o]);break;case 50:a.addPoint(s[o-5],s[o-4],s[o-2],s[o-1],s[o]);break;case 51:a.setXAxisLeftText(s[o-2]),a.setXAxisRightText(s[o]);break;case 52:s[o-1].text+=" \u27f6 ",a.setXAxisLeftText(s[o-1]);break;case 53:a.setXAxisLeftText(s[o]);break;case 54:a.setYAxisBottomText(s[o-2]),a.setYAxisTopText(s[o]);break;case 55:s[o-1].text+=" \u27f6 ",a.setYAxisBottomText(s[o-1]);break;case 56:a.setYAxisBottomText(s[o]);break;case 57:a.setQuadrant1Text(s[o]);break;case 58:a.setQuadrant2Text(s[o]);break;case 59:a.setQuadrant3Text(s[o]);break;case 60:a.setQuadrant4Text(s[o]);break;case 64:case 66:this.$={text:s[o],type:"text"};break;case 65:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 67:this.$={text:s[o],type:"markdown"}}}),"anonymous"),table:[{18:e,26:1,27:2,28:i,55:n,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:i,55:n,56:s,57:r},{18:e,26:9,27:2,28:i,55:n,56:s,57:r},t(o,[2,33],{29:10}),t(l,[2,61]),t(l,[2,62]),t(l,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:g,13:f,14:p,18:y,25:T,35:m,37:q,39:A,41:_,42:b,48:S,50:k,51:F,52:P,53:C,54:L,60:v,61:I,63:E,64:D,65:z,66:w,67:K}),t(o,[2,34]),{27:45,55:n,56:s,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:u,10:x,12:g,13:f,14:p,18:y,25:T,35:m,37:q,39:A,41:_,42:b,48:S,50:k,51:F,52:P,53:C,54:L,60:v,61:I,63:E,64:D,65:z,66:w,67:K}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(h,[2,45]),t(h,[2,46]),{18:[1,50]},{4:d,5:u,10:x,12:g,13:f,14:p,43:51,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:g,13:f,14:p,43:52,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:g,13:f,14:p,43:53,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:g,13:f,14:p,43:54,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:g,13:f,14:p,43:55,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,10:x,12:g,13:f,14:p,43:56,58:31,60:v,61:I,63:E,64:D,65:z,66:w,67:K},{4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,44:[1,57],47:[1,58],58:60,59:59,63:E,64:D,65:z,66:w,67:K},t(R,[2,64]),t(R,[2,66]),t(R,[2,67]),t(R,[2,70]),t(R,[2,71]),t(R,[2,72]),t(R,[2,73]),t(R,[2,74]),t(R,[2,75]),t(R,[2,76]),t(R,[2,77]),t(R,[2,78]),t(R,[2,79]),t(R,[2,80]),t(o,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:64,4:B,5:W,6:$,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:V,21:63},t(h,[2,53],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,49:[1,77],63:E,64:D,65:z,66:w,67:K}),t(h,[2,56],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,49:[1,78],63:E,64:D,65:z,66:w,67:K}),t(h,[2,57],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,58],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,59],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,60],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),{45:[1,79]},{44:[1,80]},t(R,[2,65]),t(R,[2,81]),t(R,[2,82]),t(R,[2,83]),{3:82,4:B,5:W,6:$,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:V,18:[1,81]},t(Z,[2,23]),t(Z,[2,1]),t(Z,[2,2]),t(Z,[2,3]),t(Z,[2,4]),t(Z,[2,5]),t(Z,[2,6]),t(Z,[2,7]),t(Z,[2,8]),t(Z,[2,9]),t(Z,[2,10]),t(Z,[2,11]),t(Z,[2,12]),t(h,[2,52],{58:31,43:83,4:d,5:u,10:x,12:g,13:f,14:p,60:v,61:I,63:E,64:D,65:z,66:w,67:K}),t(h,[2,55],{58:31,43:84,4:d,5:u,10:x,12:g,13:f,14:p,60:v,61:I,63:E,64:D,65:z,66:w,67:K}),{46:[1,85]},{45:[1,86]},{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:ot,20:lt,22:88,23:87},t(Z,[2,24]),t(h,[2,51],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,54],{59:59,58:60,4:d,5:u,8:U,10:x,12:g,13:f,14:p,18:N,63:E,64:D,65:z,66:w,67:K}),t(h,[2,47],{22:88,16:89,23:100,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),{46:[1,101]},t(h,[2,29],{10:ht}),t(ct,[2,27],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),t(dt,[2,25]),t(dt,[2,13]),t(dt,[2,14]),t(dt,[2,15]),t(dt,[2,16]),t(dt,[2,17]),t(dt,[2,18]),t(dt,[2,19]),t(dt,[2,20]),t(dt,[2,21]),t(dt,[2,22]),t(h,[2,49],{10:ht}),t(h,[2,48],{22:88,16:89,23:104,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt}),{4:J,5:tt,6:et,8:it,11:at,13:nt,16:89,17:st,18:rt,19:ot,20:lt,22:105},t(dt,[2,26]),t(h,[2,50],{10:ht}),t(ct,[2,28],{16:103,4:J,5:tt,6:et,8:it,11:at,13:nt,17:st,18:rt,19:ot,20:lt})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,a.K2)((function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)}),"parseError"),parse:(0,a.K2)((function(t){var e=this,i=[0],n=[],s=[null],r=[],o=this.table,l="",h=0,c=0,d=0,u=r.slice.call(arguments,1),x=Object.create(this.lexer),g={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g.yy[f]=this.yy[f]);x.setInput(t,g.yy),g.yy.lexer=x,g.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var p=x.yylloc;r.push(p);var y=x.options&&x.options.ranges;function T(){var t;return"number"!=typeof(t=n.pop()||x.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.K2)((function(t){i.length=i.length-2*t,s.length=s.length-t,r.length=r.length-t}),"popStack"),(0,a.K2)(T,"lex");for(var m,q,A,_,b,S,k,F,P,C={};;){if(A=i[i.length-1],this.defaultActions[A]?_=this.defaultActions[A]:(null==m&&(m=T()),_=o[A]&&o[A][m]),void 0===_||!_.length||!_[0]){var L="";for(S in P=[],o[A])this.terminals_[S]&&S>2&&P.push("'"+this.terminals_[S]+"'");L=x.showPosition?"Parse error on line "+(h+1)+":\n"+x.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[m]||m,line:x.yylineno,loc:p,expected:P})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+m);switch(_[0]){case 1:i.push(m),s.push(x.yytext),r.push(x.yylloc),i.push(_[1]),m=null,q?(m=q,q=null):(c=x.yyleng,l=x.yytext,h=x.yylineno,p=x.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[_[1]][1],C.$=s[s.length-k],C._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},y&&(C._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(C,[l,c,h,g.yy,_[1],s,r].concat(u))))return b;k&&(i=i.slice(0,-1*k*2),s=s.slice(0,-1*k),r=r.slice(0,-1*k)),i.push(this.productions_[_[1]][0]),s.push(C.$),r.push(C._$),F=o[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}),"parse")},xt=function(){return{EOF:1,parseError:(0,a.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,a.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,a.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,a.K2)((function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,a.K2)((function(){return this._more=!0,this}),"more"),reject:(0,a.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,a.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,a.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,a.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,a.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,a.K2)((function(t,e){var i,a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in n)this[s]=n[s];return!1}return!1}),"test_match"),next:(0,a.K2)((function(){if(this.done)return this.EOF;var t,e,i,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length)){if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,a.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,a.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,a.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,a.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,a.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,a.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,a.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.K2)((function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}}),"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}}();function gt(){this.yy={}}return ut.lexer=xt,(0,a.K2)(gt,"Parser"),gt.prototype=ut,ut.Parser=gt,new gt}();s.parser=s;var r=s,o=(0,a.P$)(),l=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{(0,a.K2)(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:a.UI.quadrantChart?.chartWidth||500,chartWidth:a.UI.quadrantChart?.chartHeight||500,titlePadding:a.UI.quadrantChart?.titlePadding||10,titleFontSize:a.UI.quadrantChart?.titleFontSize||20,quadrantPadding:a.UI.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:a.UI.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:a.UI.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:a.UI.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:a.UI.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:a.UI.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:a.UI.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:a.UI.quadrantChart?.pointTextPadding||5,pointLabelFontSize:a.UI.quadrantChart?.pointLabelFontSize||12,pointRadius:a.UI.quadrantChart?.pointRadius||5,xAxisPosition:a.UI.quadrantChart?.xAxisPosition||"top",yAxisPosition:a.UI.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.Rm.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){a.Rm.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){a.Rm.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){const n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},r=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,o={left:"left"===this.config.yAxisPosition&&i?r:0,right:"right"===this.config.yAxisPosition&&i?r:0},l=this.config.titleFontSize+2*this.config.titlePadding,h={top:a?l:0},c=this.config.quadrantPadding+o.left,d=this.config.quadrantPadding+s.top+h.top,u=this.config.chartWidth-2*this.config.quadrantPadding-o.left-o.right,x=this.config.chartHeight-2*this.config.quadrantPadding-s.top-s.bottom-h.top;return{xAxisSpace:s,yAxisSpace:o,titleSpace:h,quadrantSpace:{quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:u/2,quadrantHeight:x,quadrantHalfHeight:x/2}}}getAxisLabels(t,e,i,a){const{quadrantSpace:n,titleSpace:s}=a,{quadrantHalfHeight:r,quadrantHeight:o,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n,u=Boolean(this.data.xAxisRightText),x=Boolean(this.data.yAxisTopText),g=[];return this.data.xAxisLeftText&&e&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:l+h+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+o+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+d+this.config.quadrantPadding,y:c+o-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+l+d+this.config.quadrantPadding,y:c+r-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),g}getQuadrants(t){const{quadrantSpace:e}=t,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s}=e,r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s,width:n,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s,width:n,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant4Fill}];for(const o of r)o.text.x=o.x+o.width/2,0===this.data.points.length?(o.text.y=o.y+o.height/2,o.text.horizontalPos="middle"):(o.text.y=o.y+this.config.quadrantTextTopPadding,o.text.horizontalPos="top");return r}getQuadrantPoints(t){const{quadrantSpace:e}=t,{quadrantHeight:i,quadrantLeft:a,quadrantTop:s,quadrantWidth:r}=e,o=(0,n.m4Y)().domain([0,1]).range([a,r+a]),l=(0,n.m4Y)().domain([0,1]).range([i+s,s]);return this.data.points.map((t=>{const e=this.classes.get(t.className);e&&(t={...e,...t});return{x:o(t.x),y:l(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:o(t.x),y:l(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"}}))}getBorders(t){const e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=t,{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:s,quadrantHalfWidth:r,quadrantTop:o,quadrantWidth:l}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:o,x2:s+l+e,y2:o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+l,y1:o+e,x2:s+l,y2:o+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:o+n,x2:s+l+e,y2:o+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:o+e,x2:s,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:o+e,x2:s+r,y2:o+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+e,y1:o+a,x2:s+l-e,y2:o+a}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},h=class extends Error{static{(0,a.K2)(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`),this.name="InvalidStyleError"}};function c(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function d(t){return!/^\d+$/.test(t)}function u(t){return!/^\d+px$/.test(t)}(0,a.K2)(c,"validateHexCode"),(0,a.K2)(d,"validateNumber"),(0,a.K2)(u,"validateSizeInPixels");var x=(0,a.D7)();function g(t){return(0,a.jZ)(t.trim(),x)}(0,a.K2)(g,"textSanitizer");var f=new l;function p(t){f.setData({quadrant1Text:g(t.text)})}function y(t){f.setData({quadrant2Text:g(t.text)})}function T(t){f.setData({quadrant3Text:g(t.text)})}function m(t){f.setData({quadrant4Text:g(t.text)})}function q(t){f.setData({xAxisLeftText:g(t.text)})}function A(t){f.setData({xAxisRightText:g(t.text)})}function _(t){f.setData({yAxisTopText:g(t.text)})}function b(t){f.setData({yAxisBottomText:g(t.text)})}function S(t){const e={};for(const i of t){const[t,a]=i.trim().split(/\s*:\s*/);if("radius"===t){if(d(a))throw new h(t,a,"number");e.radius=parseInt(a)}else if("color"===t){if(c(a))throw new h(t,a,"hex code");e.color=a}else if("stroke-color"===t){if(c(a))throw new h(t,a,"hex code");e.strokeColor=a}else{if("stroke-width"!==t)throw new Error(`style named ${t} is not supported.`);if(u(a))throw new h(t,a,"number of pixels (eg. 10px)");e.strokeWidth=a}}return e}function k(t,e,i,a,n){const s=S(n);f.addPoints([{x:i,y:a,text:g(t.text),className:e,...s}])}function F(t,e){f.addClass(t,S(e))}function P(t){f.setConfig({chartWidth:t})}function C(t){f.setConfig({chartHeight:t})}function L(){const t=(0,a.D7)(),{themeVariables:e,quadrantChart:i}=t;return i&&f.setConfig(i),f.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),f.setData({titleText:(0,a.ab)()}),f.build()}(0,a.K2)(p,"setQuadrant1Text"),(0,a.K2)(y,"setQuadrant2Text"),(0,a.K2)(T,"setQuadrant3Text"),(0,a.K2)(m,"setQuadrant4Text"),(0,a.K2)(q,"setXAxisLeftText"),(0,a.K2)(A,"setXAxisRightText"),(0,a.K2)(_,"setYAxisTopText"),(0,a.K2)(b,"setYAxisBottomText"),(0,a.K2)(S,"parseStyles"),(0,a.K2)(k,"addPoint"),(0,a.K2)(F,"addClass"),(0,a.K2)(P,"setWidth"),(0,a.K2)(C,"setHeight"),(0,a.K2)(L,"getQuadrantData");var v={parser:r,db:{setWidth:P,setHeight:C,setQuadrant1Text:p,setQuadrant2Text:y,setQuadrant3Text:T,setQuadrant4Text:m,setXAxisLeftText:q,setXAxisRightText:A,setYAxisTopText:_,setYAxisBottomText:b,parseStyles:S,addPoint:k,addClass:F,getQuadrantData:L,clear:(0,a.K2)((function(){f.clear(),(0,a.IU)()}),"clear"),setAccTitle:a.SV,getAccTitle:a.iN,setDiagramTitle:a.ke,getDiagramTitle:a.ab,getAccDescription:a.m7,setAccDescription:a.EI},renderer:{draw:(0,a.K2)(((t,e,i,s)=>{function r(t){return"top"===t?"hanging":"middle"}function o(t){return"left"===t?"start":"middle"}function l(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,a.K2)(r,"getDominantBaseLine"),(0,a.K2)(o,"getTextAnchor"),(0,a.K2)(l,"getTransformation");const h=(0,a.D7)();a.Rm.debug("Rendering quadrant chart\n"+t);const c=h.securityLevel;let d;"sandbox"===c&&(d=(0,n.Ltv)("#i"+e));const u=("sandbox"===c?(0,n.Ltv)(d.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${e}"]`),x=u.append("g").attr("class","main"),g=h.quadrantChart?.chartWidth??500,f=h.quadrantChart?.chartHeight??500;(0,a.a$)(u,f,g,h.quadrantChart?.useMaxWidth??!0),u.attr("viewBox","0 0 "+g+" "+f),s.db.setHeight(f),s.db.setWidth(g);const p=s.db.getQuadrantData(),y=x.append("g").attr("class","quadrants"),T=x.append("g").attr("class","border"),m=x.append("g").attr("class","data-points"),q=x.append("g").attr("class","labels"),A=x.append("g").attr("class","title");p.title&&A.append("text").attr("x",0).attr("y",0).attr("fill",p.title.fill).attr("font-size",p.title.fontSize).attr("dominant-baseline",r(p.title.horizontalPos)).attr("text-anchor",o(p.title.verticalPos)).attr("transform",l(p.title)).text(p.title.text),p.borderLines&&T.selectAll("line").data(p.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth));const _=y.selectAll("g.quadrant").data(p.quadrants).enter().append("g").attr("class","quadrant");_.append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)),_.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>r(t.text.horizontalPos))).attr("text-anchor",(t=>o(t.text.verticalPos))).attr("transform",(t=>l(t.text))).text((t=>t.text.text));q.selectAll("g.label").data(p.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>r(t.horizontalPos))).attr("text-anchor",(t=>o(t.verticalPos))).attr("transform",(t=>l(t)));const b=m.selectAll("g.data-point").data(p.points).enter().append("g").attr("class","data-point");b.append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeColor)).attr("stroke-width",(t=>t.strokeWidth)),b.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>r(t.text.horizontalPos))).attr("text-anchor",(t=>o(t.text.verticalPos))).attr("transform",(t=>l(t.text)))}),"draw")},styles:(0,a.K2)((()=>""),"styles")}}}]); \ No newline at end of file diff --git a/website/assets/js/4697.ede765eb.js b/website/assets/js/4697.ede765eb.js new file mode 100644 index 000000000..7148bbc86 --- /dev/null +++ b/website/assets/js/4697.ede765eb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4697],{4697:(t,n,e)=>{e.d(n,{diagram:()=>rt});var i=e(9),s=e(7);function r(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e>i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e>s||void 0===e&&s>=s)&&(e=s)}return e}function o(t){return t.target.depth}function c(t,n){return t.sourceLinks.length?t.depth:n-1}function a(t,n){let e=0;if(void 0===n)for(let i of t)(i=+i)&&(e+=i);else{let i=-1;for(let s of t)(s=+n(s,++i,t))&&(e+=s)}return e}function l(t,n){let e;if(void 0===n)for(const i of t)null!=i&&(e<i||void 0===e&&i>=i)&&(e=i);else{let i=-1;for(let s of t)null!=(s=n(s,++i,t))&&(e<s||void 0===e&&s>=s)&&(e=s)}return e}function h(t){return function(){return t}}function u(t,n){return y(t.source,n.source)||t.index-n.index}function f(t,n){return y(t.target,n.target)||t.index-n.index}function y(t,n){return t.y0-n.y0}function d(t){return t.value}function p(t){return t.index}function g(t){return t.nodes}function _(t){return t.links}function k(t,n){const e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function x({nodes:t}){for(const n of t){let t=n.y0,e=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const i of n.targetLinks)i.y1=e+i.width/2,e+=i.width}}function m(){let t,n,e,i=0,s=0,o=1,m=1,v=24,b=8,w=p,L=c,S=g,E=_,A=6;function K(){const c={nodes:S.apply(null,arguments),links:E.apply(null,arguments)};return function({nodes:t,links:n}){for(const[e,s]of t.entries())s.index=e,s.sourceLinks=[],s.targetLinks=[];const i=new Map(t.map(((n,e)=>[w(n,e,t),n])));for(const[e,s]of n.entries()){s.index=e;let{source:t,target:n}=s;"object"!=typeof t&&(t=s.source=k(i,t)),"object"!=typeof n&&(n=s.target=k(i,n)),t.sourceLinks.push(s),n.targetLinks.push(s)}if(null!=e)for(const{sourceLinks:s,targetLinks:r}of t)s.sort(e),r.sort(e)}(c),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(a(n.sourceLinks,d),a(n.targetLinks,d)):n.fixedValue}(c),function({nodes:t}){const n=t.length;let e=new Set(t),i=new Set,s=0;for(;e.size;){for(const t of e){t.depth=s;for(const{target:n}of t.sourceLinks)i.add(n)}if(++s>n)throw new Error("circular link");e=i,i=new Set}}(c),function({nodes:t}){const n=t.length;let e=new Set(t),i=new Set,s=0;for(;e.size;){for(const t of e){t.height=s;for(const{source:n}of t.targetLinks)i.add(n)}if(++s>n)throw new Error("circular link");e=i,i=new Set}}(c),function(e){const c=function({nodes:t}){const e=l(t,(t=>t.depth))+1,s=(o-i-v)/(e-1),r=new Array(e);for(const n of t){const t=Math.max(0,Math.min(e-1,Math.floor(L.call(null,n,e))));n.layer=t,n.x0=i+t*s,n.x1=n.x0+v,r[t]?r[t].push(n):r[t]=[n]}if(n)for(const i of r)i.sort(n);return r}(e);t=Math.min(b,(m-s)/(l(c,(t=>t.length))-1)),function(n){const e=r(n,(n=>(m-s-(n.length-1)*t)/a(n,d)));for(const i of n){let n=s;for(const s of i){s.y0=n,s.y1=n+s.value*e,n=s.y1+t;for(const t of s.sourceLinks)t.width=t.value*e}n=(m-n+t)/(i.length+1);for(let t=0;t<i.length;++t){const e=i[t];e.y0+=n*(t+1),e.y1+=n*(t+1)}C(i)}}(c);for(let t=0;t<A;++t){const n=Math.pow(.99,t),e=Math.max(1-n,(t+1)/A);I(c,n,e),M(c,n,e)}}(c),x(c),c}function M(t,e,i){for(let s=1,r=t.length;s<r;++s){const r=t[s];for(const t of r){let n=0,i=0;for(const{source:e,value:r}of t.targetLinks){let s=r*(t.layer-e.layer);n+=O(e,t)*s,i+=s}if(!(i>0))continue;let s=(n/i-t.y0)*e;t.y0+=s,t.y1+=s,P(t)}void 0===n&&r.sort(y),T(r,i)}}function I(t,e,i){for(let s=t.length-2;s>=0;--s){const r=t[s];for(const t of r){let n=0,i=0;for(const{target:e,value:r}of t.sourceLinks){let s=r*(e.layer-t.layer);n+=$(t,e)*s,i+=s}if(!(i>0))continue;let s=(n/i-t.y0)*e;t.y0+=s,t.y1+=s,P(t)}void 0===n&&r.sort(y),T(r,i)}}function T(n,e){const i=n.length>>1,r=n[i];N(n,r.y0-t,i-1,e),D(n,r.y1+t,i+1,e),N(n,m,n.length-1,e),D(n,s,0,e)}function D(n,e,i,s){for(;i<n.length;++i){const r=n[i],o=(e-r.y0)*s;o>1e-6&&(r.y0+=o,r.y1+=o),e=r.y1+t}}function N(n,e,i,s){for(;i>=0;--i){const r=n[i],o=(r.y1-e)*s;o>1e-6&&(r.y0-=o,r.y1-=o),e=r.y0-t}}function P({sourceLinks:t,targetLinks:n}){if(void 0===e){for(const{source:{sourceLinks:t}}of n)t.sort(f);for(const{target:{targetLinks:n}}of t)n.sort(u)}}function C(t){if(void 0===e)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(f),e.sort(u)}function O(n,e){let i=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:s,width:r}of n.sourceLinks){if(s===e)break;i+=r+t}for(const{source:t,width:s}of e.targetLinks){if(t===n)break;i-=s}return i}function $(n,e){let i=e.y0-(e.targetLinks.length-1)*t/2;for(const{source:s,width:r}of e.targetLinks){if(s===n)break;i+=r+t}for(const{target:t,width:s}of n.sourceLinks){if(t===e)break;i-=s}return i}return K.update=function(t){return x(t),t},K.nodeId=function(t){return arguments.length?(w="function"==typeof t?t:h(t),K):w},K.nodeAlign=function(t){return arguments.length?(L="function"==typeof t?t:h(t),K):L},K.nodeSort=function(t){return arguments.length?(n=t,K):n},K.nodeWidth=function(t){return arguments.length?(v=+t,K):v},K.nodePadding=function(n){return arguments.length?(b=t=+n,K):b},K.nodes=function(t){return arguments.length?(S="function"==typeof t?t:h(t),K):S},K.links=function(t){return arguments.length?(E="function"==typeof t?t:h(t),K):E},K.linkSort=function(t){return arguments.length?(e=t,K):e},K.size=function(t){return arguments.length?(i=s=0,o=+t[0],m=+t[1],K):[o-i,m-s]},K.extent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],s=+t[0][1],m=+t[1][1],K):[[i,s],[o,m]]},K.iterations=function(t){return arguments.length?(A=+t,K):A},K}var v=Math.PI,b=2*v,w=1e-6,L=b-w;function S(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function E(){return new S}S.prototype=E.prototype={constructor:S,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,s,r){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+s)+","+(this._y1=+r)},arcTo:function(t,n,e,i,s){t=+t,n=+n,e=+e,i=+i,s=+s;var r=this._x1,o=this._y1,c=e-t,a=i-n,l=r-t,h=o-n,u=l*l+h*h;if(s<0)throw new Error("negative radius: "+s);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(u>w)if(Math.abs(h*c-a*l)>w&&s){var f=e-r,y=i-o,d=c*c+a*a,p=f*f+y*y,g=Math.sqrt(d),_=Math.sqrt(u),k=s*Math.tan((v-Math.acos((d+u-p)/(2*g*_)))/2),x=k/_,m=k/g;Math.abs(x-1)>w&&(this._+="L"+(t+x*l)+","+(n+x*h)),this._+="A"+s+","+s+",0,0,"+ +(h*f>l*y)+","+(this._x1=t+m*c)+","+(this._y1=n+m*a)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,i,s,r){t=+t,n=+n,r=!!r;var o=(e=+e)*Math.cos(i),c=e*Math.sin(i),a=t+o,l=n+c,h=1^r,u=r?i-s:s-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+a+","+l:(Math.abs(this._x1-a)>w||Math.abs(this._y1-l)>w)&&(this._+="L"+a+","+l),e&&(u<0&&(u=u%b+b),u>L?this._+="A"+e+","+e+",0,1,"+h+","+(t-o)+","+(n-c)+"A"+e+","+e+",0,1,"+h+","+(this._x1=a)+","+(this._y1=l):u>w&&(this._+="A"+e+","+e+",0,"+ +(u>=v)+","+h+","+(this._x1=t+e*Math.cos(s))+","+(this._y1=n+e*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const A=E;var K=Array.prototype.slice;function M(t){return function(){return t}}function I(t){return t[0]}function T(t){return t[1]}function D(t){return t.source}function N(t){return t.target}function P(t){var n=D,e=N,i=I,s=T,r=null;function o(){var o,c=K.call(arguments),a=n.apply(this,c),l=e.apply(this,c);if(r||(r=o=A()),t(r,+i.apply(this,(c[0]=a,c)),+s.apply(this,c),+i.apply(this,(c[0]=l,c)),+s.apply(this,c)),o)return r=null,o+""||null}return o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(t){return arguments.length?(e=t,o):e},o.x=function(t){return arguments.length?(i="function"==typeof t?t:M(+t),o):i},o.y=function(t){return arguments.length?(s="function"==typeof t?t:M(+t),o):s},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}function C(t,n,e,i,s){t.moveTo(n,e),t.bezierCurveTo(n=(n+i)/2,e,n,s,i,s)}function O(t){return[t.source.x1,t.y0]}function $(t){return[t.target.x0,t.y1]}function j(){return P(C).source(O).target($)}var z=function(){var t=(0,i.K2)((function(t,n,e,i){for(e=e||{},i=t.length;i--;e[t[i]]=n);return e}),"o"),n=[1,9],e=[1,10],s=[1,5,10,12],r={trace:(0,i.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,i.K2)((function(t,n,e,i,s,r,o){var c=r.length-1;switch(s){case 7:const t=i.findOrCreateNode(r[c-4].trim().replaceAll('""','"')),n=i.findOrCreateNode(r[c-2].trim().replaceAll('""','"')),e=parseFloat(r[c].trim());i.addLink(t,n,e);break;case 8:case 9:case 11:this.$=r[c];break;case 10:this.$=r[c-1]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:e},{1:[2,6],7:11,10:[1,12]},t(e,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(s,[2,8]),t(s,[2,9]),{19:[1,16]},t(s,[2,11]),{1:[2,1]},{1:[2,5]},t(e,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:e},{15:18,16:7,17:8,18:n,20:e},{18:[1,19]},t(e,[2,3]),{12:[1,20]},t(s,[2,10]),{15:21,16:7,17:8,18:n,20:e},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,i.K2)((function(t,n){if(!n.recoverable){var e=new Error(t);throw e.hash=n,e}this.trace(t)}),"parseError"),parse:(0,i.K2)((function(t){var n=this,e=[0],s=[],r=[null],o=[],c=this.table,a="",l=0,h=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);y.setInput(t,d.yy),d.yy.lexer=y,d.yy.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function k(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)((function(t){e.length=e.length-2*t,r.length=r.length-t,o.length=o.length-t}),"popStack"),(0,i.K2)(k,"lex");for(var x,m,v,b,w,L,S,E,A,K={};;){if(v=e[e.length-1],this.defaultActions[v]?b=this.defaultActions[v]:(null==x&&(x=k()),b=c[v]&&c[v][x]),void 0===b||!b.length||!b[0]){var M="";for(L in A=[],c[v])this.terminals_[L]&&L>2&&A.push("'"+this.terminals_[L]+"'");M=y.showPosition?"Parse error on line "+(l+1)+":\n"+y.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[x]||x,line:y.yylineno,loc:g,expected:A})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+x);switch(b[0]){case 1:e.push(x),r.push(y.yytext),o.push(y.yylloc),e.push(b[1]),x=null,m?(x=m,m=null):(h=y.yyleng,a=y.yytext,l=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(S=this.productions_[b[1]][1],K.$=r[r.length-S],K._$={first_line:o[o.length-(S||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(S||1)].first_column,last_column:o[o.length-1].last_column},_&&(K._$.range=[o[o.length-(S||1)].range[0],o[o.length-1].range[1]]),void 0!==(w=this.performAction.apply(K,[a,h,l,d.yy,b[1],r,o].concat(f))))return w;S&&(e=e.slice(0,-1*S*2),r=r.slice(0,-1*S),o=o.slice(0,-1*S)),e.push(this.productions_[b[1]][0]),r.push(K.$),o.push(K._$),E=c[e[e.length-2]][e[e.length-1]],e.push(E);break;case 3:return!0}}return!0}),"parse")},o=function(){return{EOF:1,parseError:(0,i.K2)((function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)}),"parseError"),setInput:(0,i.K2)((function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,i.K2)((function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===i.length?this.yylloc.first_column:0)+i[i.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,i.K2)((function(){return this._more=!0,this}),"more"),reject:(0,i.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,i.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,n){var e,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:(0,i.K2)((function(){if(this.done)return this.EOF;var t,n,e,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((e=this._input.match(this.rules[s[r]]))&&(!n||e[0].length>n[0].length)){if(n=e,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,s[r])))return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?!1!==(t=this.test_match(n,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,i.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,i.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,i.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,i.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,i.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,i.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,i.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)((function(t,n,e,i){switch(e){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}}),"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}}();function c(){this.yy={}}return r.lexer=o,(0,i.K2)(c,"Parser"),c.prototype=r,r.Parser=c,new c}();z.parser=z;var U=z,F=[],W=[],G=new Map,V=(0,i.K2)((()=>{F=[],W=[],G=new Map,(0,i.IU)()}),"clear"),X=class{constructor(t,n,e=0){this.source=t,this.target=n,this.value=e}static{(0,i.K2)(this,"SankeyLink")}},Y=(0,i.K2)(((t,n,e)=>{F.push(new X(t,n,e))}),"addLink"),q=class{constructor(t){this.ID=t}static{(0,i.K2)(this,"SankeyNode")}},Q=(0,i.K2)((t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let n=G.get(t);return void 0===n&&(n=new q(t),G.set(t,n),W.push(n)),n}),"findOrCreateNode"),R=(0,i.K2)((()=>W),"getNodes"),B=(0,i.K2)((()=>F),"getLinks"),Z=(0,i.K2)((()=>({nodes:W.map((t=>({id:t.ID}))),links:F.map((t=>({source:t.source.ID,target:t.target.ID,value:t.value})))})),"getGraph"),H={nodesMap:G,getConfig:(0,i.K2)((()=>(0,i.D7)().sankey),"getConfig"),getNodes:R,getLinks:B,getGraph:Z,addLink:Y,findOrCreateNode:Q,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:V},J=class t{static{(0,i.K2)(this,"Uid")}static{this.count=0}static next(n){return new t(n+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},tt={left:function(t){return t.depth},right:function(t,n){return n-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?r(t.sourceLinks,o)-1:0},justify:c},nt=(0,i.K2)((function(t,n,e,r){const{securityLevel:o,sankey:c}=(0,i.D7)(),a=i.ME.sankey;let l;"sandbox"===o&&(l=(0,s.Ltv)("#i"+n));const h="sandbox"===o?(0,s.Ltv)(l.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),u="sandbox"===o?h.select(`[id="${n}"]`):(0,s.Ltv)(`[id="${n}"]`),f=c?.width??a.width,y=c?.height??a.width,d=c?.useMaxWidth??a.useMaxWidth,p=c?.nodeAlignment??a.nodeAlignment,g=c?.prefix??a.prefix,_=c?.suffix??a.suffix,k=c?.showValues??a.showValues,x=r.db.getGraph(),v=tt[p];m().nodeId((t=>t.id)).nodeWidth(10).nodePadding(10+(k?15:0)).nodeAlign(v).extent([[0,0],[f,y]])(x);const b=(0,s.UMr)(s.zt);u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",(t=>(t.uid=J.next("node-")).id)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"})).attr("x",(t=>t.x0)).attr("y",(t=>t.y0)).append("rect").attr("height",(t=>t.y1-t.y0)).attr("width",(t=>t.x1-t.x0)).attr("fill",(t=>b(t.id)));const w=(0,i.K2)((({id:t,value:n})=>k?`${t}\n${g}${Math.round(100*n)/100}${_}`:t),"getText");u.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",(t=>t.x0<f/2?t.x1+6:t.x0-6)).attr("y",(t=>(t.y1+t.y0)/2)).attr("dy",(k?"0":"0.35")+"em").attr("text-anchor",(t=>t.x0<f/2?"start":"end")).text(w);const L=u.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(x.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),S=c?.linkColor??"gradient";if("gradient"===S){const t=L.append("linearGradient").attr("id",(t=>(t.uid=J.next("linearGradient-")).id)).attr("gradientUnits","userSpaceOnUse").attr("x1",(t=>t.source.x1)).attr("x2",(t=>t.target.x0));t.append("stop").attr("offset","0%").attr("stop-color",(t=>b(t.source.id))),t.append("stop").attr("offset","100%").attr("stop-color",(t=>b(t.target.id)))}let E;switch(S){case"gradient":E=(0,i.K2)((t=>t.uid),"coloring");break;case"source":E=(0,i.K2)((t=>b(t.source.id)),"coloring");break;case"target":E=(0,i.K2)((t=>b(t.target.id)),"coloring");break;default:E=S}L.append("path").attr("d",j()).attr("stroke",E).attr("stroke-width",(t=>Math.max(1,t.width))),(0,i.ot)(void 0,u,0,d)}),"draw"),et={draw:nt},it=(0,i.K2)((t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim()),"prepareTextForParsing"),st=U.parse.bind(U);U.parse=t=>st(it(t));var rt={parser:U,db:H,renderer:et}}}]); \ No newline at end of file diff --git a/website/assets/js/46db7f29.d4baae75.js b/website/assets/js/46db7f29.d4baae75.js new file mode 100644 index 000000000..40813627d --- /dev/null +++ b/website/assets/js/46db7f29.d4baae75.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2419],{4264:(e,n,l)=>{"use strict";l.d(n,{L:()=>d});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=l(7119),o=l(6487),s=l(3007);const t="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",i="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=l(7020),c=l(4848);const p={};function d(e){let{source:n,data:d=p,options:m}=e;const E=n.maxPage&&"1"!==n.maxPage;return(0,c.jsxs)("div",{className:a.FormExample,children:[(0,c.jsxs)(r.A,{children:[(0,c.jsx)(o.A,{value:"source",label:"Source",default:!0,children:(0,c.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,c.jsx)(o.A,{value:"data",label:"Data",children:(0,c.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(d,null,2)})})]}),(0,c.jsxs)(r.A,{children:[(0,c.jsx)(o.A,{value:"code",label:"Code",children:(0,c.jsx)(s.A,{language:"tsx",className:a.FormExampleCode,children:E?i:t})}),(0,c.jsx)(o.A,{value:"render",label:"Rendu",default:!0,children:(0,c.jsx)("div",{className:a.FormExampleRender,children:(0,c.jsx)(u.A,{fallback:(0,c.jsx)("div",{children:"Loading..."}),children:()=>{const e=E?l(5152).g:l(3314).S;return(0,c.jsx)(e,{source:n,data:d,options:m})}})})})]})]})}},3314:(e,n,l)=>{"use strict";l.d(n,{S:()=>o});var a=l(1999),r=l(4848);function o(e){let{source:n,data:l}=e;const{getComponents:o,Provider:s}=(0,a.O1)(n,l,{initialPage:"1"});return(0,r.jsx)(s,{children:(0,r.jsx)(a.R2,{components:o()})})}},5152:(e,n,l)=>{"use strict";l.d(n,{g:()=>s});var a=l(1999),r=l(6540),o=l(4848);function s(e){let{source:n,data:l,options:s}=e;const{getComponents:t,isLastPage:i,isFirstPage:u,goPreviousPage:c,goNextPage:p,Provider:d,compileControls:m}=(0,a.O1)(n,l,{initialPage:"1",...s}),[E,T]=(0,r.useState)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(d,{children:(0,o.jsx)(a.R2,{components:t(),componentProps:()=>({errors:E?.currentErrors})})}),(0,o.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,o.jsx)("button",{className:"button button--primary",disabled:u,onClick:c,children:"Pr\xe9c\xe9dent"}),(0,o.jsx)("button",{className:"button button--primary",disabled:i,onClick:()=>{const e=m();e.currentErrors?T(e):p()},children:"Suivant"})]}),E&&(0,o.jsx)(a.I1,{errors:E.currentErrors,goNext:()=>{T(void 0),p()},onClose:()=>{T(void 0)},isCritical:E.isCritical})]})}},3267:(e,n,l)=>{"use strict";l.d(n,{e:()=>r});var a=l(4848);function r(e){let{type:n}=e;const l=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,a.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:l,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,a.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},8194:(e,n,l)=>{"use strict";l.r(n),l.d(n,{assets:()=>p,contentTitle:()=>c,default:()=>E,frontMatter:()=>u,metadata:()=>a,toc:()=>d});const a=JSON.parse('{"id":"components/fields/checkboxGroup","title":"CheckboxGroup","description":"Affiche une liste de case \xe0 cocher. Chaque case sera associ\xe9 \xe0 une variable sp\xe9cifique pr\xe9cis\xe9 au travers de l\'option responses. Chaque r\xe9ponse prendra la valeur true ou false en fonction de l\'\xe9tat de la case \xe0 cocher.","source":"@site/docs/components/fields/checkboxGroup.mdx","sourceDirName":"components/fields","slug":"/components/fields/checkboxGroup","permalink":"/Lunatic/docs/components/fields/checkboxGroup","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/checkboxGroup.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"CheckboxBoolean","permalink":"/Lunatic/docs/components/fields/checkboxBoolean"},"next":{"title":"Table","permalink":"/Lunatic/docs/components/fields/table"}}');var r=l(4848),o=l(8453),s=l(3267);const t=JSON.parse('{"$schema":"../../../lunatic-schema.json","components":[{"id":"checkboxbooleanGroupNumeric","componentType":"CheckboxGroup","page":"1","label":{"value":"Situation matrimoniale","type":"TXT"},"orientation":"horizontal","hierarchy":{"sequence":{"id":"kmnnjaf1","page":"1","label":{"value":"Situation matrimoniale","type":"Text"}},"subSequence":{"id":"kmw3dz2a","page":"2","label":{"value":"Mois pr\xe9f\xe9r\xe9s de l\'ann\xe9e","type":"Text"}}},"missingResponse":{"name":"SITUMATRI_MISSING"},"responses":[{"id":"kmort6x9-QOP-kmosa98y","label":{"value":"Fran\xe7aise de naissance ou par r\xe9int\xe9gration","type":"Text"},"response":{"name":"NATIO1N1"}},{"id":"kmort6x9-QOP-kmos360k","label":{"value":"\\"Fran\xe7aise par d\xe9claration, naturalisation, option \xe0 la majorit\xe9\\"","type":"VTL"},"response":{"name":"NATIO1N2"}},{"id":"kmort6x9-QOP-kmos37e1","label":{"value":"\xc9trang\xe8re","type":"Text"},"response":{"name":"NATIO1N3"}},{"id":"kmort6x9-QOP-kmorue9c","label":{"value":"Apatride (pas de nationalit\xe9)","type":"Text"},"response":{"name":"NATIO1N4"}}]},{"id":"checkboxbooleanGroupAlpha","componentType":"CheckboxGroup","page":"2","label":{"value":"Mois pr\xe9f\xe9r\xe9s de l\'ann\xe9e","type":"TXT"},"orientation":"vertical","hierarchy":{"sequence":{"id":"kmnnjaf1","page":"1","label":{"value":"Situation matrimoniale","type":"Text"}},"subSequence":{"id":"kmw3dz2a","page":"2","label":{"value":"Mois pr\xe9f\xe9r\xe9s de l\'ann\xe9e","type":"Text"}}},"missingResponse":{"name":"SITUMATRI_MISSING"},"bindingDependencies":["MOIS1","MOIS2","MOIS3","MOIS4","MOIS5","MOIS6","MOIS7","MOIS8","MOIS9","MOIS10","MOIS11","MOIS12"],"responses":[{"id":"mois1","label":{"value":"Janvier","type":"Text"},"response":{"name":"MOIS1"}},{"id":"mois2","label":{"value":"F\xe9vrier","type":"Text"},"response":{"name":"MOIS2"}},{"id":"mois3","label":{"value":"Mars","type":"Text"},"response":{"name":"MOIS3"}},{"id":"mois4","label":{"value":"Avril","type":"Text"},"response":{"name":"MOIS4"}},{"id":"mois5","label":{"value":"Mai","type":"Text"},"response":{"name":"MOIS5"}},{"id":"mois6","label":{"value":"Juin","type":"Text"},"response":{"name":"MOIS6"}},{"id":"mois7","label":{"value":"Juillet","type":"Text"},"response":{"name":"MOIS7"}},{"id":"mois8","label":{"value":"Ao\xfbt","type":"Text"},"response":{"name":"MOIS8"}},{"id":"mois9","label":{"value":"Septembre","type":"Text"},"response":{"name":"MOIS9"}},{"id":"mois10","label":{"value":"Octobre","type":"Text"},"response":{"name":"MOIS10"}},{"id":"mois11","label":{"value":"Novembre","type":"Text"},"response":{"name":"MOIS11"}},{"id":"mois12","label":{"value":"D\xe9cembre","type":"Text"},"response":{"name":"MOIS12"}}]}],"variables":[{"variableType":"COLLECTED","name":"NATIO1N1","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"NATIO1N2","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"NATIO1N3","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"NATIO1N4","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS1","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS2","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS3","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS4","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS5","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS6","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS7","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS8","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS9","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS10","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS11","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"MOIS12","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=l(4264);const u={},c="CheckboxGroup",p={},d=[];function m(e){const n={code:"code",h1:"h1",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"checkboxgroup",children:"CheckboxGroup"})}),"\n",(0,r.jsxs)(n.p,{children:["Affiche une liste de case \xe0 cocher. Chaque case sera associ\xe9 \xe0 une variable sp\xe9cifique pr\xe9cis\xe9 au travers de l'option ",(0,r.jsx)(n.strong,{children:"responses"}),". Chaque r\xe9ponse prendra la valeur ",(0,r.jsx)(n.code,{children:"true"})," ou ",(0,r.jsx)(n.code,{children:"false"})," en fonction de l'\xe9tat de la case \xe0 cocher."]}),"\n","\n",(0,r.jsx)(s.e,{type:"ComponentCheckboxGroupType"}),"\n","\n",(0,r.jsx)(i.L,{source:t})]})}function E(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/4d072e10.f0ade135.js b/website/assets/js/4d072e10.f0ade135.js new file mode 100644 index 000000000..afac87459 --- /dev/null +++ b/website/assets/js/4d072e10.f0ade135.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1936],{369:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"api/type-aliases/LunaticError","title":"Type Alias: LunaticError","description":"LunaticError: Pick\\\\ & object","source":"@site/docs/api/type-aliases/LunaticError.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticError","permalink":"/Lunatic/docs/api/type-aliases/LunaticError","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticError.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticData","permalink":"/Lunatic/docs/api/type-aliases/LunaticData"},"next":{"title":"LunaticExpression","permalink":"/Lunatic/docs/api/type-aliases/LunaticExpression"}}');var i=n(4848),s=n(8453);const c={},a="Type Alias: LunaticError",o={},d=[{value:"Type declaration",id:"type-declaration",level:2},{value:"errorMessage",id:"errormessage",level:3},{value:"Defined in",id:"defined-in",level:2}];function l(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"type-alias-lunaticerror",children:"Type Alias: LunaticError"})}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"LunaticError"}),": ",(0,i.jsx)(t.code,{children:"Pick"}),"<",(0,i.jsx)(t.code,{children:"ControlDefinition"}),", ",(0,i.jsx)(t.code,{children:'"id"'})," | ",(0,i.jsx)(t.code,{children:'"criticality"'})," | ",(0,i.jsx)(t.code,{children:'"typeOfControl"'}),"> & ",(0,i.jsx)(t.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsxs)(t.p,{children:["Errors returned by ",(0,i.jsx)(t.code,{children:"useLunatic"})," hook when an input check is made with their\nid, criticity, type and the message to display to the user."]}),"\n",(0,i.jsx)(t.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,i.jsx)(t.h3,{id:"errormessage",children:"errorMessage"}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"errorMessage"}),": ",(0,i.jsx)(t.code,{children:"ReactNode"})]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L53",children:"src/use-lunatic/type.ts:53"})})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>a});var r=n(6540);const i={},s=r.createContext(i);function c(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/4e1b86ca.9bf26b83.js b/website/assets/js/4e1b86ca.9bf26b83.js new file mode 100644 index 000000000..895629d1c --- /dev/null +++ b/website/assets/js/4e1b86ca.9bf26b83.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[373],{2501:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>r,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"api/type-aliases/LunaticComponentDefinition","title":"Type Alias: LunaticComponentDefinition\\\\<T\\\\>","description":"LunaticComponentDefinition\\\\: ComponentDefinition & object","source":"@site/docs/api/type-aliases/LunaticComponentDefinition.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticComponentDefinition","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticComponentDefinition.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticCollectedValue","permalink":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue"},"next":{"title":"LunaticComponentProps","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentProps"}}');var o=t(4848),s=t(8453);const c={},a="Type Alias: LunaticComponentDefinition<T>",r={},d=[{value:"Type declaration",id:"type-declaration",level:2},{value:"componentType",id:"componenttype",level:3},{value:"page?",id:"page",level:3},{value:"Type Parameters",id:"type-parameters",level:2},{value:"Defined in",id:"defined-in",level:2}];function l(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"type-alias-lunaticcomponentdefinitiont",children:"Type Alias: LunaticComponentDefinition<T>"})}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"LunaticComponentDefinition"}),"<",(0,o.jsx)(n.code,{children:"T"}),">: ",(0,o.jsx)(n.code,{children:"ComponentDefinition"})," & ",(0,o.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,o.jsx)(n.h3,{id:"componenttype",children:"componentType"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"componentType"}),": ",(0,o.jsx)(n.code,{children:"T"})]}),"\n"]}),"\n",(0,o.jsx)(n.h3,{id:"page",children:"page?"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"optional"})," ",(0,o.jsx)(n.strong,{children:"page"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,o.jsxs)(n.table,{children:[(0,o.jsx)(n.thead,{children:(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.th,{children:"Type Parameter"}),(0,o.jsx)(n.th,{children:"Default type"})]})}),(0,o.jsx)(n.tbody,{children:(0,o.jsxs)(n.tr,{children:[(0,o.jsxs)(n.td,{children:[(0,o.jsx)(n.code,{children:"T"})," ",(0,o.jsx)(n.em,{children:"extends"})," ",(0,o.jsx)(n.code,{children:"string"})]}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,o.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L21",children:"src/use-lunatic/type.ts:21"})})]})}function p(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>c,x:()=>a});var i=t(6540);const o={},s=i.createContext(o);function c(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/4fe25d84.51c41bca.js b/website/assets/js/4fe25d84.51c41bca.js new file mode 100644 index 000000000..01abc2cf2 --- /dev/null +++ b/website/assets/js/4fe25d84.51c41bca.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3371],{4264:(e,n,o)=>{"use strict";o.d(n,{L:()=>d});const r={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var t=o(7119),s=o(6487),a=o(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var c=o(7020),u=o(4848);const p={};function d(e){let{source:n,data:d=p,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:r.FormExample,children:[(0,u.jsxs)(t.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(d,null,2)})})]}),(0,u.jsxs)(t.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:r.FormExampleCode,children:g?l:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:r.FormExampleRender,children:(0,u.jsx)(c.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?o(5152).g:o(3314).S;return(0,u.jsx)(e,{source:n,data:d,options:m})}})})})]})]})}},3314:(e,n,o)=>{"use strict";o.d(n,{S:()=>s});var r=o(1999),t=o(4848);function s(e){let{source:n,data:o}=e;const{getComponents:s,Provider:a}=(0,r.O1)(n,o,{initialPage:"1"});return(0,t.jsx)(a,{children:(0,t.jsx)(r.R2,{components:s()})})}},5152:(e,n,o)=>{"use strict";o.d(n,{g:()=>a});var r=o(1999),t=o(6540),s=o(4848);function a(e){let{source:n,data:o,options:a}=e;const{getComponents:i,isLastPage:l,isFirstPage:c,goPreviousPage:u,goNextPage:p,Provider:d,compileControls:m}=(0,r.O1)(n,o,{initialPage:"1",...a}),[g,x]=(0,t.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(d,{children:(0,s.jsx)(r.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?x(e):p()},children:"Suivant"})]}),g&&(0,s.jsx)(r.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),p()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},7285:(e,n,o)=>{"use strict";o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"components/aggregators/loop","title":"Loop","description":"Le composant Loop (parfois appel\xe9 BlockForLoop) permet de cr\xe9er une boucle permettant de poser une s\xe9rie de questions plusieurs fois (exemple: demander des informations sur plusieurs personnes).","source":"@site/docs/components/aggregators/loop.mdx","sourceDirName":"components/aggregators","slug":"/components/aggregators/loop","permalink":"/Lunatic/docs/components/aggregators/loop","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/aggregators/loop.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Agr\xe9gateurs","permalink":"/Lunatic/docs/category/agr\xe9gateurs"},"next":{"title":"RosterForLoop","permalink":"/Lunatic/docs/components/aggregators/rosterForLoop"}}');var t=o(4848),s=o(8453);const a=JSON.parse('{"$schema":"../../../lunatic-schema.json","maxPage":"3","components":[{"id":"seq","componentType":"Sequence","label":{"value":"\\"Description des individus de votre logement\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"1"},{"id":"loop-prenom","componentType":"Loop","label":{"value":"\\"Ajouter un individu\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"bindingDependencies":["PRENOM"],"lines":{"min":{"value":"1","type":"VTL"},"max":{"value":"10","type":"VTL"}},"page":"1","paginatedLoop":false,"components":[{"componentType":"Input","label":{"value":"\\"Pr\xe9nom\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["PRENOM"],"id":"prenom","response":{"name":"PRENOM"}},{"componentType":"InputNumber","label":{"value":"\\"Age\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["AGE"],"id":"Age","response":{"name":"AGE"}}]},{"id":"seq-end","componentType":"Sequence","label":{"value":"\\"End\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"2"}],"variables":[{"variableType":"COLLECTED","name":"PRENOM","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}},{"variableType":"COLLECTED","name":"AGE","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}}]}');var i=o(4264);const l=JSON.parse('{"$schema":"../../../lunatic-schema.json","maxPage":"3","components":[{"id":"seq","componentType":"Sequence","label":{"value":"\\"Description des individus de votre logement\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"1"},{"id":"loop-prenom","componentType":"Loop","label":{"value":"\\"Ajouter un individu\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"bindingDependencies":["PRENOM"],"lines":{"min":{"value":"1","type":"VTL"},"max":{"value":"10","type":"VTL"}},"page":"1","paginatedLoop":false,"components":[{"componentType":"Input","label":{"value":"\\"Pr\xe9nom\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["PRENOM"],"id":"prenom","response":{"name":"PRENOM"}}]},{"id":"loop","componentType":"Loop","loopDependencies":["PRENOM"],"iterations":{"value":"count(PRENOM)","type":"VTL"},"page":"2","maxPage":"1","depth":1,"paginatedLoop":true,"conditionFilter":{"value":"true","type":"VTL"},"components":[{"id":"age","label":{"value":"PRENOM || \\", quel est v\xf4tre \xe2ge ?\\"","type":"VTL"},"conditionFilter":{"value":"true","type":"VTL"},"page":"2.1","componentType":"InputNumber","min":0,"max":120,"decimals":0,"response":{"name":"AGE"}}]},{"id":"seq-end","componentType":"Sequence","label":{"value":"\\"End\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"3"}],"resizing":{"PRENOM":{"size":"count(PRENOM)","variables":["AGE"]}},"variables":[{"variableType":"COLLECTED","name":"PRENOM","values":{"PREVIOUS":null,"COLLECTED":["John","Jane"],"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"AGE","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}'),c={},u="Loop",p={},d=[{value:"Boucle non pagin\xe9e",id:"boucle-non-pagin\xe9e",level:2},{value:"Boucle pagin\xe9e",id:"boucle-pagin\xe9e",level:2}];function m(e){const n={admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"loop",children:"Loop"})}),"\n",(0,t.jsxs)(n.p,{children:["Le composant ",(0,t.jsx)(n.strong,{children:"Loop"})," (parfois appel\xe9 BlockForLoop) permet de cr\xe9er une boucle permettant de poser une s\xe9rie de questions plusieurs fois (exemple: demander des informations sur plusieurs personnes)."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"paginatedLoop"}),", indique si la boucle doit \xeatre pagin\xe9e ou non (defaut: false)"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"components"}),", tableau contenant les composants enfant \xe0 cette boucle"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"boucle-non-pagin\xe9e",children:"Boucle non pagin\xe9e"}),"\n",(0,t.jsx)(n.p,{children:"Une boucle non pagin\xe9e pr\xe9sentera l'ensemble des champs les uns \xe0 la suite des autres."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"lines"}),", permet le contr\xf4le sur le nombre de lignes (ajouter / supprimer)","\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"min"}),", nombre minimal de lignes"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"max"}),", nombre maximal de lignes"]}),"\n"]}),"\n"]}),"\n"]}),"\n","\n",(0,t.jsx)(i.L,{source:a}),"\n",(0,t.jsx)(n.h2,{id:"boucle-pagin\xe9e",children:"Boucle pagin\xe9e"}),"\n",(0,t.jsx)(n.p,{children:"Une boucle pagin\xe9e d\xe9clenchera un syst\xe8me de sous-navigation. Lorsque l'utilisateur arrive sur la page d'une boucle il sera automatiquement redirig\xe9 sur la premi\xe8re sous page."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"iterations"}),", expression VTL permettant de calculer le nombre d'it\xe9rations \xe0 effectuer"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"maxPage"}),", num\xe9ro de la derni\xe8re sous page"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Les composants dans le tableau ",(0,t.jsx)(n.code,{children:"components"})," devront avoir un num\xe9ro de page pr\xe9fix\xe9 par la ",(0,t.jsx)(n.code,{children:"page"})," de cette boucle, ex: ",(0,t.jsx)(n.code,{children:"3.1"}),")"]})}),"\n","\n",(0,t.jsx)(i.L,{source:l})]})}function g(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/5110.dbb44139.js b/website/assets/js/5110.dbb44139.js new file mode 100644 index 000000000..f4db17c08 --- /dev/null +++ b/website/assets/js/5110.dbb44139.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5110],{5110:(e,r,s)=>{s.d(r,{diagram:()=>i});var a=s(758),t=(s(6474),s(7308),s(7938),s(1282),s(4532),s(7588),s(3115),s(483),s(540),s(9)),i={parser:a.Zk,db:a.iP,renderer:a.q7,styles:a.tM,init:(0,t.K2)((e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,a.iP.clear()}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/532.87b60d88.js b/website/assets/js/532.87b60d88.js new file mode 100644 index 000000000..4b6a04e1a --- /dev/null +++ b/website/assets/js/532.87b60d88.js @@ -0,0 +1,2 @@ +/*! For license information please see 532.87b60d88.js.LICENSE.txt */ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[532],{9119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},6750:(t,e,r)=>{"use strict";e.J=void 0;var n=r(9119);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}e.J=function(t){if(!t)return n.BLANK_URL;var e,r,a=i(t.trim());do{e=(a=i(a=(r=a,r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||a.match(n.htmlEntitiesRegex)||a.match(n.htmlCtrlEntityRegex)||a.match(n.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var o=a;if(!o)return n.BLANK_URL;if(function(t){return n.relativeFirstCharacters.indexOf(t[0])>-1}(o))return o;var s=o.trimStart(),l=s.match(n.urlSchemeRegex);if(!l)return o;var c=l[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(c))return n.BLANK_URL;var h=s.replace(/\\/g,"/");if("mailto:"===c||c.includes("://"))return h;if("http:"===c||"https:"===c){if(!function(t){return URL.canParse(t)}(h))return n.BLANK_URL;var u=new URL(h);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return h}},7235:(t,e,r)=>{"use strict";r.d(e,{A:()=>B});var n=r(6540),i=r(4848);function a(t){const{mdxAdmonitionTitle:e,rest:r}=function(t){const e=n.Children.toArray(t),r=e.find((t=>n.isValidElement(t)&&"mdxAdmonitionTitle"===t.type)),a=e.filter((t=>t!==r)),o=r?.props.children;return{mdxAdmonitionTitle:o,rest:a.length>0?(0,i.jsx)(i.Fragment,{children:a}):null}}(t.children),a=t.title??e;return{...t,...a&&{title:a},children:r}}var o=r(8215),s=r(2032),l=r(4717);const c={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function h(t){let{type:e,className:r,children:n}=t;return(0,i.jsx)("div",{className:(0,o.A)(l.G.common.admonition,l.G.common.admonitionType(e),c.admonition,r),children:n})}function u(t){let{icon:e,title:r}=t;return(0,i.jsxs)("div",{className:c.admonitionHeading,children:[(0,i.jsx)("span",{className:c.admonitionIcon,children:e}),r]})}function d(t){let{children:e}=t;return e?(0,i.jsx)("div",{className:c.admonitionContent,children:e}):null}function p(t){const{type:e,icon:r,title:n,children:a,className:o}=t;return(0,i.jsxs)(h,{type:e,className:o,children:[n||r?(0,i.jsx)(u,{title:n,icon:r}):null,(0,i.jsx)(d,{children:a})]})}function f(t){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const g={icon:(0,i.jsx)(f,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function y(t){return(0,i.jsx)(p,{...g,...t,className:(0,o.A)("alert alert--secondary",t.className),children:t.children})}function m(t){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,i.jsx)(m,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function b(t){return(0,i.jsx)(p,{...x,...t,className:(0,o.A)("alert alert--success",t.className),children:t.children})}function k(t){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const C={icon:(0,i.jsx)(k,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function w(t){return(0,i.jsx)(p,{...C,...t,className:(0,o.A)("alert alert--info",t.className),children:t.children})}function _(t){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const v={icon:(0,i.jsx)(_,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function S(t){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const T={icon:(0,i.jsx)(S,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const A={icon:(0,i.jsx)(_,{}),title:(0,i.jsx)(s.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const M={...{note:y,tip:b,info:w,warning:function(t){return(0,i.jsx)(p,{...v,...t,className:(0,o.A)("alert alert--warning",t.className),children:t.children})},danger:function(t){return(0,i.jsx)(p,{...T,...t,className:(0,o.A)("alert alert--danger",t.className),children:t.children})}},...{secondary:t=>(0,i.jsx)(y,{title:"secondary",...t}),important:t=>(0,i.jsx)(w,{title:"important",...t}),success:t=>(0,i.jsx)(b,{title:"success",...t}),caution:function(t){return(0,i.jsx)(p,{...A,...t,className:(0,o.A)("alert alert--warning",t.className),children:t.children})}}};function B(t){const e=a(t),r=(n=e.type,M[n]||(console.warn(`No admonition component found for admonition type "${n}". Using Info as fallback.`),M.info));var n;return(0,i.jsx)(r,{...e})}},9144:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});r(6540);var n=r(8215),i=r(2032),a=r(4502),o=r(4848);function s(){return(0,o.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,o.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,o.jsx)(a.A,{children:(0,o.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function h(){return(0,o.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function u(){return(0,o.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}var d=r(4717),p=r(7235);function f(t){let{className:e}=t;return(0,o.jsx)(p.A,{type:"caution",title:(0,o.jsx)(h,{}),className:(0,n.A)(e,d.G.common.draftBanner),children:(0,o.jsx)(u,{})})}function g(t){let{className:e}=t;return(0,o.jsx)(p.A,{type:"caution",title:(0,o.jsx)(s,{}),className:(0,n.A)(e,d.G.common.unlistedBanner),children:(0,o.jsx)(l,{})})}function y(t){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c,{}),(0,o.jsx)(g,{...t})]})}function m(t){let{metadata:e}=t;const{unlisted:r,frontMatter:n}=e;return(0,o.jsxs)(o.Fragment,{children:[(r||n.unlisted)&&(0,o.jsx)(y,{}),n.draft&&(0,o.jsx)(f,{})]})}},3592:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});r(6540);var n=r(8215),i=r(2032),a=r(4717),o=r(7880);const s={iconEdit:"iconEdit_Z9Sw"};var l=r(4848);function c(t){let{className:e,...r}=t;return(0,l.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,n.A)(s.iconEdit,e),"aria-hidden":"true",...r,children:(0,l.jsx)("g",{children:(0,l.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function h(t){let{editUrl:e}=t;return(0,l.jsxs)(o.A,{to:e,className:a.G.common.editThisPage,children:[(0,l.jsx)(c,{}),(0,l.jsx)(i.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var u=r(5792);function d(t){void 0===t&&(t={});const{i18n:{currentLocale:e}}=(0,u.A)(),r=function(){const{i18n:{currentLocale:t,localeConfigs:e}}=(0,u.A)();return e[t].calendar}();return new Intl.DateTimeFormat(e,{calendar:r,...t})}function p(t){let{lastUpdatedAt:e}=t;const r=new Date(e),n=d({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(r);return(0,l.jsx)(i.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,l.jsx)("b",{children:(0,l.jsx)("time",{dateTime:r.toISOString(),itemProp:"dateModified",children:n})})},children:" on {date}"})}function f(t){let{lastUpdatedBy:e}=t;return(0,l.jsx)(i.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,l.jsx)("b",{children:e})},children:" by {user}"})}function g(t){let{lastUpdatedAt:e,lastUpdatedBy:r}=t;return(0,l.jsxs)("span",{className:a.G.common.lastUpdated,children:[(0,l.jsx)(i.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:e?(0,l.jsx)(p,{lastUpdatedAt:e}):"",byUser:r?(0,l.jsx)(f,{lastUpdatedBy:r}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const y={lastUpdated:"lastUpdated_JAkA"};function m(t){let{className:e,editUrl:r,lastUpdatedAt:i,lastUpdatedBy:a}=t;return(0,l.jsxs)("div",{className:(0,n.A)("row",e),children:[(0,l.jsx)("div",{className:"col",children:r&&(0,l.jsx)(h,{editUrl:r})}),(0,l.jsx)("div",{className:(0,n.A)("col",y.lastUpdated),children:(i||a)&&(0,l.jsx)(g,{lastUpdatedAt:i,lastUpdatedBy:a})})]})}},5872:(t,e,r)=>{"use strict";r.d(e,{A:()=>Ar});var n=r(6540),i=r(8453),a=r(4502),o=r(3007),s=r(4848);function l(t){return(0,s.jsx)("code",{...t})}var c=r(7880);var h=r(8215),u=r(5066),d=r(7756),p=r(4753),f=r(936);const g={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function y(t){return!!t&&("SUMMARY"===t.tagName||y(t.parentElement))}function m(t,e){return!!t&&(t===e||m(t.parentElement,e))}function x(t){let{summary:e,children:r,...i}=t;(0,d.A)().collectAnchor(i.id);const a=(0,p.A)(),o=(0,n.useRef)(null),{collapsed:l,setCollapsed:c}=(0,f.u)({initialState:!i.open}),[h,x]=(0,n.useState)(i.open),b=n.isValidElement(e)?e:(0,s.jsx)("summary",{children:e??"Details"});return(0,s.jsxs)("details",{...i,ref:o,open:h,"data-collapsed":l,className:(0,u.A)(g.details,a&&g.isBrowser,i.className),onMouseDown:t=>{y(t.target)&&t.detail>1&&t.preventDefault()},onClick:t=>{t.stopPropagation();const e=t.target;y(e)&&m(e,o.current)&&(t.preventDefault(),l?(c(!1),x(!0)):c(!0))},children:[b,(0,s.jsx)(f.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:t=>{c(t),x(!t)},children:(0,s.jsx)("div",{className:g.collapsibleContent,children:r})})]})}const b={details:"details_b_Ee"},k="alert alert--info";function C(t){let{...e}=t;return(0,s.jsx)(x,{...e,className:(0,h.A)(k,b.details,e.className)})}function w(t){const e=n.Children.toArray(t.children),r=e.find((t=>n.isValidElement(t)&&"summary"===t.type)),i=(0,s.jsx)(s.Fragment,{children:e.filter((t=>t!==r))});return(0,s.jsx)(C,{...t,summary:r,children:i})}var _=r(8445);function v(t){return(0,s.jsx)(_.A,{...t})}const S={containsTaskList:"containsTaskList_mC6p"};function T(t){if(void 0!==t)return(0,h.A)(t,t?.includes("contains-task-list")&&S.containsTaskList)}const A={img:"img_ev3q"};var M=r(7235),B=r(35),L=r(1373),F=r(1436),$=r(5331),E=r(9874),D=r(7308),O=(r(7938),r(1282),r(4532)),N=(r(7588),r(3115),r(483),r(540)),I=r(6144),R=r(7286),z=r(9),P=r(513),j=r(7),K="comm",q="rule",W="decl",H=Math.abs,U=String.fromCharCode;Object.assign;function Y(t){return t.trim()}function G(t,e,r){return t.replace(e,r)}function V(t,e,r){return t.indexOf(e,r)}function Z(t,e){return 0|t.charCodeAt(e)}function X(t,e,r){return t.slice(e,r)}function Q(t){return t.length}function J(t,e){return e.push(t),t}function tt(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function et(t,e,r,n){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case W:return t.return=t.return||t.value;case K:return"";case"@keyframes":return t.return=t.value+"{"+tt(t.children,n)+"}";case q:if(!Q(t.value=t.props.join(",")))return""}return Q(r=tt(t.children,n))?t.return=t.value+"{"+r+"}":""}var rt=1,nt=1,it=0,at=0,ot=0,st="";function lt(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:rt,column:nt,length:o,return:"",siblings:s}}function ct(){return ot=at>0?Z(st,--at):0,nt--,10===ot&&(nt=1,rt--),ot}function ht(){return ot=at<it?Z(st,at++):0,nt++,10===ot&&(nt=1,rt++),ot}function ut(){return Z(st,at)}function dt(){return at}function pt(t,e){return X(st,t,e)}function ft(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gt(t){return rt=nt=1,it=Q(st=t),at=0,[]}function yt(t){return st="",t}function mt(t){return Y(pt(at-1,kt(91===t?t+2:40===t?t+1:t)))}function xt(t){for(;(ot=ut())&&ot<33;)ht();return ft(t)>2||ft(ot)>3?"":" "}function bt(t,e){for(;--e&&ht()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return pt(t,dt()+(e<6&&32==ut()&&32==ht()))}function kt(t){for(;ht();)switch(ot){case t:return at;case 34:case 39:34!==t&&39!==t&&kt(ot);break;case 40:41===t&&kt(t);break;case 92:ht()}return at}function Ct(t,e){for(;ht()&&t+ot!==57&&(t+ot!==84||47!==ut()););return"/*"+pt(e,at-1)+"*"+U(47===t?t:ht())}function wt(t){for(;!ft(ut());)ht();return pt(t,at)}function _t(t){return yt(vt("",null,null,null,[""],t=gt(t),0,[0],t))}function vt(t,e,r,n,i,a,o,s,l){for(var c=0,h=0,u=o,d=0,p=0,f=0,g=1,y=1,m=1,x=0,b="",k=i,C=a,w=n,_=b;y;)switch(f=x,x=ht()){case 40:if(108!=f&&58==Z(_,u-1)){-1!=V(_+=G(mt(x),"&","&\f"),"&\f",H(c?s[c-1]:0))&&(m=-1);break}case 34:case 39:case 91:_+=mt(x);break;case 9:case 10:case 13:case 32:_+=xt(f);break;case 92:_+=bt(dt()-1,7);continue;case 47:switch(ut()){case 42:case 47:J(Tt(Ct(ht(),dt()),e,r,l),l),5!=ft(f||1)&&5!=ft(ut()||1)||!Q(_)||" "===X(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*g:s[c++]=Q(_)*m;case 125*g:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+h:-1==m&&(_=G(_,/\f/g,"")),p>0&&(Q(_)-u||0===g&&47===f)&&J(p>32?At(_+";",n,r,u-1,l):At(G(_," ","")+";",n,r,u-2,l),l);break;case 59:_+=";";default:if(J(w=St(_,e,r,c,h,i,s,b,k=[],C=[],u,a),a),123===x)if(0===h)vt(_,e,w,w,k,a,u,s,C);else switch(99===d&&110===Z(_,3)?100:d){case 100:case 108:case 109:case 115:vt(t,w,w,n&&J(St(t,w,w,0,0,i,s,b,i,k=[],u,C),C),i,C,u,s,n?k:C);break;default:vt(_,w,w,w,[""],C,0,s,C)}}c=h=p=0,g=m=1,b=_="",u=o;break;case 58:u=1+Q(_),p=f;default:if(g<1)if(123==x)--g;else if(125==x&&0==g++&&125==ct())continue;switch(_+=U(x),x*g){case 38:m=h>0?1:(_+="\f",-1);break;case 44:s[c++]=(Q(_)-1)*m,m=1;break;case 64:45===ut()&&(_+=mt(ht())),d=ut(),h=u=Q(b=_+=wt(dt())),x++;break;case 45:45===f&&2==Q(_)&&(g=0)}}return a}function St(t,e,r,n,i,a,o,s,l,c,h,u){for(var d=i-1,p=0===i?a:[""],f=function(t){return t.length}(p),g=0,y=0,m=0;g<n;++g)for(var x=0,b=X(t,d+1,d=H(y=o[g])),k=t;x<f;++x)(k=Y(y>0?p[x]+" "+b:G(b,/&\f/g,p[x])))&&(l[m++]=k);return lt(t,e,r,0===i?q:s,l,c,h,u)}function Tt(t,e,r,n){return lt(t,e,r,K,U(ot),X(t,2,-2),0,n)}function At(t,e,r,n,i){return lt(t,e,r,W,X(t,0,n),X(t,n+1,-1),n,i)}var Mt=r(9418),Bt=r(6401),Lt={id:"c4",detector:(0,z.K2)((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(2664).then(r.bind(r,2664));return{id:"c4",diagram:t}}),"loader")},Ft="flowchart",$t={id:Ft,detector:(0,z.K2)(((t,e)=>"dagre-wrapper"!==e?.flowchart?.defaultRenderer&&"elk"!==e?.flowchart?.defaultRenderer&&/^\s*graph/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(4485).then(r.bind(r,4485));return{id:Ft,diagram:t}}),"loader")},Et="flowchart-v2",Dt={id:Et,detector:(0,z.K2)(((t,e)=>"dagre-d3"!==e?.flowchart?.defaultRenderer&&("elk"===e?.flowchart?.defaultRenderer&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==e?.flowchart?.defaultRenderer)||/^\s*flowchart/.test(t))),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(4485).then(r.bind(r,4485));return{id:Et,diagram:t}}),"loader")},Ot={id:"er",detector:(0,z.K2)((t=>/^\s*erDiagram/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(2334),r.e(7306)]).then(r.bind(r,7306));return{id:"er",diagram:t}}),"loader")},Nt="gitGraph",It={id:Nt,detector:(0,z.K2)((t=>/^\s*gitGraph/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(8731),r.e(5978)]).then(r.bind(r,5978));return{id:Nt,diagram:t}}),"loader")},Rt="gantt",zt={id:Rt,detector:(0,z.K2)((t=>/^\s*gantt/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(6244).then(r.bind(r,6244));return{id:Rt,diagram:t}}),"loader")},Pt="info",jt={id:Pt,detector:(0,z.K2)((t=>/^\s*info/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(8731),r.e(7354)]).then(r.bind(r,7354));return{id:Pt,diagram:t}}),"loader")},Kt={id:"pie",detector:(0,z.K2)((t=>/^\s*pie/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(8731),r.e(1825)]).then(r.bind(r,1825));return{id:"pie",diagram:t}}),"loader")},qt="quadrantChart",Wt={id:qt,detector:(0,z.K2)((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(4632).then(r.bind(r,4632));return{id:qt,diagram:t}}),"loader")},Ht="xychart",Ut={id:Ht,detector:(0,z.K2)((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(545).then(r.bind(r,2926));return{id:Ht,diagram:t}}),"loader")},Yt="requirement",Gt={id:Yt,detector:(0,z.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(2334),r.e(8413)]).then(r.bind(r,8413));return{id:Yt,diagram:t}}),"loader")},Vt="sequence",Zt={id:Vt,detector:(0,z.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(8540).then(r.bind(r,8540));return{id:Vt,diagram:t}}),"loader")},Xt="class",Qt={id:Xt,detector:(0,z.K2)(((t,e)=>"dagre-wrapper"!==e?.class?.defaultRenderer&&/^\s*classDiagram/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(6240),r.e(391)]).then(r.bind(r,391));return{id:Xt,diagram:t}}),"loader")},Jt="classDiagram",te={id:Jt,detector:(0,z.K2)(((t,e)=>!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==e?.class?.defaultRenderer)||/^\s*classDiagram-v2/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(6240),r.e(3056)]).then(r.bind(r,3056));return{id:Jt,diagram:t}}),"loader")},ee="state",re={id:ee,detector:(0,z.K2)(((t,e)=>"dagre-wrapper"!==e?.state?.defaultRenderer&&/^\s*stateDiagram/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(2334),r.e(758),r.e(9732)]).then(r.bind(r,9732));return{id:ee,diagram:t}}),"loader")},ne="stateDiagram",ie={id:ne,detector:(0,z.K2)(((t,e)=>!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==e?.state?.defaultRenderer)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(758),r.e(5110)]).then(r.bind(r,5110));return{id:ne,diagram:t}}),"loader")},ae="journey",oe={id:ae,detector:(0,z.K2)((t=>/^\s*journey/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(6237).then(r.bind(r,6237));return{id:ae,diagram:t}}),"loader")},se={draw:(0,z.K2)(((t,e,r)=>{z.Rm.debug("rendering svg for syntax error\n");const n=(0,R.D)(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),(0,z.a$)(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)}),"draw")},le=se,ce={db:{},renderer:se,parser:{parse:(0,z.K2)((()=>{}),"parse")}},he="flowchart-elk",ue={id:he,detector:(0,z.K2)(((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===e?.flowchart?.defaultRenderer)&&(e.layout="elk",!0)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(4485).then(r.bind(r,4485));return{id:he,diagram:t}}),"loader")},de="timeline",pe={id:de,detector:(0,z.K2)((t=>/^\s*timeline/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(7691).then(r.bind(r,7691));return{id:de,diagram:t}}),"loader")},fe="mindmap",ge={id:fe,detector:(0,z.K2)((t=>/^\s*mindmap/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(165),r.e(6383)]).then(r.bind(r,6383));return{id:fe,diagram:t}}),"loader")},ye="kanban",me={id:ye,detector:(0,z.K2)((t=>/^\s*kanban/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(6355).then(r.bind(r,6355));return{id:ye,diagram:t}}),"loader")},xe="sankey",be={id:xe,detector:(0,z.K2)((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await r.e(4697).then(r.bind(r,4697));return{id:xe,diagram:t}}),"loader")},ke="packet",Ce={id:ke,detector:(0,z.K2)((t=>/^\s*packet-beta/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(8731),r.e(7357)]).then(r.bind(r,7357));return{id:ke,diagram:t}}),"loader")},we="block",_e={id:we,detector:(0,z.K2)((t=>/^\s*block-beta/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(5410)]).then(r.bind(r,5410));return{id:we,diagram:t}}),"loader")},ve="architecture",Se={id:ve,detector:(0,z.K2)((t=>/^\s*architecture/.test(t)),"detector"),loader:(0,z.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(3624),r.e(8731),r.e(165),r.e(3175)]).then(r.bind(r,3175));return{id:ve,diagram:t}}),"loader")},Te=!1,Ae=(0,z.K2)((()=>{Te||(Te=!0,(0,z.Js)("error",ce,(t=>"error"===t.toLowerCase().trim())),(0,z.Js)("---",{db:{clear:(0,z.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,z.K2)((()=>{}),"draw")},parser:{parse:(0,z.K2)((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:(0,z.K2)((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---"))),(0,z.Xd)(Lt,me,te,Qt,Ot,zt,jt,Kt,Gt,Zt,ue,Dt,$t,ge,pe,It,ie,re,oe,Wt,be,Ce,Ut,_e,Se))}),"addDiagrams"),Me=(0,z.K2)((async()=>{z.Rm.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(z.mW).map((async([t,{detector:e,loader:r}])=>{if(r)try{(0,z.Gs)(t)}catch{try{const{diagram:t,id:n}=await r();(0,z.Js)(n,t,e)}catch(n){throw z.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete z.mW[t],n}}})))).filter((t=>"rejected"===t.status));if(t.length>0){z.Rm.error(`Failed to load ${t.length} external diagrams`);for(const e of t)z.Rm.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams"),Be="graphics-document document";function Le(t,e){t.attr("role",Be),""!==e&&t.attr("aria-roledescription",e)}function Fe(t,e,r,n){if(void 0!==t.insert){if(r){const e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,z.K2)(Le,"setA11yDiagramInfo"),(0,z.K2)(Fe,"addSVGa11yTitleDescription");var $e=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,z.K2)(this,"Diagram")}static async fromText(e,r={}){const n=(0,z.zj)(),i=(0,z.Ch)(e,n);e=(0,N.C4)(e)+"\n";try{(0,z.Gs)(i)}catch{const t=(0,z.J$)(i);if(!t)throw new z.C0(`Diagram ${i} not found.`);const{id:e,diagram:r}=await t();(0,z.Js)(e,r)}const{db:a,parser:o,renderer:s,init:l}=(0,z.Gs)(i);return o.parser&&(o.parser.yy=a),a.clear?.(),l?.(n),r.title&&a.setDiagramTitle?.(r.title),await o.parse(e),new t(i,e,a,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},Ee=[],De=(0,z.K2)((()=>{Ee.forEach((t=>{t()})),Ee=[]}),"attachFunctions"),Oe=(0,z.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function Ne(t){const e=t.match(z.EJ);if(!e)return{text:t,metadata:{}};let r=(0,E.H)(e[1],{schema:E.r})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}(0,z.K2)(Ne,"extractFrontMatter");var Ie=(0,z.K2)((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),Re=(0,z.K2)((t=>{const{text:e,metadata:r}=Ne(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}}),"processFrontmatter"),ze=(0,z.K2)((t=>{const e=N._K.detectInit(t)??{},r=N._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some((({type:t})=>"wrap"===t)):"wrap"===r?.type&&(e.wrap=!0),{text:(0,N.vU)(t),directive:e}}),"processDirectives");function Pe(t){const e=Ie(t),r=Re(e),n=ze(r.text),i=(0,N.$t)(r.config,n.directive);return{code:t=Oe(n.text),title:r.title,config:i}}function je(t){const e=(new TextEncoder).encode(t),r=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(r)}(0,z.K2)(Pe,"preprocessDiagram"),(0,z.K2)(je,"toBase64");var Ke=["foreignobject"],qe=["dominant-baseline"];function We(t){const e=Pe(t);return(0,z.cL)(),(0,z.xA)(e.config??{}),e}async function He(t,e){Ae();try{const{code:e,config:r}=We(t);return{diagramType:(await rr(e)).type,config:r}}catch(r){if(e?.suppressErrors)return!1;throw r}}(0,z.K2)(We,"processAndSetConfigs"),(0,z.K2)(He,"parse");var Ue=(0,z.K2)(((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`),"cssImportantStyles"),Ye=(0,z.K2)(((t,e=new Map)=>{let r="";if(void 0!==t.themeCSS&&(r+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const n=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{(0,Bt.A)(t.styles)||n.forEach((e=>{r+=Ue(t.id,e,t.styles)})),(0,Bt.A)(t.textStyles)||(r+=Ue(t.id,"tspan",(t?.textStyles||[]).map((t=>t.replace("color","fill")))))}))}return r}),"createCssStyles"),Ge=(0,z.K2)(((t,e,r,n)=>{const i=Ye(t,r);return tt(_t(`${n}{${(0,z.tM)(e,i,t.themeVariables)}}`),et)}),"createUserStyles"),Ve=(0,z.K2)(((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(0,N.Sm)(n),n=n.replace(/<br>/g,"<br/>"),n}),"cleanUpSvgCode"),Ze=(0,z.K2)(((t="",e)=>`<iframe style="width:100%;height:${e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${je(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`),"putIntoIFrame"),Xe=(0,z.K2)(((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t}),"appendDivSvgG");function Qe(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,z.K2)(Qe,"sandboxedIframe");var Je=(0,z.K2)(((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()}),"removeExistingElements"),tr=(0,z.K2)((async function(t,e,r){Ae();const n=We(e);e=n.code;const i=(0,z.zj)();z.Rm.debug(i),e.length>(i?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const a="#"+t,o="i"+t,s="#"+o,l="d"+t,c="#"+l,h=(0,z.K2)((()=>{const t=d?s:c,e=(0,j.Ltv)(t).node();e&&"remove"in e&&e.remove()}),"removeTempElements");let u=(0,j.Ltv)("body");const d="sandbox"===i.securityLevel,p="loose"===i.securityLevel,f=i.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),d){const t=Qe((0,j.Ltv)(r),o);u=(0,j.Ltv)(t.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=(0,j.Ltv)(r);Xe(u,t,l,`font-family: ${f}`,"http://www.w3.org/1999/xlink")}else{if(Je(document,t,l,o),d){const t=Qe((0,j.Ltv)("body"),o);u=(0,j.Ltv)(t.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=(0,j.Ltv)("body");Xe(u,t,l)}let g,y;try{g=await $e.fromText(e,{title:n.title})}catch(M){if(i.suppressErrorRendering)throw h(),M;g=await $e.fromText("error"),y=M}const m=u.select(c).node(),x=g.type,b=m.firstChild,k=b.firstChild,C=g.renderer.getClasses?.(e,g),w=Ge(i,x,C,a),_=document.createElement("style");_.innerHTML=w,b.insertBefore(_,k);try{await g.renderer.draw(e,t,I.r,g)}catch(B){throw i.suppressErrorRendering?h():le.draw(e,t,I.r),B}const v=u.select(`${c} svg`),S=g.db.getAccTitle?.(),T=g.db.getAccDescription?.();nr(x,v,S,T),u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=u.select(c).node().innerHTML;if(z.Rm.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),A=Ve(A,d,(0,z._3)(i.arrowMarkerAbsolute)),d){const t=u.select(c+" svg").node();A=Ze(A,t)}else p||(A=Mt.A.sanitize(A,{ADD_TAGS:Ke,ADD_ATTR:qe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(De(),y)throw y;return h(),{diagramType:x,svg:A,bindFunctions:g.db.bindFunctions}}),"render");function er(t={}){const e=(0,z.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,z.wZ)(e),e?.theme&&e.theme in z.H$?e.themeVariables=z.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=z.H$.default.getThemeVariables(e.themeVariables));const r="object"==typeof e?(0,z.UU)(e):(0,z.Q2)();(0,z.He)(r.logLevel),Ae()}(0,z.K2)(er,"initialize");var rr=(0,z.K2)(((t,e={})=>{const{code:r}=Pe(t);return $e.fromText(r,e)}),"getDiagramFromText");function nr(t,e,r,n){Le(e,t),Fe(e,r,n,e.attr("id"))}(0,z.K2)(nr,"addA11yInfo");var ir=Object.freeze({render:tr,parse:He,getDiagramFromText:rr,initialize:er,getConfig:z.zj,setConfig:z.Nk,getSiteConfig:z.Q2,updateSiteConfig:z.B6,reset:(0,z.K2)((()=>{(0,z.cL)()}),"reset"),globalReset:(0,z.K2)((()=>{(0,z.cL)(z.sb)}),"globalReset"),defaultConfig:z.sb});(0,z.He)((0,z.zj)().logLevel),(0,z.cL)((0,z.zj)());var ar=(0,z.K2)(((t,e,r)=>{z.Rm.warn(t),(0,N.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),or=(0,z.K2)((async function(t={querySelector:".mermaid"}){try{await sr(t)}catch(e){if((0,N.dq)(e)&&z.Rm.error(e.str),xr.parseError&&xr.parseError(e),!t.suppressErrors)throw z.Rm.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),sr=(0,z.K2)((async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=ir.getConfig();let i;if(z.Rm.debug((t?"":"No ")+"Callback function found"),r)i=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(e)}z.Rm.debug(`Found ${i.length} diagrams`),void 0!==n?.startOnLoad&&(z.Rm.debug("Start On Load: "+n?.startOnLoad),ir.updateSiteConfig({startOnLoad:n?.startOnLoad}));const a=new N._K.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let o;const s=[];for(const c of Array.from(i)){if(z.Rm.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const e=`mermaid-${a.next()}`;o=c.innerHTML,o=(0,P.T)(N._K.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=N._K.detectInit(o);r&&z.Rm.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:n}=await mr(e,o,c);c.innerHTML=r,t&&await t(e),n&&n(c)}catch(l){ar(l,s,xr.parseError)}}if(s.length>0)throw s[0]}),"runThrowsErrors"),lr=(0,z.K2)((function(t){ir.initialize(t)}),"initialize"),cr=(0,z.K2)((async function(t,e,r){z.Rm.warn("mermaid.init is deprecated. Please use run instead."),t&&lr(t);const n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await or(n)}),"init"),hr=(0,z.K2)((async(t,{lazyLoad:e=!0}={})=>{Ae(),(0,z.Xd)(...t),!1===e&&await Me()}),"registerExternalDiagrams"),ur=(0,z.K2)((function(){if(xr.startOnLoad){const{startOnLoad:t}=ir.getConfig();t&&xr.run().catch((t=>z.Rm.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",ur,!1);var dr=(0,z.K2)((function(t){xr.parseError=t}),"setParseErrorHandler"),pr=[],fr=!1,gr=(0,z.K2)((async()=>{if(!fr){for(fr=!0;pr.length>0;){const e=pr.shift();if(e)try{await e()}catch(t){z.Rm.error("Error executing queue",t)}}fr=!1}}),"executeQueue"),yr=(0,z.K2)((async(t,e)=>new Promise(((r,n)=>{const i=(0,z.K2)((()=>new Promise(((i,a)=>{ir.parse(t,e).then((t=>{i(t),r(t)}),(t=>{z.Rm.error("Error parsing",t),xr.parseError?.(t),a(t),n(t)}))}))),"performCall");pr.push(i),gr().catch(n)}))),"parse"),mr=(0,z.K2)(((t,e,r)=>new Promise(((n,i)=>{const a=(0,z.K2)((()=>new Promise(((a,o)=>{ir.render(t,e,r).then((t=>{a(t),n(t)}),(t=>{z.Rm.error("Error parsing",t),xr.parseError?.(t),o(t),i(t)}))}))),"performCall");pr.push(a),gr().catch(i)}))),"render"),xr={startOnLoad:!0,mermaidAPI:ir,parse:yr,render:mr,init:cr,run:or,registerExternalDiagrams:hr,registerLayoutLoaders:D.sO,initialize:lr,parseError:void 0,contentLoaded:ur,setParseErrorHandler:dr,detectType:z.Ch,registerIconPacks:O.pC},br=xr;const kr="docusaurus-mermaid-container";function Cr(){const{colorMode:t}=(0,$.G)(),e=(0,F.p)().mermaid,r=e.theme[t],{options:i}=e;return(0,n.useMemo)((()=>({startOnLoad:!1,...i,theme:r})),[r,i])}function wr(t){let{text:e,config:r}=t;const[i,a]=(0,n.useState)(null),o=(0,n.useRef)(`mermaid-svg-${Math.round(1e7*Math.random())}`).current,s=Cr(),l=r??s;return(0,n.useEffect)((()=>{(async function(t){let{id:e,text:r,config:n}=t;br.mermaidAPI.initialize(n);try{return await br.render(e,r)}catch(i){throw document.querySelector(`#d${e}`)?.remove(),i}})({id:o,text:e,config:l}).then(a).catch((t=>{a((()=>{throw t}))}))}),[o,e,l]),i}const _r={container:"container_lyt7"};function vr(t){let{renderResult:e}=t;const r=(0,n.useRef)(null);return(0,n.useEffect)((()=>{const t=r.current;e.bindFunctions?.(t)}),[e]),(0,s.jsx)("div",{ref:r,className:`${kr} ${_r.container}`,dangerouslySetInnerHTML:{__html:e.svg}})}function Sr(t){let{value:e}=t;const r=wr({text:e});return null===r?null:(0,s.jsx)(vr,{renderResult:r})}const Tr={Head:a.A,details:w,Details:w,code:function(t){return function(t){return void 0!==t.children&&n.Children.toArray(t.children).every((t=>"string"==typeof t&&!t.includes("\n")))}(t)?(0,s.jsx)(l,{...t}):(0,s.jsx)(o.A,{...t})},a:function(t){return(0,s.jsx)(c.A,{...t})},pre:function(t){return(0,s.jsx)(s.Fragment,{children:t.children})},ul:function(t){return(0,s.jsx)("ul",{...t,className:T(t.className)})},li:function(t){return(0,d.A)().collectAnchor(t.id),(0,s.jsx)("li",{...t})},img:function(t){return(0,s.jsx)("img",{decoding:"async",loading:"lazy",...t,className:(e=t.className,(0,h.A)(e,A.img))});var e},h1:t=>(0,s.jsx)(v,{as:"h1",...t}),h2:t=>(0,s.jsx)(v,{as:"h2",...t}),h3:t=>(0,s.jsx)(v,{as:"h3",...t}),h4:t=>(0,s.jsx)(v,{as:"h4",...t}),h5:t=>(0,s.jsx)(v,{as:"h5",...t}),h6:t=>(0,s.jsx)(v,{as:"h6",...t}),admonition:M.A,mermaid:function(t){return(0,s.jsx)(B.A,{fallback:t=>(0,s.jsx)(L.MN,{...t}),children:(0,s.jsx)(Sr,{...t})})}};function Ar(t){let{children:e}=t;return(0,s.jsx)(i.x,{components:Tr,children:e})}},7741:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});r(6540);var n=r(8215),i=r(2237);const a={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var o=r(4848);const s="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(t){let{className:e,...r}=t;return(0,o.jsx)("div",{className:(0,n.A)(a.tableOfContents,"thin-scrollbar",e),children:(0,o.jsx)(i.A,{...r,linkClassName:s,linkActiveClassName:l})})}},2237:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var n=r(6540),i=r(1436);function a(t){const e=t.map((t=>({...t,parentIndex:-1,children:[]}))),r=Array(7).fill(-1);e.forEach(((t,e)=>{const n=r.slice(2,t.level);t.parentIndex=Math.max(...n),r[t.level]=e}));const n=[];return e.forEach((t=>{const{parentIndex:r,...i}=t;r>=0?e[r].children.push(i):n.push(i)})),n}function o(t){let{toc:e,minHeadingLevel:r,maxHeadingLevel:n}=t;return e.flatMap((t=>{const e=o({toc:t.children,minHeadingLevel:r,maxHeadingLevel:n});return function(t){return t.level>=r&&t.level<=n}(t)?[{...t,children:e}]:e}))}function s(t){const e=t.getBoundingClientRect();return e.top===e.bottom?s(t.parentNode):e}function l(t,e){let{anchorTopOffset:r}=e;const n=t.find((t=>s(t).top>=r));if(n){return function(t){return t.top>0&&t.bottom<window.innerHeight/2}(s(n))?n:t[t.indexOf(n)-1]??null}return t[t.length-1]??null}function c(){const t=(0,n.useRef)(0),{navbar:{hideOnScroll:e}}=(0,i.p)();return(0,n.useEffect)((()=>{t.current=e?0:document.querySelector(".navbar").clientHeight}),[e]),t}function h(t){const e=(0,n.useRef)(void 0),r=c();(0,n.useEffect)((()=>{if(!t)return()=>{};const{linkClassName:n,linkActiveClassName:i,minHeadingLevel:a,maxHeadingLevel:o}=t;function s(){const t=function(t){return Array.from(document.getElementsByClassName(t))}(n),s=function(t){let{minHeadingLevel:e,maxHeadingLevel:r}=t;const n=[];for(let i=e;i<=r;i+=1)n.push(`h${i}.anchor`);return Array.from(document.querySelectorAll(n.join()))}({minHeadingLevel:a,maxHeadingLevel:o}),c=l(s,{anchorTopOffset:r.current}),h=t.find((t=>c&&c.id===function(t){return decodeURIComponent(t.href.substring(t.href.indexOf("#")+1))}(t)));t.forEach((t=>{!function(t,r){r?(e.current&&e.current!==t&&e.current.classList.remove(i),t.classList.add(i),e.current=t):t.classList.remove(i)}(t,t===h)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[t,r])}var u=r(7880),d=r(4848);function p(t){let{toc:e,className:r,linkClassName:n,isChild:i}=t;return e.length?(0,d.jsx)("ul",{className:i?void 0:r,children:e.map((t=>(0,d.jsxs)("li",{children:[(0,d.jsx)(u.A,{to:`#${t.id}`,className:n??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,d.jsx)(p,{isChild:!0,toc:t.children,className:r,linkClassName:n})]},t.id)))}):null}const f=n.memo(p);function g(t){let{toc:e,className:r="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...p}=t;const g=(0,i.p)(),y=c??g.tableOfContents.minHeadingLevel,m=u??g.tableOfContents.maxHeadingLevel,x=function(t){let{toc:e,minHeadingLevel:r,maxHeadingLevel:i}=t;return(0,n.useMemo)((()=>o({toc:a(e),minHeadingLevel:r,maxHeadingLevel:i})),[e,r,i])}({toc:e,minHeadingLevel:y,maxHeadingLevel:m});return h((0,n.useMemo)((()=>{if(s&&l)return{linkClassName:s,linkActiveClassName:l,minHeadingLevel:y,maxHeadingLevel:m}}),[s,l,y,m])),(0,d.jsx)(f,{toc:x,className:r,linkClassName:s,...p})}},4353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",s="day",l="week",c="month",h="quarter",u="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},m=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},x={s:m,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,c),a=r-i<0,o=e.clone().add(n+(a?-1:1),c);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:u,w:l,d:s,D:d,h:o,m:a,s:i,ms:n,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",k={};k[b]=y;var C="$isDayjsObject",w=function(t){return t instanceof T||!(!t||!t[C])},_=function t(e,r,n){var i;if(!e)return b;if("string"==typeof e){var a=e.toLowerCase();k[a]&&(i=a),r&&(k[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;k[s]=e,i=s}return!n&&i&&(b=i),i||!n&&b},v=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new T(r)},S=x;S.l=_,S.i=w,S.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function y(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[C]=!0}var m=y.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return S},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},m.isAfter=function(t,e){return v(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<v(t)},m.$g=function(t,e,r){return S.u(t)?this[e]:this.set(r,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var r=this,n=!!S.u(e)||e,h=S.p(t),p=function(t,e){var i=S.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(s)},f=function(t,e){return S.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},g=this.$W,y=this.$M,m=this.$D,x="set"+(this.$u?"UTC":"");switch(h){case u:return n?p(1,0):p(31,11);case c:return n?p(1,y):p(0,y+1);case l:var b=this.$locale().weekStart||0,k=(g<b?g+7:g)-b;return p(n?m-k:m+(6-k),y);case s:case d:return f(x+"Hours",0);case o:return f(x+"Minutes",1);case a:return f(x+"Seconds",2);case i:return f(x+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var r,l=S.p(t),h="set"+(this.$u?"UTC":""),p=(r={},r[s]=h+"Date",r[d]=h+"Date",r[c]=h+"Month",r[u]=h+"FullYear",r[o]=h+"Hours",r[a]=h+"Minutes",r[i]=h+"Seconds",r[n]=h+"Milliseconds",r)[l],f=l===s?this.$D+(e-this.$W):e;if(l===c||l===u){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[S.p(t)]()},m.add=function(n,h){var d,p=this;n=Number(n);var f=S.p(h),g=function(t){var e=v(p);return S.w(e.date(e.date()+Math.round(t*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===u)return this.set(u,this.$y+n);if(f===s)return g(1);if(f===l)return g(7);var y=(d={},d[a]=e,d[o]=r,d[i]=t,d)[f]||1,m=this.$d.getTime()+n*y;return S.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,c=r.months,h=r.meridiem,u=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},d=function(t){return S.s(a%12||12,t,"0")},f=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(g,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return u(r.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(r.weekdaysMin,e.$W,l,2);case"ddd":return u(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(a,o,!0);case"A":return f(a,o,!1);case"m":return String(o);case"mm":return S.s(o,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,p){var f,g=this,y=S.p(d),m=v(n),x=(m.utcOffset()-this.utcOffset())*e,b=this-m,k=function(){return S.m(g,m)};switch(y){case u:f=k()/12;break;case c:f=k();break;case h:f=k()/3;break;case l:f=(b-x)/6048e5;break;case s:f=(b-x)/864e5;break;case o:f=b/r;break;case a:f=b/e;break;case i:f=b/t;break;default:f=b}return p?f:S.a(f)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return k[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=_(t,e,!0);return n&&(r.$L=n),r},m.clone=function(){return S.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),A=T.prototype;return v.prototype=A,[["$ms",n],["$s",i],["$m",a],["$H",o],["$W",s],["$M",c],["$y",u],["$D",d]].forEach((function(t){A[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,T,v),t.$i=!0),v},v.locale=_,v.isDayjs=w,v.unix=function(t){return v(1e3*t)},v.en=k[b],v.Ls=k,v.p={},v}()},9893:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){const[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const e of t){const[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){return t[0]===e[0]&&t[1]===e[1]}function a(t,e,r,a=1){const o=r,s=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,c=[0,0];if(o)for(const i of l)n(i,c,o);const h=function(t,e,r){const n=[];for(const h of t){const t=[...h];i(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}const a=[];e=Math.max(e,.1);const o=[];for(const i of n)for(let t=0;t<i.length-1;t++){const e=i[t],r=i[t+1];if(e[1]!==r[1]){const t=Math.min(e[1],r[1]);o.push({ymin:t,ymax:Math.max(e[1],r[1]),x:t===e[1]?e[0]:r[0],islope:(r[0]-e[0])/(r[1]-e[1])})}}if(o.sort(((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!o.length)return a;let s=[],l=o[0].ymin,c=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>l);e++)t=e;o.splice(0,t+1).forEach((t=>{s.push({s:l,edge:t})}))}if(s=s.filter((t=>!(t.edge.ymax<=l))),s.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==r||c%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const r=s[t].edge,n=s[e].edge;a.push([[Math.round(r.x),l],[Math.round(n.x),l]])}l+=r,s.forEach((t=>{t.edge.x=t.edge.x+r*t.edge.islope})),c++}return a}(l,s,a);if(o){for(const t of l)n(t,c,-o);!function(t,e,r){const i=[];t.forEach((t=>i.push(...t))),n(i,e,r)}(h,c,-o)}return h}function o(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(o=i),a(t,i,n,o||1)}r.d(e,{A:()=>st});class s{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=o(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function l(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class c extends s{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const n=o(t,Object.assign({},e,{hachureGap:r})),i=Math.PI/180*e.hachureAngle,a=[],s=.5*r*Math.cos(i),c=.5*r*Math.sin(i);for(const[o,h]of n)l([o,h])&&a.push([[o[0]-s,o[1]+c],[...h]],[[o[0]+s,o[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,e)}}}class h extends s{fillPolygons(t,e){const r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class u{constructor(t){this.helper=t}fillPolygons(t,e){const r=o(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);const a=n/4;for(const o of t){const t=l(o),s=t/n,c=Math.ceil(s)-1,h=t-c*n,u=(o[0][0]+o[1][0])/2-n/4,d=Math.min(o[0][1],o[1][1]);for(let o=0;o<c;o++){const t=d+h+o*n,s=u-a+2*Math.random()*a,l=t-a+2*Math.random()*a,c=this.helper.ellipse(s,l,i,i,e);r.push(...c.ops)}}return{type:"fillSketch",ops:r}}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const r=o(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){const r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach((t=>{const a=l(t),o=Math.floor(a/(r+n)),s=(a+n-o*(r+n))/2;let c=t[0],h=t[1];c[0]>h[0]&&(c=t[1],h=t[0]);const u=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let l=0;l<o;l++){const t=l*(r+n),a=t+r,o=[c[0]+t*Math.cos(u)+s*Math.cos(u),c[1]+t*Math.sin(u)+s*Math.sin(u)],h=[c[0]+a*Math.cos(u)+s*Math.cos(u),c[1]+a*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(o[0],o[1],h[0],h[1],e))}})),i}}class p{constructor(t){this.helper=t}fillPolygons(t,e){const r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,i=o(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,e)}}zigzagLines(t,e,r){const n=[];return t.forEach((t=>{const i=l(t),a=Math.round(i/(2*e));let o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);const c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let l=0;l<a;l++){const t=2*l*e,i=2*(l+1)*e,a=Math.sqrt(2*Math.pow(e,2)),s=[o[0]+t*Math.cos(c),o[1]+t*Math.sin(c)],h=[o[0]+i*Math.cos(c),o[1]+i*Math.sin(c)],u=[s[0]+a*Math.cos(c+Math.PI/4),s[1]+a*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],r),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],r))}})),n}}const f={};class g{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const y=0,m=1,x=2,b={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function k(t,e){return t.type===e}function C(t){const e=[],r=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:y,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:m,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:x,text:""},e}(t);let n="BOD",i=0,a=r[i];for(;!k(a,x);){let o=0;const s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return C("M0,0"+t);i++,o=b[a.text],n=a.text}else k(a,m)?o=b[n]:(i++,o=b[a.text],n=a.text);if(!(i+o<r.length))throw new Error("Path data ended short");for(let t=i;t<i+o;t++){const e=r[t];if(!k(e,m))throw new Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof b[n])throw new Error("Bad segment: "+n);{const t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function w(t){let e=0,r=0,n=0,i=0;const a=[];for(const{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{const t=s.map(((t,n)=>n%2?t+r:t+e));a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{const t=s.map(((t,n)=>n%2?t+r:t+e));a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{const t=s.map(((t,n)=>n%2?t+r:t+e));a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function _(t){const e=[];let r="",n=0,i=0,a=0,o=0,s=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[n,i]=h,[a,o]=h;break;case"C":e.push({key:"C",data:[...h]}),n=h[4],i=h[5],s=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[n,i]=h;break;case"H":n=h[0],e.push({key:"L",data:[n,i]});break;case"V":i=h[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...h]}),s=h[0],l=h[1],n=h[2],i=h[3];break}case"T":{const[t,a]=h;let o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);const u=n+2*(o-n)/3,d=i+2*(c-i)/3,p=t+2*(o-t)/3,f=a+2*(c-a)/3;e.push({key:"C",data:[u,d,p,f,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{const[t,r,a,o]=h,c=n+2*(t-n)/3,u=i+2*(r-i)/3,d=a+2*(t-a)/3,p=o+2*(r-o)/3;e.push({key:"C",data:[c,u,d,p,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{const t=Math.abs(h[0]),r=Math.abs(h[1]),a=h[2],o=h[3],s=h[4],l=h[5],c=h[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):n===l&&i===c||(S(n,i,l,c,t,r,a,o,s).forEach((function(t){e.push({key:"C",data:t})})),n=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=c}return e}function v(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function S(t,e,r,n,i,a,o,s,l,c){const h=(u=o,Math.PI*u/180);var u;let d=[],p=0,f=0,g=0,y=0;if(c)[p,f,g,y]=c;else{[t,e]=v(t,e,-h),[r,n]=v(r,n,-h);const o=(t-r)/2,c=(e-n)/2;let u=o*o/(i*i)+c*c/(a*a);u>1&&(u=Math.sqrt(u),i*=u,a*=u);const d=i*i,m=a*a,x=d*m-d*c*c-m*o*o,b=d*c*c+m*o*o,k=(s===l?-1:1)*Math.sqrt(Math.abs(x/b));g=k*i*c/a+(t+r)/2,y=k*-a*o/i+(e+n)/2,p=Math.asin(parseFloat(((e-y)/a).toFixed(9))),f=Math.asin(parseFloat(((n-y)/a).toFixed(9))),t<g&&(p=Math.PI-p),r<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),l&&p>f&&(p-=2*Math.PI),!l&&f>p&&(f-=2*Math.PI)}let m=f-p;if(Math.abs(m)>120*Math.PI/180){const t=f,e=r,s=n;f=l&&f>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=S(r=g+i*Math.cos(f),n=y+a*Math.sin(f),e,s,i,a,o,0,l,[f,t,g,y])}m=f-p;const x=Math.cos(p),b=Math.sin(p),k=Math.cos(f),C=Math.sin(f),w=Math.tan(m/4),_=4/3*i*w,T=4/3*a*w,A=[t,e],M=[t+_*b,e-T*x],B=[r+_*C,n-T*k],L=[r,n];if(M[0]=2*A[0]-M[0],M[1]=2*A[1]-M[1],c)return[M,B,L].concat(d);{d=[M,B,L].concat(d);const t=[];for(let e=0;e<d.length;e+=3){const r=v(d[e][0],d[e][1],h),n=v(d[e+1][0],d[e+1][1],h),i=v(d[e+2][0],d[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}}const T={randOffset:function(t,e){return z(t,e)},randOffsetWithRange:function(t,e,r){return R(t,e,r)},ellipse:function(t,e,r,n,i){return F(t,e,i,L(r,n,i)).opset},doubleLineOps:function(t,e,r,n,i){return P(t,e,r,n,i,!0)}};function A(t,e,r,n,i){return{type:"path",ops:P(t,e,r,n,i)}}function M(t,e,r){const n=(t||[]).length;if(n>2){const i=[];for(let e=0;e<n-1;e++)i.push(...P(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...P(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?A(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function B(t,e){if(t.length){const r="number"==typeof t[0][0]?[t]:t,n=K(r[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:K(r[0],1.5*(1+.22*e.roughness),N(e));for(let t=1;t<r.length;t++){const a=r[t];if(a.length){const t=K(a,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:K(a,1.5*(1+.22*e.roughness),N(e));for(const e of t)"move"!==e.op&&n.push(e);for(const e of r)"move"!==e.op&&i.push(e)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function L(t,e,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=2*Math.PI/i;let o=Math.abs(t/2),s=Math.abs(e/2);const l=1-r.curveFitting;return o+=z(o*l,r),s+=z(s*l,r),{increment:a,rx:o,ry:s}}function F(t,e,r,n){const[i,a]=W(n.increment,t,e,n.rx,n.ry,1,n.increment*R(.1,R(.4,1,r),r),r);let o=q(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){const[i]=W(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=q(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function $(t,e,r,n,i,a,o,s,l){const c=t,h=e;let u=Math.abs(r/2),d=Math.abs(n/2);u+=z(.01*u,l),d+=z(.01*d,l);let p=i,f=a;for(;p<0;)p+=2*Math.PI,f+=2*Math.PI;f-p>2*Math.PI&&(p=0,f=2*Math.PI);const g=2*Math.PI/l.curveStepCount,y=Math.min(g/2,(f-p)/2),m=H(y,c,h,u,d,p,f,1,l);if(!l.disableMultiStroke){const t=H(y,c,h,u,d,p,f,1.5,l);m.push(...t)}return o&&(s?m.push(...P(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l),...P(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l)):m.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(p),h+d*Math.sin(p)]})),{type:"path",ops:m}}function E(t,e){const r=_(w(C(t))),n=[];let i=[0,0],a=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":a=[s[0],s[1]],i=[s[0],s[1]];break;case"L":n.push(...P(a[0],a[1],s[0],s[1],e)),a=[s[0],s[1]];break;case"C":{const[t,r,i,o,l,c]=s;n.push(...U(t,r,i,o,l,c,a,e)),a=[l,c];break}case"Z":n.push(...P(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function D(t,e){const r=[];for(const n of t)if(n.length){const t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+z(t,e),n[0][1]+z(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+z(t,e),n[a][1]+z(t,e)]})}}return{type:"fillPath",ops:r}}function O(t,e){return function(t,e){let r=t.fillStyle||"hachure";if(!f[r])switch(r){case"zigzag":f[r]||(f[r]=new c(e));break;case"cross-hatch":f[r]||(f[r]=new h(e));break;case"dots":f[r]||(f[r]=new u(e));break;case"dashed":f[r]||(f[r]=new d(e));break;case"zigzag-line":f[r]||(f[r]=new p(e));break;default:r="hachure",f[r]||(f[r]=new s(e))}return f[r]}(e,T).fillPolygons(t,e)}function N(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function I(t){return t.randomizer||(t.randomizer=new g(t.seed||0)),t.randomizer.next()}function R(t,e,r,n=1){return r.roughness*n*(I(r)*(e-t)+t)}function z(t,e,r=1){return R(-t,t,e,r)}function P(t,e,r,n,i,a=!1){const o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=j(t,e,r,n,i,!0,!1);if(o)return s;const l=j(t,e,r,n,i,!0,!0);return s.concat(l)}function j(t,e,r,n,i,a,o){const s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=i.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const u=h/2,d=.2+.2*I(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,f=i.bowing*i.maxRandomnessOffset*(t-r)/200;p=z(p,i,c),f=z(f,i,c);const g=[],y=()=>z(u,i,c),m=()=>z(h,i,c),x=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(x?0:y()),e+(x?0:y())]}):g.push({op:"move",data:[t+(x?0:z(h,i,c)),e+(x?0:z(h,i,c))]})),o?g.push({op:"bcurveTo",data:[p+t+(r-t)*d+y(),f+e+(n-e)*d+y(),p+t+2*(r-t)*d+y(),f+e+2*(n-e)*d+y(),r+(x?0:y()),n+(x?0:y())]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*d+m(),f+e+(n-e)*d+m(),p+t+2*(r-t)*d+m(),f+e+2*(n-e)*d+m(),r+(x?0:m()),n+(x?0:m())]}),g}function K(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+z(e,r),t[0][1]+z(e,r)]),n.push([t[0][0]+z(e,r),t[0][1]+z(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+z(e,r),t[i][1]+z(e,r)]),i===t.length-1&&n.push([t[i][0]+z(e,r),t[i][1]+z(e,r)]);return q(n,null,r)}function q(t,e,r){const n=t.length,i=[];if(n>3){const a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){const r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){const t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+z(t,r),e[1]+z(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...j(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function W(t,e,r,n,i,a,o,s){const l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){const t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+n*Math.cos(0),r+i*Math.sin(0)]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{const h=z(.5,s)-Math.PI/2;c.push([z(a,s)+e+.9*n*Math.cos(h-t),z(a,s)+r+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let o=h;o<u;o+=t){const t=[z(a,s)+e+n*Math.cos(o),z(a,s)+r+i*Math.sin(o)];l.push(t),c.push(t)}c.push([z(a,s)+e+n*Math.cos(h+2*Math.PI+.5*o),z(a,s)+r+i*Math.sin(h+2*Math.PI+.5*o)]),c.push([z(a,s)+e+.98*n*Math.cos(h+o),z(a,s)+r+.98*i*Math.sin(h+o)]),c.push([z(a,s)+e+.9*n*Math.cos(h+.5*o),z(a,s)+r+.9*i*Math.sin(h+.5*o)])}return[c,l]}function H(t,e,r,n,i,a,o,s,l){const c=a+z(.1,l),h=[];h.push([z(s,l)+e+.9*n*Math.cos(c-t),z(s,l)+r+.9*i*Math.sin(c-t)]);for(let u=c;u<=o;u+=t)h.push([z(s,l)+e+n*Math.cos(u),z(s,l)+r+i*Math.sin(u)]);return h.push([e+n*Math.cos(o),r+i*Math.sin(o)]),h.push([e+n*Math.cos(o),r+i*Math.sin(o)]),q(h,null,l)}function U(t,e,r,n,i,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let h=[0,0];const u=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<u;p++)0===p?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:z(c[0],s)),o[1]+(d?0:z(c[0],s))]}),h=d?[i,a]:[i+z(c[p],s),a+z(c[p],s)],l.push({op:"bcurveTo",data:[t+z(c[p],s),e+z(c[p],s),r+z(c[p],s),n+z(c[p],s),h[0],h[1]]});return l}function Y(t){return[...t]}function G(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(3===r)n.push(Y(t[0]),Y(t[1]),Y(t[2]),Y(t[2]));else{const r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);const i=[],a=1-e;n.push(Y(r[0]));for(let t=1;t+2<r.length;t++){const e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function V(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Z(t,e,r){const n=V(e,r);if(0===n)return V(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return i=Math.max(0,Math.min(1,i)),V(t,X(e,r,i))}function X(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function Q(t,e,r,n){const i=n||[];if(function(t,e){const r=t[e+0],n=t[e+1],i=t[e+2],a=t[e+3];let o=3*n[0]-2*r[0]-a[0];o*=o;let s=3*n[1]-2*r[1]-a[1];s*=s;let l=3*i[0]-2*a[0]-r[0];l*=l;let c=3*i[1]-2*a[1]-r[1];return c*=c,o<l&&(o=l),s<c&&(s=c),o+s}(t,e)<r){const r=t[e+0];i.length?(a=i[i.length-1],o=r,Math.sqrt(V(a,o))>1&&i.push(r)):i.push(r),i.push(t[e+3])}else{const n=.5,a=t[e+0],o=t[e+1],s=t[e+2],l=t[e+3],c=X(a,o,n),h=X(o,s,n),u=X(s,l,n),d=X(c,h,n),p=X(h,u,n),f=X(d,p,n);Q([a,c,d,f],0,r,i),Q([f,p,u,l],0,r,i)}var a,o;return i}function J(t,e){return tt(t,0,t.length,e)}function tt(t,e,r,n,i){const a=i||[],o=t[e],s=t[r-1];let l=0,c=1;for(let h=e+1;h<r-1;++h){const e=Z(t[h],o,s);e>l&&(l=e,c=h)}return Math.sqrt(l)>n?(tt(t,e,c+1,n,a),tt(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function et(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let a=0;a<i;a++)Q(t,3*a,e,n);return r&&r>0?tt(n,0,n.length,r):n}const rt="none";class nt{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){const a=this._o(i);return this._d("line",[A(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){const a=this._o(i),o=[],s=function(t,e,r,n,i){return function(t,e){return M(t,!0,e)}([[t,e],[t+r,e],[t+r,e+n],[t,e+n]],i)}(t,e,r,n,a);if(a.fill){const i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===a.fillStyle?o.push(D([i],a)):o.push(O([i],a))}return a.stroke!==rt&&o.push(s),this._d("rectangle",o,a)}ellipse(t,e,r,n,i){const a=this._o(i),o=[],s=L(r,n,a),l=F(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){const r=F(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(O([l.estimatedPoints],a));return a.stroke!==rt&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){const i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[M(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){const l=this._o(s),c=[],h=$(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=$(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){const s=t,l=e;let c=Math.abs(r/2),h=Math.abs(n/2);c+=z(.01*c,o),h+=z(.01*h,o);let u=i,d=a;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);const p=(d-u)/o.curveStepCount,f=[];for(let g=u;g<=d;g+=p)f.push([s+c*Math.cos(g),l+h*Math.sin(g)]);return f.push([s+c*Math.cos(d),l+h*Math.sin(d)]),f.push([s,l]),O([f],o)}(t,e,r,n,i,a,l));return l.stroke!==rt&&c.push(h),this._d("arc",c,l)}curve(t,e){const r=this._o(e),n=[],i=B(t,r);if(r.fill&&r.fill!==rt)if("solid"===r.fillStyle){const e=B(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],i=t;if(i.length){const t="number"==typeof i[0][0]?[i]:i;for(const n of t)n.length<3?e.push(...n):3===n.length?e.push(...et(G([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...et(G(n),10,(1+r.roughness)/2))}e.length&&n.push(O([e],r))}return r.stroke!==rt&&n.push(i),this._d("curve",n,r)}polygon(t,e){const r=this._o(e),n=[],i=M(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(D([t],r)):n.push(O([t],r))),r.stroke!==rt&&n.push(i),this._d("polygon",n,r)}path(t,e){const r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=r.fill&&"transparent"!==r.fill&&r.fill!==rt,a=r.stroke!==rt,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){const n=_(w(C(t))),i=[];let a=[],o=[0,0],s=[];const l=()=>{s.length>=4&&a.push(...et(s,1)),s=[]},c=()=>{l(),a.length&&(i.push(a),a=[])};for(const{key:u,data:d}of n)switch(u){case"M":c(),o=[d[0],d[1]],a.push(o);break;case"L":l(),a.push([d[0],d[1]]);break;case"C":if(!s.length){const t=a.length?a[a.length-1]:o;s.push([t[0],t[1]])}s.push([d[0],d[1]]),s.push([d[2],d[3]]),s.push([d[4],d[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(c(),!r)return i;const h=[];for(const u of i){const t=J(u,r);t.length&&h.push(t)}return h}(t,0,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=E(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){const e=E(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(D(s,r));else n.push(O(s,r));return a&&(o?s.forEach((t=>{n.push(M(t,!1,r))})):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(const n of t.ops){const t="number"==typeof e&&e>=0?n.data.map((t=>+t.toFixed(e))):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(const i of e){let t=null;switch(i.type){case"path":t={d:this.opsToPath(i),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:rt};break;case"fillPath":t={d:this.opsToPath(i),stroke:rt,strokeWidth:0,fill:r.fill||rt};break;case"fillSketch":t=this.fillSketch(i,r)}t&&n.push(t)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||rt,strokeWidth:r,fill:rt}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}class it{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new nt(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){t.beginPath();for(const i of e.ops){const e="number"==typeof r&&r>=0?i.data.map((t=>+t.toFixed(r))):i.data;switch(i.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){const a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){const a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){const a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){const i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){const l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){const r=this.gen.path(t,e);return this.draw(r),r}}const at="http://www.w3.org/2000/svg";class ot{constructor(t,e){this.svg=t,this.gen=new nt(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(at,"g"),a=t.options.fixedDecimalPlaceDigits;for(const o of e){let e=null;switch(o.type){case"path":e=n.createElementNS(at,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=n.createElementNS(at,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);const i=t.createElementNS(at,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){const a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){const a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){const a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){const i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){const l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var st={canvas:(t,e)=>new it(t,e),svg:(t,e)=>new ot(t,e),generator:t=>new nt(t),newSeed:()=>nt.newSeed()}},513:(t,e,r)=>{"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce((function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map((function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0}))):t}),[]);if(i.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");n=n.map((function(t){return t.replace(a,"\n")}))}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return e.forEach((function(t,e){var r=o.match(/(?:^|\n)( *)$/),i=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map((function(t,e){return 0===e?t:""+i+t})).join("\n")),o+=a+n[e+1]})),o}r.d(e,{T:()=>n})},7:(t,e,r)=>{"use strict";function n(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function i(t,e){let r;if(void 0===e)for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function a(t){return t}r.d(e,{JLW:()=>as,l78:()=>x,tlR:()=>m,qrM:()=>xs,Yu4:()=>ks,IA3:()=>ws,Wi0:()=>vs,PGM:()=>Ss,OEq:()=>As,y8u:()=>Ls,olC:()=>$s,IrU:()=>Ds,oDi:()=>Is,Q7f:()=>zs,cVp:()=>js,lUB:()=>ls,Lx9:()=>qs,nVG:()=>Xs,uxU:()=>Qs,Xf2:()=>el,GZz:()=>nl,UPb:()=>al,dyv:()=>il,bEH:()=>dn,n8j:()=>us,T9B:()=>n,jkA:()=>i,rLf:()=>fs,WH:()=>Cn,m4Y:()=>pi,UMr:()=>kn,w7C:()=>Lo,zt:()=>Fo,Ltv:()=>$o,UAC:()=>Li,DCK:()=>la,TUC:()=>zi,Agd:()=>Mi,t6C:()=>vi,wXd:()=>Ti,ABi:()=>Oi,Ui6:()=>Vi,rGn:()=>Pi,ucG:()=>Si,YPH:()=>Di,Mol:()=>Ri,PGu:()=>Ni,GuW:()=>Ii});var o=1,s=2,l=3,c=4,h=1e-6;function u(t){return"translate("+t+",0)"}function d(t){return"translate(0,"+t+")"}function p(t){return e=>+t(e)}function f(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function g(){return!this.__axis}function y(t,e){var r=[],n=null,i=null,y=6,m=6,x=3,b="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,k=t===o||t===c?-1:1,C=t===c||t===s?"x":"y",w=t===o||t===l?u:d;function _(u){var d=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,_=null==i?e.tickFormat?e.tickFormat.apply(e,r):a:i,v=Math.max(y,0)+x,S=e.range(),T=+S[0]+b,A=+S[S.length-1]+b,M=(e.bandwidth?f:p)(e.copy(),b),B=u.selection?u.selection():u,L=B.selectAll(".domain").data([null]),F=B.selectAll(".tick").data(d,e).order(),$=F.exit(),E=F.enter().append("g").attr("class","tick"),D=F.select("line"),O=F.select("text");L=L.merge(L.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge(E),D=D.merge(E.append("line").attr("stroke","currentColor").attr(C+"2",k*y)),O=O.merge(E.append("text").attr("fill","currentColor").attr(C,k*v).attr("dy",t===o?"0em":t===l?"0.71em":"0.32em")),u!==B&&(L=L.transition(u),F=F.transition(u),D=D.transition(u),O=O.transition(u),$=$.transition(u).attr("opacity",h).attr("transform",(function(t){return isFinite(t=M(t))?w(t+b):this.getAttribute("transform")})),E.attr("opacity",h).attr("transform",(function(t){var e=this.parentNode.__axis;return w((e&&isFinite(e=e(t))?e:M(t))+b)}))),$.remove(),L.attr("d",t===c||t===s?m?"M"+k*m+","+T+"H"+b+"V"+A+"H"+k*m:"M"+b+","+T+"V"+A:m?"M"+T+","+k*m+"V"+b+"H"+A+"V"+k*m:"M"+T+","+b+"H"+A),F.attr("opacity",1).attr("transform",(function(t){return w(M(t)+b)})),D.attr(C+"2",k*y),O.attr(C,k*v).text(_),B.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===s?"start":t===c?"end":"middle"),B.each((function(){this.__axis=M}))}return _.scale=function(t){return arguments.length?(e=t,_):e},_.ticks=function(){return r=Array.from(arguments),_},_.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),_):r.slice()},_.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),_):n&&n.slice()},_.tickFormat=function(t){return arguments.length?(i=t,_):i},_.tickSize=function(t){return arguments.length?(y=m=+t,_):y},_.tickSizeInner=function(t){return arguments.length?(y=+t,_):y},_.tickSizeOuter=function(t){return arguments.length?(m=+t,_):m},_.tickPadding=function(t){return arguments.length?(x=+t,_):x},_.offset=function(t){return arguments.length?(b=+t,_):b},_}function m(t){return y(o,t)}function x(t){return y(l,t)}function b(){}function k(t){return null==t?b:function(){return this.querySelector(t)}}function C(){return[]}function w(t){return null==t?C:function(){return this.querySelectorAll(t)}}function _(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}function v(t){return function(){return this.matches(t)}}function S(t){return function(e){return e.matches(t)}}var T=Array.prototype.find;function A(){return this.firstElementChild}var M=Array.prototype.filter;function B(){return Array.from(this.children)}function L(t){return new Array(t.length)}function F(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function $(t,e,r,n,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new F(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function E(t,e,r,n,i,a,o){var s,l,c,h=new Map,u=e.length,d=a.length,p=new Array(u);for(s=0;s<u;++s)(l=e[s])&&(p[s]=c=o.call(l,l.__data__,s,e)+"",h.has(c)?i[s]=l:h.set(c,l));for(s=0;s<d;++s)c=o.call(t,a[s],s,a)+"",(l=h.get(c))?(n[s]=l,l.__data__=a[s],h.delete(c)):r[s]=new F(t,a[s]);for(s=0;s<u;++s)(l=e[s])&&h.get(p[s])===l&&(i[s]=l)}function D(t){return t.__data__}function O(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function N(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}F.prototype={constructor:F,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var I="http://www.w3.org/1999/xhtml";const R={svg:"http://www.w3.org/2000/svg",xhtml:I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function z(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),R.hasOwnProperty(e)?{space:R[e],local:t}:t}function P(t){return function(){this.removeAttribute(t)}}function j(t){return function(){this.removeAttributeNS(t.space,t.local)}}function K(t,e){return function(){this.setAttribute(t,e)}}function q(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function W(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function H(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function U(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Y(t){return function(){this.style.removeProperty(t)}}function G(t,e,r){return function(){this.style.setProperty(t,e,r)}}function V(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function Z(t,e){return t.style.getPropertyValue(e)||U(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return function(){delete this[t]}}function Q(t,e){return function(){this[t]=e}}function J(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function tt(t){return t.trim().split(/^|\s+/)}function et(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=tt(t.getAttribute("class")||"")}function nt(t,e){for(var r=et(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function it(t,e){for(var r=et(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function at(t){return function(){nt(this,t)}}function ot(t){return function(){it(this,t)}}function st(t,e){return function(){(e.apply(this,arguments)?nt:it)(this,t)}}function lt(){this.textContent=""}function ct(t){return function(){this.textContent=t}}function ht(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ut(){this.innerHTML=""}function dt(t){return function(){this.innerHTML=t}}function pt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function ft(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yt(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===I&&e.documentElement.namespaceURI===I?e.createElement(t):e.createElementNS(r,t)}}function mt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xt(t){var e=z(t);return(e.local?mt:yt)(e)}function bt(){return null}function kt(){var t=this.parentNode;t&&t.removeChild(this)}function Ct(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _t(t){return function(){var e=this.__on;if(e){for(var r,n=0,i=-1,a=e.length;n<a;++n)r=e[n],t.type&&r.type!==t.type||r.name!==t.name?e[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?e.length=i:delete this.__on}}}function vt(t,e,r){return function(){var n,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===t.type&&n.name===t.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),void(n.value=e);this.addEventListener(t.type,a,r),n={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(n):this.__on=[n]}}function St(t,e,r){var n=U(t),i=n.CustomEvent;"function"==typeof i?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Tt(t,e){return function(){return St(this,t,e)}}function At(t,e){return function(){return St(this,t,e.apply(this,arguments))}}rt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Mt=[null];function Bt(t,e){this._groups=t,this._parents=e}function Lt(){return new Bt([[document.documentElement]],Mt)}Bt.prototype=Lt.prototype={constructor:Bt,select:function(t){"function"!=typeof t&&(t=k(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o,s=e[i],l=s.length,c=n[i]=new Array(l),h=0;h<l;++h)(a=s[h])&&(o=t.call(a,a.__data__,h,s))&&("__data__"in a&&(o.__data__=a.__data__),c[h]=o);return new Bt(n,this._parents)},selectAll:function(t){t="function"==typeof t?_(t):w(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var o,s=e[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(n.push(t.call(o,o.__data__,c,s)),i.push(o));return new Bt(n,i)},selectChild:function(t){return this.select(null==t?A:function(t){return function(){return T.call(this.children,t)}}("function"==typeof t?t:S(t)))},selectChildren:function(t){return this.selectAll(null==t?B:function(t){return function(){return M.call(this.children,t)}}("function"==typeof t?t:S(t)))},filter:function(t){"function"!=typeof t&&(t=v(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Bt(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,D);var r,n=e?E:$,i=this._parents,a=this._groups;"function"!=typeof t&&(r=t,t=function(){return r});for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),h=0;h<o;++h){var u=i[h],d=a[h],p=d.length,f=O(t.call(u,u&&u.__data__,h,i)),g=f.length,y=l[h]=new Array(g),m=s[h]=new Array(g);n(u,d,y,m,c[h]=new Array(p),f,e);for(var x,b,k=0,C=0;k<g;++k)if(x=y[k]){for(k>=C&&(C=k+1);!(b=m[C])&&++C<g;);x._next=b||null}}return(s=new Bt(s,i))._enter=l,s._exit=c,s},enter:function(){return new Bt(this._enter||this._groups.map(L),this._parents)},exit:function(){return new Bt(this._exit||this._groups.map(L),this._parents)},join:function(t,e,r){var n=this.enter(),i=this,a=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==r?a.remove():r(a),n&&i?n.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var c,h=r[l],u=n[l],d=h.length,p=s[l]=new Array(d),f=0;f<d;++f)(c=h[f]||u[f])&&(p[f]=c);for(;l<i;++l)s[l]=r[l];return new Bt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,i=t[e],a=i.length-1,o=i[a];--a>=0;)(n=i[a])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=N);for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o,s=r[a],l=s.length,c=i[a]=new Array(l),h=0;h<l;++h)(o=s[h])&&(c[h]=o);c.sort(e)}return new Bt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i,a=e[r],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var r=z(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?j:P:"function"==typeof e?r.local?H:W:r.local?q:K)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?Y:"function"==typeof e?V:G)(t,e,null==r?"":r)):Z(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?X:"function"==typeof e?J:Q)(t,e)):this.node()[t]},classed:function(t,e){var r=tt(t+"");if(arguments.length<2){for(var n=et(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof e?st:e?at:ot)(r,e))},text:function(t){return arguments.length?this.each(null==t?lt:("function"==typeof t?ht:ct)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?pt:dt)(t)):this.node().innerHTML},raise:function(){return this.each(ft)},lower:function(){return this.each(gt)},append:function(t){var e="function"==typeof t?t:xt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var r="function"==typeof t?t:xt(t),n=null==e?bt:"function"==typeof e?e:k(e);return this.select((function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)}))},remove:function(){return this.each(kt)},clone:function(t){return this.select(t?wt:Ct)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,i,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?vt:_t,n=0;n<o;++n)this.each(s(a[n],e,r));return this}var s=this.node().__on;if(s)for(var l,c=0,h=s.length;c<h;++c)for(n=0,l=s[c];n<o;++n)if((i=a[n]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?At:Tt)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n,i=t[e],a=0,o=i.length;a<o;++a)(n=i[a])&&(yield n)}};const Ft=Lt;var $t={value:()=>{}};function Et(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new Dt(n)}function Dt(t){this._=t}function Ot(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}function Nt(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=$t,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}Dt.prototype=Et.prototype={constructor:Dt,on:function(t,e){var r,n,i=this._,a=(n=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=a[o]).type)i[r]=Nt(i[r],t.name,e);else if(null==e)for(r in i)i[r]=Nt(i[r],t.name,null);return this}for(;++o<s;)if((r=(t=a[o]).type)&&(r=Ot(i[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Dt(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,r=(n=this._[t]).length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};const It=Et;var Rt,zt,Pt=0,jt=0,Kt=0,qt=1e3,Wt=0,Ht=0,Ut=0,Yt="object"==typeof performance&&performance.now?performance:Date,Gt="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Vt(){return Ht||(Gt(Zt),Ht=Yt.now()+Ut)}function Zt(){Ht=0}function Xt(){this._call=this._time=this._next=null}function Qt(t,e,r){var n=new Xt;return n.restart(t,e,r),n}function Jt(){Ht=(Wt=Yt.now())+Ut,Pt=jt=0;try{!function(){Vt(),++Pt;for(var t,e=Rt;e;)(t=Ht-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Pt}()}finally{Pt=0,function(){var t,e,r=Rt,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Rt=e);zt=t,ee(n)}(),Ht=0}}function te(){var t=Yt.now(),e=t-Wt;e>qt&&(Ut-=e,Wt=t)}function ee(t){Pt||(jt&&(jt=clearTimeout(jt)),t-Ht>24?(t<1/0&&(jt=setTimeout(Jt,t-Yt.now()-Ut)),Kt&&(Kt=clearInterval(Kt))):(Kt||(Wt=Yt.now(),Kt=setInterval(te,qt)),Pt=1,Gt(Jt)))}function re(t,e,r){var n=new Xt;return e=null==e?0:+e,n.restart((r=>{n.stop(),t(r+e)}),e,r),n}Xt.prototype=Qt.prototype={constructor:Xt,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?Vt():+r)+(null==e?0:+e),this._next||zt===this||(zt?zt._next=this:Rt=this,zt=this),this._call=t,this._time=r,ee()},stop:function(){this._call&&(this._call=null,this._time=1/0,ee())}};var ne=It("start","end","cancel","interrupt"),ie=[],ae=0,oe=1,se=2,le=3,ce=4,he=5,ue=6;function de(t,e,r,n,i,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,i=t.__transition;function a(t){r.state=oe,r.timer.restart(o,r.delay,r.time),r.delay<=t&&o(t-r.delay)}function o(a){var c,h,u,d;if(r.state!==oe)return l();for(c in i)if((d=i[c]).name===r.name){if(d.state===le)return re(o);d.state===ce?(d.state=ue,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[c]):+c<e&&(d.state=ue,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[c])}if(re((function(){r.state===le&&(r.state=ce,r.timer.restart(s,r.delay,r.time),s(a))})),r.state=se,r.on.call("start",t,t.__data__,r.index,r.group),r.state===se){for(r.state=le,n=new Array(u=r.tween.length),c=0,h=-1;c<u;++c)(d=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(n[++h]=d);n.length=h+1}}function s(e){for(var i=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(l),r.state=he,1),a=-1,o=n.length;++a<o;)n[a].call(t,i);r.state===he&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){for(var n in r.state=ue,r.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=r,r.timer=Qt(a,0,r.time)}(t,r,{name:e,index:n,group:i,on:ne,tween:ie,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ae})}function pe(t,e){var r=ge(t,e);if(r.state>ae)throw new Error("too late; already scheduled");return r}function fe(t,e){var r=ge(t,e);if(r.state>le)throw new Error("too late; already running");return r}function ge(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function ye(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var me,xe=180/Math.PI,be={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ke(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*xe,skewX:Math.atan(l)*xe,scaleX:o,scaleY:s}}function Ce(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:ye(t,i)},{i:l-2,x:ye(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:r.push(i(r)+"rotate(",null,n)-2,x:ye(t,e)})):e&&r.push(i(r)+"rotate("+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+"skewX(",null,n)-2,x:ye(t,e)}):e&&r.push(i(r)+"skewX("+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:ye(t,r)},{i:s-2,x:ye(e,n)})}else 1===r&&1===n||a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r<n;)s[(e=l[r]).i]=e.x(t);return s.join("")}}}var we=Ce((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?be:ke(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),_e=Ce((function(t){return null==t?be:(me||(me=document.createElementNS("http://www.w3.org/2000/svg","g")),me.setAttribute("transform",t),(t=me.transform.baseVal.consolidate())?ke((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):be)}),", ",")",")");function ve(t,e){var r,n;return function(){var i=fe(this,t),a=i.tween;if(a!==r)for(var o=0,s=(n=r=a).length;o<s;++o)if(n[o].name===e){(n=n.slice()).splice(o,1);break}i.tween=n}}function Se(t,e,r){var n,i;if("function"!=typeof r)throw new Error;return function(){var a=fe(this,t),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:e,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}}function Te(t,e,r){var n=t._id;return t.each((function(){var t=fe(this,n);(t.value||(t.value={}))[e]=r.apply(this,arguments)})),function(t){return ge(t,n).value[e]}}function Ae(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Me(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Be(){}var Le=.7,Fe=1/Le,$e="\\s*([+-]?\\d+)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Ne=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),Ie=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Re=new RegExp(`^rgba\\(${$e},${$e},${$e},${Ee}\\)$`),ze=new RegExp(`^rgba\\(${De},${De},${De},${Ee}\\)$`),Pe=new RegExp(`^hsl\\(${Ee},${De},${De}\\)$`),je=new RegExp(`^hsla\\(${Ee},${De},${De},${Ee}\\)$`),Ke={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function We(){return this.rgb().formatRgb()}function He(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Oe.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Ue(e):3===r?new Ze(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Ye(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Ye(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ne.exec(t))?new Ze(e[1],e[2],e[3],1):(e=Ie.exec(t))?new Ze(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Re.exec(t))?Ye(e[1],e[2],e[3],e[4]):(e=ze.exec(t))?Ye(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Pe.exec(t))?rr(e[1],e[2]/100,e[3]/100,1):(e=je.exec(t))?rr(e[1],e[2]/100,e[3]/100,e[4]):Ke.hasOwnProperty(t)?Ue(Ke[t]):"transparent"===t?new Ze(NaN,NaN,NaN,0):null}function Ue(t){return new Ze(t>>16&255,t>>8&255,255&t,1)}function Ye(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ze(t,e,r,n)}function Ge(t){return t instanceof Be||(t=He(t)),t?new Ze((t=t.rgb()).r,t.g,t.b,t.opacity):new Ze}function Ve(t,e,r,n){return 1===arguments.length?Ge(t):new Ze(t,e,r,null==n?1:n)}function Ze(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Xe(){return`#${er(this.r)}${er(this.g)}${er(this.b)}`}function Qe(){const t=Je(this.opacity);return`${1===t?"rgb(":"rgba("}${tr(this.r)}, ${tr(this.g)}, ${tr(this.b)}${1===t?")":`, ${t})`}`}function Je(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function tr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function er(t){return((t=tr(t))<16?"0":"")+t.toString(16)}function rr(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ir(t,e,r,n)}function nr(t){if(t instanceof ir)return new ir(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=He(t)),!t)return new ir;if(t instanceof ir)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+6*(r<n):r===a?(n-e)/s+2:(e-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ir(o,s,l,t.opacity)}function ir(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function ar(t){return(t=(t||0)%360)<0?t+360:t}function or(t){return Math.max(0,Math.min(1,t||0))}function sr(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function lr(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}Ae(Be,He,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nr(this).formatHsl()},formatRgb:We,toString:We}),Ae(Ze,Ve,Me(Be,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new Ze(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Le:Math.pow(Le,t),new Ze(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ze(tr(this.r),tr(this.g),tr(this.b),Je(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:Xe,formatHex:Xe,formatHex8:function(){return`#${er(this.r)}${er(this.g)}${er(this.b)}${er(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qe,toString:Qe})),Ae(ir,(function(t,e,r,n){return 1===arguments.length?nr(t):new ir(t,e,r,null==n?1:n)}),Me(Be,{brighter(t){return t=null==t?Fe:Math.pow(Fe,t),new ir(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Le:Math.pow(Le,t),new ir(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Ze(sr(t>=240?t-240:t+120,i,n),sr(t,i,n),sr(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new ir(ar(this.h),or(this.s),or(this.l),Je(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 t=Je(this.opacity);return`${1===t?"hsl(":"hsla("}${ar(this.h)}, ${100*or(this.s)}%, ${100*or(this.l)}%${1===t?")":`, ${t})`}`}}));const cr=t=>()=>t;function hr(t,e){return function(r){return t+r*e}}function ur(t){return 1==(t=+t)?dr:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):cr(isNaN(e)?r:e)}}function dr(t,e){var r=e-t;return r?hr(t,r):cr(isNaN(t)?e:t)}const pr=function t(e){var r=ur(e);function n(t,e){var n=r((t=Ve(t)).r,(e=Ve(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=dr(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return n.gamma=t,n}(1);function fr(t){return function(e){var r,n,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(r=0;r<i;++r)n=Ve(e[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=t(a),o=t(o),s=t(s),n.opacity=1,function(t){return n.r=a(t),n.g=o(t),n.b=s(t),n+""}}}fr((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n<e-1?t[n+2]:2*a-i;return lr((r-n/e)*e,o,i,a,s)}})),fr((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return lr((r-n/e)*e,i,a,o,s)}}));var gr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yr=new RegExp(gr.source,"g");function mr(t,e){var r,n,i,a=gr.lastIndex=yr.lastIndex=0,o=-1,s=[],l=[];for(t+="",e+="";(r=gr.exec(t))&&(n=yr.exec(e));)(i=n.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:ye(r,n)})),a=yr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)s[(r=l[n]).i]=r.x(t);return s.join("")})}function xr(t,e){var r;return("number"==typeof e?ye:e instanceof He?pr:(r=He(e))?(e=r,pr):mr)(t,e)}function br(t){return function(){this.removeAttribute(t)}}function kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Cr(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===n?i:i=e(n=o,r)}}function wr(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===n?i:i=e(n=o,r)}}function _r(t,e,r){var n,i,a;return function(){var o,s,l=r(this);if(null!=l)return(o=this.getAttribute(t))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l));this.removeAttribute(t)}}function vr(t,e,r){var n,i,a;return function(){var o,s,l=r(this);if(null!=l)return(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l));this.removeAttributeNS(t.space,t.local)}}function Sr(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}(t,i)),r}return i._value=e,i}function Tr(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}(t,i)),r}return i._value=e,i}function Ar(t,e){return function(){pe(this,t).delay=+e.apply(this,arguments)}}function Mr(t,e){return e=+e,function(){pe(this,t).delay=e}}function Br(t,e){return function(){fe(this,t).duration=+e.apply(this,arguments)}}function Lr(t,e){return e=+e,function(){fe(this,t).duration=e}}var Fr=Ft.prototype.constructor;function $r(t){return function(){this.style.removeProperty(t)}}var Er=0;function Dr(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function Or(){return++Er}var Nr=Ft.prototype;Dr.prototype=function(t){return Ft().transition(t)}.prototype={constructor:Dr,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=k(t));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s,l,c=n[o],h=c.length,u=a[o]=new Array(h),d=0;d<h;++d)(s=c[d])&&(l=t.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),u[d]=l,de(u[d],e,r,d,u,ge(s,r)));return new Dr(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=w(t));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l,c=n[s],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,p=t.call(l,l.__data__,u,c),f=ge(l,r),g=0,y=p.length;g<y;++g)(d=p[g])&&de(d,e,r,g,p,f);a.push(p),o.push(l)}return new Dr(a,o,e,r)},selectChild:Nr.selectChild,selectChildren:Nr.selectChildren,filter:function(t){"function"!=typeof t&&(t=v(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new Dr(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l,c=e[s],h=r[s],u=c.length,d=o[s]=new Array(u),p=0;p<u;++p)(l=c[p]||h[p])&&(d[p]=l);for(;s<n;++s)o[s]=e[s];return new Dr(o,this._parents,this._name,this._id)},selection:function(){return new Fr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Or(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var h=ge(o,e);de(o,t,r,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Dr(n,this._parents,t,r)},call:Nr.call,nodes:Nr.nodes,node:Nr.node,size:Nr.size,empty:Nr.empty,each:Nr.each,on:function(t,e){var r=this._id;return arguments.length<2?ge(this.node(),r).on.on(t):this.each(function(t,e,r){var n,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?pe:fe;return function(){var o=a(this,t),s=o.on;s!==n&&(i=(n=s).copy()).on(e,r),o.on=i}}(r,t,e))},attr:function(t,e){var r=z(t),n="transform"===r?_e:xr;return this.attrTween(t,"function"==typeof e?(r.local?vr:_r)(r,n,Te(this,"attr."+t,e)):null==e?(r.local?kr:br)(r):(r.local?wr:Cr)(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var n=z(t);return this.tween(r,(n.local?Sr:Tr)(n,e))},style:function(t,e,r){var n="transform"==(t+="")?we:xr;return null==e?this.styleTween(t,function(t,e){var r,n,i;return function(){var a=Z(this,t),o=(this.style.removeProperty(t),Z(this,t));return a===o?null:a===r&&o===n?i:i=e(r=a,n=o)}}(t,n)).on("end.style."+t,$r(t)):"function"==typeof e?this.styleTween(t,function(t,e,r){var n,i,a;return function(){var o=Z(this,t),s=r(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Z(this,t)),o===l?null:o===n&&l===i?a:(i=l,a=e(n=o,s))}}(t,n,Te(this,"style."+t,e))).each(function(t,e){var r,n,i,a,o="style."+e,s="end."+o;return function(){var l=fe(this,t),c=l.on,h=null==l.value[o]?a||(a=$r(e)):void 0;c===r&&i===h||(n=(r=c).copy()).on(s,i=h),l.on=n}}(this._id,t)):this.styleTween(t,function(t,e,r){var n,i,a=r+"";return function(){var o=Z(this,t);return o===a?null:o===n?i:i=e(n=o,r)}}(t,n,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;return this.tween(n,function(t,e,r){var n,i;function a(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&function(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}(t,a,r)),n}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Te(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&function(t){return function(e){this.textContent=t.call(this,e)}}(n)),e}return n._value=t,n}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=ge(this.node(),r).tween,a=0,o=i.length;a<o;++a)if((n=i[a]).name===t)return n.value;return null}return this.each((null==e?ve:Se)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ar:Mr)(e,t)):ge(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Br:Lr)(e,t)):ge(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){fe(this,t).ease=e}}(e,t)):ge(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var r=e.apply(this,arguments);if("function"!=typeof r)throw new Error;fe(this,t).ease=r}}(this._id,t))},end:function(){var t,e,r=this,n=r._id,i=r.size();return new Promise((function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};r.each((function(){var r=fe(this,n),i=r.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e})),0===i&&a()}))},[Symbol.iterator]:Nr[Symbol.iterator]};var Ir={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Rr(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Ft.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var r,n,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(r=a[i]).name===e?(n=r.state>se&&r.state<he,r.state=ue,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Ft.prototype.transition=function(t){var e,r;t instanceof Dr?(e=t._id,t=t._name):(e=Or(),(r=Ir).time=Vt(),t=null==t?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)(o=s[c])&&de(o,t,e,c,s,r||Rr(o,e));return new Dr(n,this._parents,t,e)};const{abs:zr,max:Pr,min:jr}=Math;function Kr(t){return[+t[0],+t[1]]}function qr(t){return[Kr(t[0]),Kr(t[1])]}["w","e"].map(Wr),["n","s"].map(Wr),["n","w","e","s","nw","ne","sw","se"].map(Wr);function Wr(t){return{type:t}}const Hr=Math.PI/180,Ur=180/Math.PI,Yr=.96422,Gr=1,Vr=.82521,Zr=4/29,Xr=6/29,Qr=3*Xr*Xr,Jr=Xr*Xr*Xr;function tn(t){if(t instanceof en)return new en(t.l,t.a,t.b,t.opacity);if(t instanceof cn)return hn(t);t instanceof Ze||(t=Ge(t));var e,r,n=on(t.r),i=on(t.g),a=on(t.b),o=rn((.2225045*n+.7168786*i+.0606169*a)/Gr);return n===i&&i===a?e=r=o:(e=rn((.4360747*n+.3850649*i+.1430804*a)/Yr),r=rn((.0139322*n+.0971045*i+.7141733*a)/Vr)),new en(116*o-16,500*(e-o),200*(o-r),t.opacity)}function en(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function rn(t){return t>Jr?Math.pow(t,1/3):t/Qr+Zr}function nn(t){return t>Xr?t*t*t:Qr*(t-Zr)}function an(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function on(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function sn(t){if(t instanceof cn)return new cn(t.h,t.c,t.l,t.opacity);if(t instanceof en||(t=tn(t)),0===t.a&&0===t.b)return new cn(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ur;return new cn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ln(t,e,r,n){return 1===arguments.length?sn(t):new cn(t,e,r,null==n?1:n)}function cn(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function hn(t){if(isNaN(t.h))return new en(t.l,0,0,t.opacity);var e=t.h*Hr;return new en(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function un(t){return function(e,r){var n=t((e=ln(e)).h,(r=ln(r)).h),i=dr(e.c,r.c),a=dr(e.l,r.l),o=dr(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}Ae(en,(function(t,e,r,n){return 1===arguments.length?tn(t):new en(t,e,r,null==n?1:n)}),Me(Be,{brighter(t){return new en(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new en(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new Ze(an(3.1338561*(e=Yr*nn(e))-1.6168667*(t=Gr*nn(t))-.4906146*(r=Vr*nn(r))),an(-.9787684*e+1.9161415*t+.033454*r),an(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Ae(cn,ln,Me(Be,{brighter(t){return new cn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new cn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return hn(this).rgb()}}));const dn=un((function(t,e){var r=e-t;return r?hr(t,r>180||r<-180?r-360*Math.round(r/360):r):cr(isNaN(t)?e:t)}));un(dr);function pn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class fn extends Map{constructor(t,e=xn){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[r,n]of t)this.set(r,n)}get(t){return super.get(gn(this,t))}has(t){return super.has(gn(this,t))}set(t,e){return super.set(yn(this,t),e)}delete(t){return super.delete(mn(this,t))}}Set;function gn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function yn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function mn({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function xn(t){return null!==t&&"object"==typeof t?t.valueOf():t}const bn=Symbol("implicit");function kn(){var t=new fn,e=[],r=[],n=bn;function i(i){let a=t.get(i);if(void 0===a){if(n!==bn)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new fn;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return kn(e,r).unknown(n)},pn.apply(i,arguments),i}function Cn(){var t,e,r=kn().unknown(void 0),n=r.domain,i=r.range,a=0,o=1,s=!1,l=0,c=0,h=.5;function u(){var r=n().length,u=o<a,d=u?o:a,p=u?a:o;t=(p-d)/Math.max(1,r-l+2*c),s&&(t=Math.floor(t)),d+=(p-d-t*(r-l))*h,e=t*(1-l),s&&(d=Math.round(d),e=Math.round(e));var f=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n<i;)a[n]=t+n*r;return a}(r).map((function(e){return d+t*e}));return i(u?f.reverse():f)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),u()):n()},r.range=function(t){return arguments.length?([a,o]=t,a=+a,o=+o,u()):[a,o]},r.rangeRound=function(t){return[a,o]=t,a=+a,o=+o,s=!0,u()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(s=!!t,u()):s},r.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),u()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),u()):l},r.paddingOuter=function(t){return arguments.length?(c=+t,u()):c},r.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),u()):h},r.copy=function(){return Cn(n(),[a,o]).round(s).paddingInner(l).paddingOuter(c).align(h)},pn.apply(u(),arguments)}const wn=Math.sqrt(50),_n=Math.sqrt(10),vn=Math.sqrt(2);function Sn(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=wn?10:a>=_n?5:a>=vn?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=r&&r<2?Sn(t,e,2*r):[s,l,c]}function Tn(t,e,r){return Sn(t=+t,e=+e,r=+r)[2]}function An(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?Tn(e,t,r):Tn(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function Mn(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Bn(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ln(t){let e,r,n;function i(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{const e=i+a>>>1;r(t[e],n)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=Mn,r=(e,r)=>Mn(t(e),r),n=(e,r)=>t(e)-r):(e=t===Mn||t===Bn?t:Fn,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){const o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{const e=i+a>>>1;r(t[e],n)<=0?i=e+1:a=e}while(i<a)}return i}}}function Fn(){return 0}const $n=Ln(Mn),En=$n.right,Dn=($n.left,Ln((function(t){return null===t?NaN:+t})).center,En);function On(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=zn(t[r],e[r]);for(;r<n;++r)o[r]=e[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}function Nn(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function In(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=zn(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}function Rn(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function zn(t,e){var r,n,i=typeof e;return null==e||"boolean"===i?cr(e):("number"===i?ye:"string"===i?(r=He(e))?(e=r,pr):mr:e instanceof He?pr:e instanceof Date?Nn:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?On:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?In:ye:Rn))(t,e)}function Pn(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function jn(t){return+t}var Kn=[0,1];function qn(t){return t}function Wn(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Hn(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=Wn(i,n),a=r(o,a)):(n=Wn(n,i),a=r(a,o)),function(t){return a(n(t))}}function Un(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),a=new Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=Wn(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(e){var r=Dn(t,e,1,n)-1;return a[r](i[r](e))}}function Yn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Gn(){var t,e,r,n,i,a,o=Kn,s=Kn,l=zn,c=qn;function h(){var t,e,r,l=Math.min(o.length,s.length);return c!==qn&&(t=o[0],e=o[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?Un:Hn,i=a=null,u}function u(e){return null==e||isNaN(e=+e)?r:(i||(i=n(o.map(t),s,l)))(t(c(e)))}return u.invert=function(r){return c(e((a||(a=n(s,o.map(t),ye)))(r)))},u.domain=function(t){return arguments.length?(o=Array.from(t,jn),h()):o.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),h()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=Pn,h()},u.clamp=function(t){return arguments.length?(c=!!t||qn,h()):c!==qn},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(r=t,u):r},function(r,n){return t=r,e=n,h()}}function Vn(){return Gn()(qn,qn)}var Zn,Xn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qn(t){if(!(e=Xn.exec(t)))throw new Error("invalid format: "+t);var e;return new Jn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Jn(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function ti(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function ei(t){return(t=ti(Math.abs(t)))?t[1]:NaN}function ri(t,e){var r=ti(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Qn.prototype=Jn.prototype,Jn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ni={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ri(100*t,e),r:ri,s:function(t,e){var r=ti(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(Zn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ti(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ii(t){return t}var ai,oi,si,li=Array.prototype.map,ci=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function hi(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?ii:(e=li.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?ii:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(li.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"\u2212":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=Qn(t)).fill,r=t.align,u=t.sign,d=t.symbol,p=t.zero,f=t.width,g=t.comma,y=t.precision,m=t.trim,x=t.type;"n"===x?(g=!0,x="g"):ni[x]||(void 0===y&&(y=12),m=!0,x="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k="$"===d?a:/[%p]/.test(x)?l:"",C=ni[x],w=/[defgprs%]/.test(x);function _(t){var i,a,l,d=b,_=k;if("c"===x)_=C(t)+_,t="";else{var v=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:C(Math.abs(t),y),m&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),v&&0==+t&&"+"!==u&&(v=!1),d=(v?"("===u?u:c:"-"===u||"("===u?"":u)+d,_=("s"===x?ci[8+Zn/3]:"")+_+(v&&"("===u?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(l=t.charCodeAt(i))||l>57){_=(46===l?o+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}g&&!p&&(t=n(t,1/0));var S=d.length+t.length+_.length,T=S<f?new Array(f-S+1).join(e):"";switch(g&&p&&(t=n(T+t,T.length?f-_.length:1/0),T=""),r){case"<":t=d+t+_+T;break;case"=":t=d+T+t+_;break;case"^":t=T.slice(0,S=T.length>>1)+d+t+_+T.slice(S);break;default:t=T+d+t+_}return s(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),_.toString=function(){return t+""},_}return{format:u,formatPrefix:function(t,e){var r=u(((t=Qn(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(ei(e)/3))),i=Math.pow(10,-n),a=ci[8+n/3];return function(t){return r(i*t)+a}}}}function ui(t,e,r,n){var i,a=An(t,e,r);switch((n=Qn(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ei(e)/3)))-ei(Math.abs(t)))}(a,o))||(n.precision=i),si(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ei(e)-ei(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-ei(Math.abs(t)))}(a))||(n.precision=i-2*("%"===n.type))}return oi(n)}function di(t){var e=t.domain;return t.ticks=function(t){var r=e();return function(t,e,r){if(!((r=+r)>0))return[];if((t=+t)==(e=+e))return[t];const n=e<t,[i,a,o]=n?Sn(e,t,r):Sn(t,e,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return ui(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,a=e(),o=0,s=a.length-1,l=a[o],c=a[s],h=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);h-- >0;){if((i=Tn(l,c,r))===n)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return t},t}function pi(){var t=Vn();return t.copy=function(){return Yn(t,pi())},pn.apply(t,arguments),di(t)}ai=hi({thousands:",",grouping:[3],currency:["$",""]}),oi=ai.format,si=ai.formatPrefix;const fi=1e3,gi=6e4,yi=36e5,mi=864e5,xi=6048e5,bi=2592e6,ki=31536e6,Ci=new Date,wi=new Date;function _i(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{const o=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;let s;do{o.push(s=new Date(+r)),e(r,a),t(r)}while(s<r&&r<n);return o},i.filter=r=>_i((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(i.count=(e,n)=>(Ci.setTime(+e),wi.setTime(+n),t(Ci),t(wi),Math.floor(r(Ci,wi))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const vi=_i((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));vi.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?_i((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):vi:null);vi.range;const Si=_i((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*fi)}),((t,e)=>(e-t)/fi),(t=>t.getUTCSeconds())),Ti=(Si.range,_i((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fi)}),((t,e)=>{t.setTime(+t+e*gi)}),((t,e)=>(e-t)/gi),(t=>t.getMinutes()))),Ai=(Ti.range,_i((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*gi)}),((t,e)=>(e-t)/gi),(t=>t.getUTCMinutes()))),Mi=(Ai.range,_i((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*fi-t.getMinutes()*gi)}),((t,e)=>{t.setTime(+t+e*yi)}),((t,e)=>(e-t)/yi),(t=>t.getHours()))),Bi=(Mi.range,_i((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*yi)}),((t,e)=>(e-t)/yi),(t=>t.getUTCHours()))),Li=(Bi.range,_i((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gi)/mi),(t=>t.getDate()-1))),Fi=(Li.range,_i((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/mi),(t=>t.getUTCDate()-1))),$i=(Fi.range,_i((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/mi),(t=>Math.floor(t/mi))));$i.range;function Ei(t){return _i((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gi)/xi))}const Di=Ei(0),Oi=Ei(1),Ni=Ei(2),Ii=Ei(3),Ri=Ei(4),zi=Ei(5),Pi=Ei(6);Di.range,Oi.range,Ni.range,Ii.range,Ri.range,zi.range,Pi.range;function ji(t){return _i((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/xi))}const Ki=ji(0),qi=ji(1),Wi=ji(2),Hi=ji(3),Ui=ji(4),Yi=ji(5),Gi=ji(6),Vi=(Ki.range,qi.range,Wi.range,Hi.range,Ui.range,Yi.range,Gi.range,_i((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Zi=(Vi.range,_i((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Xi=(Zi.range,_i((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Xi.every=t=>isFinite(t=Math.floor(t))&&t>0?_i((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null;Xi.range;const Qi=_i((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Qi.every=t=>isFinite(t=Math.floor(t))&&t>0?_i((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null;Qi.range;function Ji(t,e,r,n,i,a){const o=[[Si,1,fi],[Si,5,5e3],[Si,15,15e3],[Si,30,3e4],[a,1,gi],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,yi],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,mi],[n,2,1728e5],[r,1,xi],[e,1,bi],[e,3,7776e6],[t,1,ki]];function s(e,r,n){const i=Math.abs(r-e)/n,a=Ln((([,,t])=>t)).right(o,i);if(a===o.length)return t.every(An(e/ki,r/ki,n));if(0===a)return vi.every(Math.max(An(e,r,n),1));const[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:s(t,e,r),a=i?i.range(t,+e+1):[];return n?a.reverse():a},s]}const[ta,ea]=Ji(Qi,Zi,Ki,$i,Bi,Ai),[ra,na]=Ji(Xi,Vi,Di,Li,Mi,Ti);function ia(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function aa(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function oa(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var sa,la,ca={"-":"",_:" ",0:"0"},ha=/^\s*\d+/,ua=/^%/,da=/[\\^$*+?|[\]().{}]/g;function pa(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(e)+i:i)}function fa(t){return t.replace(da,"\\$&")}function ga(t){return new RegExp("^(?:"+t.map(fa).join("|")+")","i")}function ya(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function ma(t,e,r){var n=ha.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function xa(t,e,r){var n=ha.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function ba(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function ka(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Ca(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function wa(t,e,r){var n=ha.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _a(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function va(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Sa(t,e,r){var n=ha.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Ta(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Aa(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Ma(t,e,r){var n=ha.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ba(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function La(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Fa(t,e,r){var n=ha.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function $a(t,e,r){var n=ha.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Ea(t,e,r){var n=ha.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Da(t,e,r){var n=ua.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Oa(t,e,r){var n=ha.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Na(t,e,r){var n=ha.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Ia(t,e){return pa(t.getDate(),e,2)}function Ra(t,e){return pa(t.getHours(),e,2)}function za(t,e){return pa(t.getHours()%12||12,e,2)}function Pa(t,e){return pa(1+Li.count(Xi(t),t),e,3)}function ja(t,e){return pa(t.getMilliseconds(),e,3)}function Ka(t,e){return ja(t,e)+"000"}function qa(t,e){return pa(t.getMonth()+1,e,2)}function Wa(t,e){return pa(t.getMinutes(),e,2)}function Ha(t,e){return pa(t.getSeconds(),e,2)}function Ua(t){var e=t.getDay();return 0===e?7:e}function Ya(t,e){return pa(Di.count(Xi(t)-1,t),e,2)}function Ga(t){var e=t.getDay();return e>=4||0===e?Ri(t):Ri.ceil(t)}function Va(t,e){return t=Ga(t),pa(Ri.count(Xi(t),t)+(4===Xi(t).getDay()),e,2)}function Za(t){return t.getDay()}function Xa(t,e){return pa(Oi.count(Xi(t)-1,t),e,2)}function Qa(t,e){return pa(t.getFullYear()%100,e,2)}function Ja(t,e){return pa((t=Ga(t)).getFullYear()%100,e,2)}function to(t,e){return pa(t.getFullYear()%1e4,e,4)}function eo(t,e){var r=t.getDay();return pa((t=r>=4||0===r?Ri(t):Ri.ceil(t)).getFullYear()%1e4,e,4)}function ro(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pa(e/60|0,"0",2)+pa(e%60,"0",2)}function no(t,e){return pa(t.getUTCDate(),e,2)}function io(t,e){return pa(t.getUTCHours(),e,2)}function ao(t,e){return pa(t.getUTCHours()%12||12,e,2)}function oo(t,e){return pa(1+Fi.count(Qi(t),t),e,3)}function so(t,e){return pa(t.getUTCMilliseconds(),e,3)}function lo(t,e){return so(t,e)+"000"}function co(t,e){return pa(t.getUTCMonth()+1,e,2)}function ho(t,e){return pa(t.getUTCMinutes(),e,2)}function uo(t,e){return pa(t.getUTCSeconds(),e,2)}function po(t){var e=t.getUTCDay();return 0===e?7:e}function fo(t,e){return pa(Ki.count(Qi(t)-1,t),e,2)}function go(t){var e=t.getUTCDay();return e>=4||0===e?Ui(t):Ui.ceil(t)}function yo(t,e){return t=go(t),pa(Ui.count(Qi(t),t)+(4===Qi(t).getUTCDay()),e,2)}function mo(t){return t.getUTCDay()}function xo(t,e){return pa(qi.count(Qi(t)-1,t),e,2)}function bo(t,e){return pa(t.getUTCFullYear()%100,e,2)}function ko(t,e){return pa((t=go(t)).getUTCFullYear()%100,e,2)}function Co(t,e){return pa(t.getUTCFullYear()%1e4,e,4)}function wo(t,e){var r=t.getUTCDay();return pa((t=r>=4||0===r?Ui(t):Ui.ceil(t)).getUTCFullYear()%1e4,e,4)}function _o(){return"+0000"}function vo(){return"%"}function So(t){return+t}function To(t){return Math.floor(+t/1e3)}function Ao(t){return new Date(t)}function Mo(t){return t instanceof Date?+t:+new Date(+t)}function Bo(t,e,r,n,i,a,o,s,l,c){var h=Vn(),u=h.invert,d=h.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),x=c("%b %d"),b=c("%B"),k=c("%Y");function C(t){return(l(t)<t?p:s(t)<t?f:o(t)<t?g:a(t)<t?y:n(t)<t?i(t)<t?m:x:r(t)<t?b:k)(t)}return h.invert=function(t){return new Date(u(t))},h.domain=function(t){return arguments.length?d(Array.from(t,Mo)):d().map(Ao)},h.ticks=function(e){var r=d();return t(r[0],r[r.length-1],null==e?10:e)},h.tickFormat=function(t,e){return null==e?C:c(e)},h.nice=function(t){var r=d();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?d(function(t,e){var r,n=0,i=(t=t.slice()).length-1,a=t[n],o=t[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}(r,t)):h},h.copy=function(){return Yn(h,Bo(t,e,r,n,i,a,o,s,l,c))},h}function Lo(){return pn.apply(Bo(ra,na,Xi,Vi,Di,Li,Mi,Ti,Si,la).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(t){sa=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=ga(i),h=ya(i),u=ga(a),d=ya(a),p=ga(o),f=ya(o),g=ga(s),y=ya(s),m=ga(l),x=ya(l),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ia,e:Ia,f:Ka,g:Ja,G:eo,H:Ra,I:za,j:Pa,L:ja,m:qa,M:Wa,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:So,s:To,S:Ha,u:Ua,U:Ya,V:Va,w:Za,W:Xa,x:null,X:null,y:Qa,Y:to,Z:ro,"%":vo},k={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:no,e:no,f:lo,g:ko,G:wo,H:io,I:ao,j:oo,L:so,m:co,M:ho,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:So,s:To,S:uo,u:po,U:fo,V:yo,w:mo,W:xo,x:null,X:null,y:bo,Y:Co,Z:_o,"%":vo},C={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=u.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=x.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return v(t,e,r,n)},d:Aa,e:Aa,f:Ea,g:_a,G:wa,H:Ba,I:Ba,j:Ma,L:$a,m:Ta,M:La,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=h.get(n[0].toLowerCase()),r+n[0].length):-1},q:Sa,Q:Oa,s:Na,S:Fa,u:xa,U:ba,V:ka,w:ma,W:Ca,x:function(t,e,n){return v(t,r,e,n)},X:function(t,e,r){return v(t,n,e,r)},y:_a,Y:wa,Z:va,"%":Da};function w(t,e){return function(r){var n,i,a,o=[],s=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=ca[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function _(t,e){return function(r){var n,i,a=oa(1900,void 0,1);if(v(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(n=aa(oa(a.y,0,1))).getUTCDay(),n=i>4||0===i?qi.ceil(n):qi(n),n=Fi.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=ia(oa(a.y,0,1))).getDay(),n=i>4||0===i?Oi.ceil(n):Oi(n),n=Li.offset(n,7*(a.V-1)),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?aa(oa(a.y,0,1)).getUTCDay():ia(oa(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,aa(a)):ia(a)}}function v(t,e,r,n){for(var i,a,o=0,s=e.length,l=r.length;o<s;){if(n>=l)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=C[i in ca?e.charAt(o++):i])||(n=a(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=w(r,b),b.X=w(n,b),b.c=w(e,b),k.x=w(r,k),k.X=w(n,k),k.c=w(e,k),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",k);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}(t),la=sa.format,sa.parse,sa.utcFormat,sa.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Fo=function(t){for(var e=t.length/6|0,r=new Array(e),n=0;n<e;)r[n]="#"+t.slice(6*n,6*++n);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function $o(t){return"string"==typeof t?new Bt([[document.querySelector(t)]],[document.documentElement]):new Bt([[t]],Mt)}function Eo(t){return function(){return t}}const Do=Math.abs,Oo=Math.atan2,No=Math.cos,Io=Math.max,Ro=Math.min,zo=Math.sin,Po=Math.sqrt,jo=1e-12,Ko=Math.PI,qo=Ko/2,Wo=2*Ko;function Ho(t){return t>=1?qo:t<=-1?-qo:Math.asin(t)}const Uo=Math.PI,Yo=2*Uo,Go=1e-6,Vo=Yo-Go;function Zo(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Xo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Zo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Zo;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,a){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=r-t,l=n-e,c=a-t,h=o-e,u=c*c+h*h;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>Go)if(Math.abs(h*s-l*c)>Go&&i){let d=r-a,p=n-o,f=s*s+l*l,g=d*d+p*p,y=Math.sqrt(f),m=Math.sqrt(u),x=i*Math.tan((Uo-Math.acos((f+u-g)/(2*y*m)))/2),b=x/m,k=x/y;Math.abs(b-1)>Go&&this._append`L${t+b*c},${e+b*h}`,this._append`A${i},${i},0,0,${+(h*d>c*p)},${this._x1=t+k*s},${this._y1=e+k*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,i,a){if(t=+t,e=+e,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=t+o,c=e+s,h=1^a,u=a?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Go||Math.abs(this._y1-c)>Go)&&this._append`L${l},${c}`,r&&(u<0&&(u=u%Yo+Yo),u>Vo?this._append`A${r},${r},0,1,${h},${t-o},${e-s}A${r},${r},0,1,${h},${this._x1=l},${this._y1=c}`:u>Go&&this._append`A${r},${r},0,${+(u>=Uo)},${h},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Qo(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Xo(e)}function Jo(t){return t.innerRadius}function ts(t){return t.outerRadius}function es(t){return t.startAngle}function rs(t){return t.endAngle}function ns(t){return t&&t.padAngle}function is(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/Po(s*s+l*l),h=c*l,u=-c*s,d=t+h,p=e+u,f=r+h,g=n+u,y=(d+f)/2,m=(p+g)/2,x=f-d,b=g-p,k=x*x+b*b,C=i-a,w=d*g-f*p,_=(b<0?-1:1)*Po(Io(0,C*C*k-w*w)),v=(w*b-x*_)/k,S=(-w*x-b*_)/k,T=(w*b+x*_)/k,A=(-w*x+b*_)/k,M=v-y,B=S-m,L=T-y,F=A-m;return M*M+B*B>L*L+F*F&&(v=T,S=A),{cx:v,cy:S,x01:-h,y01:-u,x11:v*(i/C-1),y11:S*(i/C-1)}}function as(){var t=Jo,e=ts,r=Eo(0),n=null,i=es,a=rs,o=ns,s=null,l=Qo(c);function c(){var c,h,u,d=+t.apply(this,arguments),p=+e.apply(this,arguments),f=i.apply(this,arguments)-qo,g=a.apply(this,arguments)-qo,y=Do(g-f),m=g>f;if(s||(s=c=l()),p<d&&(h=p,p=d,d=h),p>jo)if(y>Wo-jo)s.moveTo(p*No(f),p*zo(f)),s.arc(0,0,p,f,g,!m),d>jo&&(s.moveTo(d*No(g),d*zo(g)),s.arc(0,0,d,g,f,m));else{var x,b,k=f,C=g,w=f,_=g,v=y,S=y,T=o.apply(this,arguments)/2,A=T>jo&&(n?+n.apply(this,arguments):Po(d*d+p*p)),M=Ro(Do(p-d)/2,+r.apply(this,arguments)),B=M,L=M;if(A>jo){var F=Ho(A/d*zo(T)),$=Ho(A/p*zo(T));(v-=2*F)>jo?(w+=F*=m?1:-1,_-=F):(v=0,w=_=(f+g)/2),(S-=2*$)>jo?(k+=$*=m?1:-1,C-=$):(S=0,k=C=(f+g)/2)}var E=p*No(k),D=p*zo(k),O=d*No(_),N=d*zo(_);if(M>jo){var I,R=p*No(C),z=p*zo(C),P=d*No(w),j=d*zo(w);if(y<Ko)if(I=function(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,h=o-i,u=s-a,d=u*l-h*c;if(!(d*d<jo))return[t+(d=(h*(e-a)-u*(t-i))/d)*l,e+d*c]}(E,D,P,j,R,z,O,N)){var K=E-I[0],q=D-I[1],W=R-I[0],H=z-I[1],U=1/zo(((u=(K*W+q*H)/(Po(K*K+q*q)*Po(W*W+H*H)))>1?0:u<-1?Ko:Math.acos(u))/2),Y=Po(I[0]*I[0]+I[1]*I[1]);B=Ro(M,(d-Y)/(U-1)),L=Ro(M,(p-Y)/(U+1))}else B=L=0}S>jo?L>jo?(x=is(P,j,E,D,p,L,m),b=is(R,z,O,N,p,L,m),s.moveTo(x.cx+x.x01,x.cy+x.y01),L<M?s.arc(x.cx,x.cy,L,Oo(x.y01,x.x01),Oo(b.y01,b.x01),!m):(s.arc(x.cx,x.cy,L,Oo(x.y01,x.x01),Oo(x.y11,x.x11),!m),s.arc(0,0,p,Oo(x.cy+x.y11,x.cx+x.x11),Oo(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,L,Oo(b.y11,b.x11),Oo(b.y01,b.x01),!m))):(s.moveTo(E,D),s.arc(0,0,p,k,C,!m)):s.moveTo(E,D),d>jo&&v>jo?B>jo?(x=is(O,N,R,z,d,-B,m),b=is(E,D,P,j,d,-B,m),s.lineTo(x.cx+x.x01,x.cy+x.y01),B<M?s.arc(x.cx,x.cy,B,Oo(x.y01,x.x01),Oo(b.y01,b.x01),!m):(s.arc(x.cx,x.cy,B,Oo(x.y01,x.x01),Oo(x.y11,x.x11),!m),s.arc(0,0,d,Oo(x.cy+x.y11,x.cx+x.x11),Oo(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,B,Oo(b.y11,b.x11),Oo(b.y01,b.x01),!m))):s.arc(0,0,d,_,w,m):s.lineTo(O,N)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ko/2;return[No(n)*r,zo(n)*r]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Eo(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Eo(+t),c):e},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:Eo(+t),c):r},c.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Eo(+t),c):n},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Eo(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:Eo(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Eo(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}Xo.prototype;Array.prototype.slice;function os(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ss(t){this._context=t}function ls(t){return new ss(t)}function cs(t){return t[0]}function hs(t){return t[1]}function us(t,e){var r=Eo(!0),n=null,i=ls,a=null,o=Qo(s);function s(s){var l,c,h,u=(s=os(s)).length,d=!1;for(null==n&&(a=i(h=o())),l=0;l<=u;++l)!(l<u&&r(c=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+t(c,l,s),+e(c,l,s));if(h)return a=null,h+""||null}return t="function"==typeof t?t:void 0===t?cs:Eo(t),e="function"==typeof e?e:void 0===e?hs:Eo(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Eo(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Eo(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:Eo(!!t),s):r},s.curve=function(t){return arguments.length?(i=t,null!=n&&(a=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=a=null:a=i(n=t),s):n},s}function ds(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function ps(t){return t}function fs(){var t=ps,e=ds,r=null,n=Eo(0),i=Eo(Wo),a=Eo(0);function o(o){var s,l,c,h,u,d=(o=os(o)).length,p=0,f=new Array(d),g=new Array(d),y=+n.apply(this,arguments),m=Math.min(Wo,Math.max(-Wo,i.apply(this,arguments)-y)),x=Math.min(Math.abs(m)/d,a.apply(this,arguments)),b=x*(m<0?-1:1);for(s=0;s<d;++s)(u=g[f[s]=s]=+t(o[s],s,o))>0&&(p+=u);for(null!=e?f.sort((function(t,r){return e(g[t],g[r])})):null!=r&&f.sort((function(t,e){return r(o[t],o[e])})),s=0,c=p?(m-d*b)/p:0;s<d;++s,y=h)l=f[s],h=y+((u=g[l])>0?u*c:0)+b,g[l]={data:o[l],index:s,value:u,startAngle:y,endAngle:h,padAngle:x};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:Eo(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:Eo(+t),o):n},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Eo(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Eo(+t),o):a},o}function gs(){}function ys(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ms(t){this._context=t}function xs(t){return new ms(t)}function bs(t){this._context=t}function ks(t){return new bs(t)}function Cs(t){this._context=t}function ws(t){return new Cs(t)}ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ys(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ys(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},bs.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ys(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Cs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ys(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class _s{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function vs(t){return new _s(t,!0)}function Ss(t){return new _s(t,!1)}function Ts(t,e){this._basis=new ms(t),this._beta=e}Ts.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const As=function t(e){function r(t){return 1===e?new ms(t):new Ts(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function Ms(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Bs(t,e){this._context=t,this._k=(1-e)/6}Bs.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._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ms(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ms(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ls=function t(e){function r(t){return new Bs(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Fs(t,e){this._context=t,this._k=(1-e)/6}Fs.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ms(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $s=function t(e){function r(t){return new Fs(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Es(t,e){this._context=t,this._k=(1-e)/6}Es.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._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:Ms(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ds=function t(e){function r(t){return new Es(t,e)}return r.tension=function(e){return t(+e)},r}(0);function Os(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>jo){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>jo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/h}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Ns(t,e){this._context=t,this._alpha=e}Ns.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Os(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Is=function t(e){function r(t){return e?new Ns(t,e):new Bs(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Rs(t,e){this._context=t,this._alpha=e}Rs.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=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 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Os(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zs=function t(e){function r(t){return e?new Rs(t,e):new Fs(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ps(t,e){this._context=t,this._alpha=e}Ps.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:Os(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const js=function t(e){function r(t){return e?new Ps(t,e):new Es(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ks(t){this._context=t}function qs(t){return new Ks(t)}function Ws(t){return t<0?-1:1}function Hs(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ws(a)+Ws(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Us(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ys(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Gs(t){this._context=t}function Vs(t){this._context=new Zs(t)}function Zs(t){this._context=t}function Xs(t){return new Gs(t)}function Qs(t){return new Vs(t)}function Js(t){this._context=t}function tl(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function el(t){return new Js(t)}function rl(t,e){this._context=t,this._t=e}function nl(t){return new rl(t,.5)}function il(t){return new rl(t,0)}function al(t){return new rl(t,1)}function ol(t,e,r){this.k=t,this.x=e,this.y=r}Ks.prototype={areaStart:gs,areaEnd:gs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ys(this,this._t0,Us(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ys(this,Us(this,r=Hs(this,t,e)),r);break;default:Ys(this,this._t0,r=Hs(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Vs.prototype=Object.create(Gs.prototype)).point=function(t,e){Gs.prototype.point.call(this,e,t)},Zs.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=tl(t),i=tl(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},ol.prototype={constructor:ol,scale:function(t){return 1===t?this:new ol(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ol(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new ol(1,0,0);ol.prototype},9418:(t,e,r)=>{"use strict";r.d(e,{A:()=>at});const{entries:n,setPrototypeOf:i,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:h}=Object,{apply:u,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(t){return t}),c||(c=function(t){return t}),u||(u=function(t,e,r){return t.apply(e,r)}),d||(d=function(t,e){return new t(...e)});const p=T(Array.prototype.forEach),f=T(Array.prototype.pop),g=T(Array.prototype.push),y=T(String.prototype.toLowerCase),m=T(String.prototype.toString),x=T(String.prototype.match),b=T(String.prototype.replace),k=T(String.prototype.indexOf),C=T(String.prototype.trim),w=T(Object.prototype.hasOwnProperty),_=T(RegExp.prototype.test),v=(S=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return d(S,e)});var S;function T(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return u(t,e,n)}}function A(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;i&&i(t,null);let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){const t=r(i);t!==i&&(a(e)||(e[n]=t),i=t)}t[i]=!0}return t}function M(t){for(let e=0;e<t.length;e++){w(t,e)||(t[e]=null)}return t}function B(t){const e=h(null);for(const[r,i]of n(t)){w(t,r)&&(Array.isArray(i)?e[r]=M(i):i&&"object"==typeof i&&i.constructor===Object?e[r]=B(i):e[r]=i)}return e}function L(t,e){for(;null!==t;){const r=s(t,e);if(r){if(r.get)return T(r.get);if("function"==typeof r.value)return T(r.value)}t=o(t)}return function(){return null}}const F=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),E=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),N=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=l(["#text"]),R=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=c(/<%[\w\W]*|[\w\W]*%>/gm),W=c(/\$\{[\w\W]*}/gm),H=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),U=c(/^aria-[\-\w]+$/),Y=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=c(/^(?:\w+script|data):/i),V=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=c(/^html$/i),X=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:U,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:X,DATA_ATTR:H,DOCTYPE_NAME:Z,ERB_EXPR:q,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:K,TMPLIT_EXPR:W});const J=1,tt=3,et=7,rt=8,nt=9,it=function(){return"undefined"==typeof window?null:window};var at=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:it();const r=e=>t(e);if(r.version="3.2.3",r.removed=[],!e||!e.document||e.document.nodeType!==nt)return r.isSupported=!1,r;let{document:i}=e;const a=i,o=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:u,Element:d,NodeFilter:S,NamedNodeMap:T=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:M,DOMParser:K,trustedTypes:q}=e,W=d.prototype,H=L(W,"cloneNode"),U=L(W,"remove"),G=L(W,"nextSibling"),V=L(W,"childNodes"),X=L(W,"parentNode");if("function"==typeof c){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let at,ot="";const{implementation:st,createNodeIterator:lt,createDocumentFragment:ct,getElementsByTagName:ht}=i,{importNode:ut}=a;let dt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof X&&st&&void 0!==st.createHTMLDocument;const{MUSTACHE_EXPR:pt,ERB_EXPR:ft,TMPLIT_EXPR:gt,DATA_ATTR:yt,ARIA_ATTR:mt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:kt}=Q;let{IS_ALLOWED_URI:Ct}=Q,wt=null;const _t=A({},[...F,...$,...E,...O,...I]);let vt=null;const St=A({},[...R,...z,...P,...j]);let Tt=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),At=null,Mt=null,Bt=!0,Lt=!0,Ft=!1,$t=!0,Et=!1,Dt=!0,Ot=!1,Nt=!1,It=!1,Rt=!1,zt=!1,Pt=!1,jt=!0,Kt=!1,qt=!0,Wt=!1,Ht={},Ut=null;const Yt=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Vt=A({},["audio","video","img","source","image","track"]);let Zt=null;const Xt=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qt="http://www.w3.org/1998/Math/MathML",Jt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,re=!1,ne=null;const ie=A({},[Qt,Jt,te],m);let ae=A({},["mi","mo","mn","ms","mtext"]),oe=A({},["annotation-xml"]);const se=A({},["title","style","font","a","script"]);let le=null;const ce=["application/xhtml+xml","text/html"];let he=null,ue=null;const de=i.createElement("form"),pe=function(t){return t instanceof RegExp||t instanceof Function},fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ue||ue!==t){if(t&&"object"==typeof t||(t={}),t=B(t),le=-1===ce.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===le?m:y,wt=w(t,"ALLOWED_TAGS")?A({},t.ALLOWED_TAGS,he):_t,vt=w(t,"ALLOWED_ATTR")?A({},t.ALLOWED_ATTR,he):St,ne=w(t,"ALLOWED_NAMESPACES")?A({},t.ALLOWED_NAMESPACES,m):ie,Zt=w(t,"ADD_URI_SAFE_ATTR")?A(B(Xt),t.ADD_URI_SAFE_ATTR,he):Xt,Gt=w(t,"ADD_DATA_URI_TAGS")?A(B(Vt),t.ADD_DATA_URI_TAGS,he):Vt,Ut=w(t,"FORBID_CONTENTS")?A({},t.FORBID_CONTENTS,he):Yt,At=w(t,"FORBID_TAGS")?A({},t.FORBID_TAGS,he):{},Mt=w(t,"FORBID_ATTR")?A({},t.FORBID_ATTR,he):{},Ht=!!w(t,"USE_PROFILES")&&t.USE_PROFILES,Bt=!1!==t.ALLOW_ARIA_ATTR,Lt=!1!==t.ALLOW_DATA_ATTR,Ft=t.ALLOW_UNKNOWN_PROTOCOLS||!1,$t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Et=t.SAFE_FOR_TEMPLATES||!1,Dt=!1!==t.SAFE_FOR_XML,Ot=t.WHOLE_DOCUMENT||!1,Rt=t.RETURN_DOM||!1,zt=t.RETURN_DOM_FRAGMENT||!1,Pt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,jt=!1!==t.SANITIZE_DOM,Kt=t.SANITIZE_NAMED_PROPS||!1,qt=!1!==t.KEEP_CONTENT,Wt=t.IN_PLACE||!1,Ct=t.ALLOWED_URI_REGEXP||Y,ee=t.NAMESPACE||te,ae=t.MATHML_TEXT_INTEGRATION_POINTS||ae,oe=t.HTML_INTEGRATION_POINTS||oe,Tt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Et&&(Lt=!1),zt&&(Rt=!0),Ht&&(wt=A({},I),vt=[],!0===Ht.html&&(A(wt,F),A(vt,R)),!0===Ht.svg&&(A(wt,$),A(vt,z),A(vt,j)),!0===Ht.svgFilters&&(A(wt,E),A(vt,z),A(vt,j)),!0===Ht.mathMl&&(A(wt,O),A(vt,P),A(vt,j))),t.ADD_TAGS&&(wt===_t&&(wt=B(wt)),A(wt,t.ADD_TAGS,he)),t.ADD_ATTR&&(vt===St&&(vt=B(vt)),A(vt,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&A(Zt,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(Ut===Yt&&(Ut=B(Ut)),A(Ut,t.FORBID_CONTENTS,he)),qt&&(wt["#text"]=!0),Ot&&A(wt,["html","head","body"]),wt.table&&(A(wt,["tbody"]),delete At.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');at=t.TRUSTED_TYPES_POLICY,ot=at.createHTML("")}else void 0===at&&(at=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(q,o)),null!==at&&"string"==typeof ot&&(ot=at.createHTML(""));l&&l(t),ue=t}},ge=A({},[...$,...E,...D]),ye=A({},[...O,...N]),me=function(t){g(r.removed,{element:t});try{X(t).removeChild(t)}catch(e){U(t)}},xe=function(t,e){try{g(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(n){g(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Rt||zt)try{me(e)}catch(n){}else try{e.setAttribute(t,"")}catch(n){}},be=function(t){let e=null,r=null;if(It)t="<remove></remove>"+t;else{const e=x(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===le&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const n=at?at.createHTML(t):t;if(ee===te)try{e=(new K).parseFromString(n,le)}catch(o){}if(!e||!e.documentElement){e=st.createDocument(ee,"template",null);try{e.documentElement.innerHTML=re?ot:n}catch(o){}}const a=e.body||e.documentElement;return t&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),ee===te?ht.call(e,Ot?"html":"body")[0]:Ot?e.documentElement:a},ke=function(t){return lt.call(t.ownerDocument||t,t,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)},Ce=function(t){return t instanceof M&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof T)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},we=function(t){return"function"==typeof u&&t instanceof u};function _e(t,e,n){p(t,(t=>{t.call(r,e,n,ue)}))}const ve=function(t){let e=null;if(_e(dt.beforeSanitizeElements,t,null),Ce(t))return me(t),!0;const n=he(t.nodeName);if(_e(dt.uponSanitizeElement,t,{tagName:n,allowedTags:wt}),t.hasChildNodes()&&!we(t.firstElementChild)&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent))return me(t),!0;if(t.nodeType===et)return me(t),!0;if(Dt&&t.nodeType===rt&&_(/<[/\w]/g,t.data))return me(t),!0;if(!wt[n]||At[n]){if(!At[n]&&Te(n)){if(Tt.tagNameCheck instanceof RegExp&&_(Tt.tagNameCheck,n))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))return!1}if(qt&&!Ut[n]){const e=X(t)||t.parentNode,r=V(t)||t.childNodes;if(r&&e){for(let n=r.length-1;n>=0;--n){const i=H(r[n],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,G(t))}}}return me(t),!0}return t instanceof d&&!function(t){let e=X(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const r=y(t.tagName),n=y(e.tagName);return!!ne[t.namespaceURI]&&(t.namespaceURI===Jt?e.namespaceURI===te?"svg"===r:e.namespaceURI===Qt?"svg"===r&&("annotation-xml"===n||ae[n]):Boolean(ge[r]):t.namespaceURI===Qt?e.namespaceURI===te?"math"===r:e.namespaceURI===Jt?"math"===r&&oe[n]:Boolean(ye[r]):t.namespaceURI===te?!(e.namespaceURI===Jt&&!oe[n])&&!(e.namespaceURI===Qt&&!ae[n])&&!ye[r]&&(se[r]||!ge[r]):!("application/xhtml+xml"!==le||!ne[t.namespaceURI]))}(t)?(me(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,t.innerHTML)?(Et&&t.nodeType===tt&&(e=t.textContent,p([pt,ft,gt],(t=>{e=b(e,t," ")})),t.textContent!==e&&(g(r.removed,{element:t.cloneNode()}),t.textContent=e)),_e(dt.afterSanitizeElements,t,null),!1):(me(t),!0)},Se=function(t,e,r){if(jt&&("id"===e||"name"===e)&&(r in i||r in de))return!1;if(Lt&&!Mt[e]&&_(yt,e));else if(Bt&&_(mt,e));else if(!vt[e]||Mt[e]){if(!(Te(t)&&(Tt.tagNameCheck instanceof RegExp&&_(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&_(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&_(Tt.tagNameCheck,r)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(r))))return!1}else if(Zt[e]);else if(_(Ct,b(r,bt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==k(r,"data:")||!Gt[t]){if(Ft&&!_(xt,b(r,bt,"")));else if(r)return!1}else;return!0},Te=function(t){return"annotation-xml"!==t&&x(t,kt)},Ae=function(t){_e(dt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ce(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:vt,forceKeepAttr:void 0};let i=e.length;for(;i--;){const o=e[i],{name:s,namespaceURI:l,value:c}=o,h=he(s);let u="value"===s?c:C(c);if(n.attrName=h,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,_e(dt.uponSanitizeAttribute,t,n),u=n.attrValue,!Kt||"id"!==h&&"name"!==h||(xe(s,t),u="user-content-"+u),Dt&&_(/((--!?|])>)|<\/(style|title)/i,u)){xe(s,t);continue}if(n.forceKeepAttr)continue;if(xe(s,t),!n.keepAttr)continue;if(!$t&&_(/\/>/i,u)){xe(s,t);continue}Et&&p([pt,ft,gt],(t=>{u=b(u,t," ")}));const d=he(t.nodeName);if(Se(d,h,u)){if(at&&"object"==typeof q&&"function"==typeof q.getAttributeType)if(l);else switch(q.getAttributeType(d,h)){case"TrustedHTML":u=at.createHTML(u);break;case"TrustedScriptURL":u=at.createScriptURL(u)}try{l?t.setAttributeNS(l,s,u):t.setAttribute(s,u),Ce(t)?me(t):f(r.removed)}catch(a){}}}_e(dt.afterSanitizeAttributes,t,null)},Me=function t(e){let r=null;const n=ke(e);for(_e(dt.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)_e(dt.uponSanitizeShadowNode,r,null),ve(r),Ae(r),r.content instanceof s&&t(r.content);_e(dt.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,o=null,l=null;if(re=!t,re&&(t="\x3c!--\x3e"),"string"!=typeof t&&!we(t)){if("function"!=typeof t.toString)throw v("toString is not a function");if("string"!=typeof(t=t.toString()))throw v("dirty is not a string, aborting")}if(!r.isSupported)return t;if(Nt||fe(e),r.removed=[],"string"==typeof t&&(Wt=!1),Wt){if(t.nodeName){const e=he(t.nodeName);if(!wt[e]||At[e])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)n=be("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===J&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Rt&&!Et&&!Ot&&-1===t.indexOf("<"))return at&&Pt?at.createHTML(t):t;if(n=be(t),!n)return Rt?null:Pt?ot:""}n&&It&&me(n.firstChild);const c=ke(Wt?t:n);for(;o=c.nextNode();)ve(o),Ae(o),o.content instanceof s&&Me(o.content);if(Wt)return t;if(Rt){if(zt)for(l=ct.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(vt.shadowroot||vt.shadowrootmode)&&(l=ut.call(a,l,!0)),l}let h=Ot?n.outerHTML:n.innerHTML;return Ot&&wt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(Z,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Et&&p([pt,ft,gt],(t=>{h=b(h,t," ")})),at&&Pt?at.createHTML(h):h},r.setConfig=function(){fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Nt=!0},r.clearConfig=function(){ue=null,Nt=!1},r.isValidAttribute=function(t,e,r){ue||fe({});const n=he(t),i=he(e);return Se(n,i,r)},r.addHook=function(t,e){"function"==typeof e&&g(dt[t],e)},r.removeHook=function(t){return f(dt[t])},r.removeHooks=function(t){dt[t]=[]},r.removeAllHooks=function(){dt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}()},3539:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2453),i=r(3122);const a=class{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}};const o=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent")},4886:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var n=r(3539),i=r(3122);const a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(a.re);if(!e)return;const r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,c=l?1:17,h=l?8:4,u=s?0:-1,d=l?255:15;return n.A.set({r:(i>>h*(u+3)&d)*c,g:(i>>h*(u+2)&d)*c,b:(i>>h*(u+1)&d)*c,a:s?(i&d)*c/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}},o=a;var s=r(2453);const l={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:t=>{const e=t.match(l.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(.9*parseFloat(t));case"rad":return s.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return s.A.channel.clamp.h(360*parseFloat(t))}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(l.re);if(!r)return;const[,i,a,o,c,h]=r;return n.A.set({h:l._hue2deg(i),s:s.A.channel.clamp.s(parseFloat(a)),l:s.A.channel.clamp.l(parseFloat(o)),a:c?s.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%, ${i})`:`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(n)}%)`}},c=l,h={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:t=>{t=t.toLowerCase();const e=h.colors[t];if(e)return o.parse(e)},stringify:t=>{const e=o.stringify(t);for(const r in h.colors)if(h.colors[r]===e)return r}},u=h,d={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:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const r=t.match(d.re);if(!r)return;const[,i,a,o,l,c,h,u,p]=r;return n.A.set({r:s.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:s.A.channel.clamp.g(l?2.55*parseFloat(o):parseFloat(o)),b:s.A.channel.clamp.b(h?2.55*parseFloat(c):parseFloat(c)),a:u?s.A.channel.clamp.a(p?parseFloat(u)/100:parseFloat(u)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)}, ${s.A.lang.round(i)})`:`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(n)})`}},p=d,f={format:{keyword:h,hex:o,rgb:d,rgba:d,hsl:l,hsla:l},parse:t=>{if("string"!=typeof t)return t;const e=o.parse(t)||p.parse(t)||c.parse(t)||u.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?c.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?p.stringify(t):o.stringify(t)},g=f},3122:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(2453);const i={};for(let o=0;o<=255;o++)i[o]=n.A.unit.dec2hex(o);const a={ALL:0,RGB:1,HSL:2}},5635:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2453),i=r(4886);const a=(t,e,r)=>{const a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},8232:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2453),i=r(4886);const a=(t,e)=>{const r=i.A.parse(t);for(const i in e)r[i]=n.A.channel.clamp[i](e[i]);return i.A.stringify(r)}},5263:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5635);const i=(t,e)=>(0,n.A)(t,"l",-e)},3219:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2453),i=r(4886);const a=t=>{const{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)},o=t=>a(t)>=.5,s=t=>!o(t)},8041:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(5635);const i=(t,e)=>(0,n.A)(t,"l",e)},5582:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2453),i=r(3539),a=r(4886),o=r(8232);const s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});const l=i.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return a.A.stringify(l)}},2453:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});const n={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;const a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;const s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return 60*((e-r)/s+(e<r?6:0));case e:return 60*((r-t)/s+2);case r:return 60*((t-e)/s+4);default:return-1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},127:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});const n=function(){this.__data__=[],this.size=0};var i=r(6984);const a=function(t,e){for(var r=t.length;r--;)if((0,i.A)(t[r][0],e))return r;return-1};var o=Array.prototype.splice;const s=function(t){var e=this.__data__,r=a(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)};const l=function(t){var e=this.__data__,r=a(e,t);return r<0?void 0:e[r][1]};const c=function(t){return a(this.__data__,t)>-1};const h=function(t,e){var r=this.__data__,n=a(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=l,u.prototype.has=c,u.prototype.set=h;const d=u},8335:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(8744),i=r(1917);const a=(0,n.A)(i.A,"Map")},9471:(t,e,r)=>{"use strict";r.d(e,{A:()=>_});const n=(0,r(8744).A)(Object,"create");const i=function(){this.__data__=n?n(null):{},this.size=0};const a=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var o=Object.prototype.hasOwnProperty;const s=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0};var l=Object.prototype.hasOwnProperty;const c=function(t){var e=this.__data__;return n?void 0!==e[t]:l.call(e,t)};const h=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=c,u.prototype.set=h;const d=u;var p=r(127),f=r(8335);const g=function(){this.size=0,this.__data__={hash:new d,map:new(f.A||p.A),string:new d}};const y=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const m=function(t,e){var r=t.__data__;return y(e)?r["string"==typeof e?"string":"hash"]:r.map};const x=function(t){var e=m(this,t).delete(t);return this.size-=e?1:0,e};const b=function(t){return m(this,t).get(t)};const k=function(t){return m(this,t).has(t)};const C=function(t,e){var r=m(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function w(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}w.prototype.clear=g,w.prototype.delete=x,w.prototype.get=b,w.prototype.has=k,w.prototype.set=C;const _=w},9857:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(8744),i=r(1917);const a=(0,n.A)(i.A,"Set")},1754:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(127);const i=function(){this.__data__=new n.A,this.size=0};const a=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};const o=function(t){return this.__data__.get(t)};const s=function(t){return this.__data__.has(t)};var l=r(8335),c=r(9471);const h=function(t,e){var r=this.__data__;if(r instanceof n.A){var i=r.__data__;if(!l.A||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new c.A(i)}return r.set(t,e),this.size=r.size,this};function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=s,u.prototype.set=h;const d=u},241:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Symbol},3988:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=r(1917).A.Uint8Array},3607:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});const n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var i=r(2274),a=r(2049),o=r(9912),s=r(5353),l=r(3858),c=Object.prototype.hasOwnProperty;const h=function(t,e){var r=(0,a.A)(t),h=!r&&(0,i.A)(t),u=!r&&!h&&(0,o.A)(t),d=!r&&!h&&!u&&(0,l.A)(t),p=r||h||u||d,f=p?n(t.length,String):[],g=f.length;for(var y in t)!e&&!c.call(t,y)||p&&("length"==y||u&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,s.A)(y,g))||f.push(y);return f}},2851:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(2528),i=r(6984),a=Object.prototype.hasOwnProperty;const o=function(t,e,r){var o=t[e];a.call(t,e)&&(0,i.A)(o,r)&&(void 0!==r||e in t)||(0,n.A)(t,e,r)}},2528:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(4171);const i=function(t,e,r){"__proto__"==e&&n.A?(0,n.A)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},4574:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e,r,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var l=o[t?s:++i];if(!1===r(a[l],l,a))break}return e}}()},8496:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(241),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n.A?n.A.toStringTag:void 0;const l=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(l){}var i=o.call(t);return n&&(e?t[s]=r:delete t[s]),i};var c=Object.prototype.toString;const h=function(t){return c.call(t)};var u=n.A?n.A.toStringTag:void 0;const d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?l(t):h(t)}},1852:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(7271);const i=(0,r(367).A)(Object.keys,Object);var a=Object.prototype.hasOwnProperty;const o=function(t){if(!(0,n.A)(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},4326:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(9008),i=r(6875),a=r(7525);const o=function(t,e){return(0,a.A)((0,i.A)(t,e,n.A),t+"")}},2789:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(e){return t(e)}}},565:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(3988);const i=function(t){var e=new t.constructor(t.byteLength);return new n.A(e).set(new n.A(t)),e}},154:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(1917),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?n.A.Buffer:void 0,s=o?o.allocUnsafe:void 0;const l=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}},1801:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(565);const i=function(t,e){var r=e?(0,n.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},9759:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},2031:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2851),i=r(2528);const a=function(t,e,r,a){var o=!r;r||(r={});for(var s=-1,l=e.length;++s<l;){var c=e[s],h=a?a(r[c],t[c],c,r,t):void 0;void 0===h&&(h=t[c]),o?(0,i.A)(r,c,h):(0,n.A)(r,c,h)}return r}},3767:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(4326),i=r(6832);const a=function(t){return(0,n.A)((function(e,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&(0,i.A)(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++n<a;){var l=r[n];l&&t(e,l,n,o)}return e}))}},4171:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(8744);const i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(e){}}()},2136:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n="object"==typeof global&&global&&global.Object===Object&&global},8744:(t,e,r)=>{"use strict";r.d(e,{A:()=>x});var n=r(9610);const i=r(1917).A["__core-js_shared__"];var a,o=(a=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";const s=function(t){return!!o&&o in t};var l=r(3149),c=r(1121),h=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,p=u.toString,f=d.hasOwnProperty,g=RegExp("^"+p.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y=function(t){return!(!(0,l.A)(t)||s(t))&&((0,n.A)(t)?g:h).test((0,c.A)(t))};const m=function(t,e){return null==t?void 0:t[e]};const x=function(t,e){var r=m(t,e);return y(r)?r:void 0}},5647:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=(0,r(367).A)(Object.getPrototypeOf,Object)},9779:(t,e,r)=>{"use strict";r.d(e,{A:()=>_});var n=r(8744),i=r(1917);const a=(0,n.A)(i.A,"DataView");var o=r(8335);const s=(0,n.A)(i.A,"Promise");var l=r(9857);const c=(0,n.A)(i.A,"WeakMap");var h=r(8496),u=r(1121),d="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",y="[object DataView]",m=(0,u.A)(a),x=(0,u.A)(o.A),b=(0,u.A)(s),k=(0,u.A)(l.A),C=(0,u.A)(c),w=h.A;(a&&w(new a(new ArrayBuffer(1)))!=y||o.A&&w(new o.A)!=d||s&&w(s.resolve())!=p||l.A&&w(new l.A)!=f||c&&w(new c)!=g)&&(w=function(t){var e=(0,h.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,u.A)(r):"";if(n)switch(n){case m:return y;case x:return d;case b:return p;case k:return f;case C:return g}return e});const _=w},8598:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(3149),i=Object.create;const a=function(){function t(){}return function(e){if(!(0,n.A)(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var o=r(5647),s=r(7271);const l=function(t){return"function"!=typeof t.constructor||(0,s.A)(t)?{}:a((0,o.A)(t))}},5353:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},6832:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(6984),i=r(8446),a=r(5353),o=r(3149);const s=function(t,e,r){if(!(0,o.A)(r))return!1;var s=typeof e;return!!("number"==s?(0,i.A)(r)&&(0,a.A)(e,r.length):"string"==s&&e in r)&&(0,n.A)(r[e],t)}},7271:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},4841:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i&&n.A.process;const s=function(){try{var t=a&&a.require&&a.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(e){}}()},367:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return function(r){return t(e(r))}}},6875:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});const n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var i=Math.max;const a=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),l=Array(s);++o<s;)l[o]=a[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=a[o];return c[e]=r(l),n(t,this,c)}}},1917:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const a=n.A||i||Function("return this")()},7525:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(9142),i=r(4171),a=r(9008);const o=i.A?function(t,e){return(0,i.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,n.A)(e),writable:!0})}:a.A;var s=Date.now;const l=function(t){var e=0,r=0;return function(){var n=s(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(o)},1121:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Function.prototype.toString;const i=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},9142:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return function(){return t}}},6984:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t,e){return t===e||t!=t&&e!=e}},9008:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return t}},2274:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(8496),i=r(3098);const a=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;const c=a(function(){return arguments}())?a:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},2049:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=Array.isArray},8446:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9610),i=r(5254);const a=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},3533:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(8446),i=r(3098);const a=function(t){return(0,i.A)(t)&&(0,n.A)(t)}},9912:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(1917);const i=function(){return!1};var a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===a?n.A.Buffer:void 0;const l=(s?s.isBuffer:void 0)||i},6401:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(1852),i=r(9779),a=r(2274),o=r(2049),s=r(8446),l=r(9912),c=r(7271),h=r(3858),u=Object.prototype.hasOwnProperty;const d=function(t){if(null==t)return!0;if((0,s.A)(t)&&((0,o.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.A)(t)||(0,h.A)(t)||(0,a.A)(t)))return!t.length;var e=(0,i.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,c.A)(t))return!(0,n.A)(t).length;for(var r in t)if(u.call(t,r))return!1;return!0}},9610:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(8496),i=r(3149);const a=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5254:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3149:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3098:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){return null!=t&&"object"==typeof t}},3858:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(8496),i=r(5254),a=r(3098),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;const s=function(t){return(0,a.A)(t)&&(0,i.A)(t.length)&&!!o[(0,n.A)(t)]};var l=r(2789),c=r(4841),h=c.A&&c.A.isTypedArray;const u=h?(0,l.A)(h):s},5615:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(3607),i=r(3149),a=r(7271);const o=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e};var s=Object.prototype.hasOwnProperty;const l=function(t){if(!(0,i.A)(t))return o(t);var e=(0,a.A)(t),r=[];for(var n in t)("constructor"!=n||!e&&s.call(t,n))&&r.push(n);return r};var c=r(8446);const h=function(t){return(0,c.A)(t)?(0,n.A)(t,!0):l(t)}},6632:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(9471);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(i.Cache||n.A),r}i.Cache=n.A;const a=i},2837:(t,e,r)=>{"use strict";r.d(e,{A:()=>D});var n=r(1754),i=r(2528),a=r(6984);const o=function(t,e,r){(void 0!==r&&!(0,a.A)(t[e],r)||void 0===r&&!(e in t))&&(0,i.A)(t,e,r)};var s=r(4574),l=r(154),c=r(1801),h=r(9759),u=r(8598),d=r(2274),p=r(2049),f=r(3533),g=r(9912),y=r(9610),m=r(3149),x=r(8496),b=r(5647),k=r(3098),C=Function.prototype,w=Object.prototype,_=C.toString,v=w.hasOwnProperty,S=_.call(Object);const T=function(t){if(!(0,k.A)(t)||"[object Object]"!=(0,x.A)(t))return!1;var e=(0,b.A)(t);if(null===e)return!0;var r=v.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_.call(r)==S};var A=r(3858);const M=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var B=r(2031),L=r(5615);const F=function(t){return(0,B.A)(t,(0,L.A)(t))};const $=function(t,e,r,n,i,a,s){var x=M(t,r),b=M(e,r),k=s.get(b);if(k)o(t,r,k);else{var C=a?a(x,b,r+"",t,e,s):void 0,w=void 0===C;if(w){var _=(0,p.A)(b),v=!_&&(0,g.A)(b),S=!_&&!v&&(0,A.A)(b);C=b,_||v||S?(0,p.A)(x)?C=x:(0,f.A)(x)?C=(0,h.A)(x):v?(w=!1,C=(0,l.A)(b,!0)):S?(w=!1,C=(0,c.A)(b,!0)):C=[]:T(b)||(0,d.A)(b)?(C=x,(0,d.A)(x)?C=F(x):(0,m.A)(x)&&!(0,y.A)(x)||(C=(0,u.A)(b))):w=!1}w&&(s.set(b,C),i(C,b,n,a,s),s.delete(b)),o(t,r,C)}};const E=function t(e,r,i,a,l){e!==r&&(0,s.A)(r,(function(s,c){if(l||(l=new n.A),(0,m.A)(s))$(e,r,c,i,t,a,l);else{var h=a?a(M(e,c),s,c+"",e,r,l):void 0;void 0===h&&(h=s),o(e,c,h)}}),L.A)};const D=(0,r(3767).A)((function(t,e,r){E(t,e,r)}))},7588:(t,e,r)=>{"use strict";r.d(e,{R:()=>s});var n=r(9),i={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function a(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=o(t),e=o(e);const[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,l=a-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}(0,n.K2)(a,"calculateDeltaAndAngle");var o=(0,n.K2)((t=>Array.isArray(t)?{x:t[0],y:t[1]}:t),"pointTransformer"),s=(0,n.K2)((t=>({x:(0,n.K2)((function(e,r,n){let s=0;const l=o(n[0]).x<o(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaX:r}=a(n[0],n[1]);s=i[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaX:r}=a(n[n.length-1],n[n.length-2]);s=i[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const c=Math.abs(o(e).x-o(n[n.length-1]).x),h=Math.abs(o(e).y-o(n[n.length-1]).y),u=Math.abs(o(e).x-o(n[0]).x),d=Math.abs(o(e).y-o(n[0]).y),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&h<f){let t=f+1-c;t*="right"===l?-1:1,s-=t}if(u<p&&u>0&&d<p){let t=p+1-u;t*="right"===l?-1:1,s+=t}return o(e).x+s}),"x"),y:(0,n.K2)((function(e,r,n){let s=0;const l=o(n[0]).y<o(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(i,t.arrowTypeStart)){const{angle:e,deltaY:r}=a(n[0],n[1]);s=i[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(i,t.arrowTypeEnd)){const{angle:e,deltaY:r}=a(n[n.length-1],n[n.length-2]);s=i[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const c=Math.abs(o(e).y-o(n[n.length-1]).y),h=Math.abs(o(e).x-o(n[n.length-1]).x),u=Math.abs(o(e).y-o(n[0]).y),d=Math.abs(o(e).x-o(n[0]).x),p=i[t.arrowTypeStart],f=i[t.arrowTypeEnd];if(c<f&&c>0&&h<f){let t=f+1-c;t*="up"===l?-1:1,s-=t}if(u<p&&u>0&&d<p){let t=p+1-u;t*="up"===l?-1:1,s+=t}return o(e).y+s}),"y")})),"getLineFunctionsWithOffset")},3115:(t,e,r)=>{"use strict";r.d(e,{O:()=>n});var n=(0,r(9).K2)((({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}}),"getSubGraphTitleMargins")},7938:(t,e,r)=>{"use strict";r.d(e,{IU:()=>y,Jo:()=>A,T_:()=>k,g0:()=>L,jP:()=>x});var n=r(1282),i=r(7588),a=r(3115),o=r(483),s=r(540),l=r(9),c=r(7),h=r(9893),u=(0,l.K2)(((t,e,r,n,i)=>{e.arrowTypeStart&&p(t,"start",e.arrowTypeStart,r,n,i),e.arrowTypeEnd&&p(t,"end",e.arrowTypeEnd,r,n,i)}),"addEdgeMarkers"),d={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},p=(0,l.K2)(((t,e,r,n,i,a)=>{const o=d[r];if(!o)return void l.Rm.warn(`Unknown arrow type: ${r}`);const s="start"===e?"Start":"End";t.attr(`marker-${e}`,`url(${n}#${i}_${a}-${o}${s})`)}),"addEdgeMarker"),f=new Map,g=new Map,y=(0,l.K2)((()=>{f.clear(),g.clear()}),"clear"),m=(0,l.K2)((t=>t?t.reduce(((t,e)=>t+";"+e),""):""),"getLabelStyles"),x=(0,l.K2)((async(t,e)=>{let r=(0,l._3)((0,l.D7)().flowchart.htmlLabels);const i=await(0,o.GZ)(t,e.label,{style:m(e.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});l.Rm.info("abc82",e,e.labelType);const a=t.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(i);let h,u=i.getBBox();if(r){const t=i.children[0],e=(0,c.Ltv)(i);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}if(s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),f.set(e.id,a),e.width=u.width,e.height=u.height,e.startLabelLeft){const r=await(0,n.DA)(e.startLabelLeft,m(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");h=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),g.get(e.id)||g.set(e.id,{}),g.get(e.id).startLeft=i,b(h,e.startLabelLeft)}if(e.startLabelRight){const r=await(0,n.DA)(e.startLabelRight,m(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");h=i.node().appendChild(r),a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),g.get(e.id)||g.set(e.id,{}),g.get(e.id).startRight=i,b(h,e.startLabelRight)}if(e.endLabelLeft){const r=await(0,n.DA)(e.endLabelLeft,m(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");h=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(r),g.get(e.id)||g.set(e.id,{}),g.get(e.id).endLeft=i,b(h,e.endLabelLeft)}if(e.endLabelRight){const r=await(0,n.DA)(e.endLabelRight,m(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");h=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(r),g.get(e.id)||g.set(e.id,{}),g.get(e.id).endRight=i,b(h,e.endLabelRight)}return i}),"insertEdgeLabel");function b(t,e){(0,l.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,l.K2)(b,"setTerminalWidth");var k=(0,l.K2)(((t,e)=>{l.Rm.debug("Moving label abc88 ",t.id,t.label,f.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=(0,l.D7)(),{subGraphTitleTotalMargin:i}=(0,a.O)(n);if(t.label){const n=f.get(t.id);let a=t.x,o=t.y;if(r){const n=s._K.calcLabelPosition(r);l.Rm.debug("Moving label "+t.label+" from (",a,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(a=n.x,o=n.y)}n.attr("transform",`translate(${a}, ${o+i/2})`)}if(t.startLabelLeft){const e=g.get(t.id).startLeft;let n=t.x,i=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){const e=g.get(t.id).startRight;let n=t.x,i=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){const e=g.get(t.id).endLeft;let n=t.x,i=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){const e=g.get(t.id).endRight;let n=t.x,i=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}}),"positionEdgeLabel"),C=(0,l.K2)(((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s}),"outsideNode"),w=(0,l.K2)(((t,e,r)=>{l.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2;let s=r.x<e.x?o-a:o+a;const c=t.height/2,h=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*o>Math.abs(n-e.x)*c){let t=r.y<e.y?e.y-c-i:i-c-e.y;s=u*t/h;const n={x:r.x<e.x?r.x+s:r.x-u+s,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===s&&(n.x=e.x,n.y=e.y),0===u&&(n.x=e.x),0===h&&(n.y=e.y),l.Rm.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${u}, r ${s}`,n),n}{s=r.x<e.x?e.x-o-n:n-o-e.x;let t=h*s/u,i=r.x<e.x?r.x+u-s:r.x-u+s,a=r.y<e.y?r.y+t:r.y-t;return l.Rm.debug(`sides calc abc89, Q ${h}, q ${t}, R ${u}, r ${s}`,{_x:i,_y:a}),0===s&&(i=e.x,a=e.y),0===u&&(i=e.x),0===h&&(a=e.y),{x:i,y:a}}}),"intersection"),_=(0,l.K2)(((t,e)=>{l.Rm.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach((t=>{if(l.Rm.info("abc88 checking point",t,e),C(e,t)||i)l.Rm.warn("abc88 outside",t,n),n=t,i||r.push(t);else{const a=w(e,n,t);l.Rm.debug("abc88 inside",t,n,a),l.Rm.debug("abc88 intersection",a,e);let o=!1;r.forEach((t=>{o=o||t.x===a.x&&t.y===a.y})),r.some((t=>t.x===a.x&&t.y===a.y))?l.Rm.warn("abc88 no intersect",a,r):r.push(a),i=!0}})),l.Rm.debug("returning points",r),r}),"cutPathAtIntersect");function v(t){const e=[],r=[];for(let n=1;n<t.length-1;n++){const i=t[n-1],a=t[n],o=t[n+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,l.K2)(v,"extractCornerPoints");var S=(0,l.K2)((function(t,e,r){const n=e.x-t.x,i=e.y-t.y,a=r/Math.sqrt(n*n+i*i);return{x:e.x-a*n,y:e.y-a*i}}),"findAdjacentPoint"),T=(0,l.K2)((function(t){const{cornerPointPositions:e}=v(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){const e=t[n-1],i=t[n+1],a=t[n],o=S(e,a,5),s=S(i,a,5),c=s.x-o.x,h=s.y-o.y;r.push(o);const u=2*Math.sqrt(2);let d={x:a.x,y:a.y};if(Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10){l.Rm.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));const t=5;d=a.x===o.x?{x:c<0?o.x-t+u:o.x+t-u,y:h<0?o.y-u:o.y+u}:{x:c<0?o.x-u:o.x+u,y:h<0?o.y-t+u:o.y+t-u}}else l.Rm.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y));r.push(d,s)}else r.push(t[n]);return r}),"fixCorners"),A=(0,l.K2)((function(t,e,r,n,a,o,s){const{handDrawnSeed:d}=(0,l.D7)();let p=e.points,f=!1;const g=a;var y=o;y.intersect&&g.intersect&&(p=p.slice(1,e.points.length-1),p.unshift(g.intersect(p[0])),l.Rm.debug("Last point APA12",e.start,"--\x3e",e.end,p[p.length-1],y,y.intersect(p[p.length-1])),p.push(y.intersect(p[p.length-1]))),e.toCluster&&(l.Rm.info("to cluster abc88",r.get(e.toCluster)),p=_(e.points,r.get(e.toCluster).node),f=!0),e.fromCluster&&(l.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(p,null,2)),p=_(p.reverse(),r.get(e.fromCluster).node).reverse(),f=!0);let m=p.filter((t=>!Number.isNaN(t.y)));m=T(m);let x=c.qrM;e.curve&&(x=e.curve);const{x:b,y:k}=(0,i.R)(e),C=(0,c.n8j)().x(b).y(k).curve(x);let w,v;switch(e.thickness){case"normal":default:w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-invisible"}switch(e.pattern){case"solid":default:w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed"}let S=C(m);const A=Array.isArray(e.style)?e.style:[e.style];if("handDrawn"===e.look){const r=h.A.svg(t);Object.assign([],m);const n=r.path(S,{roughness:.3,seed:d});w+=" transition",v=(0,c.Ltv)(n).select("path").attr("id",e.id).attr("class"," "+w+(e.classes?" "+e.classes:"")).attr("style",A?A.reduce(((t,e)=>t+";"+e),""):"");let i=v.attr("d");v.attr("d",i),t.node().appendChild(v.node())}else v=t.append("path").attr("d",S).attr("id",e.id).attr("class"," "+w+(e.classes?" "+e.classes:"")).attr("style",A?A.reduce(((t,e)=>t+";"+e),""):"");let M="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(M=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,M=M.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),l.Rm.info("arrowTypeStart",e.arrowTypeStart),l.Rm.info("arrowTypeEnd",e.arrowTypeEnd),u(v,e,M,s,n);let B={};return f&&(B.updatedPath=p),B.originalPath=e.points,B}),"insertEdge"),M=(0,l.K2)(((t,e,r,n)=>{e.forEach((e=>{B[e](t,r,n)}))}),"insertMarkers"),B={extension:(0,l.K2)(((t,e,r)=>{l.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition"),aggregation:(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation"),dependency:(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency"),lollipop:(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point"),circle:(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle"),cross:(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross"),barb:(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb")},L=M},9:(t,e,r)=>{"use strict";r.d(e,{C0:()=>S,VA:()=>m,K2:()=>y,xA:()=>ut,hH:()=>$,Dl:()=>Pt,IU:()=>re,Wt:()=>Xt,Y2:()=>Kt,a$:()=>Ht,sb:()=>J,ME:()=>pe,UI:()=>Z,Ch:()=>A,mW:()=>T,DB:()=>_,_3:()=>Lt,EJ:()=>w,m7:()=>oe,iN:()=>ie,zj:()=>ct,D7:()=>ue,Gs:()=>be,J$:()=>L,ab:()=>le,Q2:()=>st,P$:()=>j,Wi:()=>zt,H1:()=>mt,Rm:()=>b,QO:()=>Et,Js:()=>xe,Xd:()=>M,VJ:()=>jt,cL:()=>dt,$i:()=>X,jZ:()=>_t,oB:()=>fe,wZ:()=>at,EI:()=>ae,SV:()=>ne,Nk:()=>lt,XV:()=>de,ke:()=>se,He:()=>k,UU:()=>it,ot:()=>Ut,mj:()=>ge,tM:()=>Zt,H$:()=>H,B6:()=>ot});var n=r(4353),i=r(4886),a=r(8232);const o=(t,e)=>{const r=i.A.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return(0,a.A)(t,n)};var s=r(5582);const l=(t,e,r=50)=>{const{r:n,g:a,b:o,a:l}=i.A.parse(t),{r:c,g:h,b:u,a:d}=i.A.parse(e),p=r/100,f=2*p-1,g=l-d,y=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,m=1-y,x=n*y+c*m,b=a*y+h*m,k=o*y+u*m,C=l*p+d*(1-p);return(0,s.A)(x,b,k,C)},c=(t,e=100)=>{const r=i.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,l(r,t,e)};var h,u=r(5263),d=r(8041),p=r(3219),f=r(9418),g=Object.defineProperty,y=(t,e)=>g(t,"name",{value:e,configurable:!0}),m=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},x={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},b={trace:y(((...t)=>{}),"trace"),debug:y(((...t)=>{}),"debug"),info:y(((...t)=>{}),"info"),warn:y(((...t)=>{}),"warn"),error:y(((...t)=>{}),"error"),fatal:y(((...t)=>{}),"fatal")},k=y((function(t="fatal"){let e=x.fatal;"string"==typeof t?t.toLowerCase()in x&&(e=x[t]):"number"==typeof t&&(e=t),b.trace=()=>{},b.debug=()=>{},b.info=()=>{},b.warn=()=>{},b.error=()=>{},b.fatal=()=>{},e<=x.fatal&&(b.fatal=console.error?console.error.bind(console,C("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",C("FATAL"))),e<=x.error&&(b.error=console.error?console.error.bind(console,C("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",C("ERROR"))),e<=x.warn&&(b.warn=console.warn?console.warn.bind(console,C("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",C("WARN"))),e<=x.info&&(b.info=console.info?console.info.bind(console,C("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",C("INFO"))),e<=x.debug&&(b.debug=console.debug?console.debug.bind(console,C("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",C("DEBUG"))),e<=x.trace&&(b.trace=console.debug?console.debug.bind(console,C("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",C("TRACE")))}),"setLogLevel"),C=y((t=>`%c${n().format("ss.SSS")} : ${t} : `),"format"),w=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,_=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,v=/\s*%%.*\n/gm,S=class extends Error{static{y(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},T={},A=y((function(t,e){t=t.replace(w,"").replace(_,"").replace(v,"\n");for(const[r,{detector:n}]of Object.entries(T)){if(n(t,e))return r}throw new S(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),M=y(((...t)=>{for(const{id:e,detector:r,loader:n}of t)B(e,r,n)}),"registerLazyLoadedDiagrams"),B=y(((t,e,r)=>{T[t]&&b.warn(`Detector with key ${t} already exists. Overwriting.`),T[t]={detector:e,loader:r},b.debug(`Detector with key ${t} added${r?" with loader":""}`)}),"addDetector"),L=y((t=>T[t].loader),"getDiagramLoader"),F=y(((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>F(t,e,i))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((i=>{"object"!=typeof e[i]||void 0!==t[i]&&"object"!=typeof t[i]?(n||"object"!=typeof t[i]&&"object"!=typeof e[i])&&(t[i]=e[i]):(void 0===t[i]&&(t[i]=Array.isArray(e[i])?[]:{}),t[i]=F(t[i],e[i],{depth:r-1,clobber:n}))})),t)}),"assignWithDepth"),$=F,E="#ffffff",D="#f2f2f2",O=y(((t,e)=>o(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),N=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||o(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||o(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||O(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||O(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||O(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||O(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||c(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||c(this.tertiaryColor),this.lineColor=this.lineColor||c(this.background),this.arrowheadColor=this.arrowheadColor||c(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,u.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||c(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,d.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.darkMode)for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],75);else for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=(0,u.A)(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||c(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||(0,d.A)(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||(0,u.A)(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||o(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||o(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||o(this.primaryColor,{h:64}),this.fillType3=this.fillType3||o(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||o(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||o(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||o(this.primaryColor,{h:128}),this.fillType7=this.fillType7||o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||o(this.primaryColor,{l:-10}),this.pie5=this.pie5||o(this.secondaryColor,{l:-10}),this.pie6=this.pie6||o(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||o(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,d.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},I=y((t=>{const e=new N;return e.calculate(t),e}),"getThemeVariables"),R=class{static{y(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,d.A)(this.primaryColor,16),this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=c(this.background),this.secondaryBorderColor=O(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=O(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,d.A)(c("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,s.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,u.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,u.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,s.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,s.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,d.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,d.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,d.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||c(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||o(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||o(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,d.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,u.A)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,d.A)(this.secondaryColor,20),this.git1=(0,d.A)(this.pie2||this.secondaryColor,20),this.git2=(0,d.A)(this.pie3||this.tertiaryColor,20),this.git3=(0,d.A)(this.pie4||o(this.primaryColor,{h:-30}),20),this.git4=(0,d.A)(this.pie5||o(this.primaryColor,{h:-60}),20),this.git5=(0,d.A)(this.pie6||o(this.primaryColor,{h:-90}),10),this.git6=(0,d.A)(this.pie7||o(this.primaryColor,{h:60}),10),this.git7=(0,d.A)(this.pie8||o(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,d.A)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,d.A)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},z=y((t=>{const e=new R;return e.calculate(t),e}),"getThemeVariables"),P=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=o(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.primaryColor,this.darkMode),this.secondaryBorderColor=O(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=O(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=(0,s.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||o(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||o(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||o(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||c(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||c(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,d.A)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||o(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||o(this.primaryColor,{l:-10}),this.pie5=this.pie5||o(this.secondaryColor,{l:-30}),this.pie6=this.pie6||o(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||o(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,d.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||(0,u.A)(c(this.git0),25),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},j=y((t=>{const e=new P;return e.calculate(t),e}),"getThemeVariables"),K=class{static{y(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,d.A)("#cde498",10),this.primaryBorderColor=O(this.primaryColor,this.darkMode),this.secondaryBorderColor=O(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=O(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.primaryColor),this.lineColor=c(this.background),this.textColor=c(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,u.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||o(this.primaryColor,{h:30}),this.cScale4=this.cScale4||o(this.primaryColor,{h:60}),this.cScale5=this.cScale5||o(this.primaryColor,{h:90}),this.cScale6=this.cScale6||o(this.primaryColor,{h:120}),this.cScale7=this.cScale7||o(this.primaryColor,{h:150}),this.cScale8=this.cScale8||o(this.primaryColor,{h:210}),this.cScale9=this.cScale9||o(this.primaryColor,{h:270}),this.cScale10=this.cScale10||o(this.primaryColor,{h:300}),this.cScale11=this.cScale11||o(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,u.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,u.A)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,u.A)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||o(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||o(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||o(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||o(this.primaryColor,{l:-30}),this.pie5=this.pie5||o(this.secondaryColor,{l:-30}),this.pie6=this.pie6||o(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||o(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||o(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||o(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||o(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||o(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||o(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,d.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||o(this.primaryColor,{h:-30}),this.git4=this.git4||o(this.primaryColor,{h:-60}),this.git5=this.git5||o(this.primaryColor,{h:-90}),this.git6=this.git6||o(this.primaryColor,{h:60}),this.git7=this.git7||o(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,d.A)(this.git0,25),this.git1=(0,d.A)(this.git1,25),this.git2=(0,d.A)(this.git2,25),this.git3=(0,d.A)(this.git3,25),this.git4=(0,d.A)(this.git4,25),this.git5=(0,d.A)(this.git5,25),this.git6=(0,d.A)(this.git6,25),this.git7=(0,d.A)(this.git7,25)):(this.git0=(0,u.A)(this.git0,25),this.git1=(0,u.A)(this.git1,25),this.git2=(0,u.A)(this.git2,25),this.git3=(0,u.A)(this.git3,25),this.git4=(0,u.A)(this.git4,25),this.git5=(0,u.A)(this.git5,25),this.git6=(0,u.A)(this.git6,25),this.git7=(0,u.A)(this.git7,25)),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||c(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||c(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},q=y((t=>{const e=new K;return e.calculate(t),e}),"getThemeVariables"),W=class{static{y(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,d.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=o(this.primaryColor,{h:-160}),this.primaryBorderColor=O(this.primaryColor,this.darkMode),this.secondaryBorderColor=O(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=O(this.tertiaryColor,this.darkMode),this.primaryTextColor=c(this.primaryColor),this.secondaryTextColor=c(this.secondaryColor),this.tertiaryTextColor=c(this.tertiaryColor),this.lineColor=c(this.background),this.textColor=c(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,d.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,d.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||c(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.A)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,u.A)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||o(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||o(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,d.A)(this.contrast,30),this.sectionBkgColor2=(0,d.A)(this.contrast,30),this.taskBorderColor=(0,u.A)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,d.A)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,u.A)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=o(this.primaryColor,{h:64}),this.fillType3=o(this.secondaryColor,{h:64}),this.fillType4=o(this.primaryColor,{h:-64}),this.fillType5=o(this.secondaryColor,{h:-64}),this.fillType6=o(this.primaryColor,{h:128}),this.fillType7=o(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||o(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||o(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||o(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||o(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||o(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||o(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,p.A)(this.quadrant1Fill)?(0,d.A)(this.quadrant1Fill):(0,u.A)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,u.A)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||o(this.primaryColor,{h:-30}),this.git4=this.pie5||o(this.primaryColor,{h:-60}),this.git5=this.pie6||o(this.primaryColor,{h:-90}),this.git6=this.pie7||o(this.primaryColor,{h:60}),this.git7=this.pie8||o(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||c(this.git0),this.gitInv1=this.gitInv1||c(this.git1),this.gitInv2=this.gitInv2||c(this.git2),this.gitInv3=this.gitInv3||c(this.git3),this.gitInv4=this.gitInv4||c(this.git4),this.gitInv5=this.gitInv5||c(this.git5),this.gitInv6=this.gitInv6||c(this.git6),this.gitInv7=this.gitInv7||c(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||D}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},H={base:{getThemeVariables:I},dark:{getThemeVariables:z},default:{getThemeVariables:j},forest:{getThemeVariables:q},neutral:{getThemeVariables:y((t=>{const e=new W;return e.calculate(t),e}),"getThemeVariables")}},U={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Y={...U,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:H.default.getThemeVariables(),sequence:{...U.sequence,messageFont:y((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:y((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:y((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...U.gantt,tickInterval:void 0,useWidth:void 0},c4:{...U.c4,useWidth:void 0,personFont:y((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),external_personFont:y((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:y((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:y((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:y((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:y((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:y((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:y((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:y((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:y((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:y((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:y((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:y((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:y((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:y((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:y((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:y((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:y((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:y((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:y((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:y((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:y((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...U.pie,useWidth:984},xyChart:{...U.xyChart,useWidth:void 0},requirement:{...U.requirement,useWidth:void 0},packet:{...U.packet}},G=y(((t,e="")=>Object.keys(t).reduce(((r,n)=>Array.isArray(t[n])?r:"object"==typeof t[n]&&null!==t[n]?[...r,e+n,...G(t[n],"")]:[...r,e+n]),[])),"keyify"),V=new Set(G(Y,"")),Z=Y,X=y((t=>{if(b.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>X(t)));else{for(const e of Object.keys(t)){if(b.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!V.has(e)||null==t[e]){b.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){b.debug("sanitizing object",e),X(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(b.debug("sanitizing css option",e),t[e]=Q(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}b.debug("After sanitization",t)}}),"sanitizeDirective"),Q=y((t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===n?e++:"}"===n&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t}),"sanitizeCss"),J=Object.freeze(Z),tt=$({},J),et=[],rt=$({},J),nt=y(((t,e)=>{let r=$({},t),n={};for(const i of e)ht(i),n=$(n,i);if(r=$(r,n),n.theme&&n.theme in H){const t=$({},h),e=$(t.themeVariables||{},n.themeVariables);r.theme&&r.theme in H&&(r.themeVariables=H[r.theme].getThemeVariables(e))}return yt(rt=r),rt}),"updateCurrentConfig"),it=y((t=>(tt=$({},J),tt=$(tt,t),t.theme&&H[t.theme]&&(tt.themeVariables=H[t.theme].getThemeVariables(t.themeVariables)),nt(tt,et),tt)),"setSiteConfig"),at=y((t=>{h=$({},t)}),"saveConfigFromInitialize"),ot=y((t=>(tt=$(tt,t),nt(tt,et),tt)),"updateSiteConfig"),st=y((()=>$({},tt)),"getSiteConfig"),lt=y((t=>(yt(t),$(rt,t),ct())),"setConfig"),ct=y((()=>$({},rt)),"getConfig"),ht=y((t=>{t&&(["secure",...tt.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&(b.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&ht(t[e])})))}),"sanitize"),ut=y((t=>{X(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),et.push(t),nt(tt,et)}),"addDirective"),dt=y(((t=tt)=>{nt(t,et=[])}),"reset"),pt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ft={},gt=y((t=>{ft[t]||(b.warn(pt[t]),ft[t]=!0)}),"issueWarning"),yt=y((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&>("LAZY_LOAD_DEPRECATED")}),"checkConfig"),mt=/<br\s*\/?>/gi,xt=y((t=>{if(!t)return[""];return Mt(t).replace(/\\n/g,"#br#").split("#br#")}),"getRows"),bt=(()=>{let t=!1;return()=>{t||(kt(),t=!0)}})();function kt(){const t="data-temp-href-target";f.A.addHook("beforeSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")})),f.A.addHook("afterSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}y(kt,"setupDompurifyHooks");var Ct=y((t=>{bt();return f.A.sanitize(t)}),"removeScript"),wt=y(((t,e)=>{if(!1!==e.flowchart?.htmlLabels){const r=e.securityLevel;"antiscript"===r||"strict"===r?t=Ct(t):"loose"!==r&&(t=(t=(t=Mt(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),t=At(t))}return t}),"sanitizeMore"),_t=y(((t,e)=>t?t=e.dompurifyConfig?f.A.sanitize(wt(t,e),e.dompurifyConfig).toString():f.A.sanitize(wt(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),vt=y(((t,e)=>"string"==typeof t?_t(t,e):t.flat().map((t=>_t(t,e)))),"sanitizeTextOrArray"),St=y((t=>mt.test(t)),"hasBreaks"),Tt=y((t=>t.split(mt)),"splitBreaks"),At=y((t=>t.replace(/#br#/g,"<br/>")),"placeholderToBreak"),Mt=y((t=>t.replace(mt,"#br#")),"breakToPlaceholder"),Bt=y((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e}),"getUrl"),Lt=y((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Ft=y((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),$t=y((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Et=y((function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let t=e[n];if(","===t&&n>0&&n+1<e.length){const i=e[n-1],a=e[n+1];Ot(i,a)&&(t=i+","+a,n++,r.pop())}r.push(Nt(t))}return r.join("")}),"parseGenericTypes"),Dt=y(((t,e)=>Math.max(0,t.split(e).length-1)),"countOccurrence"),Ot=y(((t,e)=>{const r=Dt(t,"~"),n=Dt(e,"~");return 1===r&&1===n}),"shouldCombineSets"),Nt=y((t=>{const e=Dt(t,"~");let r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;-1!==i&&-1!==a&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")}),"processSet"),It=y((()=>void 0!==window.MathMLElement),"isMathMLSupported"),Rt=/\$\$(.*)\$\$/g,zt=y((t=>(t.match(Rt)?.length??0)>0),"hasKatex"),Pt=y((async(t,e)=>{t=await jt(t,e);const r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n?.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i}),"calculateMathMLDimensions"),jt=y((async(t,e)=>{if(!zt(t))return t;if(!(It()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Rt,"MathML is unsupported in this environment.");const{default:n}=await r.e(2130).then(r.bind(r,2130)),i=e.forceLegacyMathML||!It()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(mt).map((t=>zt(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`)).join("").replace(Rt,((t,e)=>n.renderToString(e,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")))}),"renderKatex"),Kt={getRows:xt,sanitizeText:_t,sanitizeTextOrArray:vt,hasBreaks:St,splitBreaks:Tt,lineBreakRegex:mt,removeScript:Ct,getUrl:Bt,evaluate:Lt,getMax:Ft,getMin:$t},qt=y((function(t,e){for(let r of e)t.attr(r[0],r[1])}),"d3Attrs"),Wt=y((function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n}),"calculateSvgSizeAttrs"),Ht=y((function(t,e,r,n){const i=Wt(e,r,n);qt(t,i)}),"configureSvgSize"),Ut=y((function(t,e,r,n){const i=e.node().getBBox(),a=i.width,o=i.height;b.info(`SVG bounds: ${a}x${o}`,i);let s=0,l=0;b.info(`Graph bounds: ${s}x${l}`,t),s=a+2*r,l=o+2*r,b.info(`Calculated bounds: ${s}x${l}`),Ht(e,l,s,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",c)}),"setupGraphViewbox"),Yt={},Gt=y(((t,e,r)=>{let n="";return t in Yt&&Yt[t]?n=Yt[t](r):b.warn(`No theme found for ${t}`),` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${n}\n\n ${e}\n`}),"getStyles"),Vt=y(((t,e)=>{void 0!==e&&(Yt[t]=e)}),"addStylesForDiagram"),Zt=Gt,Xt={};m(Xt,{clear:()=>re,getAccDescription:()=>oe,getAccTitle:()=>ie,getDiagramTitle:()=>le,setAccDescription:()=>ae,setAccTitle:()=>ne,setDiagramTitle:()=>se});var Qt="",Jt="",te="",ee=y((t=>_t(t,ct())),"sanitizeText"),re=y((()=>{Qt="",te="",Jt=""}),"clear"),ne=y((t=>{Qt=ee(t).replace(/^\s+/g,"")}),"setAccTitle"),ie=y((()=>Qt),"getAccTitle"),ae=y((t=>{te=ee(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),oe=y((()=>te),"getAccDescription"),se=y((t=>{Jt=ee(t)}),"setDiagramTitle"),le=y((()=>Jt),"getDiagramTitle"),ce=b,he=k,ue=ct,de=lt,pe=J,fe=y((t=>_t(t,ue())),"sanitizeText"),ge=Ut,ye=y((()=>Xt),"getCommonDb"),me={},xe=y(((t,e,r)=>{me[t]&&ce.warn(`Diagram with id ${t} already registered. Overwriting.`),me[t]=e,r&&B(t,r),Vt(t,e.styles),e.injectUtils?.(ce,he,ue,fe,ge,ye(),(()=>{}))}),"registerDiagram"),be=y((t=>{if(t in me)return me[t];throw new ke(t)}),"getDiagram"),ke=class extends Error{static{y(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},483:(t,e,r)=>{"use strict";r.d(e,{W6:()=>At,GZ:()=>Ft,hE:()=>Lt});var n=r(540),i=r(9),a=r(7);function o(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let s={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function l(t){s=t}const c=/[&<>"']/,h=new RegExp(c.source,"g"),u=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,d=new RegExp(u.source,"g"),p={"&":"&","<":"<",">":">",'"':""","'":"'"},f=t=>p[t];function g(t,e){if(e){if(c.test(t))return t.replace(h,f)}else if(u.test(t))return t.replace(d,f);return t}const y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const m=/(^|[^\[])\^/g;function x(t,e){let r="string"==typeof t?t:t.source;e=e||"";const n={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(m,"$1"),r=r.replace(t,i),n},getRegex:()=>new RegExp(r,e)};return n}function b(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const k={exec:()=>null};function C(t,e){const r=t.replace(/\|/g,((t,e,r)=>{let n=!1,i=e;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"})).split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function w(t,e,r){const n=t.length;if(0===n)return"";let i=0;for(;i<n;){const a=t.charAt(n-i-1);if(a!==e||r){if(a===e||!r)break;i++}else i++}return t.slice(0,n-i)}function _(t,e,r,n){const i=e.href,a=e.title?g(e.title):null,o=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){n.state.inLink=!0;const t={type:"link",raw:r,href:i,title:a,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,t}return{type:"image",raw:r,href:i,title:a,text:g(o)}}class v{options;rules;lexer;constructor(t){this.options=t||s}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:w(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],r=function(t,e){const r=t.match(/^(\s+)(?:```)/);if(null===r)return e;const n=r[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[r]=e;return r.length>=n.length?t.slice(n.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=w(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:w(e[0],"\n")}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let t=w(e[0],"\n").split("\n"),r="",n="";const i=[];for(;t.length>0;){let e=!1;const a=[];let o;for(o=0;o<t.length;o++)if(/^ {0,3}>/.test(t[o]))a.push(t[o]),e=!0;else{if(e)break;a.push(t[o])}t=t.slice(o);const s=a.join("\n"),l=s.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1").replace(/^ {0,3}>[ \t]?/gm,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===t.length)break;const h=i[i.length-1];if("code"===h?.type)break;if("blockquote"===h?.type){const e=h,a=e.raw+"\n"+t.join("\n"),o=this.blockquote(a);i[i.length-1]=o,r=r.substring(0,r.length-e.raw.length)+o.raw,n=n.substring(0,n.length-e.text.length)+o.text;break}if("list"!==h?.type);else{const e=h,a=e.raw+"\n"+t.join("\n"),o=this.list(a);i[i.length-1]=o,r=r.substring(0,r.length-h.raw.length)+o.raw,n=n.substring(0,n.length-e.raw.length)+o.raw,t=a.substring(i[i.length-1].raw.length).split("\n")}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim();const n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const a=new RegExp(`^( {0,3}${r})((?:[\t ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;t;){let r=!1,n="",s="";if(!(e=a.exec(t)))break;if(this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split("\n",1)[0].replace(/^\t+/,(t=>" ".repeat(3*t.length))),c=t.split("\n",1)[0],h=!l.trim(),u=0;if(this.options.pedantic?(u=2,s=l.trimStart()):h?u=e[1].length+1:(u=e[2].search(/[^ ]/),u=u>4?1:u,s=l.slice(u),u+=e[1].length),h&&/^ *$/.test(c)&&(n+=c+"\n",t=t.substring(c.length+1),r=!0),!r){const e=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),a=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;t;){const o=t.split("\n",1)[0];if(c=o,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),i.test(c))break;if(a.test(c))break;if(e.test(c))break;if(r.test(t))break;if(c.search(/[^ ]/)>=u||!c.trim())s+="\n"+c.slice(u);else{if(h)break;if(l.search(/[^ ]/)>=4)break;if(i.test(l))break;if(a.test(l))break;if(r.test(l))break;s+="\n"+c}h||c.trim()||(h=!0),n+=o+"\n",t=t.substring(o.length+1),l=c.slice(u)}}i.loose||(o?i.loose=!0:/\n *\n *$/.test(n)&&(o=!0));let d,p=null;this.options.gfm&&(p=/^\[[ xX]\] /.exec(s),p&&(d="[ ] "!==p[0],s=s.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:n,task:!!p,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=n}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){const e=i.items[t].tokens.filter((t=>"space"===t.type)),r=e.length>0&&e.some((t=>/\n.*\n/.test(t.raw)));i.loose=r}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){const e=this.rules.block.html.exec(t);if(e){return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}}def(t){const e=this.rules.block.def.exec(t);if(e){const t=e[1].toLowerCase().replace(/\s+/g," "),r=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:n}}}table(t){const e=this.rules.block.table.exec(t);if(!e)return;if(!/[:|]/.test(e[2]))return;const r=C(e[1]),n=e[2].replace(/^\||\| *$/g,"").split("|"),i=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const t of n)/^ *-+: *$/.test(t)?a.align.push("right"):/^ *:-+: *$/.test(t)?a.align.push("center"):/^ *:-+ *$/.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(const t of i)a.rows.push(C(t,a.header.length).map(((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]}))));return a}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:g(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const e=w(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;let r=0;for(let n=0;n<t.length;n++)if("\\"===t[n])n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return-1}(e[2],"()");if(t>-1){const r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);t&&(r=t[1],n=t[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(t)?r.slice(1):r.slice(1,-1)),_(e,{href:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r,title:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n},e[0],this.lexer)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const t=e[(r[2]||r[1]).replace(/\s+/g," ").toLowerCase()];if(!t){const t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return _(r,t,r[0],this.lexer)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const r=[...n[0]].length-1;let i,a,o=r,s=0;const l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(a=[...i].length,n[3]||n[4]){o+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);const e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+a);if(Math.min(r,a)%2){const t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const r=/[^ ]/.test(t),n=/^ /.test(t)&&/ $/.test(t);return r&&n&&(t=t.substring(1,t.length-1)),t=g(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let t,r;return"@"===e[2]?(t=g(e[1]),r="mailto:"+t):(t=g(e[1]),r=t),{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])t=g(e[0]),r="mailto:"+t;else{let n;do{n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(n!==e[0]);t=g(e[0]),r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){let t;return t=this.lexer.state.inRawBlock?e[0]:g(e[0]),{type:"text",raw:e[0],text:t}}}}const S=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T=/(?:[*+-]|\d{1,9}[.)])/,A=x(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,T).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),M=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,B=/(?!\s*\])(?:\\.|[^\[\]\\])+/,L=x(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",B).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),F=x(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,T).getRegex(),$="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",E=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,D=x("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",E).replace("tag",$).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O=x(M).replace("hr",S).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$).getRegex(),N={blockquote:x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",O).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:L,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:S,html:D,lheading:A,list:F,newline:/^(?: *(?:\n|$))+/,paragraph:O,table:k,text:/^[^\n]+/},I=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",S).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$).getRegex(),R={...N,table:I,paragraph:x(M).replace("hr",S).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$).getRegex()},z={...N,html:x("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",E).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(M).replace("hr",S).replace("heading"," *#{1,6} *[^\n]").replace("lheading",A).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},P=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,j=/^( {2,}|\\)\n(?!\s*$)/,K="\\p{P}\\p{S}",q=x(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,K).getRegex(),W=x(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,K).getRegex(),H=x("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,K).getRegex(),U=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,K).getRegex(),Y=x(/\\([punct])/,"gu").replace(/punct/g,K).getRegex(),G=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=x(E).replace("(?:--\x3e|$)","--\x3e").getRegex(),Z=x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),X=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Q=x(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",X).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J=x(/^!?\[(label)\]\[(ref)\]/).replace("label",X).replace("ref",B).getRegex(),tt=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",B).getRegex(),et={_backpedal:k,anyPunctuation:Y,autolink:G,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:j,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:k,emStrongLDelim:W,emStrongRDelimAst:H,emStrongRDelimUnd:U,escape:P,link:Q,nolink:tt,punctuation:q,reflink:J,reflinkSearch:x("reflink|nolink(?!\\()","g").replace("reflink",J).replace("nolink",tt).getRegex(),tag:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:k},rt={...et,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",X).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",X).getRegex()},nt={...et,escape:x(P).replace("])","~|])").getRegex(),url:x(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},it={...nt,br:x(j).replace("{2,}","*").getRegex(),text:x(nt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},at={normal:N,gfm:R,pedantic:z},ot={normal:et,gfm:nt,breaks:it,pedantic:rt};class st{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||s,this.options.tokenizer=this.options.tokenizer||new v,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={block:at.normal,inline:ot.normal};this.options.pedantic?(e.block=at.pedantic,e.inline=ot.pedantic):this.options.gfm&&(e.block=at.gfm,this.options.breaks?e.inline=ot.breaks:e.inline=ot.gfm),this.tokenizer.rules=e}static get rules(){return{block:at,inline:ot}}static lex(t,e){return new st(e).lex(t)}static lexInline(t,e){return new st(e).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){let n,i,a;for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,((t,e,r)=>e+" ".repeat(r.length)));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(a=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const r=t.slice(1);let n;this.options.extensions.startBlock.forEach((t=>{n=t.call({lexer:this},r),"number"==typeof n&&n>=0&&(e=Math.min(e,n))})),e<1/0&&e>=0&&(a=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a)))i=e[e.length-1],r&&"paragraph"===i?.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),r=a.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,n,i,a,o,s,l=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)t.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(s=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))))if(r=this.tokenizer.escape(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.tag(t))t=t.substring(r.raw.length),n=e[e.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);else if(r=this.tokenizer.link(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(r.raw.length),n=e[e.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);else if(r=this.tokenizer.emStrong(t,l,s))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.codespan(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.br(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.del(t))t=t.substring(r.raw.length),e.push(r);else if(r=this.tokenizer.autolink(t))t=t.substring(r.raw.length),e.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(t))){if(i=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const r=t.slice(1);let n;this.options.extensions.startInline.forEach((t=>{n=t.call({lexer:this},r),"number"==typeof n&&n>=0&&(e=Math.min(e,n))})),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(i))t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0,n=e[e.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):e.push(r);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(r.raw.length),e.push(r);return e}}class lt{options;parser;constructor(t){this.options=t||s}space(t){return""}code({text:t,lang:e,escaped:r}){const n=(e||"").match(/^\S*/)?.[0],i=t.replace(/\n$/,"")+"\n";return n?'<pre><code class="language-'+g(n)+'">'+(r?i:g(i,!0))+"</code></pre>\n":"<pre><code>"+(r?i:g(i,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){const e=t.ordered,r=t.start;let n="";for(let a=0;a<t.items.length;a++){const e=t.items[a];n+=this.listitem(e)}const i=e?"ol":"ul";return"<"+i+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(t){let e="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);e+=this.tablerow({text:r});let n="";for(let i=0;i<t.rows.length;i++){const e=t.rows[i];r="";for(let t=0;t<e.length;t++)r+=this.tablecell(e[t]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+n+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){const e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){const n=this.parser.parseInline(r),i=b(t);if(null===i)return n;let a='<a href="'+(t=i)+'"';return e&&(a+=' title="'+e+'"'),a+=">"+n+"</a>",a}image({href:t,title:e,text:r}){const n=b(t);if(null===n)return r;let i=`<img src="${t=n}" alt="${r}"`;return e&&(i+=` title="${e}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class ct{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class ht{options;renderer;textRenderer;constructor(t){this.options=t||s,this.options.renderer=this.options.renderer||new lt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ct}static parse(t,e){return new ht(e).parse(t)}static parseInline(t,e){return new ht(e).parseInline(t)}parse(t,e=!0){let r="";for(let n=0;n<t.length;n++){const i=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const t=i,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(t.type)){r+=e||"";continue}}const a=i;switch(a.type){case"space":r+=this.renderer.space(a);continue;case"hr":r+=this.renderer.hr(a);continue;case"heading":r+=this.renderer.heading(a);continue;case"code":r+=this.renderer.code(a);continue;case"table":r+=this.renderer.table(a);continue;case"blockquote":r+=this.renderer.blockquote(a);continue;case"list":r+=this.renderer.list(a);continue;case"html":r+=this.renderer.html(a);continue;case"paragraph":r+=this.renderer.paragraph(a);continue;case"text":{let i=a,o=this.renderer.text(i);for(;n+1<t.length&&"text"===t[n+1].type;)i=t[++n],o+="\n"+this.renderer.text(i);r+=e?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o}]}):o;continue}default:{const t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}parseInline(t,e){e=e||this.renderer;let r="";for(let n=0;n<t.length;n++){const i=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=t||"";continue}}const a=i;switch(a.type){case"escape":case"text":r+=e.text(a);break;case"html":r+=e.html(a);break;case"link":r+=e.link(a);break;case"image":r+=e.image(a);break;case"strong":r+=e.strong(a);break;case"em":r+=e.em(a);break;case"codespan":r+=e.codespan(a);break;case"br":r+=e.br(a);break;case"del":r+=e.del(a);break;default:{const t='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw new Error(t)}}}return r}}class ut{options;constructor(t){this.options=t||s}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}const dt=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.#t(st.lex,ht.parse);parseInline=this.#t(st.lexInline,ht.parseInline);Parser=ht;Renderer=lt;TextRenderer=ct;Lexer=st;Tokenizer=v;Hooks=ut;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(const n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":{const t=n;for(const n of t.header)r=r.concat(this.walkTokens(n.tokens,e));for(const n of t.rows)for(const t of n)r=r.concat(this.walkTokens(t.tokens,e));break}case"list":{const t=n;r=r.concat(this.walkTokens(t.items,e));break}default:{const t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach((n=>{const i=t[n].flat(1/0);r=r.concat(this.walkTokens(i,e))})):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach((t=>{const r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){const r=e.renderers[t.name];e.renderers[t.name]=r?function(...e){let n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");const r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),r.extensions=e),t.renderer){const e=this.defaults.renderer||new lt(this.defaults);for(const r in t.renderer){if(!(r in e))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const n=r;let i=t.renderer[n];t.useNewRenderer||(i=this.#e(i,n,e));const a=e[n];e[n]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){const e=this.defaults.tokenizer||new v(this.defaults);for(const r in t.tokenizer){if(!(r in e))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const n=r,i=t.tokenizer[n],a=e[n];e[n]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){const e=this.defaults.hooks||new ut;for(const r in t.hooks){if(!(r in e))throw new Error(`hook '${r}' does not exist`);if("options"===r)continue;const n=r,i=t.hooks[n],a=e[n];ut.passThroughHooks.has(r)?e[n]=t=>{if(this.defaults.async)return Promise.resolve(i.call(e,t)).then((t=>a.call(e,t)));const r=i.call(e,t);return a.call(e,r)}:e[n]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=a.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){const e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}})),this}#e(t,e,r){switch(e){case"heading":return function(n){return n.type&&n.type===e?t.call(this,r.parser.parseInline(n.tokens),n.depth,function(t){return t.replace(y,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}(r.parser.parseInline(n.tokens,r.parser.textRenderer))):t.apply(this,arguments)};case"code":return function(r){return r.type&&r.type===e?t.call(this,r.text,r.lang,!!r.escaped):t.apply(this,arguments)};case"table":return function(r){if(!r.type||r.type!==e)return t.apply(this,arguments);let n="",i="";for(let t=0;t<r.header.length;t++)i+=this.tablecell({text:r.header[t].text,tokens:r.header[t].tokens,header:!0,align:r.align[t]});n+=this.tablerow({text:i});let a="";for(let t=0;t<r.rows.length;t++){const e=r.rows[t];i="";for(let t=0;t<e.length;t++)i+=this.tablecell({text:e[t].text,tokens:e[t].tokens,header:!1,align:r.align[t]});a+=this.tablerow({text:i})}return t.call(this,n,a)};case"blockquote":return function(r){if(!r.type||r.type!==e)return t.apply(this,arguments);const n=this.parser.parse(r.tokens);return t.call(this,n)};case"list":return function(r){if(!r.type||r.type!==e)return t.apply(this,arguments);const n=r.ordered,i=r.start,a=r.loose;let o="";for(let t=0;t<r.items.length;t++){const e=r.items[t],n=e.checked,i=e.task;let s="";if(e.task){const t=this.checkbox({checked:!!n});a?e.tokens.length>0&&"paragraph"===e.tokens[0].type?(e.tokens[0].text=t+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=t+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",text:t+" "}):s+=t+" "}s+=this.parser.parse(e.tokens,a),o+=this.listitem({type:"list_item",raw:s,text:s,task:i,checked:!!n,loose:a,tokens:e.tokens})}return t.call(this,o,n,i)};case"html":return function(r){return r.type&&r.type===e?t.call(this,r.text,r.block):t.apply(this,arguments)};case"paragraph":case"strong":case"em":case"del":return function(r){return r.type&&r.type===e?t.call(this,this.parser.parseInline(r.tokens)):t.apply(this,arguments)};case"escape":case"codespan":case"text":return function(r){return r.type&&r.type===e?t.call(this,r.text):t.apply(this,arguments)};case"link":return function(r){return r.type&&r.type===e?t.call(this,r.href,r.title,this.parser.parseInline(r.tokens)):t.apply(this,arguments)};case"image":return function(r){return r.type&&r.type===e?t.call(this,r.href,r.title,r.text):t.apply(this,arguments)}}return t}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return st.lex(t,e??this.defaults)}parser(t,e){return ht.parse(t,e??this.defaults)}#t(t,e){return(r,n)=>{const i={...n},a={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);const o=this.#r(!!a.silent,!!a.async);if(null==r)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then((e=>t(e,a))).then((t=>a.hooks?a.hooks.processAllTokens(t):t)).then((t=>a.walkTokens?Promise.all(this.walkTokens(t,a.walkTokens)).then((()=>t)):t)).then((t=>e(t,a))).then((t=>a.hooks?a.hooks.postprocess(t):t)).catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let n=t(r,a);a.hooks&&(n=a.hooks.processAllTokens(n)),a.walkTokens&&this.walkTokens(n,a.walkTokens);let i=e(n,a);return a.hooks&&(i=a.hooks.postprocess(i)),i}catch(s){return o(s)}}}#r(t,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="<p>An error occurred:</p><pre>"+g(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function pt(t,e){return dt.parse(t,e)}pt.options=pt.setOptions=function(t){return dt.setOptions(t),pt.defaults=dt.defaults,l(pt.defaults),pt},pt.getDefaults=o,pt.defaults=s,pt.use=function(...t){return dt.use(...t),pt.defaults=dt.defaults,l(pt.defaults),pt},pt.walkTokens=function(t,e){return dt.walkTokens(t,e)},pt.parseInline=dt.parseInline,pt.Parser=ht,pt.parser=ht.parse,pt.Renderer=lt,pt.TextRenderer=ct,pt.Lexer=st,pt.lexer=st.lex,pt.Tokenizer=v,pt.Hooks=ut,pt.parse=pt;pt.options,pt.setOptions,pt.use,pt.walkTokens,pt.parseInline,ht.parse,st.lex;var ft=r(513);function gt(t,{markdownAutoWrap:e}){const r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),n=(0,ft.T)(r);return!1===e?n.replace(/ /g," "):n}function yt(t,e={}){const r=gt(t,e),n=pt.lexer(r),a=[[]];let o=0;function s(t,e="normal"){if("text"===t.type){t.text.split("\n").forEach(((t,r)=>{0!==r&&(o++,a.push([])),t.split(" ").forEach((t=>{(t=t.replace(/'/g,"'"))&&a[o].push({content:t,type:e})}))}))}else"strong"===t.type||"em"===t.type?t.tokens.forEach((e=>{s(e,t.type)})):"html"===t.type&&a[o].push({content:t.text,type:"normal"})}return(0,i.K2)(s,"processNode"),n.forEach((t=>{"paragraph"===t.type?t.tokens?.forEach((t=>{s(t)})):"html"===t.type&&a[o].push({content:t.text,type:"normal"})})),a}function mt(t,{markdownAutoWrap:e}={}){const r=pt.lexer(t);function n(t){return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${t.tokens?.map(n).join("")}</strong>`:"em"===t.type?`<em>${t.tokens?.map(n).join("")}</em>`:"paragraph"===t.type?`<p>${t.tokens?.map(n).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:`Unsupported markdown: ${t.type}`}return(0,i.K2)(n,"output"),r.map(n).join("")}function xt(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}function bt(t,e){return kt(t,[],xt(e.content),e.type)}function kt(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...a]=r,o=[...e,i];return t([{content:o.join(""),type:n}])?kt(t,o,a,n):(0===e.length&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function Ct(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return wt(t,e)}function wt(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},o=[...n];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),e(o))return wt(t,e,r,o);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){const[n,i]=bt(e,a);r.push([n]),i.content&&t.unshift(i)}return wt(t,e,r)}function _t(t,e){e&&t.attr("style",e)}async function vt(t,e,r,n,a=!1){const o=t.append("foreignObject");o.attr("width",10*r+"px"),o.attr("height",10*r+"px");const s=o.append("xhtml:div");let l=e.label;e.label&&(0,i.Wi)(e.label)&&(l=await(0,i.VJ)(e.label.replace(i.Y2.lineBreakRegex,"\n"),(0,i.D7)()));const c=e.isNode?"nodeLabel":"edgeLabel",h=s.append("span");h.html(l),_t(h,e.labelStyle),h.attr("class",`${c} ${n}`),_t(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),o.node()}function St(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function Tt(t,e,r){const n=t.append("text"),i=St(n,1,e);Bt(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}function At(t,e,r){const n=t.append("text"),i=St(n,1,e);Bt(i,[{content:r,type:"normal"}]);const a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function Mt(t,e,r,n=!1){const a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const e=(0,i.K2)((e=>Tt(a,1.1,e)<=t),"checkWidth"),r=e(c)?[c]:Ct(c,e);for(const t of r){Bt(St(s,l,1.1),t),l++}}if(n){const t=s.node().getBBox(),e=2;return o.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),a.node()}return s.node()}function Bt(t,e){t.text(""),e.forEach(((e,r)=>{const n=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?n.text(e.content):n.text(" "+e.content)}))}function Lt(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))}(0,i.K2)(gt,"preprocessMarkdown"),(0,i.K2)(yt,"markdownToLines"),(0,i.K2)(mt,"markdownToHTML"),(0,i.K2)(xt,"splitTextToChars"),(0,i.K2)(bt,"splitWordToFitWidth"),(0,i.K2)(kt,"splitWordToFitWidthRecursion"),(0,i.K2)(Ct,"splitLineToFitWidth"),(0,i.K2)(wt,"splitLineToFitWidthRecursion"),(0,i.K2)(_t,"applyStyle"),(0,i.K2)(vt,"addHtmlSpan"),(0,i.K2)(St,"createTspan"),(0,i.K2)(Tt,"computeWidthOfText"),(0,i.K2)(At,"computeDimensionOfText"),(0,i.K2)(Mt,"createFormattedText"),(0,i.K2)(Bt,"updateTextContentAndStyles"),(0,i.K2)(Lt,"replaceIconSubstring");var Ft=(0,i.K2)((async(t,e="",{style:r="",isTitle:o=!1,classes:s="",useHtmlLabels:l=!0,isNode:c=!0,width:h=200,addSvgBackground:u=!1}={},d)=>{if(i.Rm.debug("XYZ createText",e,r,o,s,l,c,"addSvgBackground: ",u),l){const a=mt(e,d),o=Lt((0,n.Sm)(a)),l=e.replace(/\\\\/g,"\\"),p={isNode:c,label:(0,i.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await vt(t,p,h,s,u)}{const n=Mt(h,t,yt(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),d),!!e&&u);if(c){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,a.Ltv)(n).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,a.Ltv)(n).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,a.Ltv)(n).select("text").attr("style",e)}return n}}),"createText")},540:(t,e,r)=>{"use strict";r.d(e,{$C:()=>A,$t:()=>q,C4:()=>H,I5:()=>K,Ib:()=>g,KL:()=>G,Sm:()=>U,Un:()=>O,_K:()=>W,bH:()=>$,dq:()=>P,pe:()=>l,rY:()=>Y,ru:()=>D,sM:()=>S,vU:()=>p,yT:()=>B});var n=r(9),i=r(6750),a=r(7),o=r(6632),s=r(2837),l="\u200b",c={curveBasis:a.qrM,curveBasisClosed:a.Yu4,curveBasisOpen:a.IA3,curveBumpX:a.Wi0,curveBumpY:a.PGM,curveBundle:a.OEq,curveCardinalClosed:a.olC,curveCardinalOpen:a.IrU,curveCardinal:a.y8u,curveCatmullRomClosed:a.Q7f,curveCatmullRomOpen:a.cVp,curveCatmullRom:a.oDi,curveLinear:a.lUB,curveLinearClosed:a.Lx9,curveMonotoneX:a.nVG,curveMonotoneY:a.uxU,curveNatural:a.Xf2,curveStep:a.GZz,curveStepAfter:a.UPb,curveStepBefore:a.dyv},h=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,u=(0,n.K2)((function(t,e){const r=d(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const t=r.map((t=>t.args));(0,n.$i)(t),i=(0,n.hH)(i,[...t])}else i=r.args;if(!i)return;let a=(0,n.Ch)(t,e);const o="config";return void 0!==i[o]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[o],delete i[o]),i}),"detectInit"),d=(0,n.K2)((function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${h.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(r,"").replace(/'/gm,'"'),n.Rm.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const a=[];for(;null!==(i=n.DB.exec(t));)if(i.index===n.DB.lastIndex&&n.DB.lastIndex++,i&&!e||e&&i[1]?.match(e)||e&&i[2]?.match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;a.push({type:t,args:e})}return 0===a.length?{type:t,args:null}:1===a.length?a[0]:a}catch(r){return n.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),p=(0,n.K2)((function(t){return t.replace(n.DB,"")}),"removeDirectives"),f=(0,n.K2)((function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1}),"isSubstringInArray");function g(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return c[r]??e}function y(t,e){const r=t.trim();if(r)return"loose"!==e.securityLevel?(0,i.J)(r):r}(0,n.K2)(g,"interpolateToCurve"),(0,n.K2)(y,"formatUrl");var m=(0,n.K2)(((t,...e)=>{const r=t.split("."),i=r.length-1,a=r[i];let o=window;for(let s=0;s<i;s++)if(o=o[r[s]],!o)return void n.Rm.error(`Function name: ${t} not found in window`);o[a](...e)}),"runFunc");function x(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function b(t){let e,r=0;t.forEach((t=>{r+=x(t,e),e=t}));return w(t,r/2)}function k(t){return 1===t.length?t[0]:b(t)}(0,n.K2)(x,"distance"),(0,n.K2)(b,"traverseEdge"),(0,n.K2)(k,"calcLabelPosition");var C=(0,n.K2)(((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r}),"roundNumber"),w=(0,n.K2)(((t,e)=>{let r,n=e;for(const i of t){if(r){const t=x(i,r);if(t<n)n-=t;else{const e=n/t;if(e<=0)return r;if(e>=1)return{x:i.x,y:i.y};if(e>0&&e<1)return{x:C((1-e)*r.x+e*i.x,5),y:C((1-e)*r.y+e*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),_=(0,n.K2)(((t,e,r)=>{n.Rm.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=w(e,25),a=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(e[0].x+i.x)/2,s.y=-Math.cos(o)*a+(e[0].y+i.y)/2,s}),"calcCardinalityPosition");function v(t,e,r){const i=structuredClone(r);n.Rm.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const a=w(i,25+t),o=10+.5*t,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}function S(t){let e="",r="";for(const n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,n.K2)(v,"calcTerminalLabelPosition"),(0,n.K2)(S,"getStylesFromArray");var T=0,A=(0,n.K2)((()=>(T++,"id-"+Math.random().toString(36).substr(2,12)+"-"+T)),"generateId");function M(t){let e="";const r="0123456789abcdef";for(let n=0;n<t;n++)e+=r.charAt(Math.floor(16*Math.random()));return e}(0,n.K2)(M,"makeRandomHex");var B=(0,n.K2)((t=>M(t.length)),"random"),L=(0,n.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj"),F=(0,n.K2)((function(t,e){const r=e.text.replace(n.Y2.lineBreakRegex," "),[,i]=K(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);const o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a}),"drawSimpleText"),$=(0,o.A)(((t,e,r)=>{if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),n.Y2.lineBreakRegex.test(t))return t;const i=t.split(" ").filter(Boolean),a=[];let o="";return i.forEach(((t,n)=>{const s=O(`${t} `,r),l=O(o,r);if(s>e){const{hyphenatedStrings:n,remainingWord:i}=E(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");n+1===i.length&&a.push(o)})),a.filter((t=>""!==t)).join(r.joinWith)}),((t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`)),E=(0,o.A)(((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let o="";return i.forEach(((t,s)=>{const l=`${o}${t}`;if(O(l,n)>=e){const t=s+1,e=i.length===t,n=`${l}${r}`;a.push(e?l:n),o=""}else o=l})),{hyphenatedStrings:a,remainingWord:o}}),((t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`));function D(t,e){return I(t,e).height}function O(t,e){return I(t,e).width}(0,n.K2)(D,"calculateTextHeight"),(0,n.K2)(O,"calculateTextWidth");var N,I=(0,o.A)(((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};const[,s]=K(r),c=["sans-serif",i],h=t.split(n.Y2.lineBreakRegex),u=[],d=(0,a.Ltv)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};const p=d.append("svg");for(const n of c){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of h){const i=L();i.text=r||l;const a=F(p,i).style("font-size",s).style("font-weight",o).style("font-family",n),c=(a._groups||a)[0][0].getBBox();if(0===c.width&&0===c.height)throw new Error("svg element not in render tree");e.width=Math.round(Math.max(e.width,c.width)),t=Math.round(c.height),e.height+=t,e.lineHeight=Math.round(Math.max(e.lineHeight,t))}u.push(e)}p.remove();return u[isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),R=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,n.K2)(this,"InitIDGenerator")}},z=(0,n.K2)((function(t){return N=N||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),N.innerHTML=t,unescape(N.textContent)}),"entityDecode");function P(t){return"str"in t}(0,n.K2)(P,"isDetailedError");var j=(0,n.K2)(((t,e,r,n)=>{if(!n)return;const i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)}),"insertTitle"),K=(0,n.K2)((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function q(t,e){return(0,s.A)({},t,e)}(0,n.K2)(q,"cleanAndMerge");var W={assignWithDepth:n.hH,wrapLabel:$,calculateTextHeight:D,calculateTextWidth:O,calculateTextDimensions:I,cleanAndMerge:q,detectInit:u,detectDirective:d,isSubstringInArray:f,interpolateToCurve:g,calcLabelPosition:k,calcCardinalityPosition:_,calcTerminalLabelPosition:v,formatUrl:y,getStylesFromArray:S,generateId:A,random:B,runFunc:m,entityDecode:z,insertTitle:j,parseFontSize:K,InitIDGenerator:R},H=(0,n.K2)((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"\ufb02\xb0\xb0"+e+"\xb6\xdf":"\ufb02\xb0"+e+"\xb6\xdf"})),e}),"encodeEntities"),U=(0,n.K2)((function(t){return t.replace(/\ufb02\xb0\xb0/g,"&#").replace(/\ufb02\xb0/g,"&").replace(/\xb6\xdf/g,";")}),"decodeEntities"),Y=(0,n.K2)(((t,e,{counter:r=0,prefix:n,suffix:i})=>`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`),"getEdgeId");function G(t){return t??null}(0,n.K2)(G,"handleUndefinedAttr")},1282:(t,e,r)=>{"use strict";r.d(e,{DA:()=>k,IU:()=>D,U:()=>E,U7:()=>we,U_:()=>ve,Zk:()=>h,aP:()=>be,gh:()=>_e,lC:()=>d,on:()=>Ce});var n=r(4532),i=r(3115),a=r(483),o=r(540),s=r(9),l=r(7),c=r(9893),h=(0,s.K2)((async(t,e,r)=>{let n;const i=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);n=r||"node default";const c=t.insert("g").attr("class",n).attr("id",e.domId||e.id),h=c.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle));let u;u=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const d=await(0,a.GZ)(h,(0,s.jZ)((0,o.Sm)(u),(0,s.D7)()),{useHtmlLabels:i,width:e.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let p=d.getBBox();const f=(e?.padding??0)/2;if(i){const t=d.children[0],e=(0,l.Ltv)(d),r=t.getElementsByTagName("img");if(r){const t=""===u.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[n=s.UI.fontSize]=(0,o.I5)(t),i=n*r+"px";e.style.minWidth=i,e.style.maxWidth=i}else e.style.width="100%";r(e)}(0,s.K2)(n,"setupImage"),setTimeout((()=>{e.complete&&n()})),e.addEventListener("error",n),e.addEventListener("load",n)})))))}p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return i?h.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):h.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&h.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:c,bbox:p,halfPadding:f,label:h}}),"labelHelper"),u=(0,s.K2)((async(t,e,r)=>{const n=r.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),c=await(0,a.GZ)(i,(0,s.jZ)((0,o.Sm)(e),(0,s.D7)()),{useHtmlLabels:n,width:r.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let h=c.getBBox();const u=r.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=c.children[0],e=(0,l.Ltv)(c);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return n?i.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):i.attr("transform","translate(0, "+-h.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:h,halfPadding:u,label:i}}),"insertLabel"),d=(0,s.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height}),"updateNodeBounds"),p=(0,s.K2)(((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function f(t){const e=t.map(((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`));return e.push("Z"),e.join(" ")}function g(t,e,r,n,i,a){const o=[],s=r-t,l=n-e,c=s/a,h=2*Math.PI/c,u=e+l/2;for(let d=0;d<=50;d++){const e=t+d/50*s,r=u+i*Math.sin(h*(e-t));o.push({x:e,y:r})}return o}function y(t,e,r,n,i,a){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=t+r*Math.cos(n),a=e+r*Math.sin(n);o.push({x:-i,y:-a})}return o}(0,s.K2)(f,"createPathFromPoints"),(0,s.K2)(g,"generateFullSineWavePoints"),(0,s.K2)(y,"generateCirclePoints");var m=(0,s.K2)(((t,e)=>{var r,n,i=t.x,a=t.y,o=e.x-i,s=e.y-a,l=t.width/2,c=t.height/2;return Math.abs(s)*l>Math.abs(o)*c?(s<0&&(c=-c),r=0===s?0:c*o/s,n=c):(o<0&&(l=-l),r=l,n=0===o?0:l*s/o),{x:i+r,y:a+n}}),"intersectRect");function x(t,e){e&&t.attr("style",e)}async function b(t){const e=(0,l.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div");let n=t.label;t.label&&(0,s.Wi)(t.label)&&(n=await(0,s.VJ)(t.label.replace(s.Y2.lineBreakRegex,"\n"),(0,s.D7)()));const i=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>"),x(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,s.K2)(x,"applyStyle"),(0,s.K2)(b,"addHtmlLabel");var k=(0,s.K2)((async(t,e,r,n)=>{let i=t||"";if("object"==typeof i&&(i=i[0]),(0,s._3)((0,s.D7)().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),s.Rm.info("vertexText"+i);const t={isNode:n,label:(0,o.Sm)(i).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e?e.replace("fill:","color:"):e};return await b(t)}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let n=[];n="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const e of n){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),r?n.setAttribute("class","title-row"):n.setAttribute("class","row"),n.textContent=e.trim(),t.appendChild(n)}return t}}),"createLabel"),C=(0,s.K2)(((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" ")),"createRoundedRectPathD"),w=(0,s.K2)((t=>{const{handDrawnSeed:e}=(0,s.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill"),_=(0,s.K2)((t=>{const e=v([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles"),v=(0,s.K2)((t=>{const e=new Map;return t.forEach((t=>{const[r,n]=t.split(":");e.set(r.trim(),n?.trim())})),e}),"styles2Map"),S=(0,s.K2)((t=>{const{stylesArray:e}=_(t),r=[],n=[],i=[],a=[];return e.forEach((t=>{const e=t[0];"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))})),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}}),"styles2String"),T=(0,s.K2)(((t,e)=>{const{themeVariables:r,handDrawnSeed:n}=(0,s.D7)(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:o}=_(t);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e)}),"userNodeOverrides"),A=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)(),{themeVariables:n,handDrawnSeed:o}=r,{clusterBkg:h,clusterBorder:u}=n,{labelStyles:d,nodeStyles:p,borderStyles:f,backgroundStyles:g}=S(e),y=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),x=(0,s._3)(r.flowchart.htmlLabels),b=y.insert("g").attr("class","cluster-label "),k=await(0,a.GZ)(b,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0});let w=k.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=k.children[0],e=(0,l.Ltv)(k);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}const _=e.width<=w.width+e.padding?w.width+e.padding:e.width;e.width<=w.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,A=e.x-_/2,M=e.y-v/2;let B;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(y),r=T(e,{roughness:.7,fill:h,stroke:u,fillWeight:3,seed:o}),n=t.path(C(A,M,_,v,0),r);B=y.insert((()=>(s.Rm.debug("Rough node insert CXC",n),n)),":first-child"),B.select("path:nth-child(2)").attr("style",f.join(";")),B.select("path").attr("style",g.join(";").replace("fill","stroke"))}else B=y.insert("rect",":first-child"),B.attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",M).attr("width",_).attr("height",v);const{subGraphTitleTopMargin:L}=(0,i.O)(r);if(b.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+L})`),d){const t=b.select("span");t&&t.attr("style",d)}const F=B.node().getBBox();return e.offsetX=0,e.width=F.width,e.height=F.height,e.offsetY=w.height-e.padding/2,e.intersect=function(t){return m(e,t)},{cluster:y,labelBBox:w}}),"rect"),M=(0,s.K2)(((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const o=n.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return m(e,t)},{cluster:r,labelBBox:{width:0,height:0}}}),"noteGroup"),B=(0,s.K2)((async(t,e)=>{const r=(0,s.D7)(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:h,nodeBorder:u}=n,d=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),p=d.insert("g",":first-child"),f=d.insert("g").attr("class","cluster-label");let g=d.append("rect");const y=f.node().appendChild(await k(e.label,e.labelStyle,void 0,!0));let x=y.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=y.children[0],e=(0,l.Ltv)(y);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}const b=0*e.padding,w=b/2,_=(e.width<=x.width+e.padding?x.width+e.padding:e.width)+b;e.width<=x.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height+b,S=e.height+b-x.height-6,T=e.x-_/2,A=e.y-v/2;e.width=_;const M=e.y-e.height/2-w+x.height+2;let B;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),r=c.A.svg(d),n=e.rx||e.ry?r.path(C(T,A,_,v,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:u,seed:i}):r.rectangle(T,A,_,v,{seed:i});B=d.insert((()=>n),":first-child");const s=r.rectangle(T,M,_,S,{fill:t?a:o,fillStyle:t?"hachure":"solid",stroke:u,seed:i});B=d.insert((()=>n),":first-child"),g=d.insert((()=>s))}else{B=p.insert("rect",":first-child");const t="outer";B.attr("class",t).attr("x",T).attr("y",A).attr("width",_).attr("height",v).attr("data-look",e.look),g.attr("class","inner").attr("x",T).attr("y",M).attr("width",_).attr("height",S)}f.attr("transform",`translate(${e.x-x.width/2}, ${A+1-((0,s._3)(r.flowchart.htmlLabels)?0:3)})`);const L=B.node().getBBox();return e.height=L.height,e.offsetX=0,e.offsetY=x.height-e.padding/2,e.labelBBox=x,e.intersect=function(t){return m(e,t)},{cluster:d,labelBBox:x}}),"roundedWithTitle"),L=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)(),{themeVariables:n,handDrawnSeed:o}=r,{clusterBkg:h,clusterBorder:u}=n,{labelStyles:d,nodeStyles:p,borderStyles:f,backgroundStyles:g}=S(e),y=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),x=(0,s._3)(r.flowchart.htmlLabels),b=y.insert("g").attr("class","cluster-label "),k=await(0,a.GZ)(b,e.label,{style:e.labelStyle,useHtmlLabels:x,isNode:!0,width:e.width});let w=k.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=k.children[0],e=(0,l.Ltv)(k);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}const _=e.width<=w.width+e.padding?w.width+e.padding:e.width;e.width<=w.width+e.padding?e.diff=(_-e.width)/2-e.padding:e.diff=-e.padding;const v=e.height,A=e.x-_/2,M=e.y-v/2;let B;if(s.Rm.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=c.A.svg(y),r=T(e,{roughness:.7,fill:h,stroke:u,fillWeight:4,seed:o}),n=t.path(C(A,M,_,v,e.rx),r);B=y.insert((()=>(s.Rm.debug("Rough node insert CXC",n),n)),":first-child"),B.select("path:nth-child(2)").attr("style",f.join(";")),B.select("path").attr("style",g.join(";").replace("fill","stroke"))}else B=y.insert("rect",":first-child"),B.attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",M).attr("width",_).attr("height",v);const{subGraphTitleTopMargin:L}=(0,i.O)(r);if(b.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+L})`),d){const t=b.select("span");t&&t.attr("style",d)}const F=B.node().getBBox();return e.offsetX=0,e.width=F.width,e.height=F.height,e.offsetY=w.height-e.padding/2,e.intersect=function(t){return m(e,t)},{cluster:y,labelBBox:w}}),"kanbanSection"),F={rect:A,squareRect:A,roundedWithTitle:B,noteGroup:M,divider:(0,s.K2)(((t,e)=>{const r=(0,s.D7)(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),l=o.insert("g",":first-child"),h=0*e.padding,u=e.width+h;e.diff=-e.padding;const d=e.height+h,p=e.x-u/2,f=e.y-d/2;let g;if(e.width=u,"handDrawn"===e.look){const t=c.A.svg(o).rectangle(p,f,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});g=o.insert((()=>t),":first-child")}else{g=l.insert("rect",":first-child");const t="divider";g.attr("class",t).attr("x",p).attr("y",f).attr("width",u).attr("height",d).attr("data-look",e.look)}const y=g.node().getBBox();return e.height=y.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return m(e,t)},{cluster:o,labelBBox:{}}}),"divider"),kanbanSection:L},$=new Map,E=(0,s.K2)((async(t,e)=>{const r=e.shape||"rect",n=await F[r](t,e);return $.set(e.id,n),n}),"insertCluster"),D=(0,s.K2)((()=>{$=new Map}),"clear");function O(t,e){return t.intersect(e)}(0,s.K2)(O,"intersectNode");var N=O;function I(t,e,r,n){var i=t.x,a=t.y,o=i-n.x,s=a-n.y,l=Math.sqrt(e*e*s*s+r*r*o*o),c=Math.abs(e*r*o/l);n.x<i&&(c=-c);var h=Math.abs(e*r*s/l);return n.y<a&&(h=-h),{x:i+c,y:a+h}}(0,s.K2)(I,"intersectEllipse");var R=I;function z(t,e,r){return R(t,e,e,r)}(0,s.K2)(z,"intersectCircle");var P=z;function j(t,e,r,n){var i,a,o,s,l,c,h,u,d,p,f,g,y;if(i=e.y-t.y,o=t.x-e.x,l=e.x*t.y-t.x*e.y,d=i*r.x+o*r.y+l,p=i*n.x+o*n.y+l,!(0!==d&&0!==p&&K(d,p)||(a=n.y-r.y,s=r.x-n.x,c=n.x*r.y-r.x*n.y,h=a*t.x+s*t.y+c,u=a*e.x+s*e.y+c,0!==h&&0!==u&&K(h,u)||0==(f=i*s-a*o))))return g=Math.abs(f/2),{x:(y=o*c-s*l)<0?(y-g)/f:(y+g)/f,y:(y=a*l-i*c)<0?(y-g)/f:(y+g)/f}}function K(t,e){return t*e>0}(0,s.K2)(j,"intersectLine"),(0,s.K2)(K,"sameSign");var q=j;function W(t,e,r){let n=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));let l=n-t.width/2-o,c=i-t.height/2-s;for(let h=0;h<e.length;h++){let n=e[h],i=e[h<e.length-1?h+1:0],o=q(t,r,{x:l+n.x,y:c+n.y},{x:l+i.x,y:c+i.y});o&&a.push(o)}return a.length?(a.length>1&&a.sort((function(t,e){let n=t.x-r.x,i=t.y-r.y,a=Math.sqrt(n*n+i*i),o=e.x-r.x,s=e.y-r.y,l=Math.sqrt(o*o+s*s);return a<l?-1:a===l?0:1})),a[0]):t}(0,s.K2)(W,"intersectPolygon");var H={node:N,circle:P,ellipse:R,polygon:W,rect:m};function U(t,e){const{labelStyles:r}=S(e);e.labelStyle=r;const n=p(e);let i=n;n||(i="anchor");const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),{cssStyles:l}=e,h=c.A.svg(a),u=T(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);const f=h.circle(0,0,2,u),g=a.insert((()=>f),":first-child");return g.attr("class","anchor").attr("style",(0,o.KL)(l)),d(e,g),e.intersect=function(t){return s.Rm.info("Circle intersect",e,1,t),H.circle(e,1,t)},a}function Y(t,e,r,n,i,a,o){const s=(t+r)/2,l=(e+n)/2,c=Math.atan2(n-e,r-t),h=(r-t)/2/i,u=(n-e)/2/a,d=Math.sqrt(h**2+u**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-d**2),f=s+p*a*Math.sin(c)*(o?-1:1),g=l-p*i*Math.cos(c)*(o?-1:1),y=Math.atan2((e-g)/a,(t-f)/i);let m=Math.atan2((n-g)/a,(r-f)/i)-y;o&&m<0&&(m+=2*Math.PI),!o&&m>0&&(m-=2*Math.PI);const x=[];for(let b=0;b<20;b++){const t=y+b/19*m,e=f+i*Math.cos(t),r=g+a*Math.sin(t);x.push({x:e,y:r})}return x}async function G(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=a.width+e.padding+20,s=a.height+e.padding,l=s/2,u=l/(2.5+s/50),{cssStyles:g}=e,y=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...Y(-o/2,-s/2,-o/2,s/2,u,l,!1),{x:o/2,y:s/2},...Y(o/2,s/2,o/2,-s/2,u,l,!0)],m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=f(y),k=m.path(b,x),C=i.insert((()=>k),":first-child");return C.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",g),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${u/2}, 0)`),d(e,C),e.intersect=function(t){return H.polygon(e,y,t)},i}function V(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}async function Z(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=a.height+e.padding,s=a.width+e.padding+12,l=-o,u=[{x:12,y:l},{x:s,y:l},{x:s,y:0},{x:0,y:0},{x:0,y:l+12},{x:12,y:l}];let g;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=f(u),a=t.path(n,r);g=i.insert((()=>a),":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),y&&g.attr("style",y)}else g=V(i,s,o,u);return n&&g.attr("style",n),d(e,g),e.intersect=function(t){return H.polygon(e,u,t)},i}function X(t,e){const{nodeStyles:r}=S(e);e.label="";const n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=c.A.svg(n),l=T(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=f(o),u=s.path(h,l),d=n.insert((()=>u),":first-child");return i&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",i),r&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return H.polygon(e,o,t)},n}async function Q(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:l}=await h(t,e,p(e)),u=a.width/2+l;let f;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=t.circle(0,0,2*u,r);f=i.insert((()=>n),":first-child"),f.attr("class","basic label-container").attr("style",(0,o.KL)(g))}else f=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0);return d(e,f),e.intersect=function(t){return s.Rm.info("Circle intersect",e,u,t),H.circle(e,u,t)},i}function J(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=2*t;return`M ${-n/2*e},${n/2*r} L ${n/2*e},${-n/2*r}\n M ${n/2*e},${n/2*r} L ${-n/2*e},${-n/2*r}`}function tt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),a=Math.max(30,e?.width??0),{cssStyles:o}=e,l=c.A.svg(i),h=T(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const u=l.circle(0,0,2*a,h),f=J(a),g=l.path(f,h),y=i.insert((()=>u),":first-child");return y.insert((()=>g)),o&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",o),n&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",n),d(e,y),e.intersect=function(t){s.Rm.info("crossedCircle intersect",e,{radius:a,point:t});return H.circle(e,a,t)},i}function et(t,e,r,n=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=t+r*Math.cos(n),a=e+r*Math.sin(n);o.push({x:-i,y:-a})}return o}async function rt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),u=Math.max(5,.1*l),{cssStyles:g}=e,y=[...et(s/2,-l/2,u,30,-90,0),{x:-s/2-u,y:u},...et(s/2+2*u,-u,u,20,-180,-270),...et(s/2+2*u,u,u,20,-90,-180),{x:-s/2-u,y:-l/2},...et(s/2,l/2,u,20,0,90)],m=[{x:s/2,y:-l/2-u},{x:-s/2,y:-l/2-u},...et(s/2,-l/2,u,20,-90,0),{x:-s/2-u,y:-u},...et(s/2+.1*s,-u,u,20,-180,-270),...et(s/2+.1*s,u,u,20,-90,-180),{x:-s/2-u,y:l/2},...et(s/2,l/2,u,20,0,90),{x:-s/2,y:l/2+u},{x:s/2,y:l/2+u}],x=c.A.svg(i),b=T(e,{fill:"none"});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=f(y).replace("Z",""),C=x.path(k,b),w=f(m),_=x.path(w,{...b}),v=i.insert("g",":first-child");return v.insert((()=>_),":first-child").attr("stroke-opacity",0),v.insert((()=>C),":first-child"),v.attr("class","text"),g&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",g),n&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${u}, 0)`),o.attr("transform",`translate(${-s/2+u-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return H.polygon(e,m,t)},i}function nt(t,e,r,n=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=t+r*Math.cos(n),a=e+r*Math.sin(n);o.push({x:i,y:a})}return o}async function it(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),u=Math.max(5,.1*l),{cssStyles:g}=e,y=[...nt(s/2,-l/2,u,20,-90,0),{x:s/2+u,y:-u},...nt(s/2+2*u,-u,u,20,-180,-270),...nt(s/2+2*u,u,u,20,-90,-180),{x:s/2+u,y:l/2},...nt(s/2,l/2,u,20,0,90)],m=[{x:-s/2,y:-l/2-u},{x:s/2,y:-l/2-u},...nt(s/2,-l/2,u,20,-90,0),{x:s/2+u,y:-u},...nt(s/2+2*u,-u,u,20,-180,-270),...nt(s/2+2*u,u,u,20,-90,-180),{x:s/2+u,y:l/2},...nt(s/2,l/2,u,20,0,90),{x:s/2,y:l/2+u},{x:-s/2,y:l/2+u}],x=c.A.svg(i),b=T(e,{fill:"none"});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=f(y).replace("Z",""),C=x.path(k,b),w=f(m),_=x.path(w,{...b}),v=i.insert("g",":first-child");return v.insert((()=>_),":first-child").attr("stroke-opacity",0),v.insert((()=>C),":first-child"),v.attr("class","text"),g&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",g),n&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${-u}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,v),e.intersect=function(t){return H.polygon(e,m,t)},i}function at(t,e,r,n=100,i=0,a=180){const o=[],s=i*Math.PI/180,l=(a*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=t+r*Math.cos(n),a=e+r*Math.sin(n);o.push({x:-i,y:-a})}return o}async function ot(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=a.width+(e.padding??0),l=a.height+(e.padding??0),u=Math.max(5,.1*l),{cssStyles:g}=e,y=[...at(s/2,-l/2,u,30,-90,0),{x:-s/2-u,y:u},...at(s/2+2*u,-u,u,20,-180,-270),...at(s/2+2*u,u,u,20,-90,-180),{x:-s/2-u,y:-l/2},...at(s/2,l/2,u,20,0,90)],m=[...at(-s/2+u+u/2,-l/2,u,20,-90,-180),{x:s/2-u/2,y:u},...at(-s/2-u/2,-u,u,20,0,90),...at(-s/2-u/2,u,u,20,-90,0),{x:s/2-u/2,y:-u},...at(-s/2+u+u/2,l/2,u,30,-180,-270)],x=[{x:s/2,y:-l/2-u},{x:-s/2,y:-l/2-u},...at(s/2,-l/2,u,20,-90,0),{x:-s/2-u,y:-u},...at(s/2+2*u,-u,u,20,-180,-270),...at(s/2+2*u,u,u,20,-90,-180),{x:-s/2-u,y:l/2},...at(s/2,l/2,u,20,0,90),{x:-s/2,y:l/2+u},{x:s/2-u-u/2,y:l/2+u},...at(-s/2+u+u/2,-l/2,u,20,-90,-180),{x:s/2-u/2,y:u},...at(-s/2-u/2,-u,u,20,0,90),...at(-s/2-u/2,u,u,20,-90,0),{x:s/2-u/2,y:-u},...at(-s/2+u+u/2,l/2,u,30,-180,-270)],b=c.A.svg(i),k=T(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const C=f(y).replace("Z",""),w=b.path(C,k),_=f(m).replace("Z",""),v=b.path(_,k),A=f(x),M=b.path(A,{...k}),B=i.insert("g",":first-child");return B.insert((()=>M),":first-child").attr("stroke-opacity",0),B.insert((()=>w),":first-child"),B.insert((()=>v),":first-child"),B.attr("class","text"),g&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",g),n&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",n),B.attr("transform",`translate(${u-u/4}, 0)`),o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,B),e.intersect=function(t){return H.polygon(e,x,t)},i}async function st(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(80,1.25*(a.width+2*(e.padding??0)),e?.width??0),s=Math.max(20,a.height+2*(e.padding??0),e?.height??0),l=s/2,{cssStyles:u}=e,g=c.A.svg(i),m=T(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const x=o-l,b=s/4,k=[{x:x,y:0},{x:b,y:0},{x:0,y:s/2},{x:b,y:s},{x:x,y:s},...y(-x,-s/2,l,50,270,90)],C=f(k),w=g.path(C,m),_=i.insert((()=>w),":first-child");return _.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",u),n&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",n),_.attr("transform",`translate(${-o/2}, ${-s/2})`),d(e,_),e.intersect=function(t){return H.polygon(e,k,t)},i}(0,s.K2)(U,"anchor"),(0,s.K2)(Y,"generateArcPoints"),(0,s.K2)(G,"bowTieRect"),(0,s.K2)(V,"insertPolygonShape"),(0,s.K2)(Z,"card"),(0,s.K2)(X,"choice"),(0,s.K2)(Q,"circle"),(0,s.K2)(J,"createLine"),(0,s.K2)(tt,"crossedCircle"),(0,s.K2)(et,"generateCirclePoints"),(0,s.K2)(rt,"curlyBraceLeft"),(0,s.K2)(nt,"generateCirclePoints"),(0,s.K2)(it,"curlyBraceRight"),(0,s.K2)(at,"generateCirclePoints"),(0,s.K2)(ot,"curlyBraces"),(0,s.K2)(st,"curvedTrapezoid");var lt=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,"l0,"+-n].join(" ")),"createCylinderPathD"),ct=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,"l0,"+-n].join(" ")),"createOuterCylinderPathD"),ht=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function ut(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await h(t,e,p(e)),l=Math.max(a.width+e.padding,e.width??0),u=l/2,f=u/(2.5+l/50),g=Math.max(a.height+f+e.padding,e.height??0);let y;const{cssStyles:m}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=ct(0,0,l,g,u,f),n=ht(0,f,l,g,u,f),a=t.path(r,T(e,{})),o=t.path(n,T(e,{fill:"none"}));y=i.insert((()=>o),":first-child"),y=i.insert((()=>a),":first-child"),y.attr("class","basic label-container"),m&&y.attr("style",m)}else{const t=lt(0,0,l,g,u,f);y=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(m)).attr("style",n)}return y.attr("label-offset-y",f),y.attr("transform",`translate(${-l/2}, ${-(g/2+f)})`),d(e,y),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(t){const r=H.rect(e,t),n=r.x-(e.x??0);if(0!=u&&(Math.abs(n)<(e.width??0)/2||Math.abs(n)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-f)){let i=f*f*(1-n*n/(u*u));i>0&&(i=Math.sqrt(i)),i=f-i,t.y-(e.y??0)>0&&(i=-i),r.y+=i}return r},i}async function dt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=a.width+e.padding,l=a.height+e.padding,u=.2*l,f=-s/2,g=-l/2-u/2,{cssStyles:y}=e,m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:f,y:g+u},{x:-f,y:g+u},{x:-f,y:-g},{x:f,y:-g},{x:f,y:g},{x:-f,y:g},{x:-f,y:g+u}],k=m.polygon(b.map((t=>[t.x,t.y])),x),C=i.insert((()=>k),":first-child");return C.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",y),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),o.attr("transform",`translate(${f+(e.padding??0)/2-(a.x-(a.left??0))}, ${g+u+(e.padding??0)/2-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return H.rect(e,t)},i}async function pt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:l}=await h(t,e,p(e)),u=a.width/2+l+5,f=a.width/2+l;let g;const{cssStyles:y}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{roughness:.2,strokeWidth:2.5}),n=T(e,{roughness:.2,strokeWidth:1.5}),a=t.circle(0,0,2*u,r),s=t.circle(0,0,2*f,n);g=i.insert("g",":first-child"),g.attr("class",(0,o.KL)(e.cssClasses)).attr("style",(0,o.KL)(y)),g.node()?.appendChild(a),g.node()?.appendChild(s)}else{g=i.insert("g",":first-child");const t=g.insert("circle",":first-child"),e=g.insert("circle");g.attr("class","basic label-container").attr("style",n),t.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",n).attr("r",f).attr("cx",0).attr("cy",0)}return d(e,g),e.intersect=function(t){return s.Rm.info("DoubleCircle intersect",e,u,t),H.circle(e,u,t)},i}function ft(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=S(e);e.label="",e.labelStyle=n;const a=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,l=c.A.svg(a),{nodeBorder:h}=r,u=T(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(u.roughness=0);const f=l.circle(0,0,14,u),g=a.insert((()=>f),":first-child");return g.selectAll("path").attr("style",`fill: ${h} !important;`),o&&o.length>0&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&g.selectAll("path").attr("style",i),d(e,g),e.intersect=function(t){s.Rm.info("filledCircle intersect",e,{radius:7,point:t});return H.circle(e,7,t)},a}async function gt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),l=a.width+(e.padding??0),u=l+a.height,g=l+a.height,y=[{x:0,y:-u},{x:g,y:-u},{x:g/2,y:0}],{cssStyles:m}=e,x=c.A.svg(i),b=T(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=f(y),C=x.path(k,b),w=i.insert((()=>C),":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return m&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",m),n&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",n),e.width=l,e.height=u,d(e,w),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-u/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,y,t),H.polygon(e,y,t)},i}function yt(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=S(e);e.label="";const o=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:s}=e;let l=Math.max(70,e?.width??0),h=Math.max(10,e?.height??0);"LR"===r&&(l=Math.max(10,e?.width??0),h=Math.max(70,e?.height??0));const u=-1*l/2,f=-1*h/2,g=c.A.svg(o),y=T(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");const m=g.rectangle(u,f,l,h,y),x=o.insert((()=>m),":first-child");s&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",s),a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),d(e,x);const b=n?.padding??0;return e.width&&e.height&&(e.width+=b/2||0,e.height+=b/2||0),e.intersect=function(t){return H.rect(e,t)},o}async function mt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(80,a.width+2*(e.padding??0),e?.width??0),l=Math.max(50,a.height+2*(e.padding??0),e?.height??0),u=l/2,{cssStyles:g}=e,m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-o/2,y:-l/2},{x:o/2-u,y:-l/2},...y(-o/2+u,0,u,50,90,270),{x:o/2-u,y:l/2},{x:-o/2,y:l/2}],k=f(b),C=m.path(k,x),w=i.insert((()=>C),":first-child");return w.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",g),n&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",n),d(e,w),e.intersect=function(t){s.Rm.info("Pill intersect",e,{radius:u,point:t});return H.polygon(e,b,t)},i}(0,s.K2)(ut,"cylinder"),(0,s.K2)(dt,"dividedRectangle"),(0,s.K2)(pt,"doublecircle"),(0,s.K2)(ft,"filledCircle"),(0,s.K2)(gt,"flippedTriangle"),(0,s.K2)(yt,"forkJoin"),(0,s.K2)(mt,"halfRoundedRectangle");var xt=(0,s.K2)(((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" ")),"createHexagonPathD");async function bt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=a.height+e.padding,s=o/4,l=a.width+2*s+e.padding,u=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-o/2},{x:l-s,y:-o},{x:s,y:-o},{x:0,y:-o/2}];let f;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=xt(0,0,l,o,s),a=t.path(n,r);f=i.insert((()=>a),":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),g&&f.attr("style",g)}else f=V(i,l,o,u);return n&&f.attr("style",n),e.width=l,e.height=o,d(e,f),e.intersect=function(t){return H.polygon(e,u,t)},i}async function kt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await h(t,e,p(e)),a=Math.max(30,e?.width??0),o=Math.max(30,e?.height??0),{cssStyles:l}=e,u=c.A.svg(i),g=T(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],m=f(y),x=u.path(m,g),b=i.insert((()=>x),":first-child");return b.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",l),n&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",n),b.attr("transform",`translate(${-a/2}, ${-o/2})`),d(e,b),e.intersect=function(t){s.Rm.info("Pill intersect",e,{points:y});return H.polygon(e,y,t)},i}async function Ct(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=S(e);e.labelStyle=a;const o=e.assetHeight??48,l=e.assetWidth??48,u=Math.max(o,l),p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:f,bbox:g,label:y}=await h(t,e,"icon-shape default"),m="t"===e.pos,x=u,b=u,{nodeBorder:k}=r,{stylesMap:C}=_(e),w=-b/2,v=-x/2,A=e.label?8:0,M=c.A.svg(f),B=T(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const L=M.rectangle(w,v,b,x,B),F=Math.max(b,g.width),$=x+g.height+A,E=M.rectangle(-F/2,-$/2,F,$,{...B,fill:"transparent",stroke:"none"}),D=f.insert((()=>L),":first-child"),O=f.insert((()=>E));if(e.icon){const t=f.append("g");t.html(`<g>${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${m?g.height/2+A/2-a/2-s:-g.height/2-A/2-a/2-s})`),t.attr("style",`color: ${C.get("stroke")??k};`)}return y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${m?-$/2:$/2-g.height})`),D.attr("transform",`translate(0,${m?g.height/2+A/2:-g.height/2-A/2})`),d(e,O),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return H.rect(e,t);const r=e.x??0,n=e.y??0,i=e.height??0;let a=[];a=m?[{x:r-g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2+g.height+A},{x:r+b/2,y:n-i/2+g.height+A},{x:r+b/2,y:n+i/2},{x:r-b/2,y:n+i/2},{x:r-b/2,y:n-i/2+g.height+A},{x:r-g.width/2,y:n-i/2+g.height+A}]:[{x:r-b/2,y:n-i/2},{x:r+b/2,y:n-i/2},{x:r+b/2,y:n-i/2+x},{x:r+g.width/2,y:n-i/2+x},{x:r+g.width/2/2,y:n+i/2},{x:r-g.width/2,y:n+i/2},{x:r-g.width/2,y:n-i/2+x},{x:r-b/2,y:n-i/2+x}];return H.polygon(e,a,t)},f}async function wt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=S(e);e.labelStyle=a;const o=e.assetHeight??48,l=e.assetWidth??48,u=Math.max(o,l),p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:f,bbox:g,label:y}=await h(t,e,"icon-shape default"),m=e.label?8:0,x="t"===e.pos,{nodeBorder:b,mainBkg:k}=r,{stylesMap:C}=_(e),w=c.A.svg(f),v=T(e,{});"handDrawn"!==e.look&&(v.roughness=0,v.fillStyle="solid");const A=C.get("fill");v.stroke=A??k;const M=f.append("g");e.icon&&M.html(`<g>${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const B=M.node().getBBox(),L=B.width,F=B.height,$=B.x,E=B.y,D=Math.max(L,F)*Math.SQRT2+40,O=w.circle(0,0,D,v),N=Math.max(D,g.width),I=D+g.height+m,R=w.rectangle(-N/2,-I/2,N,I,{...v,fill:"transparent",stroke:"none"}),z=f.insert((()=>O),":first-child"),P=f.insert((()=>R));return M.attr("transform",`translate(${-L/2-$},${x?g.height/2+m/2-F/2-E:-g.height/2-m/2-F/2-E})`),M.attr("style",`color: ${C.get("stroke")??b};`),y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-I/2:I/2-g.height})`),z.attr("transform",`translate(0,${x?g.height/2+m/2:-g.height/2-m/2})`),d(e,P),e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);return H.rect(e,t)},f}async function _t(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=S(e);e.labelStyle=a;const o=e.assetHeight??48,l=e.assetWidth??48,u=Math.max(o,l),p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:f,bbox:g,halfPadding:y,label:m}=await h(t,e,"icon-shape default"),x="t"===e.pos,b=u+2*y,k=u+2*y,{nodeBorder:w,mainBkg:v}=r,{stylesMap:A}=_(e),M=-k/2,B=-b/2,L=e.label?8:0,F=c.A.svg(f),$=T(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");const E=A.get("fill");$.stroke=E??v;const D=F.path(C(M,B,k,b,5),$),O=Math.max(k,g.width),N=b+g.height+L,I=F.rectangle(-O/2,-N/2,O,N,{...$,fill:"transparent",stroke:"none"}),R=f.insert((()=>D),":first-child").attr("class","icon-shape2"),z=f.insert((()=>I));if(e.icon){const t=f.append("g");t.html(`<g>${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${x?g.height/2+L/2-a/2-s:-g.height/2-L/2-a/2-s})`),t.attr("style",`color: ${A.get("stroke")??w};`)}return m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-N/2:N/2-g.height})`),R.attr("transform",`translate(0,${x?g.height/2+L/2:-g.height/2-L/2})`),d(e,z),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return H.rect(e,t);const r=e.x??0,n=e.y??0,i=e.height??0;let a=[];a=x?[{x:r-g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2+g.height+L},{x:r+k/2,y:n-i/2+g.height+L},{x:r+k/2,y:n+i/2},{x:r-k/2,y:n+i/2},{x:r-k/2,y:n-i/2+g.height+L},{x:r-g.width/2,y:n-i/2+g.height+L}]:[{x:r-k/2,y:n-i/2},{x:r+k/2,y:n-i/2},{x:r+k/2,y:n-i/2+b},{x:r+g.width/2,y:n-i/2+b},{x:r+g.width/2/2,y:n+i/2},{x:r-g.width/2,y:n+i/2},{x:r-g.width/2,y:n-i/2+b},{x:r-k/2,y:n-i/2+b}];return H.polygon(e,a,t)},f}async function vt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=S(e);e.labelStyle=a;const o=e.assetHeight??48,l=e.assetWidth??48,u=Math.max(o,l),p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:f,bbox:g,halfPadding:y,label:m}=await h(t,e,"icon-shape default"),x="t"===e.pos,b=u+2*y,k=u+2*y,{nodeBorder:w,mainBkg:v}=r,{stylesMap:A}=_(e),M=-k/2,B=-b/2,L=e.label?8:0,F=c.A.svg(f),$=T(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");const E=A.get("fill");$.stroke=E??v;const D=F.path(C(M,B,k,b,.1),$),O=Math.max(k,g.width),N=b+g.height+L,I=F.rectangle(-O/2,-N/2,O,N,{...$,fill:"transparent",stroke:"none"}),R=f.insert((()=>D),":first-child"),z=f.insert((()=>I));if(e.icon){const t=f.append("g");t.html(`<g>${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,s=r.y;t.attr("transform",`translate(${-i/2-o},${x?g.height/2+L/2-a/2-s:-g.height/2-L/2-a/2-s})`),t.attr("style",`color: ${A.get("stroke")??w};`)}return m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-N/2:N/2-g.height})`),R.attr("transform",`translate(0,${x?g.height/2+L/2:-g.height/2-L/2})`),d(e,z),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return H.rect(e,t);const r=e.x??0,n=e.y??0,i=e.height??0;let a=[];a=x?[{x:r-g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2},{x:r+g.width/2,y:n-i/2+g.height+L},{x:r+k/2,y:n-i/2+g.height+L},{x:r+k/2,y:n+i/2},{x:r-k/2,y:n+i/2},{x:r-k/2,y:n-i/2+g.height+L},{x:r-g.width/2,y:n-i/2+g.height+L}]:[{x:r-k/2,y:n-i/2},{x:r+k/2,y:n-i/2},{x:r+k/2,y:n-i/2+b},{x:r+g.width/2,y:n-i/2+b},{x:r+g.width/2/2,y:n+i/2},{x:r-g.width/2,y:n+i/2},{x:r-g.width/2,y:n-i/2+b},{x:r-k/2,y:n-i/2+b}];return H.polygon(e,a,t)},f}async function St(t,e,{config:{flowchart:r}}){const n=new Image;n.src=e?.img??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;const{labelStyles:o}=S(e);e.labelStyle=o;const l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const u=Math.max(e.label?l??0:0,e?.assetWidth??i),p="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:u,f="on"===e.constraint?p/e.imageAspectRatio:e?.assetHeight??a;e.width=Math.max(p,l??0);const{shapeSvg:g,bbox:y,label:m}=await h(t,e,"image-shape default"),x="t"===e.pos,b=-p/2,k=-f/2,C=e.label?8:0,w=c.A.svg(g),_=T(e,{});"handDrawn"!==e.look&&(_.roughness=0,_.fillStyle="solid");const v=w.rectangle(b,k,p,f,_),A=Math.max(p,y.width),M=f+y.height+C,B=w.rectangle(-A/2,-M/2,A,M,{..._,fill:"none",stroke:"none"}),L=g.insert((()=>v),":first-child"),F=g.insert((()=>B));if(e.img){const t=g.append("image");t.attr("href",e.img),t.attr("width",p),t.attr("height",f),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-p/2},${x?M/2-f:-M/2})`)}return m.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-f/2-y.height/2-C/2:f/2-y.height/2+C/2})`),L.attr("transform",`translate(0,${x?y.height/2+C/2:-y.height/2-C/2})`),d(e,F),e.intersect=function(t){if(s.Rm.info("iconSquare intersect",e,t),!e.label)return H.rect(e,t);const r=e.x??0,n=e.y??0,i=e.height??0;let a=[];a=x?[{x:r-y.width/2,y:n-i/2},{x:r+y.width/2,y:n-i/2},{x:r+y.width/2,y:n-i/2+y.height+C},{x:r+p/2,y:n-i/2+y.height+C},{x:r+p/2,y:n+i/2},{x:r-p/2,y:n+i/2},{x:r-p/2,y:n-i/2+y.height+C},{x:r-y.width/2,y:n-i/2+y.height+C}]:[{x:r-p/2,y:n-i/2},{x:r+p/2,y:n-i/2},{x:r+p/2,y:n-i/2+f},{x:r+y.width/2,y:n-i/2+f},{x:r+y.width/2/2,y:n+i/2},{x:r-y.width/2,y:n+i/2},{x:r-y.width/2,y:n-i/2+f},{x:r-p/2,y:n-i/2+f}];return H.polygon(e,a,t)},g}async function Tt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+2*(e.padding??0),e?.width??0),s=Math.max(a.height+2*(e.padding??0),e?.height??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let u;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=f(l),a=t.path(n,r);u=i.insert((()=>a),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),g&&u.attr("style",g)}else u=V(i,o,s,l);return n&&u.attr("style",n),e.width=o,e.height=s,d(e,u),e.intersect=function(t){return H.polygon(e,l,t)},i}async function At(t,e,r){const{labelStyles:n,nodeStyles:i}=S(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await h(t,e,p(e)),l=Math.max(s.width+2*r.labelPaddingX,e?.width||0),u=Math.max(s.height+2*r.labelPaddingY,e?.height||0),f=-l/2,g=-u/2;let y,{rx:m,ry:x}=e;const{cssStyles:b}=e;if(r?.rx&&r.ry&&(m=r.rx,x=r.ry),"handDrawn"===e.look){const t=c.A.svg(a),r=T(e,{}),n=m||x?t.path(C(f,g,l,u,m||0),r):t.rectangle(f,g,l,u,r);y=a.insert((()=>n),":first-child"),y.attr("class","basic label-container").attr("style",(0,o.KL)(b))}else y=a.insert("rect",":first-child"),y.attr("class","basic label-container").attr("style",i).attr("rx",(0,o.KL)(m)).attr("ry",(0,o.KL)(x)).attr("x",f).attr("y",g).attr("width",l).attr("height",u);return d(e,y),e.intersect=function(t){return H.rect(e,t)},a}async function Mt(t,e){const{shapeSvg:r,bbox:n,label:i}=await h(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-n.height/2-(n.y-(n.top??0))})`),d(e,a),e.intersect=function(t){return H.rect(e,t)},r}async function Bt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+(e.padding??0),e?.width??0),s=Math.max(a.height+(e.padding??0),e?.height??0),l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-3*s/6,y:-s}];let u;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=f(l),a=t.path(n,r);u=i.insert((()=>a),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),g&&u.attr("style",g)}else u=V(i,o,s,l);return n&&u.attr("style",n),e.width=o,e.height=s,d(e,u),e.intersect=function(t){return H.polygon(e,l,t)},i}async function Lt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+(e.padding??0),e?.width??0),s=Math.max(a.height+(e.padding??0),e?.height??0),l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let u;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=f(l),a=t.path(n,r);u=i.insert((()=>a),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),g&&u.attr("style",g)}else u=V(i,o,s,l);return n&&u.attr("style",n),e.width=o,e.height=s,d(e,u),e.intersect=function(t){return H.polygon(e,l,t)},i}function Ft(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,o=Math.max(35,e?.width??0),l=Math.max(35,e?.height??0),h=[{x:o,y:0},{x:0,y:l+3.5},{x:o-14,y:l+3.5},{x:0,y:2*l},{x:o,y:l-3.5},{x:14,y:l-3.5}],u=c.A.svg(i),g=T(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=f(h),m=u.path(y,g),x=i.insert((()=>m),":first-child");return a&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",a),n&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(-${o/2},${-l})`),d(e,x),e.intersect=function(t){s.Rm.info("lightningBolt intersect",e,t);return H.polygon(e,h,t)},i}(0,s.K2)(bt,"hexagon"),(0,s.K2)(kt,"hourglass"),(0,s.K2)(Ct,"icon"),(0,s.K2)(wt,"iconCircle"),(0,s.K2)(_t,"iconRounded"),(0,s.K2)(vt,"iconSquare"),(0,s.K2)(St,"imageSquare"),(0,s.K2)(Tt,"inv_trapezoid"),(0,s.K2)(At,"drawRect"),(0,s.K2)(Mt,"labelRect"),(0,s.K2)(Bt,"lean_left"),(0,s.K2)(Lt,"lean_right"),(0,s.K2)(Ft,"lightningBolt");var $t=(0,s.K2)(((t,e,r,n,i,a,o)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,"l0,"+-n,`M${t},${e+a+o}`,`a${i},${a} 0,0,0 ${r},0`].join(" ")),"createCylinderPathD"),Et=(0,s.K2)(((t,e,r,n,i,a,o)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,"l0,"+-n,`M${t},${e+a+o}`,`a${i},${a} 0,0,0 ${r},0`].join(" ")),"createOuterCylinderPathD"),Dt=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function Ot(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await h(t,e,p(e)),l=Math.max(a.width+(e.padding??0),e.width??0),u=l/2,f=u/(2.5+l/50),g=Math.max(a.height+f+(e.padding??0),e.height??0),y=.1*g;let m;const{cssStyles:x}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=Et(0,0,l,g,u,f,y),n=Dt(0,f,l,g,u,f),a=T(e,{}),o=t.path(r,a),s=t.path(n,a);i.insert((()=>s),":first-child").attr("class","line"),m=i.insert((()=>o),":first-child"),m.attr("class","basic label-container"),x&&m.attr("style",x)}else{const t=$t(0,0,l,g,u,f,y);m=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",n)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-l/2}, ${-(g/2+f)})`),d(e,m),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-a.height/2+f-(a.y-(a.top??0))})`),e.intersect=function(t){const r=H.rect(e,t),n=r.x-(e.x??0);if(0!=u&&(Math.abs(n)<(e.width??0)/2||Math.abs(n)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-f)){let i=f*f*(1-n*n/(u*u));i>0&&(i=Math.sqrt(i)),i=f-i,t.y-(e.y??0)>0&&(i=-i),r.y+=i}return r},i}async function Nt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=l/4,f=l+u,{cssStyles:y}=e,m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:-s/2-s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:f/2},...g(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,u,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2},{x:-s/2,y:-f/2},{x:-s/2,y:f/2*1.1},{x:-s/2,y:-f/2}],k=m.polygon(b.map((t=>[t.x,t.y])),x),C=i.insert((()=>k),":first-child");return C.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",y),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return H.polygon(e,b,t)},i}async function It(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=-s/2,g=-l/2,{cssStyles:y}=e,m=c.A.svg(i),x=T(e,{}),b=[{x:u-5,y:g+5},{x:u-5,y:g+l+5},{x:u+s-5,y:g+l+5},{x:u+s-5,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g+l-5},{x:u+s+5,y:g+l-5},{x:u+s+5,y:g-5},{x:u+5,y:g-5},{x:u+5,y:g},{x:u,y:g},{x:u,y:g+5}],k=[{x:u,y:g+5},{x:u+s-5,y:g+5},{x:u+s-5,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g},{x:u,y:g}];"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const C=f(b),w=m.path(C,x),_=f(k),v=m.path(_,{...x,fill:"none"}),A=i.insert((()=>v),":first-child");return A.insert((()=>w),":first-child"),A.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",y),n&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",n),o.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-(a.y-(a.top??0))})`),d(e,A),e.intersect=function(t){return H.polygon(e,b,t)},i}async function Rt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=l/4,y=l+u,m=-s/2,x=-y/2,{cssStyles:b}=e,k=g(m-5,x+y+5,m+s-5,x+y+5,u,.8),C=k?.[k.length-1],w=[{x:m-5,y:x+5},{x:m-5,y:x+y+5},...k,{x:m+s-5,y:C.y-5},{x:m+s,y:C.y-5},{x:m+s,y:C.y-10},{x:m+s+5,y:C.y-10},{x:m+s+5,y:x-5},{x:m+5,y:x-5},{x:m+5,y:x},{x:m,y:x},{x:m,y:x+5}],_=[{x:m,y:x+5},{x:m+s-5,y:x+5},{x:m+s-5,y:C.y-5},{x:m+s,y:C.y-5},{x:m+s,y:x},{x:m,y:x}],v=c.A.svg(i),A=T(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");const M=f(w),B=v.path(M,A),L=f(_),F=v.path(L,A),$=i.insert((()=>B),":first-child");return $.insert((()=>F)),$.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",b),n&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",n),$.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-a.width/2-5-(a.x-(a.left??0))}, ${-a.height/2+5-u/2-(a.y-(a.top??0))})`),d(e,$),e.intersect=function(t){return H.polygon(e,w,t)},i}async function zt(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=S(e);e.labelStyle=n;e.useHtmlLabels||!1!==(0,s.zj)().flowchart?.htmlLabels||(e.centerLabel=!0);const{shapeSvg:a,bbox:o}=await h(t,e,p(e)),l=Math.max(o.width+2*(e.padding??0),e?.width??0),u=Math.max(o.height+2*(e.padding??0),e?.height??0),f=-l/2,g=-u/2,{cssStyles:y}=e,m=c.A.svg(a),x=T(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=m.rectangle(f,g,l,u,x),k=a.insert((()=>b),":first-child");return k.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),d(e,k),e.intersect=function(t){return H.rect(e,t)},a}(0,s.K2)(Ot,"linedCylinder"),(0,s.K2)(Nt,"linedWaveEdgedRect"),(0,s.K2)(It,"multiRect"),(0,s.K2)(Rt,"multiWaveEdgedRectangle"),(0,s.K2)(zt,"note");var Pt=(0,s.K2)(((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function jt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=a.width+e.padding+(a.height+e.padding),l=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}];let u;const{cssStyles:f}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=Pt(0,0,o),a=t.path(n,r);u=i.insert((()=>a),":first-child").attr("transform",`translate(${-o/2}, ${o/2})`),f&&u.attr("style",f)}else u=V(i,o,o,l);return n&&u.attr("style",n),d(e,u),e.intersect=function(t){return s.Rm.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",H.polygon(e,l,t)),H.polygon(e,l,t)},i}async function Kt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=-Math.max(a.width+(e.padding??0),e?.width??0)/2,l=-Math.max(a.height+(e.padding??0),e?.height??0)/2,u=l/2,g=[{x:s+u,y:l},{x:s,y:0},{x:s+u,y:-l},{x:-s,y:-l},{x:-s,y:l}],{cssStyles:y}=e,m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=f(g),k=m.path(b,x),C=i.insert((()=>k),":first-child");return C.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",y),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),C.attr("transform",`translate(${-u/2},0)`),o.attr("transform",`translate(${-u/2-a.width/2-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return H.polygon(e,g,t)},i}async function qt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);let i;e.labelStyle=r,i=e.cssClasses?"node "+e.cssClasses:"node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g"),h=a.insert("g").attr("class","label").attr("style",n),u=e.description,p=e.label,f=h.node().appendChild(await k(p,e.labelStyle,!0,!0));let g={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=f.children[0],e=(0,l.Ltv)(f);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}s.Rm.info("Text 2",u);const y=u||[],m=f.getBBox(),x=h.node().appendChild(await k(y.join?y.join("<br/>"):y,e.labelStyle,!0,!0)),b=x.children[0],w=(0,l.Ltv)(x);g=b.getBoundingClientRect(),w.attr("width",g.width),w.attr("height",g.height);const _=(e.padding||0)/2;(0,l.Ltv)(x).attr("transform","translate( "+(g.width>m.width?0:(m.width-g.width)/2)+", "+(m.height+_+5)+")"),(0,l.Ltv)(f).attr("transform","translate( "+(g.width<m.width?0:-(m.width-g.width)/2)+", 0)"),g=h.node().getBBox(),h.attr("transform","translate("+-g.width/2+", "+(-g.height/2-_+3)+")");const v=g.width+(e.padding||0),A=g.height+(e.padding||0),M=-g.width/2-_,B=-g.height/2-_;let L,F;if("handDrawn"===e.look){const t=c.A.svg(a),r=T(e,{}),n=t.path(C(M,B,v,A,e.rx||0),r),i=t.line(-g.width/2-_,-g.height/2-_+m.height+_,g.width/2+_,-g.height/2-_+m.height+_,r);F=a.insert((()=>(s.Rm.debug("Rough node insert CXC",n),i)),":first-child"),L=a.insert((()=>(s.Rm.debug("Rough node insert CXC",n),n)),":first-child")}else L=o.insert("rect",":first-child"),F=o.insert("line"),L.attr("class","outer title-state").attr("style",n).attr("x",-g.width/2-_).attr("y",-g.height/2-_).attr("width",g.width+(e.padding||0)).attr("height",g.height+(e.padding||0)),F.attr("class","divider").attr("x1",-g.width/2-_).attr("x2",g.width/2+_).attr("y1",-g.height/2-_+m.height+_).attr("y2",-g.height/2-_+m.height+_);return d(e,L),e.intersect=function(t){return H.rect(e,t)},a}async function Wt(t,e){return At(t,e,{rx:5,ry:5,classes:"",labelPaddingX:1*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function Ht(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await h(t,e,p(e)),l=e?.padding??0,u=Math.max(a.width+2*(e.padding??0),e?.width??0),f=Math.max(a.height+2*(e.padding??0),e?.height??0),g=-a.width/2-l,y=-a.height/2-l,{cssStyles:m}=e,x=c.A.svg(i),b=T(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const k=[{x:g,y:y},{x:g+u+8,y:y},{x:g+u+8,y:y+f},{x:g-8,y:y+f},{x:g-8,y:y},{x:g,y:y},{x:g,y:y+f}],C=x.polygon(k.map((t=>[t.x,t.y])),b),w=i.insert((()=>C),":first-child");return w.attr("class","basic label-container").attr("style",(0,o.KL)(m)),n&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",n),m&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",n),s.attr("transform",`translate(${-u/2+4+(e.padding??0)-(a.x-(a.left??0))},${-f/2+(e.padding??0)-(a.y-(a.top??0))})`),d(e,w),e.intersect=function(t){return H.rect(e,t)},i}async function Ut(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=-s/2,g=-l/2,{cssStyles:y}=e,m=c.A.svg(i),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=[{x:u,y:g},{x:u,y:g+l},{x:u+s,y:g+l},{x:u+s,y:g-l/2}],k=f(b),C=m.path(k,x),w=i.insert((()=>C),":first-child");return w.attr("class","basic label-container"),y&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",y),n&&"handDrawn"!==e.look&&w.selectChildren("path").attr("style",n),w.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))}, ${-l/4+(e.padding??0)-(a.y-(a.top??0))})`),d(e,w),e.intersect=function(t){return H.polygon(e,b,t)},i}async function Yt(t,e){return At(t,e,{rx:0,ry:0,classes:"",labelPaddingX:2*(e?.padding||0),labelPaddingY:1*(e?.padding||0)})}async function Gt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),s=a.height+e.padding,l=a.width+s/4+e.padding;let u;const{cssStyles:f}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=C(-l/2,-s/2,l,s,s/2),a=t.path(n,r);u=i.insert((()=>a),":first-child"),u.attr("class","basic label-container").attr("style",(0,o.KL)(f))}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s);return d(e,u),e.intersect=function(t){return H.rect(e,t)},i}async function Vt(t,e){return At(t,e,{rx:5,ry:5,classes:"flowchart-node"})}function Zt(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=S(e);e.labelStyle=n;const{cssStyles:a}=e,{lineColor:o,stateBorder:s,nodeBorder:l}=r,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=c.A.svg(h),p=T(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const f=u.circle(0,0,14,{...p,stroke:o,strokeWidth:2}),g=s??l,y=u.circle(0,0,5,{...p,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),m=h.insert((()=>f),":first-child");return m.insert((()=>y)),a&&m.selectAll("path").attr("style",a),i&&m.selectAll("path").attr("style",i),d(e,m),e.intersect=function(t){return H.circle(e,7,t)},h}function Xt(t,e,{config:{themeVariables:r}}){const{lineColor:n}=r,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a;if("handDrawn"===e.look){const t=c.A.svg(i).circle(0,0,14,w(n));a=i.insert((()=>t)),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=i.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return d(e,a),e.intersect=function(t){return H.circle(e,7,t)},i}async function Qt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),s=(e?.padding||0)/2,l=a.width+e.padding,u=a.height+e.padding,f=-a.width/2-s,g=-a.height/2-s,y=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=t.rectangle(f-8,g,l+16,u,r),a=t.line(f,g,f,g+u,r),s=t.line(f+l,g,f+l,g+u,r);i.insert((()=>a),":first-child"),i.insert((()=>s),":first-child");const h=i.insert((()=>n),":first-child"),{cssStyles:p}=e;h.attr("class","basic label-container").attr("style",(0,o.KL)(p)),d(e,h)}else{const t=V(i,l,u,y);n&&t.attr("style",n),d(e,t)}return e.intersect=function(t){return H.polygon(e,y,t)},i}async function Jt(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+2*(e.padding??0),e?.width??0),s=Math.max(a.height+2*(e.padding??0),e?.height??0),l=-o/2,u=-s/2,g=.2*s,y=.2*s,{cssStyles:m}=e,x=c.A.svg(i),b=T(e,{}),k=[{x:l-g/2,y:u},{x:l+o+g/2,y:u},{x:l+o+g/2,y:u+s},{x:l-g/2,y:u+s}],C=[{x:l+o-g/2,y:u+s},{x:l+o+g/2,y:u+s},{x:l+o+g/2,y:u+s-y}];"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const w=f(k),_=x.path(w,b),v=f(C),A=x.path(v,{...b,fillStyle:"solid"}),M=i.insert((()=>A),":first-child");return M.insert((()=>_),":first-child"),M.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",m),n&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",n),d(e,M),e.intersect=function(t){return H.polygon(e,k,t)},i}async function te(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=l/4,y=.2*s,m=.2*l,x=l+u,{cssStyles:b}=e,k=c.A.svg(i),C=T(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const w=[{x:-s/2-s/2*.1,y:x/2},...g(-s/2-s/2*.1,x/2,s/2+s/2*.1,x/2,u,.8),{x:s/2+s/2*.1,y:-x/2},{x:-s/2-s/2*.1,y:-x/2}],_=-s/2+s/2*.1,v=-x/2-.4*m,A=[{x:_+s-y,y:1.4*(v+l)},{x:_+s,y:v+l-m},{x:_+s,y:.9*(v+l)},...g(_+s,1.3*(v+l),_+s-y,1.5*(v+l),.03*-l,.5)],M=f(w),B=k.path(M,C),L=f(A),F=k.path(L,{...C,fillStyle:"solid"}),$=i.insert((()=>F),":first-child");return $.insert((()=>B),":first-child"),$.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",b),n&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",n),$.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u/2-(a.y-(a.top??0))})`),d(e,$),e.intersect=function(t){return H.polygon(e,w,t)},i}async function ee(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+e.padding,e?.width||0),s=Math.max(a.height+e.padding,e?.height||0),l=-o/2,c=-s/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",s),d(e,u),e.intersect=function(t){return H.rect(e,t)},i}(0,s.K2)(jt,"question"),(0,s.K2)(Kt,"rect_left_inv_arrow"),(0,s.K2)(qt,"rectWithTitle"),(0,s.K2)(Wt,"roundedRect"),(0,s.K2)(Ht,"shadedProcess"),(0,s.K2)(Ut,"slopedRect"),(0,s.K2)(Yt,"squareRect"),(0,s.K2)(Gt,"stadium"),(0,s.K2)(Vt,"state"),(0,s.K2)(Zt,"stateEnd"),(0,s.K2)(Xt,"stateStart"),(0,s.K2)(Qt,"subroutine"),(0,s.K2)(Jt,"taggedRect"),(0,s.K2)(te,"taggedWaveEdgedRectangle"),(0,s.K2)(ee,"text");var re=(0,s.K2)(((t,e,r,n,i,a)=>`M${t},${e}\n a${i},${a} 0,0,1 0,${-n}\n l${r},0\n a${i},${a} 0,0,1 0,${n}\n M${r},${-n}\n a${i},${a} 0,0,0 0,${n}\n l${-r},0`),"createCylinderPathD"),ne=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" ")),"createOuterCylinderPathD"),ie=(0,s.K2)(((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" ")),"createInnerCylinderPathD");async function ae(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s,halfPadding:l}=await h(t,e,p(e)),u="neo"===e.look?2*l:l,f=a.height+u,g=f/2,y=g/(2.5+f/50),m=a.width+y+u,{cssStyles:x}=e;let b;if("handDrawn"===e.look){const t=c.A.svg(i),r=ne(0,0,m,f,y,g),n=ie(0,0,m,f,y,g),a=t.path(r,T(e,{})),o=t.path(n,T(e,{fill:"none"}));b=i.insert((()=>o),":first-child"),b=i.insert((()=>a),":first-child"),b.attr("class","basic label-container"),x&&b.attr("style",x)}else{const t=re(0,0,m,f,y,g);b=i.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",n),b.attr("class","basic label-container"),x&&b.selectAll("path").attr("style",x),n&&b.selectAll("path").attr("style",n)}return b.attr("label-offset-x",y),b.attr("transform",`translate(${-m/2}, ${f/2} )`),s.attr("transform",`translate(${-a.width/2-y-(a.x-(a.left??0))}, ${-a.height/2-(a.y-(a.top??0))})`),d(e,b),e.intersect=function(t){const r=H.rect(e,t),n=r.y-(e.y??0);if(0!=g&&(Math.abs(n)<(e.height??0)/2||Math.abs(n)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-y)){let i=y*y*(1-n*n/(g*g));0!=i&&(i=Math.sqrt(Math.abs(i))),i=y-i,t.x-(e.x??0)>0&&(i=-i),r.x+=i}return r},i}async function oe(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=a.width+e.padding,s=a.height+e.padding,l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let u;const{cssStyles:g}=e;if("handDrawn"===e.look){const t=c.A.svg(i),r=T(e,{}),n=f(l),a=t.path(n,r);u=i.insert((()=>a),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),g&&u.attr("style",g)}else u=V(i,o,s,l);return n&&u.attr("style",n),e.width=o,e.height=s,d(e,u),e.intersect=function(t){return H.polygon(e,l,t)},i}async function se(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(60,a.width+2*(e.padding??0),e?.width??0),s=Math.max(20,a.height+2*(e.padding??0),e?.height??0),{cssStyles:l}=e,u=c.A.svg(i),g=T(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-o/2*.8,y:-s/2},{x:o/2*.8,y:-s/2},{x:o/2,y:-s/2*.6},{x:o/2,y:s/2},{x:-o/2,y:s/2},{x:-o/2,y:-s/2*.6}],m=f(y),x=u.path(m,g),b=i.insert((()=>x),":first-child");return b.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",l),n&&"handDrawn"!==e.look&&b.selectChildren("path").attr("style",n),d(e,b),e.intersect=function(t){return H.polygon(e,y,t)},i}async function le(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),l=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),u=a.width+(e.padding??0),g=u+a.height,y=u+a.height,m=[{x:0,y:0},{x:y,y:0},{x:y/2,y:-g}],{cssStyles:x}=e,b=c.A.svg(i),k=T(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const C=f(m),w=b.path(C,k),_=i.insert((()=>w),":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);return x&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",x),n&&"handDrawn"!==e.look&&_.selectChildren("path").attr("style",n),e.width=u,e.height=g,d(e,_),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${g/2-(a.height+(e.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(t){return s.Rm.info("Triangle intersect",e,m,t),H.polygon(e,m,t)},i}async function ce(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=l/8,y=l+u,{cssStyles:m}=e,x=70-s,b=x>0?x/2:0,k=c.A.svg(i),C=T(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const w=[{x:-s/2-b,y:y/2},...g(-s/2-b,y/2,s/2+b,y/2,u,.8),{x:s/2+b,y:-y/2},{x:-s/2-b,y:-y/2}],_=f(w),v=k.path(_,C),A=i.insert((()=>v),":first-child");return A.attr("class","basic label-container"),m&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",m),n&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(0,${-u/2})`),o.attr("transform",`translate(${-s/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-u-(a.y-(a.top??0))})`),d(e,A),e.intersect=function(t){return H.polygon(e,w,t)},i}async function he(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await h(t,e,p(e)),o=Math.max(a.width+2*(e.padding??0),e?.width??0),s=Math.max(a.height+2*(e.padding??0),e?.height??0),l=o/s;let u=o,y=s;u>y*l?y=u/l:u=y*l,u=Math.max(u,100),y=Math.max(y,50);const m=Math.min(.2*y,y/4),x=y+2*m,{cssStyles:b}=e,k=c.A.svg(i),C=T(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");const w=[{x:-u/2,y:x/2},...g(-u/2,x/2,u/2,x/2,m,1),{x:u/2,y:-x/2},...g(u/2,-x/2,-u/2,-x/2,m,-1)],_=f(w),v=k.path(_,C),A=i.insert((()=>v),":first-child");return A.attr("class","basic label-container"),b&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",b),n&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",n),d(e,A),e.intersect=function(t){return H.polygon(e,w,t)},i}async function ue(t,e){const{labelStyles:r,nodeStyles:n}=S(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:o}=await h(t,e,p(e)),s=Math.max(a.width+2*(e.padding??0),e?.width??0),l=Math.max(a.height+2*(e.padding??0),e?.height??0),u=-s/2,f=-l/2,{cssStyles:g}=e,y=c.A.svg(i),m=T(e,{}),x=[{x:u-5,y:f-5},{x:u-5,y:f+l},{x:u+s,y:f+l},{x:u+s,y:f-5}],b=`M${u-5},${f-5} L${u+s},${f-5} L${u+s},${f+l} L${u-5},${f+l} L${u-5},${f-5}\n M${u-5},${f} L${u+s},${f}\n M${u},${f-5} L${u},${f+l}`;"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const k=y.path(b,m),C=i.insert((()=>k),":first-child");return C.attr("transform","translate(2.5, 2.5)"),C.attr("class","basic label-container"),g&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",g),n&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",n),o.attr("transform",`translate(${-a.width/2+2.5-(a.x-(a.left??0))}, ${-a.height/2+2.5-(a.y-(a.top??0))})`),d(e,C),e.intersect=function(t){return H.polygon(e,x,t)},i}async function de(t,e,r,n,i=r.class.padding??12){const a=n?0:3,o=t.insert("g").attr("class",p(e)).attr("id",e.domId||e.id);let s=null,l=null,c=null,h=null,u=0,d=0,f=0;if(s=o.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await pe(s,{text:`\xab${t}\xbb`},0);u=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await pe(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();d=g.height,c=o.insert("g").attr("class","members-group text");let y=0;for(const p of e.members){y+=await pe(c,p,y,[p.parseClassifier()])+a}f=c.node().getBBox().height,f<=0&&(f=i/2),h=o.insert("g").attr("class","methods-group text");let m=0;for(const p of e.methods){m+=await pe(h,p,m,[p.parseClassifier()])+a}let x=o.node().getBBox();if(null!==s){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),x=o.node().getBBox(),c.attr("transform",`translate(0, ${u+d+2*i})`),x=o.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+4*i:2*i)})`),x=o.node().getBBox(),{shapeSvg:o,bbox:x}}async function pe(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),c=(0,s.zj)();let h="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(c.htmlLabels)??!0,u="";u="text"in e?e.text:e.label,!h&&u.startsWith("\\")&&(u=u.substring(1)),(0,s.Wi)(u)&&(h=!0);const d=await(0,a.GZ)(i,(0,s.oB)((0,o.Sm)(u)),{width:(0,o.Un)(u,c)+50,classes:"markdown-node-label",useHtmlLabels:h},c);let p,f=1;if(h){const t=d.children[0],e=(0,l.Ltv)(d);f=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(f+=t.innerHTML.split("<mrow>").length-1);const r=t.getElementsByTagName("img");if(r){const t=""===u.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,r=5,n=parseInt(t,10)*r+"px";e.style.minWidth=n,e.style.maxWidth=n}else e.style.width="100%";r(e)}(0,s.K2)(n,"setupImage"),setTimeout((()=>{e.complete&&n()})),e.addEventListener("error",n),e.addEventListener("load",n)})))))}p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}else{n.includes("font-weight: bolder")&&(0,l.Ltv)(d).selectAll("tspan").attr("font-weight",""),f=d.children.length;const t=d.children[0];if(""===d.textContent||d.textContent.includes(">")){t.textContent=u[0]+u.substring(1).replaceAll(">",">").replaceAll("<","<").trim();" "===u[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))}"undefined"===t.textContent&&(t.textContent=""),p=d.getBBox()}return i.attr("transform","translate(0,"+(-p.height/(2*f)+r)+")"),p.height}async function fe(t,e){const r=(0,s.D7)(),n=r.class.padding??12,i=n,a=e.useHtmlLabels??(0,s._3)(r.htmlLabels)??!0,o=e;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:h,bbox:u}=await de(t,e,r,a,i),{labelStyles:p,nodeStyles:f}=S(e);e.labelStyle=p,e.cssStyles=o.styles||"";const g=o.styles?.join(";")||f||"";e.cssStyles||(e.cssStyles=g.replaceAll("!important","").split(";"));const y=0===o.members.length&&0===o.methods.length&&!r.class?.hideEmptyMembersBox,m=c.A.svg(h),x=T(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=u.width;let k=u.height;0===o.members.length&&0===o.methods.length?k+=i:o.members.length>0&&0===o.methods.length&&(k+=2*i);const C=-b/2,w=-k/2,_=m.rectangle(C-n,w-n-(y?n:0===o.members.length&&0===o.methods.length?-n/2:0),b+2*n,k+2*n+(y?2*n:0===o.members.length&&0===o.methods.length?-n:0),x),v=h.insert((()=>_),":first-child");v.attr("class","basic label-container");const A=v.node().getBBox();h.selectAll(".text").each(((t,e,r)=>{const i=(0,l.Ltv)(r[e]),s=i.attr("transform");let c=0;if(s){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(s);t&&(c=parseFloat(t[2]))}let u=c+w+n-(y?n:0===o.members.length&&0===o.methods.length?-n/2:0);a||(u-=4);let d=C;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-i.node()?.getBBox().width/2||0,h.selectAll("text").each((function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(d=0)}))),i.attr("transform",`translate(${d}, ${u})`)}));const M=h.select(".annotation-group").node().getBBox().height-(y?n/2:0)||0,B=h.select(".label-group").node().getBBox().height-(y?n/2:0)||0,L=h.select(".members-group").node().getBBox().height-(y?n/2:0)||0;if(o.members.length>0||o.methods.length>0||y){const t=m.line(A.x,M+B+w+n,A.x+A.width,M+B+w+n,x);h.insert((()=>t)).attr("class","divider").attr("style",g)}if(y||o.members.length>0||o.methods.length>0){const t=m.line(A.x,M+B+L+w+2*i+n,A.x+A.width,M+B+L+w+n+2*i,x);h.insert((()=>t)).attr("class","divider").attr("style",g)}if("handDrawn"!==o.look&&h.selectAll("path").attr("style",g),v.select(":nth-child(2)").attr("style",g),h.selectAll(".divider").select("path").attr("style",g),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",g),!a){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(g);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(p){const e=t.exec(p);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return d(e,v),e.intersect=function(t){return H.rect(e,t)},h}(0,s.K2)(ae,"tiltedCylinder"),(0,s.K2)(oe,"trapezoid"),(0,s.K2)(se,"trapezoidalPentagon"),(0,s.K2)(le,"triangle"),(0,s.K2)(ce,"waveEdgedRectangle"),(0,s.K2)(he,"waveRectangle"),(0,s.K2)(ue,"windowPane"),(0,s.K2)(de,"textHelper"),(0,s.K2)(pe,"addText"),(0,s.K2)(fe,"classBox");var ge=(0,s.K2)((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function ye(t,e,{config:r}){const{labelStyles:n,nodeStyles:i}=S(e);e.labelStyle=n||"";const a=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:s,label:l}=await h(t,e,p(e)),f=e.padding||10;let g,y="";"ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl&&(y=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),g=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",y).attr("target","_blank"));const m={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let x,b;({label:x,bbox:b}=g?await u(g,"ticket"in e&&e.ticket||"",m):await u(o,"ticket"in e&&e.ticket||"",m));const{label:k,bbox:w}=await u(o,"assigned"in e&&e.assigned||"",m);e.width=a;const _=e?.width||0,v=Math.max(b.height,w.height)/2,A=Math.max(s.height+20,e?.height||0)+v,M=-_/2,B=-A/2;let L;l.attr("transform","translate("+(f-_/2)+", "+(-v-s.height/2)+")"),x.attr("transform","translate("+(f-_/2)+", "+(-v+s.height/2)+")"),k.attr("transform","translate("+(f+_/2-w.width-20)+", "+(-v+s.height/2)+")");const{rx:F,ry:$}=e,{cssStyles:E}=e;if("handDrawn"===e.look){const t=c.A.svg(o),r=T(e,{}),n=F||$?t.path(C(M,B,_,A,F||0),r):t.rectangle(M,B,_,A,r);L=o.insert((()=>n),":first-child"),L.attr("class","basic label-container").attr("style",E||null)}else{L=o.insert("rect",":first-child"),L.attr("class","basic label-container __APA__").attr("style",i).attr("rx",F??5).attr("ry",$??5).attr("x",M).attr("y",B).attr("width",_).attr("height",A);const t="priority"in e&&e.priority;if(t){const e=o.append("line"),r=M+2,n=B+Math.floor((F??0)/2),i=B+A-Math.floor((F??0)/2);e.attr("x1",r).attr("y1",n).attr("x2",r).attr("y2",i).attr("stroke-width","4").attr("stroke",ge(t))}}return d(e,L),e.height=A,e.intersect=function(t){return H.rect(e,t)},o}(0,s.K2)(ye,"kanbanItem");var me=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Yt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Wt},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Gt},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Qt},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ut},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Q},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:jt},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:bt},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Lt},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Bt},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:oe},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Tt},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:pt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ee},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Z},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Ht},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Xt},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Zt},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:yt},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:kt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:rt},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:it},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ot},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Ft},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ce},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:mt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ae},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Ot},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:st},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:dt},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:le},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ue},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ft},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:se},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:gt},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Ut},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Rt},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:It},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:G},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:tt},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:te},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Jt},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:he},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Kt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Nt}],xe=(0,s.K2)((()=>{const t={state:Vt,choice:X,note:zt,rectWithTitle:qt,labelRect:Mt,iconSquare:vt,iconCircle:wt,icon:Ct,iconRounded:_t,imageSquare:St,anchor:U,kanbanItem:ye,classBox:fe},e=[...Object.entries(t),...me.flatMap((t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map((e=>[e,t.handler]))))];return Object.fromEntries(e)}),"generateShapeMap")();function be(t){return t in xe}(0,s.K2)(be,"isValidShape");var ke=new Map;async function Ce(t,e,r){let n,i;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?xe[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let o;"sandbox"===r.config.securityLevel?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),ke.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}(0,s.K2)(Ce,"insertNode");var we=(0,s.K2)(((t,e)=>{ke.set(e.id,t)}),"setNodeElem"),_e=(0,s.K2)((()=>{ke.clear()}),"clear"),ve=(0,s.K2)((t=>{const e=ke.get(t.id);s.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r}),"positionNode")},7308:(t,e,r)=>{"use strict";r.d(e,{XX:()=>h,q7:()=>u,sO:()=>c});var n=r(7938),i=r(1282),a=r(540),o=r(9),s={common:o.Y2,getConfig:o.zj,insertCluster:i.U,insertEdge:n.Jo,insertEdgeLabel:n.jP,insertMarkers:n.g0,insertNode:i.on,interpolateToCurve:a.Ib,labelHelper:i.Zk,log:o.Rm,positionEdgeLabel:n.T_},l={},c=(0,o.K2)((t=>{for(const e of t)l[e.name]=e}),"registerLayoutLoaders");(0,o.K2)((()=>{c([{name:"dagre",loader:(0,o.K2)((async()=>await Promise.all([r.e(3624),r.e(2334),r.e(4492)]).then(r.bind(r,4492))),"loader")}])}),"registerDefaultLayoutLoaders")();var h=(0,o.K2)((async(t,e)=>{if(!(t.layoutAlgorithm in l))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=l[t.layoutAlgorithm];return(await r.loader()).render(t,e,s,{algorithm:r.algorithm})}),"render"),u=(0,o.K2)(((t="",{fallback:e="dagre"}={})=>{if(t in l)return t;if(e in l)return o.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm")},7286:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var n=r(9),i=r(7),a=(0,n.K2)((t=>{const{securityLevel:e}=(0,n.D7)();let r=(0,i.Ltv)("body");if("sandbox"===e){const e=(0,i.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,i.Ltv)(n.body)}return r.select(`#${t}`)}),"selectSvgElement")},6144:(t,e,r)=>{"use strict";r.d(e,{r:()=>n});var n="11.4.1"},4532:(t,e,r)=>{"use strict";r.d(e,{WY:()=>S,pC:()=>_,Gc:()=>k});var n=r(9);const i=(t,e)=>!!t&&!(!(e&&""===t.prefix||t.prefix)||!t.name),a=Object.freeze({left:0,top:0,width:16,height:16}),o=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),s=Object.freeze({...a,...o}),l=Object.freeze({...s,body:"",hidden:!1});function c(t,e){const r=function(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}(t,e);for(const n in l)n in o?n in t&&!(n in r)&&(r[n]=o[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function h(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let a={};function o(t){a=c(n[t]||i[t],a)}return o(e),r.forEach(o),c(t,a)}function u(t,e){if(t.icons[e])return h(t,e,[]);const r=function(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);return(e||Object.keys(r).concat(Object.keys(n))).forEach((function t(e){if(r[e])return i[e]=[];if(!(e in i)){i[e]=null;const r=n[e]&&n[e].parent,a=r&&t(r);a&&(i[e]=[r].concat(a))}return i[e]})),i}(t,[e])[e];return r?h(t,e,r):null}const d=Object.freeze({width:null,height:null}),p=Object.freeze({...d,...o}),f=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;const n=t.split(f);if(null===n||!n.length)return t;const i=[];let a=n.shift(),o=g.test(a);for(;;){if(o){const t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(a=n.shift(),void 0===a)return i.join("");o=!o}}const m=/\sid="(\S+)"/g,x="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let b=0;var k={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},C=new Map,w=new Map,_=(0,n.K2)((t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(n.Rm.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else{if(!("icons"in e))throw n.Rm.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');C.set(e.name,e.icons)}}}),"registerIconPacks"),v=(0,n.K2)((async(t,e)=>{const r=((t,e,r,n="")=>{const a=t.split(":");if("@"===t.slice(0,1)){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const t=a.pop(),r=a.pop(),o={provider:a.length>0?a[0]:n,prefix:r,name:t};return e&&!i(o)?null:o}const o=a[0],s=o.split("-");if(s.length>1){const t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!i(t)?null:t}if(r&&""===n){const t={provider:n,prefix:"",name:o};return e&&!i(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw new Error(`Invalid icon name: ${t}`);const a=r.prefix||e;if(!a)throw new Error(`Icon name must contain a prefix: ${t}`);let o=C.get(a);if(!o){const t=w.get(a);if(!t)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await t(),prefix:a},C.set(a,o)}catch(l){throw n.Rm.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=u(o,r.name);if(!s)throw new Error(`Icon not found: ${t}`);return s}),"getRegisteredIconData"),S=(0,n.K2)((async(t,e)=>{let r;try{r=await v(t,e?.fallbackPrefix)}catch(a){n.Rm.error(a),r=k}const i=function(t,e){const r={...s,...t},n={...p,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach((t=>{const e=[],r=t.hFlip,n=t.vFlip;let o,s=t.rotate;switch(r?n?s+=2:(e.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),e.push("scale(-1 1)"),i.top=i.left=0):n&&(e.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),e.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:o=i.height/2+i.top,e.unshift("rotate(90 "+o.toString()+" "+o.toString()+")");break;case 2:e.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:o=i.width/2+i.left,e.unshift("rotate(-90 "+o.toString()+" "+o.toString()+")")}s%2==1&&(i.left!==i.top&&(o=i.left,i.left=i.top,i.top=o),i.width!==i.height&&(o=i.width,i.width=i.height,i.height=o)),e.length&&(a=function(t,e,r){const n=function(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),a=t.indexOf("</"+e);if(-1===i||-1===a)break;const o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(t);return i=n.defs,a=e+n.content+r,i?"<defs>"+i+"</defs>"+a:a;var i,a}(a,'<g transform="'+e.join(" ")+'">',"</g>"))}));const o=n.width,l=n.height,c=i.width,h=i.height;let u,d;null===o?(d=null===l?"1em":"auto"===l?h:l,u=y(d,c/h)):(u="auto"===o?c:o,d=null===l?y(u,h/c):"auto"===l?h:l);const f={},g=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(f[t]=e.toString())};g("width",u),g("height",d);const m=[i.left,i.top,c,h];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:a}}(r,e);return function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t,e=x){const r=[];let n;for(;n=m.exec(t);)r.push(n[1]);if(!r.length)return t;const i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((r=>{const n="function"==typeof e?e(r):e+(b++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+n+i+"$3")})),t=t.replace(new RegExp(i,"g"),"")}(i.body),i.attributes)}),"getIconSVG")},9874:(t,e,r)=>{"use strict";r.d(e,{H:()=>Pr,r:()=>zr});var n=r(9);function i(t){return null==t}function a(t){return"object"==typeof t&&null!==t}function o(t){return Array.isArray(t)?t:i(t)?[]:[t]}function s(t,e){var r,n,i,a;if(e)for(r=0,n=(a=Object.keys(e)).length;r<n;r+=1)t[i=a[r]]=e[i];return t}function l(t,e){var r,n="";for(r=0;r<e;r+=1)n+=t;return n}function c(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,n.K2)(i,"isNothing"),(0,n.K2)(a,"isObject"),(0,n.K2)(o,"toArray"),(0,n.K2)(s,"extend"),(0,n.K2)(l,"repeat"),(0,n.K2)(c,"isNegativeZero");var h={isNothing:i,isObject:a,toArray:o,repeat:l,isNegativeZero:c,extend:s};function u(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function d(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=u(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}(0,n.K2)(u,"formatError"),(0,n.K2)(d,"YAMLException$1"),d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=(0,n.K2)((function(t){return this.name+": "+u(this,t)}),"toString");var p=d;function f(t,e,r,n,i){var a="",o="",s=Math.floor(i/2)-1;return n-e>s&&(e=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+a.length}}function g(t,e){return h.repeat(" ",e-t.length)+t}function y(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],a=[],o=-1;r=n.exec(t.buffer);)a.push(r.index),i.push(r.index+r[0].length),t.position<=r.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s,l,c="",u=Math.min(t.line+e.linesAfter,a.length).toString().length,d=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)l=f(t.buffer,i[o-s],a[o-s],t.position-(i[o]-i[o-s]),d),c=h.repeat(" ",e.indent)+g((t.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=f(t.buffer,i[o],a[o],t.position,d),c+=h.repeat(" ",e.indent)+g((t.line+1).toString(),u)+" | "+l.str+"\n",c+=h.repeat("-",e.indent+u+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=a.length);s++)l=f(t.buffer,i[o+s],a[o+s],t.position-(i[o]-i[o+s]),d),c+=h.repeat(" ",e.indent)+g((t.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,n.K2)(f,"getLine"),(0,n.K2)(g,"padStart"),(0,n.K2)(y,"makeSnippet");var m=y,x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],b=["scalar","sequence","mapping"];function k(t){var e={};return null!==t&&Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))})),e}function C(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===x.indexOf(e))throw new p('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=k(e.styleAliases||null),-1===b.indexOf(this.kind))throw new p('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}(0,n.K2)(k,"compileStyleAliases"),(0,n.K2)(C,"Type$1");var w=C;function _(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)})),r[e]=t})),r}function v(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,n.K2)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function S(t){return this.extend(t)}(0,n.K2)(_,"compileList"),(0,n.K2)(v,"compileMap"),(0,n.K2)(S,"Schema$1"),S.prototype.extend=(0,n.K2)((function(t){var e=[],r=[];if(t instanceof w)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new p("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof w))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new p("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new p("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof w))throw new p("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(S.prototype);return n.implicit=(this.implicit||[]).concat(e),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=_(n,"implicit"),n.compiledExplicit=_(n,"explicit"),n.compiledTypeMap=v(n.compiledImplicit,n.compiledExplicit),n}),"extend");var T=new S({explicit:[new w("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,n.K2)((function(t){return null!==t?t:""}),"construct")}),new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,n.K2)((function(t){return null!==t?t:[]}),"construct")}),new w("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,n.K2)((function(t){return null!==t?t:{}}),"construct")})]});function A(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function M(){return null}function B(t){return null===t}(0,n.K2)(A,"resolveYamlNull"),(0,n.K2)(M,"constructYamlNull"),(0,n.K2)(B,"isNull");var L=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:A,construct:M,predicate:B,represent:{canonical:(0,n.K2)((function(){return"~"}),"canonical"),lowercase:(0,n.K2)((function(){return"null"}),"lowercase"),uppercase:(0,n.K2)((function(){return"NULL"}),"uppercase"),camelcase:(0,n.K2)((function(){return"Null"}),"camelcase"),empty:(0,n.K2)((function(){return""}),"empty")},defaultStyle:"lowercase"});function F(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function $(t){return"true"===t||"True"===t||"TRUE"===t}function E(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,n.K2)(F,"resolveYamlBoolean"),(0,n.K2)($,"constructYamlBoolean"),(0,n.K2)(E,"isBoolean");var D=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:F,construct:$,predicate:E,represent:{lowercase:(0,n.K2)((function(t){return t?"true":"false"}),"lowercase"),uppercase:(0,n.K2)((function(t){return t?"TRUE":"FALSE"}),"uppercase"),camelcase:(0,n.K2)((function(t){return t?"True":"False"}),"camelcase")},defaultStyle:"lowercase"});function O(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function N(t){return 48<=t&&t<=55}function I(t){return 48<=t&&t<=57}function R(t){if(null===t)return!1;var e,r=t.length,n=0,i=!1;if(!r)return!1;if("-"!==(e=t[n])&&"+"!==e||(e=t[++n]),"0"===e){if(n+1===r)return!0;if("b"===(e=t[++n])){for(n++;n<r;n++)if("_"!==(e=t[n])){if("0"!==e&&"1"!==e)return!1;i=!0}return i&&"_"!==e}if("x"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!O(t.charCodeAt(n)))return!1;i=!0}return i&&"_"!==e}if("o"===e){for(n++;n<r;n++)if("_"!==(e=t[n])){if(!N(t.charCodeAt(n)))return!1;i=!0}return i&&"_"!==e}}if("_"===e)return!1;for(;n<r;n++)if("_"!==(e=t[n])){if(!I(t.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===e)}function z(t){var e,r=t,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(n=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function P(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!h.isNegativeZero(t)}(0,n.K2)(O,"isHexCode"),(0,n.K2)(N,"isOctCode"),(0,n.K2)(I,"isDecCode"),(0,n.K2)(R,"resolveYamlInteger"),(0,n.K2)(z,"constructYamlInteger"),(0,n.K2)(P,"isInteger");var j=new w("tag:yaml.org,2002:int",{kind:"scalar",resolve:R,construct:z,predicate:P,represent:{binary:(0,n.K2)((function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:(0,n.K2)((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:(0,n.K2)((function(t){return t.toString(10)}),"decimal"),hexadecimal:(0,n.K2)((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),K=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function q(t){return null!==t&&!(!K.test(t)||"_"===t[t.length-1])}function W(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}(0,n.K2)(q,"resolveYamlFloat"),(0,n.K2)(W,"constructYamlFloat");var H=/^[-+]?[0-9]+e/;function U(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(h.isNegativeZero(t))return"-0.0";return r=t.toString(10),H.test(r)?r.replace("e",".e"):r}function Y(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||h.isNegativeZero(t))}(0,n.K2)(U,"representYamlFloat"),(0,n.K2)(Y,"isFloat");var G=new w("tag:yaml.org,2002:float",{kind:"scalar",resolve:q,construct:W,predicate:Y,represent:U,defaultStyle:"lowercase"}),V=T.extend({implicit:[L,D,j,G]}),Z=V,X=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Q=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function J(t){return null!==t&&(null!==X.exec(t)||null!==Q.exec(t))}function tt(t){var e,r,n,i,a,o,s,l,c=0,h=null;if(null===(e=X.exec(t))&&(e=Q.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],o=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(h=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(h=-h)),l=new Date(Date.UTC(r,n,i,a,o,s,c)),h&&l.setTime(l.getTime()-h),l}function et(t){return t.toISOString()}(0,n.K2)(J,"resolveYamlTimestamp"),(0,n.K2)(tt,"constructYamlTimestamp"),(0,n.K2)(et,"representYamlTimestamp");var rt=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:J,construct:tt,instanceOf:Date,represent:et});function nt(t){return"<<"===t||null===t}(0,n.K2)(nt,"resolveYamlMerge");var it=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nt}),at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ot(t){if(null===t)return!1;var e,r,n=0,i=t.length,a=at;for(r=0;r<i;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;n+=6}return n%8==0}function st(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=at,o=0,s=[];for(e=0;e<i;e++)e%4==0&&e&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|a.indexOf(n.charAt(e));return 0===(r=i%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)}function lt(t){var e,r,n="",i=0,a=t.length,o=at;for(e=0;e<a;e++)e%3==0&&e&&(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]),i=(i<<8)+t[e];return 0===(r=a%3)?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]):2===r?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):1===r&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}function ct(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,n.K2)(ot,"resolveYamlBinary"),(0,n.K2)(st,"constructYamlBinary"),(0,n.K2)(lt,"representYamlBinary"),(0,n.K2)(ct,"isBinary");var ht=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ot,construct:st,predicate:ct,represent:lt}),ut=Object.prototype.hasOwnProperty,dt=Object.prototype.toString;function pt(t){if(null===t)return!0;var e,r,n,i,a,o=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(n=s[e],a=!1,"[object Object]"!==dt.call(n))return!1;for(i in n)if(ut.call(n,i)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0}function ft(t){return null!==t?t:[]}(0,n.K2)(pt,"resolveYamlOmap"),(0,n.K2)(ft,"constructYamlOmap");var gt=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pt,construct:ft}),yt=Object.prototype.toString;function mt(t){if(null===t)return!0;var e,r,n,i,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],"[object Object]"!==yt.call(n))return!1;if(1!==(i=Object.keys(n)).length)return!1;a[e]=[i[0],n[i[0]]]}return!0}function xt(t){if(null===t)return[];var e,r,n,i,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),a[e]=[i[0],n[i[0]]];return a}(0,n.K2)(mt,"resolveYamlPairs"),(0,n.K2)(xt,"constructYamlPairs");var bt=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mt,construct:xt}),kt=Object.prototype.hasOwnProperty;function Ct(t){if(null===t)return!0;var e,r=t;for(e in r)if(kt.call(r,e)&&null!==r[e])return!1;return!0}function wt(t){return null!==t?t:{}}(0,n.K2)(Ct,"resolveYamlSet"),(0,n.K2)(wt,"constructYamlSet");var _t=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ct,construct:wt}),vt=Z.extend({implicit:[rt,it],explicit:[ht,gt,bt,_t]}),St=Object.prototype.hasOwnProperty,Tt=1,At=2,Mt=3,Bt=4,Lt=1,Ft=2,$t=3,Et=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Dt=/[\x85\u2028\u2029]/,Ot=/[,\[\]\{\}]/,Nt=/^(?:!|!!|![a-z\-]+!)$/i,It=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Rt(t){return Object.prototype.toString.call(t)}function zt(t){return 10===t||13===t}function Pt(t){return 9===t||32===t}function jt(t){return 9===t||32===t||10===t||13===t}function Kt(t){return 44===t||91===t||93===t||123===t||125===t}function qt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Wt(t){return 120===t?2:117===t?4:85===t?8:0}function Ht(t){return 48<=t&&t<=57?t-48:-1}function Ut(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function Yt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}(0,n.K2)(Rt,"_class"),(0,n.K2)(zt,"is_EOL"),(0,n.K2)(Pt,"is_WHITE_SPACE"),(0,n.K2)(jt,"is_WS_OR_EOL"),(0,n.K2)(Kt,"is_FLOW_INDICATOR"),(0,n.K2)(qt,"fromHexCode"),(0,n.K2)(Wt,"escapedHexLen"),(0,n.K2)(Ht,"fromDecimalCode"),(0,n.K2)(Ut,"simpleEscapeSequence"),(0,n.K2)(Yt,"charFromCodepoint");var Gt,Vt=new Array(256),Zt=new Array(256);for(Gt=0;Gt<256;Gt++)Vt[Gt]=Ut(Gt)?1:0,Zt[Gt]=Ut(Gt);function Xt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||vt,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Qt(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=m(r),new p(e,r)}function Jt(t,e){throw Qt(t,e)}function te(t,e){t.onWarning&&t.onWarning.call(null,Qt(t,e))}(0,n.K2)(Xt,"State$1"),(0,n.K2)(Qt,"generateError"),(0,n.K2)(Jt,"throwError"),(0,n.K2)(te,"throwWarning");var ee={YAML:(0,n.K2)((function(t,e,r){var n,i,a;null!==t.version&&Jt(t,"duplication of %YAML directive"),1!==r.length&&Jt(t,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Jt(t,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),a=parseInt(n[2],10),1!==i&&Jt(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&te(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:(0,n.K2)((function(t,e,r){var n,i;2!==r.length&&Jt(t,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],Nt.test(n)||Jt(t,"ill-formed tag handle (first argument) of the TAG directive"),St.call(t.tagMap,n)&&Jt(t,'there is a previously declared suffix for "'+n+'" tag handle'),It.test(i)||Jt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(a){Jt(t,"tag prefix is malformed: "+i)}t.tagMap[n]=i}),"handleTagDirective")};function re(t,e,r,n){var i,a,o,s;if(e<r){if(s=t.input.slice(e,r),n)for(i=0,a=s.length;i<a;i+=1)9===(o=s.charCodeAt(i))||32<=o&&o<=1114111||Jt(t,"expected valid JSON character");else Et.test(s)&&Jt(t,"the stream contains non-printable characters");t.result+=s}}function ne(t,e,r,n){var i,a,o,s;for(h.isObject(r)||Jt(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(i=Object.keys(r)).length;o<s;o+=1)a=i[o],St.call(e,a)||(e[a]=r[a],n[a]=!0)}function ie(t,e,r,n,i,a,o,s,l){var c,h;if(Array.isArray(i))for(c=0,h=(i=Array.prototype.slice.call(i)).length;c<h;c+=1)Array.isArray(i[c])&&Jt(t,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Rt(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===Rt(i)&&(i="[object Object]"),i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)ne(t,e,a[c],r);else ne(t,e,a,r);else t.json||St.call(r,i)||!St.call(e,i)||(t.line=o||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,Jt(t,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a,delete r[i];return e}function ae(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):Jt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function oe(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);0!==i;){for(;Pt(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do{i=t.input.charCodeAt(++t.position)}while(10!==i&&13!==i&&0!==i);if(!zt(i))break;for(ae(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position)}return-1!==r&&0!==n&&t.lineIndent<r&&te(t,"deficient indentation"),n}function se(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!jt(e)))}function le(t,e){1===e?t.result+=" ":e>1&&(t.result+=h.repeat("\n",e-1))}function ce(t,e,r){var n,i,a,o,s,l,c,h,u=t.kind,d=t.result;if(jt(h=t.input.charCodeAt(t.position))||Kt(h)||35===h||38===h||42===h||33===h||124===h||62===h||39===h||34===h||37===h||64===h||96===h)return!1;if((63===h||45===h)&&(jt(n=t.input.charCodeAt(t.position+1))||r&&Kt(n)))return!1;for(t.kind="scalar",t.result="",i=a=t.position,o=!1;0!==h;){if(58===h){if(jt(n=t.input.charCodeAt(t.position+1))||r&&Kt(n))break}else if(35===h){if(jt(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&se(t)||r&&Kt(h))break;if(zt(h)){if(s=t.line,l=t.lineStart,c=t.lineIndent,oe(t,!1,-1),t.lineIndent>=e){o=!0,h=t.input.charCodeAt(t.position);continue}t.position=a,t.line=s,t.lineStart=l,t.lineIndent=c;break}}o&&(re(t,i,a,!1),le(t,t.line-s),i=a=t.position,o=!1),Pt(h)||(a=t.position+1),h=t.input.charCodeAt(++t.position)}return re(t,i,a,!1),!!t.result||(t.kind=u,t.result=d,!1)}function he(t,e){var r,n,i;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(re(t,n,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;n=t.position,t.position++,i=t.position}else zt(r)?(re(t,n,i,!0),le(t,oe(t,!1,e)),n=i=t.position):t.position===t.lineStart&&se(t)?Jt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Jt(t,"unexpected end of the stream within a single quoted scalar")}function ue(t,e){var r,n,i,a,o,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return re(t,r,t.position,!0),t.position++,!0;if(92===s){if(re(t,r,t.position,!0),zt(s=t.input.charCodeAt(++t.position)))oe(t,!1,e);else if(s<256&&Vt[s])t.result+=Zt[s],t.position++;else if((o=Wt(s))>0){for(i=o,a=0;i>0;i--)(o=qt(s=t.input.charCodeAt(++t.position)))>=0?a=(a<<4)+o:Jt(t,"expected hexadecimal character");t.result+=Yt(a),t.position++}else Jt(t,"unknown escape sequence");r=n=t.position}else zt(s)?(re(t,r,n,!0),le(t,oe(t,!1,e)),r=n=t.position):t.position===t.lineStart&&se(t)?Jt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}Jt(t,"unexpected end of the stream within a double quoted scalar")}function de(t,e){var r,n,i,a,o,s,l,c,h,u,d,p,f=!0,g=t.tag,y=t.anchor,m=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))o=93,c=!1,a=[];else{if(123!==p)return!1;o=125,c=!0,a={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),p=t.input.charCodeAt(++t.position);0!==p;){if(oe(t,!0,e),(p=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=a,!0;f?44===p&&Jt(t,"expected the node content, but found ','"):Jt(t,"missed comma between flow collection entries"),d=null,s=l=!1,63===p&&jt(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,oe(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,be(t,e,Tt,!1,!0),u=t.tag,h=t.result,oe(t,!0,e),p=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==p||(s=!0,p=t.input.charCodeAt(++t.position),oe(t,!0,e),be(t,e,Tt,!1,!0),d=t.result),c?ie(t,a,m,u,h,d,r,n,i):s?a.push(ie(t,null,m,u,h,d,r,n,i)):a.push(h),oe(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}Jt(t,"unexpected end of the stream within a flow collection")}function pe(t,e){var r,n,i,a,o=Lt,s=!1,l=!1,c=e,u=0,d=!1;if(124===(a=t.input.charCodeAt(t.position)))n=!1;else{if(62!==a)return!1;n=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)Lt===o?o=43===a?$t:Ft:Jt(t,"repeat of a chomping mode identifier");else{if(!((i=Ht(a))>=0))break;0===i?Jt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Jt(t,"repeat of an indentation width identifier"):(c=e+i-1,l=!0)}if(Pt(a)){do{a=t.input.charCodeAt(++t.position)}while(Pt(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!zt(a)&&0!==a)}for(;0!==a;){for(ae(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),zt(a))u++;else{if(t.lineIndent<c){o===$t?t.result+=h.repeat("\n",s?1+u:u):o===Lt&&s&&(t.result+="\n");break}for(n?Pt(a)?(d=!0,t.result+=h.repeat("\n",s?1+u:u)):d?(d=!1,t.result+=h.repeat("\n",u+1)):0===u?s&&(t.result+=" "):t.result+=h.repeat("\n",u):t.result+=h.repeat("\n",s?1+u:u),s=!0,l=!0,u=0,r=t.position;!zt(a)&&0!==a;)a=t.input.charCodeAt(++t.position);re(t,r,t.position,!1)}}return!0}function fe(t,e){var r,n,i=t.tag,a=t.anchor,o=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),n=t.input.charCodeAt(t.position);0!==n&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,Jt(t,"tab characters must not be used in indentation")),45===n)&&jt(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,oe(t,!0,-1)&&t.lineIndent<=e)o.push(null),n=t.input.charCodeAt(t.position);else if(r=t.line,be(t,e,Mt,!1,!0),o.push(t.result),oe(t,!0,-1),n=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==n)Jt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=i,t.anchor=a,t.kind="sequence",t.result=o,!0)}function ge(t,e,r){var n,i,a,o,s,l,c,h=t.tag,u=t.anchor,d={},p=Object.create(null),f=null,g=null,y=null,m=!1,x=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,Jt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,63!==c&&58!==c||!jt(n)){if(o=t.line,s=t.lineStart,l=t.position,!be(t,r,At,!1,!0))break;if(t.line===a){for(c=t.input.charCodeAt(t.position);Pt(c);)c=t.input.charCodeAt(++t.position);if(58===c)jt(c=t.input.charCodeAt(++t.position))||Jt(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(ie(t,d,p,f,g,null,o,s,l),f=g=y=null),x=!0,m=!1,i=!1,f=t.tag,g=t.result;else{if(!x)return t.tag=h,t.anchor=u,!0;Jt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=h,t.anchor=u,!0;Jt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(ie(t,d,p,f,g,null,o,s,l),f=g=y=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):Jt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=n;if((t.line===a||t.lineIndent>e)&&(m&&(o=t.line,s=t.lineStart,l=t.position),be(t,e,Bt,!0,i)&&(m?g=t.result:y=t.result),m||(ie(t,d,p,f,g,y,o,s,l),f=g=y=null),oe(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&0!==c)Jt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&ie(t,d,p,f,g,null,o,s,l),x&&(t.tag=h,t.anchor=u,t.kind="mapping",t.result=d),x}function ye(t){var e,r,n,i,a=!1,o=!1;if(33!==(i=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&Jt(t,"duplication of a tag property"),60===(i=t.input.charCodeAt(++t.position))?(a=!0,i=t.input.charCodeAt(++t.position)):33===i?(o=!0,r="!!",i=t.input.charCodeAt(++t.position)):r="!",e=t.position,a){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&62!==i);t.position<t.length?(n=t.input.slice(e,t.position),i=t.input.charCodeAt(++t.position)):Jt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!jt(i);)33===i&&(o?Jt(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),Nt.test(r)||Jt(t,"named tag handle cannot contain such characters"),o=!0,e=t.position+1)),i=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),Ot.test(n)&&Jt(t,"tag suffix cannot contain flow indicator characters")}n&&!It.test(n)&&Jt(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(s){Jt(t,"tag name is malformed: "+n)}return a?t.tag=n:St.call(t.tagMap,r)?t.tag=t.tagMap[r]+n:"!"===r?t.tag="!"+n:"!!"===r?t.tag="tag:yaml.org,2002:"+n:Jt(t,'undeclared tag handle "'+r+'"'),!0}function me(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&Jt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!jt(r)&&!Kt(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Jt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function xe(t){var e,r,n;if(42!==(n=t.input.charCodeAt(t.position)))return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!jt(n)&&!Kt(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&Jt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),St.call(t.anchorMap,r)||Jt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],oe(t,!0,-1),!0}function be(t,e,r,n,i){var a,o,s,l,c,h,u,d,p,f=1,g=!1,y=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=s=Bt===r||Mt===r,n&&oe(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;ye(t)||me(t);)oe(t,!0,-1)?(g=!0,s=a,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||i),1!==f&&Bt!==r||(d=Tt===r||At===r?e:e+1,p=t.position-t.lineStart,1===f?s&&(fe(t,p)||ge(t,p,d))||de(t,d)?y=!0:(o&&pe(t,d)||he(t,d)||ue(t,d)?y=!0:xe(t)?(y=!0,null===t.tag&&null===t.anchor||Jt(t,"alias node should not have any properties")):ce(t,d,Tt===r)&&(y=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(y=s&&fe(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&Jt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,c=t.implicitTypes.length;l<c;l+=1)if((u=t.implicitTypes[l]).resolve(t.result)){t.result=u.construct(t.result),t.tag=u.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(St.call(t.typeMap[t.kind||"fallback"],t.tag))u=t.typeMap[t.kind||"fallback"][t.tag];else for(u=null,l=0,c=(h=t.typeMap.multi[t.kind||"fallback"]).length;l<c;l+=1)if(t.tag.slice(0,h[l].tag.length)===h[l].tag){u=h[l];break}u||Jt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&u.kind!==t.kind&&Jt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):Jt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}function ke(t){var e,r,n,i,a=t.position,o=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(i=t.input.charCodeAt(t.position))&&(oe(t,!0,-1),i=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==i));){for(o=!0,i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!jt(i);)i=t.input.charCodeAt(++t.position);for(n=[],(r=t.input.slice(e,t.position)).length<1&&Jt(t,"directive name must not be less than one character in length");0!==i;){for(;Pt(i);)i=t.input.charCodeAt(++t.position);if(35===i){do{i=t.input.charCodeAt(++t.position)}while(0!==i&&!zt(i));break}if(zt(i))break;for(e=t.position;0!==i&&!jt(i);)i=t.input.charCodeAt(++t.position);n.push(t.input.slice(e,t.position))}0!==i&&ae(t),St.call(ee,r)?ee[r](t,r,n):te(t,'unknown document directive "'+r+'"')}oe(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,oe(t,!0,-1)):o&&Jt(t,"directives end mark is expected"),be(t,t.lineIndent-1,Bt,!1,!0),oe(t,!0,-1),t.checkLineBreaks&&Dt.test(t.input.slice(a,t.position))&&te(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&se(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,oe(t,!0,-1)):t.position<t.length-1&&Jt(t,"end of the stream or a document separator is expected")}function Ce(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new Xt(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,Jt(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ke(r);return r.documents}function we(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var n=Ce(t,r);if("function"!=typeof e)return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}function _e(t,e){var r=Ce(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new p("expected a single document in the stream, but found more")}}(0,n.K2)(re,"captureSegment"),(0,n.K2)(ne,"mergeMappings"),(0,n.K2)(ie,"storeMappingPair"),(0,n.K2)(ae,"readLineBreak"),(0,n.K2)(oe,"skipSeparationSpace"),(0,n.K2)(se,"testDocumentSeparator"),(0,n.K2)(le,"writeFoldedLines"),(0,n.K2)(ce,"readPlainScalar"),(0,n.K2)(he,"readSingleQuotedScalar"),(0,n.K2)(ue,"readDoubleQuotedScalar"),(0,n.K2)(de,"readFlowCollection"),(0,n.K2)(pe,"readBlockScalar"),(0,n.K2)(fe,"readBlockSequence"),(0,n.K2)(ge,"readBlockMapping"),(0,n.K2)(ye,"readTagProperty"),(0,n.K2)(me,"readAnchorProperty"),(0,n.K2)(xe,"readAlias"),(0,n.K2)(be,"composeNode"),(0,n.K2)(ke,"readDocument"),(0,n.K2)(Ce,"loadDocuments"),(0,n.K2)(we,"loadAll$1"),(0,n.K2)(_e,"load$1");var ve={loadAll:we,load:_e},Se=Object.prototype.toString,Te=Object.prototype.hasOwnProperty,Ae=65279,Me=9,Be=10,Le=13,Fe=32,$e=33,Ee=34,De=35,Oe=37,Ne=38,Ie=39,Re=42,ze=44,Pe=45,je=58,Ke=61,qe=62,We=63,He=64,Ue=91,Ye=93,Ge=96,Ve=123,Ze=124,Xe=125,Qe={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Je=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tr=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function er(t,e){var r,n,i,a,o,s,l;if(null===e)return{};for(r={},i=0,a=(n=Object.keys(e)).length;i<a;i+=1)o=n[i],s=String(e[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=t.compiledTypeMap.fallback[o])&&Te.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}function rr(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else{if(!(t<=4294967295))throw new p("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+h.repeat("0",n-e.length)+e}(0,n.K2)(er,"compileStyleMap"),(0,n.K2)(rr,"encodeHex");var nr=1,ir=2;function ar(t){this.schema=t.schema||vt,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=h.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=er(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?ir:nr,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function or(t,e){for(var r,n=h.repeat(" ",e),i=0,a=-1,o="",s=t.length;i<s;)-1===(a=t.indexOf("\n",i))?(r=t.slice(i),i=s):(r=t.slice(i,a+1),i=a+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function sr(t,e){return"\n"+h.repeat(" ",t.indent*e)}function lr(t,e){var r,n;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function cr(t){return t===Fe||t===Me}function hr(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Ae||65536<=t&&t<=1114111}function ur(t){return hr(t)&&t!==Ae&&t!==Le&&t!==Be}function dr(t,e,r){var n=ur(t),i=n&&!cr(t);return(r?n:n&&t!==ze&&t!==Ue&&t!==Ye&&t!==Ve&&t!==Xe)&&t!==De&&!(e===je&&!i)||ur(e)&&!cr(e)&&t===De||e===je&&i}function pr(t){return hr(t)&&t!==Ae&&!cr(t)&&t!==Pe&&t!==We&&t!==je&&t!==ze&&t!==Ue&&t!==Ye&&t!==Ve&&t!==Xe&&t!==De&&t!==Ne&&t!==Re&&t!==$e&&t!==Ze&&t!==Ke&&t!==qe&&t!==Ie&&t!==Ee&&t!==Oe&&t!==He&&t!==Ge}function fr(t){return!cr(t)&&t!==je}function gr(t,e){var r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function yr(t){return/^\n* /.test(t)}(0,n.K2)(ar,"State"),(0,n.K2)(or,"indentString"),(0,n.K2)(sr,"generateNextLine"),(0,n.K2)(lr,"testImplicitResolving"),(0,n.K2)(cr,"isWhitespace"),(0,n.K2)(hr,"isPrintable"),(0,n.K2)(ur,"isNsCharOrWhitespace"),(0,n.K2)(dr,"isPlainSafe"),(0,n.K2)(pr,"isPlainSafeFirst"),(0,n.K2)(fr,"isPlainSafeLast"),(0,n.K2)(gr,"codePointAt"),(0,n.K2)(yr,"needIndentIndicator");var mr=1,xr=2,br=3,kr=4,Cr=5;function wr(t,e,r,n,i,a,o,s){var l,c=0,h=null,u=!1,d=!1,p=-1!==n,f=-1,g=pr(gr(t,0))&&fr(gr(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!hr(c=gr(t,l)))return Cr;g=g&&dr(c,h,s),h=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if((c=gr(t,l))===Be)u=!0,p&&(d=d||l-f-1>n&&" "!==t[f+1],f=l);else if(!hr(c))return Cr;g=g&&dr(c,h,s),h=c}d=d||p&&l-f-1>n&&" "!==t[f+1]}return u||d?r>9&&yr(t)?Cr:o?a===ir?Cr:xr:d?kr:br:!g||o||i(t)?a===ir?Cr:xr:mr}function _r(t,e,r,i,a){t.dump=function(){if(0===e.length)return t.quotingType===ir?'""':"''";if(!t.noCompatMode&&(-1!==Je.indexOf(e)||tr.test(e)))return t.quotingType===ir?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=i||t.flowLevel>-1&&r>=t.flowLevel;function c(e){return lr(t,e)}switch((0,n.K2)(c,"testAmbiguity"),wr(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!i,a)){case mr:return e;case xr:return"'"+e.replace(/'/g,"''")+"'";case br:return"|"+vr(e,t.indent)+Sr(or(e,o));case kr:return">"+vr(e,t.indent)+Sr(or(Tr(e,s),o));case Cr:return'"'+Mr(e)+'"';default:throw new p("impossible error: invalid scalar style")}}()}function vr(t,e){var r=yr(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function Sr(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Tr(t,e){for(var r,n,i,a=/(\n+)([^\n]*)/g,o=(r=-1!==(r=t.indexOf("\n"))?r:t.length,a.lastIndex=r,Ar(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];i=a.exec(t);){var l=i[1],c=i[2];n=" "===c[0],o+=l+(s||n||""===c?"":"\n")+Ar(c,e),s=n}return o}function Ar(t,e){if(""===t||" "===t[0])return t;for(var r,n,i=/ [^ ]/g,a=0,o=0,s=0,l="";r=i.exec(t);)(s=r.index)-a>e&&(n=o>a?o:s,l+="\n"+t.slice(a,n),a=n+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function Mr(t){for(var e,r="",n=0,i=0;i<t.length;n>=65536?i+=2:i++)n=gr(t,i),!(e=Qe[n])&&hr(n)?(r+=t[i],n>=65536&&(r+=t[i+1])):r+=e||rr(n);return r}function Br(t,e,r){var n,i,a,o="",s=t.tag;for(n=0,i=r.length;n<i;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Dr(t,e,a,!1,!1)||void 0===a&&Dr(t,e,null,!1,!1))&&(""!==o&&(o+=","+(t.condenseFlow?"":" ")),o+=t.dump);t.tag=s,t.dump="["+o+"]"}function Lr(t,e,r,n){var i,a,o,s="",l=t.tag;for(i=0,a=r.length;i<a;i+=1)o=r[i],t.replacer&&(o=t.replacer.call(r,String(i),o)),(Dr(t,e+1,o,!0,!0,!1,!0)||void 0===o&&Dr(t,e+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=sr(t,e)),t.dump&&Be===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Fr(t,e,r){var n,i,a,o,s,l="",c=t.tag,h=Object.keys(r);for(n=0,i=h.length;n<i;n+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),o=r[a=h[n]],t.replacer&&(o=t.replacer.call(r,a,o)),Dr(t,e,a,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Dr(t,e,o,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}"}function $r(t,e,r,n){var i,a,o,s,l,c,h="",u=t.tag,d=Object.keys(r);if(!0===t.sortKeys)d.sort();else if("function"==typeof t.sortKeys)d.sort(t.sortKeys);else if(t.sortKeys)throw new p("sortKeys must be a boolean or a function");for(i=0,a=d.length;i<a;i+=1)c="",n&&""===h||(c+=sr(t,e)),s=r[o=d[i]],t.replacer&&(s=t.replacer.call(r,o,s)),Dr(t,e+1,o,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&Be===t.dump.charCodeAt(0)?c+="?":c+="? "),c+=t.dump,l&&(c+=sr(t,e)),Dr(t,e+1,s,!0,l)&&(t.dump&&Be===t.dump.charCodeAt(0)?c+=":":c+=": ",h+=c+=t.dump));t.tag=u,t.dump=h||"{}"}function Er(t,e,r){var n,i,a,o,s,l;for(a=0,o=(i=r?t.explicitTypes:t.implicitTypes).length;a<o;a+=1)if(((s=i[a]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Se.call(s.represent))n=s.represent(e,l);else{if(!Te.call(s.represent,l))throw new p("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');n=s.represent[l](e,l)}t.dump=n}return!0}return!1}function Dr(t,e,r,n,i,a,o){t.tag=null,t.dump=r,Er(t,r,!1)||Er(t,r,!0);var s,l=Se.call(t.dump),c=n;n&&(n=t.flowLevel<0||t.flowLevel>e);var h,u,d="[object Object]"===l||"[object Array]"===l;if(d&&(u=-1!==(h=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&e>0)&&(i=!1),u&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(d&&u&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),"[object Object]"===l)n&&0!==Object.keys(t.dump).length?($r(t,e,t.dump,i),u&&(t.dump="&ref_"+h+t.dump)):(Fr(t,e,t.dump),u&&(t.dump="&ref_"+h+" "+t.dump));else if("[object Array]"===l)n&&0!==t.dump.length?(t.noArrayIndent&&!o&&e>0?Lr(t,e-1,t.dump,i):Lr(t,e,t.dump,i),u&&(t.dump="&ref_"+h+t.dump)):(Br(t,e,t.dump),u&&(t.dump="&ref_"+h+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new p("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&_r(t,t.dump,e,a,c)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function Or(t,e){var r,n,i=[],a=[];for(Nr(t,i,a),r=0,n=a.length;r<n;r+=1)e.duplicates.push(i[a[r]]);e.usedDuplicates=new Array(n)}function Nr(t,e,r){var n,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=e.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)Nr(t[i],e,r);else for(i=0,a=(n=Object.keys(t)).length;i<a;i+=1)Nr(t[n[i]],e,r)}function Ir(t,e){var r=new ar(e=e||{});r.noRefs||Or(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Dr(r,0,n,!0,!0)?r.dump+"\n":""}(0,n.K2)(wr,"chooseScalarStyle"),(0,n.K2)(_r,"writeScalar"),(0,n.K2)(vr,"blockHeader"),(0,n.K2)(Sr,"dropEndingNewline"),(0,n.K2)(Tr,"foldString"),(0,n.K2)(Ar,"foldLine"),(0,n.K2)(Mr,"escapeString"),(0,n.K2)(Br,"writeFlowSequence"),(0,n.K2)(Lr,"writeBlockSequence"),(0,n.K2)(Fr,"writeFlowMapping"),(0,n.K2)($r,"writeBlockMapping"),(0,n.K2)(Er,"detectType"),(0,n.K2)(Dr,"writeNode"),(0,n.K2)(Or,"getDuplicateReferences"),(0,n.K2)(Nr,"inspectNode"),(0,n.K2)(Ir,"dump$1");function Rr(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,n.K2)(Rr,"renamed");var zr=V,Pr=ve.load;Rr("safeLoad","load"),Rr("safeLoadAll","loadAll"),Rr("safeDump","dump")}}]); \ No newline at end of file diff --git a/website/assets/js/532.87b60d88.js.LICENSE.txt b/website/assets/js/532.87b60d88.js.LICENSE.txt new file mode 100644 index 000000000..bcb04865b --- /dev/null +++ b/website/assets/js/532.87b60d88.js.LICENSE.txt @@ -0,0 +1,7 @@ +/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */ + +/*! Bundled license information: + +js-yaml/dist/js-yaml.mjs: + (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *) +*/ diff --git a/website/assets/js/53eb1e5c.22d1b908.js b/website/assets/js/53eb1e5c.22d1b908.js new file mode 100644 index 000000000..a59ea8130 --- /dev/null +++ b/website/assets/js/53eb1e5c.22d1b908.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8336],{7515:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"hook/track-changes","title":"Suivi des changements","description":"Afin de simplifier le suivi des changements @inseefr/lunatic offre un syst\xe8me int\xe9gr\xe9 permettant d\'obtenir les variables modifi\xe9es entre 2 \xe9tapes. Cela permet par exemple de mettre en place une synchronisation partielle des donn\xe9es au fil du remplissage du formulaire (plut\xf4t que d\'attendre la finalisation du formulaire).","source":"@site/docs/hook/track-changes.mdx","sourceDirName":"hook","slug":"/hook/track-changes","permalink":"/Lunatic/docs/hook/track-changes","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/hook/track-changes.mdx","tags":[],"version":"current","frontMatter":{}}');var r=t(4848),a=t(8453);const i={},c="Suivi des changements",o={},d=[];function l(e){const n={code:"code",h1:"h1",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"suivi-des-changements",children:"Suivi des changements"})}),"\n",(0,r.jsxs)(n.p,{children:["Afin de simplifier le suivi des changements ",(0,r.jsx)(n.code,{children:"@inseefr/lunatic"})," offre un syst\xe8me int\xe9gr\xe9 permettant d'obtenir les variables modifi\xe9es entre 2 \xe9tapes. Cela permet par exemple de mettre en place une synchronisation partielle des donn\xe9es au fil du remplissage du formulaire (plut\xf4t que d'attendre la finalisation du formulaire)."]}),"\n",(0,r.jsxs)(n.p,{children:["Pour activer ce mode de suivi, passez l'option ",(0,r.jsx)(n.code,{children:"trackChanges"})," \xe0 ",(0,r.jsx)(n.code,{children:"true"}),". Le hook ",(0,r.jsx)(n.code,{children:"useLunatic()"})," renverra alors 2 m\xe9thodes suppl\xe9mentaires permettant de contr\xf4ler le suivi des changements."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"const {\n getChangedData,\n resetChangedData,\n} = useLunatic(source, data, {trackChanges: true})\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"getChangedData(reset: boolean = false)"}),", r\xe9cup\xe8re les donn\xe9es qui ont chang\xe9 depuis le dernier reset. Le format de retour est le m\xeame que ",(0,r.jsx)(n.code,{children:"getData()"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"resetChangedData()"}),", vide le dictionnaire des variables chang\xe9e"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>c});var s=t(6540);const r={},a=s.createContext(r);function i(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/5410.28a53ffc.js b/website/assets/js/5410.28a53ffc.js new file mode 100644 index 000000000..115ff4bee --- /dev/null +++ b/website/assets/js/5410.28a53ffc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5410],{7981:(t,e,r)=>{r.d(e,{T:()=>w});var s=r(9142),a=r(9610),i=r(7422),n=r(4092),o=r(6401),l=r(8058),c=r(9592),d=r(3588),h=r(4326),g=r(9902),u=r(3533);const p=(0,h.A)((function(t){return(0,g.A)((0,d.A)(t,1,u.A,!0))}));var y=r(8207),b=r(9463),x="\0",f="\0",m="\x01";class w{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=s.A(void 0),this._defaultEdgeLabelFn=s.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[f]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return a.A(t)||(t=s.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return i.A(this._nodes)}sources(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._in[e])}))}sinks(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._out[e])}))}setNodes(t,e){var r=arguments,s=this;return l.A(t,(function(t){r.length>1?s.setNode(t,e):s.setNode(t)})),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=f,this._children[t]={},this._children[f][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],l.A(this.children(t),(t=>{this.setParent(t)})),delete this._children[t]),l.A(i.A(this._in[t]),e),delete this._in[t],delete this._preds[t],l.A(i.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.A(e))e=f;else{for(var r=e+="";!c.A(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==f)return e}}children(t){if(c.A(t)&&(t=f),this._isCompound){var e=this._children[t];if(e)return i.A(e)}else{if(t===f)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return i.A(e)}successors(t){var e=this._sucs[t];if(e)return i.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return p(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;l.A(this._nodes,(function(r,s){t(s)&&e.setNode(s,r)})),l.A(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var s={};function a(t){var i=r.parent(t);return void 0===i||e.hasNode(i)?(s[t]=i,i):i in s?s[i]:a(i)}return this._isCompound&&l.A(e.nodes(),(function(t){e.setParent(t,a(t))})),e}setDefaultEdgeLabel(t){return a.A(t)||(t=s.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return y.A(this._edgeObjs)}setPath(t,e){var r=this,s=arguments;return b.A(t,(function(t,a){return s.length>1?r.setEdge(t,a,e):r.setEdge(t,a),a})),this}setEdge(){var t,e,r,s,a=!1,i=arguments[0];"object"==typeof i&&null!==i&&"v"in i?(t=i.v,e=i.w,r=i.name,2===arguments.length&&(s=arguments[1],a=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],a=!0)),t=""+t,e=""+e,c.A(r)||(r=""+r);var n=k(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return a&&(this._edgeLabels[n]=s),this;if(!c.A(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[n]=a?s:this._defaultEdgeLabelFn(t,e,r);var o=function(t,e,r,s){var a=""+e,i=""+r;if(!t&&a>i){var n=a;a=i,i=n}var o={v:a,w:i};s&&(o.name=s);return o}(this._isDirected,t,e,r);return t=o.v,e=o.w,Object.freeze(o),this._edgeObjs[n]=o,_(this._preds[e],t),_(this._sucs[t],e),this._in[e][n]=o,this._out[t][n]=o,this._edgeCount++,this}edge(t,e,r){var s=1===arguments.length?S(this._isDirected,arguments[0]):k(this._isDirected,t,e,r);return this._edgeLabels[s]}hasEdge(t,e,r){var s=1===arguments.length?S(this._isDirected,arguments[0]):k(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,e,r){var s=1===arguments.length?S(this._isDirected,arguments[0]):k(this._isDirected,t,e,r),a=this._edgeObjs[s];return a&&(t=a.v,e=a.w,delete this._edgeLabels[s],delete this._edgeObjs[s],L(this._preds[e],t),L(this._sucs[t],e),delete this._in[e][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var s=y.A(r);return e?n.A(s,(function(t){return t.v===e})):s}}outEdges(t,e){var r=this._out[t];if(r){var s=y.A(r);return e?n.A(s,(function(t){return t.w===e})):s}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function _(t,e){t[e]?t[e]++:t[e]=1}function L(t,e){--t[e]||delete t[e]}function k(t,e,r,s){var a=""+e,i=""+r;if(!t&&a>i){var n=a;a=i,i=n}return a+m+i+m+(c.A(s)?x:s)}function S(t,e){return k(t,e.v,e.w,e.name)}w.prototype._nodeCount=0,w.prototype._edgeCount=0},697:(t,e,r)=>{r.d(e,{T:()=>s.T});var s=r(7981)},5937:(t,e,r)=>{r.d(e,{A:()=>i});var s=r(2453),a=r(4886);const i=(t,e)=>s.A.lang.round(a.A.parse(t)[e])},53:(t,e,r)=>{r.d(e,{A:()=>a});var s=r(8675);const a=function(t){return(0,s.A)(t,4)}},5410:(t,e,r)=>{r.d(e,{diagram:()=>fe});var s=r(7588),a=r(3115),i=r(483),n=r(540),o=r(9),l=r(53),c=r(5937),d=r(5582),h=r(7),g=r(697),u=function(){var t=(0,o.K2)((function(t,e,r,s){for(r=r||{},s=t.length;s--;r[t[s]]=e);return r}),"o"),e=[1,7],r=[1,13],s=[1,14],a=[1,15],i=[1,19],n=[1,16],l=[1,17],c=[1,18],d=[8,30],h=[8,21,28,29,30,31,32,40,44,47],g=[1,23],u=[1,24],p=[8,15,16,21,28,29,30,31,32,40,44,47],y=[8,15,16,21,27,28,29,30,31,32,40,44,47],b=[1,49],x={trace:(0,o.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,o.K2)((function(t,e,r,s,a,i,n){var o=i.length-1;switch(a){case 4:s.getLogger().debug("Rule: separator (NL) ");break;case 5:s.getLogger().debug("Rule: separator (Space) ");break;case 6:s.getLogger().debug("Rule: separator (EOF) ");break;case 7:s.getLogger().debug("Rule: hierarchy: ",i[o-1]),s.setHierarchy(i[o-1]);break;case 8:s.getLogger().debug("Stop NL ");break;case 9:s.getLogger().debug("Stop EOF ");break;case 10:s.getLogger().debug("Stop NL2 ");break;case 11:s.getLogger().debug("Stop EOF2 ");break;case 12:s.getLogger().debug("Rule: statement: ",i[o]),"number"==typeof i[o].length?this.$=i[o]:this.$=[i[o]];break;case 13:s.getLogger().debug("Rule: statement #2: ",i[o-1]),this.$=[i[o-1]].concat(i[o]);break;case 14:s.getLogger().debug("Rule: link: ",i[o],t),this.$={edgeTypeStr:i[o],label:""};break;case 15:s.getLogger().debug("Rule: LABEL link: ",i[o-3],i[o-1],i[o]),this.$={edgeTypeStr:i[o],label:i[o-1]};break;case 18:const e=parseInt(i[o]),r=s.generateId();this.$={id:r,type:"space",label:"",width:e,children:[]};break;case 23:s.getLogger().debug("Rule: (nodeStatement link node) ",i[o-2],i[o-1],i[o]," typestr: ",i[o-1].edgeTypeStr);const a=s.edgeStrToEdgeData(i[o-1].edgeTypeStr);this.$=[{id:i[o-2].id,label:i[o-2].label,type:i[o-2].type,directions:i[o-2].directions},{id:i[o-2].id+"-"+i[o].id,start:i[o-2].id,end:i[o].id,label:i[o-1].label,type:"edge",directions:i[o].directions,arrowTypeEnd:a,arrowTypeStart:"arrow_open"},{id:i[o].id,label:i[o].label,type:s.typeStr2Type(i[o].typeStr),directions:i[o].directions}];break;case 24:s.getLogger().debug("Rule: nodeStatement (abc88 node size) ",i[o-1],i[o]),this.$={id:i[o-1].id,label:i[o-1].label,type:s.typeStr2Type(i[o-1].typeStr),directions:i[o-1].directions,widthInColumns:parseInt(i[o],10)};break;case 25:s.getLogger().debug("Rule: nodeStatement (node) ",i[o]),this.$={id:i[o].id,label:i[o].label,type:s.typeStr2Type(i[o].typeStr),directions:i[o].directions,widthInColumns:1};break;case 26:s.getLogger().debug("APA123",this?this:"na"),s.getLogger().debug("COLUMNS: ",i[o]),this.$={type:"column-setting",columns:"auto"===i[o]?-1:parseInt(i[o])};break;case 27:s.getLogger().debug("Rule: id-block statement : ",i[o-2],i[o-1]);s.generateId();this.$={...i[o-2],type:"composite",children:i[o-1]};break;case 28:s.getLogger().debug("Rule: blockStatement : ",i[o-2],i[o-1],i[o]);const n=s.generateId();this.$={id:n,type:"composite",label:"",children:i[o-1]};break;case 29:s.getLogger().debug("Rule: node (NODE_ID separator): ",i[o]),this.$={id:i[o]};break;case 30:s.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",i[o-1],i[o]),this.$={id:i[o-1],label:i[o].label,typeStr:i[o].typeStr,directions:i[o].directions};break;case 31:s.getLogger().debug("Rule: dirList: ",i[o]),this.$=[i[o]];break;case 32:s.getLogger().debug("Rule: dirList: ",i[o-1],i[o]),this.$=[i[o-1]].concat(i[o]);break;case 33:s.getLogger().debug("Rule: nodeShapeNLabel: ",i[o-2],i[o-1],i[o]),this.$={typeStr:i[o-2]+i[o],label:i[o-1]};break;case 34:s.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",i[o-3],i[o-2]," #3:",i[o-1],i[o]),this.$={typeStr:i[o-3]+i[o],label:i[o-2],directions:i[o-1]};break;case 35:case 36:this.$={type:"classDef",id:i[o-1].trim(),css:i[o].trim()};break;case 37:this.$={type:"applyClass",id:i[o-1].trim(),styleClass:i[o].trim()};break;case 38:this.$={type:"applyStyles",id:i[o-1].trim(),stylesStr:i[o].trim()}}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:s,31:a,32:i,40:n,44:l,47:c},{8:[1,20]},t(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:r,29:s,31:a,32:i,40:n,44:l,47:c}),t(h,[2,16],{14:22,15:g,16:u}),t(h,[2,17]),t(h,[2,18]),t(h,[2,19]),t(h,[2,20]),t(h,[2,21]),t(h,[2,22]),t(p,[2,25],{27:[1,25]}),t(h,[2,26]),{19:26,26:12,32:i},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:s,31:a,32:i,40:n,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(y,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(d,[2,13]),{26:35,32:i},{32:[2,14]},{17:[1,36]},t(p,[2,24]),{11:37,13:4,14:22,15:g,16:u,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:s,31:a,32:i,40:n,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(y,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(h,[2,28]),t(h,[2,35]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),{37:[1,47]},{34:48,35:b},{15:[1,50]},t(h,[2,27]),t(y,[2,33]),{39:[1,51]},{34:52,35:b,39:[2,31]},{32:[2,15]},t(y,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,o.K2)((function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)}),"parseError"),parse:(0,o.K2)((function(t){var e=this,r=[0],s=[],a=[null],i=[],n=this.table,l="",c=0,d=0,h=0,g=i.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var b=u.yylloc;i.push(b);var x=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K2)((function(t){r.length=r.length-2*t,a.length=a.length-t,i.length=i.length-t}),"popStack"),(0,o.K2)(f,"lex");for(var m,w,_,L,k,S,v,E,D,C={};;){if(_=r[r.length-1],this.defaultActions[_]?L=this.defaultActions[_]:(null==m&&(m=f()),L=n[_]&&n[_][m]),void 0===L||!L.length||!L[0]){var R="";for(S in D=[],n[_])this.terminals_[S]&&S>2&&D.push("'"+this.terminals_[S]+"'");R=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(R,{text:u.match,token:this.terminals_[m]||m,line:u.yylineno,loc:b,expected:D})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+m);switch(L[0]){case 1:r.push(m),a.push(u.yytext),i.push(u.yylloc),r.push(L[1]),m=null,w?(m=w,w=null):(d=u.yyleng,l=u.yytext,c=u.yylineno,b=u.yylloc,h>0&&h--);break;case 2:if(v=this.productions_[L[1]][1],C.$=a[a.length-v],C._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},x&&(C._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),void 0!==(k=this.performAction.apply(C,[l,d,c,p.yy,L[1],a,i].concat(g))))return k;v&&(r=r.slice(0,-1*v*2),a=a.slice(0,-1*v),i=i.slice(0,-1*v)),r.push(this.productions_[L[1]][0]),a.push(C.$),i.push(C._$),E=n[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}),"parse")},f=function(){return{EOF:1,parseError:(0,o.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,o.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,o.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,o.K2)((function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===s.length?this.yylloc.first_column:0)+s[s.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,o.K2)((function(){return this._more=!0,this}),"more"),reject:(0,o.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,o.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,o.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,o.K2)((function(t,e){var r,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var i in a)this[i]=a[i];return!1}return!1}),"test_match"),next:(0,o.K2)((function(){if(this.done)return this.EOF;var t,e,r,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),i=0;i<a.length;i++)if((r=this._input.match(this.rules[a[i]]))&&(!e||r[0].length>e[0].length)){if(e=r,s=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,a[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,o.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,o.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,o.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,o.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,o.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,o.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,o.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,o.K2)((function(t,e,r,s){switch(r){case 0:return 10;case 1:return t.getLogger().debug("Found space-block"),31;case 2:return t.getLogger().debug("Found nl-block"),31;case 3:return t.getLogger().debug("Found space-block"),29;case 4:t.getLogger().debug(".",e.yytext);break;case 5:t.getLogger().debug("_",e.yytext);break;case 6:return 5;case 7:return e.yytext=-1,28;case 8:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 14:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 15:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 16:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),38;case 75:return t.getLogger().debug("Lex: NODE_ID",e.yytext),32;case 76:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 79:return"NODE_DESCR";case 81:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 84:t.getLogger().debug("LEX POPPING"),this.popState();break;case 85:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 91:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 92:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 94:case 95:case 96:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 97:case 98:case 99:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 101:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 103:case 104:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 105:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}}),"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}}}();function m(){this.yy={}}return x.lexer=f,(0,o.K2)(m,"Parser"),m.prototype=x,x.Parser=m,new m}();u.parser=u;var p=u,y=new Map,b=[],x=new Map,f="color",m="fill",w=(0,o.D7)(),_=new Map,L=(0,o.K2)((t=>o.Y2.sanitizeText(t,w)),"sanitizeText"),k=(0,o.K2)((function(t,e=""){let r=_.get(t);r||(r={id:t,styles:[],textStyles:[]},_.set(t,r)),null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(f).exec(t)){const t=e.replace(m,"bgFill").replace(f,m);r.textStyles.push(t)}r.styles.push(e)}))}),"addStyleClass"),S=(0,o.K2)((function(t,e=""){const r=y.get(t);null!=e&&(r.styles=e.split(","))}),"addStyle2Node"),v=(0,o.K2)((function(t,e){t.split(",").forEach((function(t){let r=y.get(t);if(void 0===r){const e=t.trim();r={id:e,type:"na",children:[]},y.set(e,r)}r.classes||(r.classes=[]),r.classes.push(e)}))}),"setCssClass"),E=(0,o.K2)(((t,e)=>{const r=t.flat(),s=[];for(const a of r)if(a.label&&(a.label=L(a.label)),"classDef"!==a.type)if("applyClass"!==a.type)if("applyStyles"!==a.type)if("column-setting"===a.type)e.columns=a.columns??-1;else if("edge"===a.type){const t=(x.get(a.id)??0)+1;x.set(a.id,t),a.id=t+"-"+a.id,b.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);const t=y.get(a.id);if(void 0===t?y.set(a.id,a):("na"!==a.type&&(t.type=a.type),a.label!==a.id&&(t.label=a.label)),a.children&&E(a.children,a),"space"===a.type){const t=a.width??1;for(let e=0;e<t;e++){const t=(0,l.A)(a);t.id=t.id+"-"+e,y.set(t.id,t),s.push(t)}}else void 0===t&&s.push(a)}else a?.stylesStr&&S(a.id,a?.stylesStr);else v(a.id,a?.styleClass??"");else k(a.id,a.css);e.children=s}),"populateBlockDatabase"),D=[],C={id:"root",type:"composite",children:[],columns:-1},R=(0,o.K2)((()=>{o.Rm.debug("Clear called"),(0,o.IU)(),C={id:"root",type:"composite",children:[],columns:-1},y=new Map([["root",C]]),D=[],_=new Map,b=[],x=new Map}),"clear");function K(t){switch(o.Rm.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return o.Rm.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function N(t){return o.Rm.debug("typeStr2Type",t),"=="===t?"thick":"normal"}function T(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}(0,o.K2)(K,"typeStr2Type"),(0,o.K2)(N,"edgeTypeStr2Type"),(0,o.K2)(T,"edgeStrToEdgeData");var $=0,A=(0,o.K2)((()=>($++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$)),"generateId"),I=(0,o.K2)((t=>{C.children=t,E(t,C),D=C.children}),"setHierarchy"),O=(0,o.K2)((t=>{const e=y.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1}),"getColumns"),B=(0,o.K2)((()=>[...y.values()]),"getBlocksFlat"),z=(0,o.K2)((()=>D||[]),"getBlocks"),M=(0,o.K2)((()=>b),"getEdges"),P=(0,o.K2)((t=>y.get(t)),"getBlock"),Y=(0,o.K2)((t=>{y.set(t.id,t)}),"setBlock"),F=(0,o.K2)((()=>console),"getLogger"),j=(0,o.K2)((function(){return _}),"getClasses"),W={getConfig:(0,o.K2)((()=>(0,o.zj)().block),"getConfig"),typeStr2Type:K,edgeTypeStr2Type:N,edgeStrToEdgeData:T,getLogger:F,getBlocksFlat:B,getBlocks:z,getEdges:M,setHierarchy:I,getBlock:P,setBlock:Y,getColumns:O,getClasses:j,clear:R,generateId:A},X=(0,o.K2)(((t,e)=>{const r=c.A,s=r(t,"r"),a=r(t,"g"),i=r(t,"b");return d.A(s,a,i,e)}),"fade"),H=(0,o.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${X(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${X(t.mainBkg,.5)};\n fill: ${X(t.clusterBkg,.5)};\n stroke: ${X(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`),"getStyles"),U=(0,o.K2)(((t,e,r,s)=>{e.forEach((e=>{Z[e](t,r,s)}))}),"insertMarkers"),Z={extension:(0,o.K2)(((t,e,r)=>{o.Rm.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition"),aggregation:(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation"),dependency:(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency"),lollipop:(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point"),circle:(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle"),cross:(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross"),barb:(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb")},q=U,G=(0,o.D7)()?.block?.padding??8;function J(t,e){if(0===t||!Number.isInteger(t))throw new Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw new Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(1===t)return{px:0,py:e};return{px:e%t,py:Math.floor(e/t)}}(0,o.K2)(J,"calculateBlockPosition");var V=(0,o.K2)((t=>{let e=0,r=0;for(const s of t.children){const{width:a,height:i,x:n,y:l}=s.size??{width:0,height:0,x:0,y:0};o.Rm.debug("getMaxChildSize abc95 child:",s.id,"width:",a,"height:",i,"x:",n,"y:",l,s.type),"space"!==s.type&&(a>e&&(e=a/(t.widthInColumns??1)),i>r&&(r=i))}return{width:e,height:r}}),"getMaxChildSize");function Q(t,e,r=0,s=0){o.Rm.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"sieblingWidth",r),t?.size?.width||(t.size={width:r,height:s,x:0,y:0});let a=0,i=0;if(t.children?.length>0){for(const r of t.children)Q(r,e);const n=V(t);a=n.width,i=n.height,o.Rm.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",a,i);for(const e of t.children)e.size&&(o.Rm.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${a} ${i} ${JSON.stringify(e.size)}`),e.size.width=a*(e.widthInColumns??1)+G*((e.widthInColumns??1)-1),e.size.height=i,e.size.x=0,e.size.y=0,o.Rm.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${a} maxHeight:${i}`));for(const r of t.children)Q(r,e,a,i);const l=t.columns??-1;let c=0;for(const e of t.children)c+=e.widthInColumns??1;let d=t.children.length;l>0&&l<c&&(d=l);const h=Math.ceil(c/d);let g=d*(a+G)+G,u=h*(i+G)+G;if(g<r){o.Rm.debug(`Detected to small siebling: abc95 ${t.id} sieblingWidth ${r} sieblingHeight ${s} width ${g}`),g=r,u=s;const e=(r-d*G-G)/d,n=(s-h*G-G)/h;o.Rm.debug("Size indata abc88",t.id,"childWidth",e,"maxWidth",a),o.Rm.debug("Size indata abc88",t.id,"childHeight",n,"maxHeight",i),o.Rm.debug("Size indata abc88 xSize",d,"padding",G);for(const r of t.children)r.size&&(r.size.width=e,r.size.height=n,r.size.x=0,r.size.y=0)}if(o.Rm.debug(`abc95 (finale calc) ${t.id} xSize ${d} ySize ${h} columns ${l}${t.children.length} width=${Math.max(g,t.size?.width||0)}`),g<(t?.size?.width||0)){g=t?.size?.width||0;const e=l>0?Math.min(t.children.length,l):t.children.length;if(e>0){const r=(g-e*G-G)/e;o.Rm.debug("abc95 (growing to fit) width",t.id,g,t.size?.width,r);for(const e of t.children)e.size&&(e.size.width=r)}}t.size={width:g,height:u,x:0,y:0}}o.Rm.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}function tt(t,e){o.Rm.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;if(o.Rm.debug("layoutBlocks columns abc95",t.id,"=>",r,t),t.children&&t.children.length>0){const s=t?.children[0]?.size?.width??0,a=t.children.length*s+(t.children.length-1)*G;o.Rm.debug("widthOfChildren 88",a,"posX");let i=0;o.Rm.debug("abc91 block?.size?.x",t.id,t?.size?.x);let n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-G,l=0;for(const c of t.children){const s=t;if(!c.size)continue;const{width:a,height:d}=c.size,{px:h,py:g}=J(r,i);if(g!=l&&(l=g,n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-G,o.Rm.debug("New row in layout for block",t.id," and child ",c.id,l)),o.Rm.debug(`abc89 layout blocks (child) id: ${c.id} Pos: ${i} (px, py) ${h},${g} (${s?.size?.x},${s?.size?.y}) parent: ${s.id} width: ${a}${G}`),s.size){const t=a/2;c.size.x=n+G+t,o.Rm.debug(`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${n} new startingPosX${c.size.x} ${t} padding=${G} width=${a} halfWidth=${t} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${a*(c?.widthInColumns??1)/2}`),n=c.size.x+t,c.size.y=s.size.y-s.size.height/2+g*(d+G)+d/2+G,o.Rm.debug(`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${n}${G}${t}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${a*(c?.widthInColumns??1)/2}`)}c.children&&tt(c,e),i+=c?.widthInColumns??1,o.Rm.debug("abc88 columnsPos",c,i)}}o.Rm.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}function et(t,{minX:e,minY:r,maxX:s,maxY:a}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&"root"!==t.id){const{x:i,y:n,width:o,height:l}=t.size;i-o/2<e&&(e=i-o/2),n-l/2<r&&(r=n-l/2),i+o/2>s&&(s=i+o/2),n+l/2>a&&(a=n+l/2)}if(t.children)for(const i of t.children)({minX:e,minY:r,maxX:s,maxY:a}=et(i,{minX:e,minY:r,maxX:s,maxY:a}));return{minX:e,minY:r,maxX:s,maxY:a}}function rt(t){const e=t.getBlock("root");if(!e)return;Q(e,t,0,0),tt(e,t),o.Rm.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:s,maxX:a,maxY:i}=et(e);return{x:r,y:s,width:a-r,height:i-s}}function st(t,e){e&&t.attr("style",e)}function at(t){const e=(0,h.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div"),s=t.label,a=t.isNode?"nodeLabel":"edgeLabel",i=r.append("span");return i.html(s),st(i,t.labelStyle),i.attr("class",a),st(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}(0,o.K2)(Q,"setBlockSizes"),(0,o.K2)(tt,"layoutBlocks"),(0,o.K2)(et,"findBounds"),(0,o.K2)(rt,"layout"),(0,o.K2)(st,"applyStyle"),(0,o.K2)(at,"addHtmlLabel");var it=(0,o.K2)(((t,e,r,s)=>{let a=t||"";if("object"==typeof a&&(a=a[0]),(0,o._3)((0,o.D7)().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),o.Rm.debug("vertexText"+a);return at({isNode:s,label:(0,i.hE)((0,n.Sm)(a)),labelStyle:e.replace("fill:","color:")})}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let s=[];s="string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(const e of s){const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),r?s.setAttribute("class","title-row"):s.setAttribute("class","row"),s.textContent=e.trim(),t.appendChild(s)}return t}}),"createLabel"),nt=(0,o.K2)(((t,e,r,s,a)=>{e.arrowTypeStart&<(t,"start",e.arrowTypeStart,r,s,a),e.arrowTypeEnd&<(t,"end",e.arrowTypeEnd,r,s,a)}),"addEdgeMarkers"),ot={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},lt=(0,o.K2)(((t,e,r,s,a,i)=>{const n=ot[r];if(!n)return void o.Rm.warn(`Unknown arrow type: ${r}`);const l="start"===e?"Start":"End";t.attr(`marker-${e}`,`url(${s}#${a}_${i}-${n}${l})`)}),"addEdgeMarker"),ct={},dt={},ht=(0,o.K2)(((t,e)=>{const r=(0,o.D7)(),s=(0,o._3)(r.flowchart.htmlLabels),a="markdown"===e.labelType?(0,i.GZ)(t,e.label,{style:e.labelStyle,useHtmlLabels:s,addSvgBackground:!0},r):it(e.label,e.labelStyle),n=t.insert("g").attr("class","edgeLabel"),l=n.insert("g").attr("class","label");l.node().appendChild(a);let c,d=a.getBBox();if(s){const t=a.children[0],e=(0,h.Ltv)(a);d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}if(l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ct[e.id]=n,e.width=d.width,e.height=d.height,e.startLabelLeft){const r=it(e.startLabelLeft,e.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),a=s.insert("g").attr("class","inner");c=a.node().appendChild(r);const i=r.getBBox();a.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),dt[e.id]||(dt[e.id]={}),dt[e.id].startLeft=s,gt(c,e.startLabelLeft)}if(e.startLabelRight){const r=it(e.startLabelRight,e.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),a=s.insert("g").attr("class","inner");c=s.node().appendChild(r),a.node().appendChild(r);const i=r.getBBox();a.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),dt[e.id]||(dt[e.id]={}),dt[e.id].startRight=s,gt(c,e.startLabelRight)}if(e.endLabelLeft){const r=it(e.endLabelLeft,e.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),a=s.insert("g").attr("class","inner");c=a.node().appendChild(r);const i=r.getBBox();a.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),s.node().appendChild(r),dt[e.id]||(dt[e.id]={}),dt[e.id].endLeft=s,gt(c,e.endLabelLeft)}if(e.endLabelRight){const r=it(e.endLabelRight,e.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),a=s.insert("g").attr("class","inner");c=a.node().appendChild(r);const i=r.getBBox();a.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),s.node().appendChild(r),dt[e.id]||(dt[e.id]={}),dt[e.id].endRight=s,gt(c,e.endLabelRight)}return a}),"insertEdgeLabel");function gt(t,e){(0,o.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,o.K2)(gt,"setTerminalWidth");var ut=(0,o.K2)(((t,e)=>{o.Rm.debug("Moving label abc88 ",t.id,t.label,ct[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const s=(0,o.D7)(),{subGraphTitleTotalMargin:i}=(0,a.O)(s);if(t.label){const s=ct[t.id];let a=t.x,l=t.y;if(r){const s=n._K.calcLabelPosition(r);o.Rm.debug("Moving label "+t.label+" from (",a,",",l,") to (",s.x,",",s.y,") abc88"),e.updatedPath&&(a=s.x,l=s.y)}s.attr("transform",`translate(${a}, ${l+i/2})`)}if(t.startLabelLeft){const e=dt[t.id].startLeft;let s=t.x,a=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=e.x,a=e.y}e.attr("transform",`translate(${s}, ${a})`)}if(t.startLabelRight){const e=dt[t.id].startRight;let s=t.x,a=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=e.x,a=e.y}e.attr("transform",`translate(${s}, ${a})`)}if(t.endLabelLeft){const e=dt[t.id].endLeft;let s=t.x,a=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=e.x,a=e.y}e.attr("transform",`translate(${s}, ${a})`)}if(t.endLabelRight){const e=dt[t.id].endRight;let s=t.x,a=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=e.x,a=e.y}e.attr("transform",`translate(${s}, ${a})`)}}),"positionEdgeLabel"),pt=(0,o.K2)(((t,e)=>{const r=t.x,s=t.y,a=Math.abs(e.x-r),i=Math.abs(e.y-s),n=t.width/2,o=t.height/2;return a>=n||i>=o}),"outsideNode"),yt=(0,o.K2)(((t,e,r)=>{o.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const s=t.x,a=t.y,i=Math.abs(s-r.x),n=t.width/2;let l=r.x<e.x?n-i:n+i;const c=t.height/2,d=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(a-e.y)*n>Math.abs(s-e.x)*c){let t=r.y<e.y?e.y-c-a:a-c-e.y;l=h*t/d;const s={x:r.x<e.x?r.x+l:r.x-h+l,y:r.y<e.y?r.y+d-t:r.y-d+t};return 0===l&&(s.x=e.x,s.y=e.y),0===h&&(s.x=e.x),0===d&&(s.y=e.y),o.Rm.debug(`abc89 topp/bott calc, Q ${d}, q ${t}, R ${h}, r ${l}`,s),s}{l=r.x<e.x?e.x-n-s:s-n-e.x;let t=d*l/h,a=r.x<e.x?r.x+h-l:r.x-h+l,i=r.y<e.y?r.y+t:r.y-t;return o.Rm.debug(`sides calc abc89, Q ${d}, q ${t}, R ${h}, r ${l}`,{_x:a,_y:i}),0===l&&(a=e.x,i=e.y),0===h&&(a=e.x),0===d&&(i=e.y),{x:a,y:i}}}),"intersection"),bt=(0,o.K2)(((t,e)=>{o.Rm.debug("abc88 cutPathAtIntersect",t,e);let r=[],s=t[0],a=!1;return t.forEach((t=>{if(pt(e,t)||a)s=t,a||r.push(t);else{const i=yt(e,s,t);let n=!1;r.forEach((t=>{n=n||t.x===i.x&&t.y===i.y})),r.some((t=>t.x===i.x&&t.y===i.y))||r.push(i),a=!0}})),r}),"cutPathAtIntersect"),xt=(0,o.K2)((function(t,e,r,a,i,n,l){let c=r.points;o.Rm.debug("abc88 InsertEdge: edge=",r,"e=",e);let d=!1;const g=n.node(e.v);var u=n.node(e.w);u?.intersect&&g?.intersect&&(c=c.slice(1,r.points.length-1),c.unshift(g.intersect(c[0])),c.push(u.intersect(c[c.length-1]))),r.toCluster&&(o.Rm.debug("to cluster abc88",a[r.toCluster]),c=bt(r.points,a[r.toCluster].node),d=!0),r.fromCluster&&(o.Rm.debug("from cluster abc88",a[r.fromCluster]),c=bt(c.reverse(),a[r.fromCluster].node).reverse(),d=!0);const p=c.filter((t=>!Number.isNaN(t.y)));let y=h.qrM;!r.curve||"graph"!==i&&"flowchart"!==i||(y=r.curve);const{x:b,y:x}=(0,s.R)(r),f=(0,h.n8j)().x(b).y(x).curve(y);let m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}const w=t.append("path").attr("d",f(p)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style);let _="";((0,o.D7)().flowchart.arrowMarkerAbsolute||(0,o.D7)().state.arrowMarkerAbsolute)&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),nt(w,r,_,l,i);let L={};return d&&(L.updatedPath=c),L.originalPath=r.points,L}),"insertEdge"),ft=(0,o.K2)((t=>{const e=new Set;for(const r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e}),"expandAndDeduplicateDirections"),mt=(0,o.K2)(((t,e,r)=>{const s=ft(t),a=e.height+2*r.padding,i=a/2,n=e.width+2*i+r.padding,o=r.padding/2;return s.has("right")&&s.has("left")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:i,y:0},{x:n/2,y:2*o},{x:n-i,y:0},{x:n,y:0},{x:n,y:-a/3},{x:n+2*o,y:-a/2},{x:n,y:-2*a/3},{x:n,y:-a},{x:n-i,y:-a},{x:n/2,y:-a-2*o},{x:i,y:-a},{x:0,y:-a},{x:0,y:-2*a/3},{x:-2*o,y:-a/2},{x:0,y:-a/3}]:s.has("right")&&s.has("left")&&s.has("up")?[{x:i,y:0},{x:n-i,y:0},{x:n,y:-a/2},{x:n-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}]:s.has("right")&&s.has("left")&&s.has("down")?[{x:0,y:0},{x:i,y:-a},{x:n-i,y:-a},{x:n,y:0}]:s.has("right")&&s.has("up")&&s.has("down")?[{x:0,y:0},{x:n,y:-i},{x:n,y:-a+i},{x:0,y:-a}]:s.has("left")&&s.has("up")&&s.has("down")?[{x:n,y:0},{x:0,y:-i},{x:0,y:-a+i},{x:n,y:-a}]:s.has("right")&&s.has("left")?[{x:i,y:0},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:0},{x:n,y:-a/2},{x:n-i,y:-a},{x:n-i,y:-a+o},{x:i,y:-a+o},{x:i,y:-a},{x:0,y:-a/2}]:s.has("up")&&s.has("down")?[{x:n/2,y:0},{x:0,y:-o},{x:i,y:-o},{x:i,y:-a+o},{x:0,y:-a+o},{x:n/2,y:-a},{x:n,y:-a+o},{x:n-i,y:-a+o},{x:n-i,y:-o},{x:n,y:-o}]:s.has("right")&&s.has("up")?[{x:0,y:0},{x:n,y:-i},{x:0,y:-a}]:s.has("right")&&s.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-a}]:s.has("left")&&s.has("up")?[{x:n,y:0},{x:0,y:-i},{x:n,y:-a}]:s.has("left")&&s.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-a}]:s.has("right")?[{x:i,y:-o},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:0},{x:n,y:-a/2},{x:n-i,y:-a},{x:n-i,y:-a+o},{x:i,y:-a+o},{x:i,y:-a+o}]:s.has("left")?[{x:i,y:0},{x:i,y:-o},{x:n-i,y:-o},{x:n-i,y:-a+o},{x:i,y:-a+o},{x:i,y:-a},{x:0,y:-a/2}]:s.has("up")?[{x:i,y:-o},{x:i,y:-a+o},{x:0,y:-a+o},{x:n/2,y:-a},{x:n,y:-a+o},{x:n-i,y:-a+o},{x:n-i,y:-o}]:s.has("down")?[{x:n/2,y:0},{x:0,y:-o},{x:i,y:-o},{x:i,y:-a+o},{x:n-i,y:-a+o},{x:n-i,y:-o},{x:n,y:-o}]:[{x:0,y:0}]}),"getArrowPoints");function wt(t,e){return t.intersect(e)}(0,o.K2)(wt,"intersectNode");var _t=wt;function Lt(t,e,r,s){var a=t.x,i=t.y,n=a-s.x,o=i-s.y,l=Math.sqrt(e*e*o*o+r*r*n*n),c=Math.abs(e*r*n/l);s.x<a&&(c=-c);var d=Math.abs(e*r*o/l);return s.y<i&&(d=-d),{x:a+c,y:i+d}}(0,o.K2)(Lt,"intersectEllipse");var kt=Lt;function St(t,e,r){return kt(t,e,e,r)}(0,o.K2)(St,"intersectCircle");var vt=St;function Et(t,e,r,s){var a,i,n,o,l,c,d,h,g,u,p,y,b;if(a=e.y-t.y,n=t.x-e.x,l=e.x*t.y-t.x*e.y,g=a*r.x+n*r.y+l,u=a*s.x+n*s.y+l,!(0!==g&&0!==u&&Dt(g,u)||(i=s.y-r.y,o=r.x-s.x,c=s.x*r.y-r.x*s.y,d=i*t.x+o*t.y+c,h=i*e.x+o*e.y+c,0!==d&&0!==h&&Dt(d,h)||0==(p=a*o-i*n))))return y=Math.abs(p/2),{x:(b=n*c-o*l)<0?(b-y)/p:(b+y)/p,y:(b=i*l-a*c)<0?(b-y)/p:(b+y)/p}}function Dt(t,e){return t*e>0}(0,o.K2)(Et,"intersectLine"),(0,o.K2)(Dt,"sameSign");var Ct=Et,Rt=Kt;function Kt(t,e,r){var s=t.x,a=t.y,i=[],n=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){n=Math.min(n,t.x),o=Math.min(o,t.y)})):(n=Math.min(n,e.x),o=Math.min(o,e.y));for(var l=s-t.width/2-n,c=a-t.height/2-o,d=0;d<e.length;d++){var h=e[d],g=e[d<e.length-1?d+1:0],u=Ct(t,r,{x:l+h.x,y:c+h.y},{x:l+g.x,y:c+g.y});u&&i.push(u)}return i.length?(i.length>1&&i.sort((function(t,e){var s=t.x-r.x,a=t.y-r.y,i=Math.sqrt(s*s+a*a),n=e.x-r.x,o=e.y-r.y,l=Math.sqrt(n*n+o*o);return i<l?-1:i===l?0:1})),i[0]):t}(0,o.K2)(Kt,"intersectPolygon");var Nt={node:_t,circle:vt,ellipse:kt,polygon:Rt,rect:(0,o.K2)(((t,e)=>{var r,s,a=t.x,i=t.y,n=e.x-a,o=e.y-i,l=t.width/2,c=t.height/2;return Math.abs(o)*l>Math.abs(n)*c?(o<0&&(c=-c),r=0===o?0:c*n/o,s=c):(n<0&&(l=-l),r=l,s=0===n?0:l*o/n),{x:a+r,y:i+s}}),"intersectRect")},Tt=(0,o.K2)((async(t,e,r,s)=>{const a=(0,o.D7)();let l;const c=e.useHtmlLabels||(0,o._3)(a.flowchart.htmlLabels);l=r||"node default";const d=t.insert("g").attr("class",l).attr("id",e.domId||e.id),g=d.insert("g").attr("class","label").attr("style",e.labelStyle);let u;u=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const p=g.node();let y;y="markdown"===e.labelType?(0,i.GZ)(g,(0,o.jZ)((0,n.Sm)(u),a),{useHtmlLabels:c,width:e.width||a.flowchart.wrappingWidth,classes:"markdown-node-label"},a):p.appendChild(it((0,o.jZ)((0,n.Sm)(u),a),e.labelStyle,!1,s));let b=y.getBBox();const x=e.padding/2;if((0,o._3)(a.flowchart.htmlLabels)){const t=y.children[0],e=(0,h.Ltv)(y),r=t.getElementsByTagName("img");if(r){const t=""===u.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function s(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=a.fontSize?a.fontSize:window.getComputedStyle(document.body).fontSize,r=5,s=parseInt(t,10)*r+"px";e.style.minWidth=s,e.style.maxWidth=s}else e.style.width="100%";r(e)}(0,o.K2)(s,"setupImage"),setTimeout((()=>{e.complete&&s()})),e.addEventListener("error",s),e.addEventListener("load",s)})))))}b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}return c?g.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"):g.attr("transform","translate(0, "+-b.height/2+")"),e.centerLabel&&g.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),g.insert("rect",":first-child"),{shapeSvg:d,bbox:b,halfPadding:x,label:g}}),"labelHelper"),$t=(0,o.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height}),"updateNodeBounds");function At(t,e,r,s){return t.insert("polygon",":first-child").attr("points",s.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,o.K2)(At,"insertPolygonShape");var It=(0,o.K2)((async(t,e)=>{e.useHtmlLabels||(0,o.D7)().flowchart.htmlLabels||(e.centerLabel=!0);const{shapeSvg:r,bbox:s,halfPadding:a}=await Tt(t,e,"node "+e.classes,!0);o.Rm.info("Classes = ",e.classes);const i=r.insert("rect",":first-child");return i.attr("rx",e.rx).attr("ry",e.ry).attr("x",-s.width/2-a).attr("y",-s.height/2-a).attr("width",s.width+e.padding).attr("height",s.height+e.padding),$t(e,i),e.intersect=function(t){return Nt.rect(e,t)},r}),"note"),Ot=(0,o.K2)((t=>t?" "+t:""),"formatClass"),Bt=(0,o.K2)(((t,e)=>`${e||"node default"}${Ot(t.classes)} ${Ot(t.class)}`),"getClassesFromNode"),zt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding+(s.height+e.padding),i=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];o.Rm.info("Question main (Circle)");const n=At(r,a,a,i);return n.attr("style",e.style),$t(e,n),e.intersect=function(t){return o.Rm.warn("Intersect called"),Nt.polygon(e,i,t)},r}),"question"),Mt=(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return r.insert("polygon",":first-child").attr("points",s.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Nt.circle(e,14,t)},r}),"choice"),Pt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.height+e.padding,i=a/4,n=s.width+2*i+e.padding,o=[{x:i,y:0},{x:n-i,y:0},{x:n,y:-a/2},{x:n-i,y:-a},{x:i,y:-a},{x:0,y:-a/2}],l=At(r,n,a,o);return l.attr("style",e.style),$t(e,l),e.intersect=function(t){return Nt.polygon(e,o,t)},r}),"hexagon"),Yt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,void 0,!0),a=s.height+2*e.padding,i=a/2,n=s.width+2*i+e.padding,o=mt(e.directions,s,e),l=At(r,n,a,o);return l.attr("style",e.style),$t(e,l),e.intersect=function(t){return Nt.polygon(e,o,t)},r}),"block_arrow"),Ft=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:-i/2,y:0},{x:a,y:0},{x:a,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return At(r,a,i,n).attr("style",e.style),e.width=a+i,e.height=i,e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"rect_left_inv_arrow"),jt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:-2*i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:i/6,y:-i}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"lean_right"),Wt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:2*i/6,y:0},{x:a+i/6,y:0},{x:a-2*i/6,y:-i},{x:-i/6,y:-i}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"lean_left"),Xt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:-2*i/6,y:0},{x:a+2*i/6,y:0},{x:a-i/6,y:-i},{x:i/6,y:-i}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"trapezoid"),Ht=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:i/6,y:0},{x:a-i/6,y:0},{x:a+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"inv_trapezoid"),Ut=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:0,y:0},{x:a+i/2,y:0},{x:a,y:-i/2},{x:a+i/2,y:-i},{x:0,y:-i}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"rect_right_inv_arrow"),Zt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=a/2,n=i/(2.5+a/50),o=s.height+n+e.padding,l="M 0,"+n+" a "+i+","+n+" 0,0,0 "+a+" 0 a "+i+","+n+" 0,0,0 "+-a+" 0 l 0,"+o+" a "+i+","+n+" 0,0,0 "+a+" 0 l 0,"+-o,c=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-a/2+","+-(o/2+n)+")");return $t(e,c),e.intersect=function(t){const r=Nt.rect(e,t),s=r.x-e.x;if(0!=i&&(Math.abs(s)<e.width/2||Math.abs(s)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-n)){let a=n*n*(1-s*s/(i*i));0!=a&&(a=Math.sqrt(a)),a=n-a,t.y-e.y>0&&(a=-a),r.y+=a}return r},r}),"cylinder"),qt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s,halfPadding:a}=await Tt(t,e,"node "+e.classes+" "+e.class,!0),i=r.insert("rect",":first-child"),n=e.positioned?e.width:s.width+e.padding,l=e.positioned?e.height:s.height+e.padding,c=e.positioned?-n/2:-s.width/2-a,d=e.positioned?-l/2:-s.height/2-a;if(i.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",d).attr("width",n).attr("height",l),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(Vt(i,e.props.borders,n,l),t.delete("borders")),t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}return $t(e,i),e.intersect=function(t){return Nt.rect(e,t)},r}),"rect"),Gt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s,halfPadding:a}=await Tt(t,e,"node "+e.classes,!0),i=r.insert("rect",":first-child"),n=e.positioned?e.width:s.width+e.padding,l=e.positioned?e.height:s.height+e.padding,c=e.positioned?-n/2:-s.width/2-a,d=e.positioned?-l/2:-s.height/2-a;if(i.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",d).attr("width",n).attr("height",l),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(Vt(i,e.props.borders,n,l),t.delete("borders")),t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}return $t(e,i),e.intersect=function(t){return Nt.rect(e,t)},r}),"composite"),Jt=(0,o.K2)((async(t,e)=>{const{shapeSvg:r}=await Tt(t,e,"label",!0);o.Rm.trace("Classes = ",e.class);const s=r.insert("rect",":first-child");if(s.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&(Vt(s,e.props.borders,0,0),t.delete("borders")),t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}return $t(e,s),e.intersect=function(t){return Nt.rect(e,t)},r}),"labelRect");function Vt(t,e,r,s){const a=[],i=(0,o.K2)((t=>{a.push(t,0)}),"addBorder"),n=(0,o.K2)((t=>{a.push(0,t)}),"skipBorder");e.includes("t")?(o.Rm.debug("add top border"),i(r)):n(r),e.includes("r")?(o.Rm.debug("add right border"),i(s)):n(s),e.includes("b")?(o.Rm.debug("add bottom border"),i(r)):n(r),e.includes("l")?(o.Rm.debug("add left border"),i(s)):n(s),t.attr("stroke-dasharray",a.join(" "))}(0,o.K2)(Vt,"applyNodePropertyBorders");var Qt=(0,o.K2)(((t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";const s=t.insert("g").attr("class",r).attr("id",e.domId||e.id),a=s.insert("rect",":first-child"),i=s.insert("line"),n=s.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText;let c="";c="object"==typeof l?l[0]:l,o.Rm.info("Label text abc79",c,l,"object"==typeof l);const d=n.node().appendChild(it(c,e.labelStyle,!0,!0));let g={width:0,height:0};if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=d.children[0],e=(0,h.Ltv)(d);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}o.Rm.info("Text 2",l);const u=l.slice(1,l.length);let p=d.getBBox();const y=n.node().appendChild(it(u.join?u.join("<br/>"):u,e.labelStyle,!0,!0));if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=y.children[0],e=(0,h.Ltv)(y);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}const b=e.padding/2;return(0,h.Ltv)(y).attr("transform","translate( "+(g.width>p.width?0:(p.width-g.width)/2)+", "+(p.height+b+5)+")"),(0,h.Ltv)(d).attr("transform","translate( "+(g.width<p.width?0:-(p.width-g.width)/2)+", 0)"),g=n.node().getBBox(),n.attr("transform","translate("+-g.width/2+", "+(-g.height/2-b+3)+")"),a.attr("class","outer title-state").attr("x",-g.width/2-b).attr("y",-g.height/2-b).attr("width",g.width+e.padding).attr("height",g.height+e.padding),i.attr("class","divider").attr("x1",-g.width/2-b).attr("x2",g.width/2+b).attr("y1",-g.height/2-b+p.height+b).attr("y2",-g.height/2-b+p.height+b),$t(e,a),e.intersect=function(t){return Nt.rect(e,t)},s}),"rectWithTitle"),te=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.height+e.padding,i=s.width+a/4+e.padding,n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-i/2).attr("y",-a/2).attr("width",i).attr("height",a);return $t(e,n),e.intersect=function(t){return Nt.rect(e,t)},r}),"stadium"),ee=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s,halfPadding:a}=await Tt(t,e,Bt(e,void 0),!0),i=r.insert("circle",":first-child");return i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+a).attr("width",s.width+e.padding).attr("height",s.height+e.padding),o.Rm.info("Circle main"),$t(e,i),e.intersect=function(t){return o.Rm.info("Circle intersect",e,s.width/2+a,t),Nt.circle(e,s.width/2+a,t)},r}),"circle"),re=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s,halfPadding:a}=await Tt(t,e,Bt(e,void 0),!0),i=r.insert("g",":first-child"),n=i.insert("circle"),l=i.insert("circle");return i.attr("class",e.class),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+a+5).attr("width",s.width+e.padding+10).attr("height",s.height+e.padding+10),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",s.width/2+a).attr("width",s.width+e.padding).attr("height",s.height+e.padding),o.Rm.info("DoubleCircle main"),$t(e,n),e.intersect=function(t){return o.Rm.info("DoubleCircle intersect",e,s.width/2+a+5,t),Nt.circle(e,s.width/2+a+5,t)},r}),"doublecircle"),se=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:s}=await Tt(t,e,Bt(e,void 0),!0),a=s.width+e.padding,i=s.height+e.padding,n=[{x:0,y:0},{x:a,y:0},{x:a,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=At(r,a,i,n);return o.attr("style",e.style),$t(e,o),e.intersect=function(t){return Nt.polygon(e,n,t)},r}),"subroutine"),ae=(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s=r.insert("circle",":first-child");return s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),$t(e,s),e.intersect=function(t){return Nt.circle(e,7,t)},r}),"start"),ie=(0,o.K2)(((t,e,r)=>{const s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a=70,i=10;"LR"===r&&(a=10,i=70);const n=s.append("rect").attr("x",-1*a/2).attr("y",-1*i/2).attr("width",a).attr("height",i).attr("class","fork-join");return $t(e,n),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Nt.rect(e,t)},s}),"forkJoin"),ne={rhombus:zt,composite:Gt,question:zt,rect:qt,labelRect:Jt,rectWithTitle:Qt,choice:Mt,circle:ee,doublecircle:re,stadium:te,hexagon:Pt,block_arrow:Yt,rect_left_inv_arrow:Ft,lean_right:jt,lean_left:Wt,trapezoid:Xt,inv_trapezoid:Ht,rect_right_inv_arrow:Ut,cylinder:Zt,start:ae,end:(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),s=r.insert("circle",":first-child"),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),s.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),$t(e,a),e.intersect=function(t){return Nt.circle(e,7,t)},r}),"end"),note:It,subroutine:se,fork:ie,join:ie,class_box:(0,o.K2)(((t,e)=>{const r=e.padding/2;let s;s=e.classes?"node "+e.classes:"node default";const a=t.insert("g").attr("class",s).attr("id",e.domId||e.id),i=a.insert("rect",":first-child"),n=a.insert("line"),l=a.insert("line");let c=0,d=4;const g=a.insert("g").attr("class","label");let u=0;const p=e.classData.annotations?.[0],y=e.classData.annotations[0]?"\xab"+e.classData.annotations[0]+"\xbb":"",b=g.node().appendChild(it(y,e.labelStyle,!0,!0));let x=b.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=b.children[0],e=(0,h.Ltv)(b);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}e.classData.annotations[0]&&(d+=x.height+4,c+=x.width);let f=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&((0,o.D7)().flowchart.htmlLabels?f+="<"+e.classData.type+">":f+="<"+e.classData.type+">");const m=g.node().appendChild(it(f,e.labelStyle,!0,!0));(0,h.Ltv)(m).attr("class","classTitle");let w=m.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=m.children[0],e=(0,h.Ltv)(m);w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}d+=w.height+4,w.width>c&&(c=w.width);const _=[];e.classData.members.forEach((t=>{const r=t.getDisplayDetails();let s=r.displayText;(0,o.D7)().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const a=g.node().appendChild(it(s,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0));let i=a.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=a.children[0],e=(0,h.Ltv)(a);i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}i.width>c&&(c=i.width),d+=i.height+4,_.push(a)})),d+=8;const L=[];if(e.classData.methods.forEach((t=>{const r=t.getDisplayDetails();let s=r.displayText;(0,o.D7)().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const a=g.node().appendChild(it(s,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0));let i=a.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=a.children[0],e=(0,h.Ltv)(a);i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}i.width>c&&(c=i.width),d+=i.height+4,L.push(a)})),d+=8,p){let t=(c-x.width)/2;(0,h.Ltv)(b).attr("transform","translate( "+(-1*c/2+t)+", "+-1*d/2+")"),u=x.height+4}let k=(c-w.width)/2;return(0,h.Ltv)(m).attr("transform","translate( "+(-1*c/2+k)+", "+(-1*d/2+u)+")"),u+=w.height+4,n.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-d/2-r+8+u).attr("y2",-d/2-r+8+u),u+=8,_.forEach((t=>{(0,h.Ltv)(t).attr("transform","translate( "+-c/2+", "+(-1*d/2+u+4)+")");const e=t?.getBBox();u+=(e?.height??0)+4})),u+=8,l.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-d/2-r+8+u).attr("y2",-d/2-r+8+u),u+=8,L.forEach((t=>{(0,h.Ltv)(t).attr("transform","translate( "+-c/2+", "+(-1*d/2+u)+")");const e=t?.getBBox();u+=(e?.height??0)+4})),i.attr("style",e.style).attr("class","outer title-state").attr("x",-c/2-r).attr("y",-d/2-r).attr("width",c+e.padding).attr("height",d+e.padding),$t(e,i),e.intersect=function(t){return Nt.rect(e,t)},a}),"class_box")},oe={},le=(0,o.K2)((async(t,e,r)=>{let s,a;if(e.link){let i;"sandbox"===(0,o.D7)().securityLevel?i="_top":e.linkTarget&&(i=e.linkTarget||"_blank"),s=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i),a=await ne[e.shape](s,e,r)}else a=await ne[e.shape](t,e,r),s=a;return e.tooltip&&a.attr("title",e.tooltip),e.class&&a.attr("class","node default "+e.class),oe[e.id]=s,e.haveCallback&&oe[e.id].attr("class",oe[e.id].attr("class")+" clickable"),s}),"insertNode"),ce=(0,o.K2)((t=>{const e=oe[t.id];o.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r}),"positionNode");function de(t,e,r=!1){const s=t;let a="default";(s?.classes?.length||0)>0&&(a=(s?.classes??[]).join(" ")),a+=" flowchart-label";let i,l=0,c="";switch(s.type){case"round":l=5,c="rect";break;case"composite":l=0,c="composite",i=0;break;case"square":case"group":default:c="rect";break;case"diamond":c="question";break;case"hexagon":c="hexagon";break;case"block_arrow":c="block_arrow";break;case"odd":case"rect_left_inv_arrow":c="rect_left_inv_arrow";break;case"lean_right":c="lean_right";break;case"lean_left":c="lean_left";break;case"trapezoid":c="trapezoid";break;case"inv_trapezoid":c="inv_trapezoid";break;case"circle":c="circle";break;case"ellipse":c="ellipse";break;case"stadium":c="stadium";break;case"subroutine":c="subroutine";break;case"cylinder":c="cylinder";break;case"doublecircle":c="doublecircle"}const d=(0,n.sM)(s?.styles??[]),h=s.label,g=s.size??{width:0,height:0,x:0,y:0};return{labelStyle:d.labelStyle,shape:c,labelText:h,rx:l,ry:l,class:a,style:d.style,id:s.id,directions:s.directions,width:g.width,height:g.height,x:g.x,y:g.y,positioned:r,intersect:void 0,type:s.type,padding:i??(0,o.zj)()?.block?.padding??0}}async function he(t,e,r){const s=de(e,0,!1);if("group"===s.type)return;const a=(0,o.zj)(),i=await le(t,s,{config:a}),n=i.node().getBBox(),l=r.getBlock(s.id);l.size={width:n.width,height:n.height,x:0,y:0,node:i},r.setBlock(l),i.remove()}async function ge(t,e,r){const s=de(e,0,!0);if("space"!==r.getBlock(s.id).type){const r=(0,o.zj)();await le(t,s,{config:r}),e.intersect=s?.intersect,ce(s)}}async function ue(t,e,r,s){for(const a of e)await s(t,a,r),a.children&&await ue(t,a.children,r,s)}async function pe(t,e,r){await ue(t,e,r,he)}async function ye(t,e,r){await ue(t,e,r,ge)}async function be(t,e,r,s,a){const i=new g.T({multigraph:!0,compound:!0});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const n of r)n.size&&i.setNode(n.id,{width:n.size.width,height:n.size.height,intersect:n.intersect});for(const n of e)if(n.start&&n.end){const e=s.getBlock(n.start),r=s.getBlock(n.end);if(e?.size&&r?.size){const s=e.size,o=r.size,l=[{x:s.x,y:s.y},{x:s.x+(o.x-s.x)/2,y:s.y+(o.y-s.y)/2},{x:o.x,y:o.y}];xt(t,{v:n.start,w:n.end,name:n.id},{...n,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",i,a),n.label&&(await ht(t,{...n,label:n.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),ut({...n,x:l[1].x,y:l[1].y},{originalPath:l}))}}}(0,o.K2)(de,"getNodeFromBlock"),(0,o.K2)(he,"calculateBlockSize"),(0,o.K2)(ge,"insertBlockPositioned"),(0,o.K2)(ue,"performOperations"),(0,o.K2)(pe,"calculateBlockSizes"),(0,o.K2)(ye,"insertBlocks"),(0,o.K2)(be,"insertEdges");var xe=(0,o.K2)((function(t,e){return e.db.getClasses()}),"getClasses"),fe={parser:p,db:W,renderer:{draw:(0,o.K2)((async function(t,e,r,s){const{securityLevel:a,block:i}=(0,o.zj)(),n=s.db;let l;"sandbox"===a&&(l=(0,h.Ltv)("#i"+e));const c="sandbox"===a?(0,h.Ltv)(l.nodes()[0].contentDocument.body):(0,h.Ltv)("body"),d="sandbox"===a?c.select(`[id="${e}"]`):(0,h.Ltv)(`[id="${e}"]`);q(d,["point","circle","cross"],s.type,e);const g=n.getBlocks(),u=n.getBlocksFlat(),p=n.getEdges(),y=d.insert("g").attr("class","block");await pe(y,g,n);const b=rt(n);if(await ye(y,g,n),await be(y,p,u,n,e),b){const t=b,e=Math.max(1,Math.round(t.width/t.height*.125)),r=t.height+e+10,s=t.width+10,{useMaxWidth:a}=i;(0,o.a$)(d,r,s,!!a),o.Rm.debug("Here Bounds",b,t),d.attr("viewBox",`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}}),"draw"),getClasses:xe},styles:H}}}]); \ No newline at end of file diff --git a/website/assets/js/545.8c5343de.js b/website/assets/js/545.8c5343de.js new file mode 100644 index 000000000..f867f30a0 --- /dev/null +++ b/website/assets/js/545.8c5343de.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[545],{2926:(t,i,e)=>{e.d(i,{diagram:()=>J});var s=e(483),n=e(540),a=e(7286),h=e(9),o=e(7),r=function(){var t=(0,h.K2)((function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e}),"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],a=[1,6],o=[1,7],r=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],f=[1,33],y=[1,34],m=[1,35],b=[1,36],A=[1,37],S=[1,43],C=[1,42],w=[1,47],k=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:(0,h.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,h.K2)((function(t,i,e,s,n,a,h){var o=a.length-1;switch(n){case 5:s.setOrientation(a[o]);break;case 9:s.setDiagramTitle(a[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},a[o]);break;case 13:s.setLineData(a[o-1],a[o]);break;case 14:s.setBarData({text:"",type:"text"},a[o]);break;case 15:s.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=a[o-1];break;case 20:this.$=[Number(a[o-2]),...a[o]];break;case 21:this.$=[Number(a[o])];break;case 22:s.setXAxisTitle(a[o]);break;case 23:s.setXAxisTitle(a[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(a[o]);break;case 26:s.setXAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 28:this.$=[a[o-2],...a[o]];break;case 29:this.$=[a[o]];break;case 30:s.setYAxisTitle(a[o]);break;case 31:s.setYAxisTitle(a[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 37:case 38:this.$={text:a[o],type:"text"};break;case 39:this.$={text:a[o],type:"markdown"};break;case 40:this.$=a[o];break;case 41:this.$=a[o-1]+""+a[o]}}),"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:a,36:o}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:a,36:o}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:a,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(r,[2,34]),t(r,[2,35]),t(r,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:a,36:o}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:n,35:a,36:o}),{11:23,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},{11:39,13:38,24:S,27:C,29:40,30:41,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},{11:45,15:44,27:w,33:46,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},{11:49,17:48,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},{11:52,17:51,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(_,[2,10]),t(_,[2,22],{30:41,29:56,24:S,27:C}),t(_,[2,24]),t(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},t(_,[2,11]),t(_,[2,30],{33:60,27:w}),t(_,[2,32]),{31:[1,61]},t(_,[2,12]),{17:62,24:k},{25:63,27:D},t(_,[2,14]),{17:65,24:k},t(_,[2,16]),t(_,[2,17]),t(R,[2,41]),t(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(_,[2,31]),{27:[1,69]},t(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(_,[2,15]),t(_,[2,26]),t(_,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:y,48:m,49:b,50:A},t(_,[2,33]),t(_,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,h.K2)((function(t,i){if(!i.recoverable){var e=new Error(t);throw e.hash=i,e}this.trace(t)}),"parseError"),parse:(0,h.K2)((function(t){var i=this,e=[0],s=[],n=[null],a=[],o=this.table,r="",l=0,c=0,g=0,u=a.slice.call(arguments,1),x=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);x.setInput(t,d.yy),d.yy.lexer=x,d.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc;a.push(f);var y=x.options&&x.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||x.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K2)((function(t){e.length=e.length-2*t,n.length=n.length-t,a.length=a.length-t}),"popStack"),(0,h.K2)(m,"lex");for(var b,A,S,C,w,k,_,T,R,D={};;){if(S=e[e.length-1],this.defaultActions[S]?C=this.defaultActions[S]:(null==b&&(b=m()),C=o[S]&&o[S][b]),void 0===C||!C.length||!C[0]){var L="";for(k in R=[],o[S])this.terminals_[k]&&k>2&&R.push("'"+this.terminals_[k]+"'");L=x.showPosition?"Parse error on line "+(l+1)+":\n"+x.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:f,expected:R})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+b);switch(C[0]){case 1:e.push(b),n.push(x.yytext),a.push(x.yylloc),e.push(C[1]),b=null,A?(b=A,A=null):(c=x.yyleng,r=x.yytext,l=x.yylineno,f=x.yylloc,g>0&&g--);break;case 2:if(_=this.productions_[C[1]][1],D.$=n[n.length-_],D._$={first_line:a[a.length-(_||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(_||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(_||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[r,c,l,d.yy,C[1],n,a].concat(u))))return w;_&&(e=e.slice(0,-1*_*2),n=n.slice(0,-1*_),a=a.slice(0,-1*_)),e.push(this.productions_[C[1]][0]),n.push(D.$),a.push(D._$),T=o[e[e.length-2]][e[e.length-1]],e.push(T);break;case 3:return!0}}return!0}),"parse")},P=function(){return{EOF:1,parseError:(0,h.K2)((function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)}),"parseError"),setInput:(0,h.K2)((function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,h.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,h.K2)((function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,h.K2)((function(){return this._more=!0,this}),"more"),reject:(0,h.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,h.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,h.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,h.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,h.K2)((function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"}),"showPosition"),test_match:(0,h.K2)((function(t,i){var e,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1}),"test_match"),next:(0,h.K2)((function(){if(this.done)return this.EOF;var t,i,e,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((e=this._input.match(this.rules[n[a]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[a])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,h.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,h.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,h.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,h.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,h.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,h.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,h.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.K2)((function(t,i,e,s){switch(e){case 0:case 1:case 5:case 43:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 25:case 27:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 26:this.pushState("string");break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 44:return 35;case 45:return 36}}),"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}}}();function E(){this.yy={}}return L.lexer=P,(0,h.K2)(E,"Parser"),E.prototype=L,L.Parser=E,new E}();r.parser=r;var l=r;function c(t){return"bar"===t.type}function g(t){return"band"===t.type}function u(t){return"linear"===t.type}(0,h.K2)(c,"isBarPlot"),(0,h.K2)(g,"isBandAxisData"),(0,h.K2)(u,"isLinearAxisData");var x=class{constructor(t){this.parentGroup=t}static{(0,h.K2)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce(((t,i)=>Math.max(i.length,t)),0)*i,height:i};const e={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const a of t){const t=(0,s.W6)(n,1,a),h=t?t.width:a.length*i,o=t?t.height:i;e.width=Math.max(e.width,h),e.height=Math.max(e.height,o)}return n.remove(),e}},d=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{(0,h.K2)(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((t=>t.toString())),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);const n=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);const n=e.width+2*this.axisConfig.labelPadding;n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"})))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"})))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map((t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"})))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map((t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth})))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},p=class extends d{static{(0,h.K2)(this,"BandAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.categories=e,this.scale=(0,o.WH)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,o.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),h.Rm.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},f=class extends d{static{(0,h.K2)(this,"LinearAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.domain=e,this.scale=(0,o.m4Y)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,o.m4Y)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function y(t,i,e,s){const n=new x(s);return g(t)?new p(i,e,t.categories,t.title,n):new f(i,e,[t.min,t.max],t.title,n)}(0,h.K2)(y,"getAxis");var m=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,h.K2)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function b(t,i,e,s){const n=new x(s);return new m(n,t,i,e)}(0,h.K2)(b,"getChartTitleComponent");var A=class{constructor(t,i,e,s,n){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=n}static{(0,h.K2)(this,"LinePlot")}getDrawableElement(){const t=this.plotData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]));let i;return i="horizontal"===this.orientation?(0,o.n8j)().y((t=>t[0])).x((t=>t[1]))(t):(0,o.n8j)().x((t=>t[0])).y((t=>t[1]))(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},S=class{constructor(t,i,e,s,n,a){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=n,this.plotIndex=a}static{(0,h.K2)(this,"BarPlot")}getDrawableElement(){const t=this.barData.data.map((t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])])),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map((t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill})))}]}},C=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,h.K2)(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new A(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new S(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function w(t,i,e){return new C(t,i,e)}(0,h.K2)(w,"getPlotComponent");var k,_=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:b(t,i,e,s),plot:w(t,i,e),xAxis:y(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:y(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,h.K2)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:n,height:a});t-=h.width,i-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=h.height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=h.width,t-=h.width,t>0&&(n+=t,t=0),i>0&&(a+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:a}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+n]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+a}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some((t=>c(t)))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:h});t-=o.width,i-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=o.height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,n=e+o.height,t>0&&(a+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([n,n+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some((t=>c(t)))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},T=class{static{(0,h.K2)(this,"XYChartBuilder")}static build(t,i,e,s){return new _(t,i,e,s).getDrawableElement()}},R=0,D=$(),L=I(),P=M(),E=L.plotColorPalette.split(",").map((t=>t.trim())),v=!1,K=!1;function I(){const t=(0,h.P$)(),i=(0,h.zj)();return(0,n.$t)(t.xyChart,i.themeVariables.xyChart)}function $(){const t=(0,h.zj)();return(0,n.$t)(h.UI.xyChart,t.xyChart)}function M(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function B(t){const i=(0,h.zj)();return(0,h.jZ)(t.trim(),i)}function z(t){k=t}function W(t){D.chartOrientation="horizontal"===t?"horizontal":"vertical"}function O(t){P.xAxis.title=B(t.text)}function F(t,i){P.xAxis={type:"linear",title:P.xAxis.title,min:t,max:i},v=!0}function N(t){P.xAxis={type:"band",title:P.xAxis.title,categories:t.map((t=>B(t.text)))},v=!0}function V(t){P.yAxis.title=B(t.text)}function X(t,i){P.yAxis={type:"linear",title:P.yAxis.title,min:t,max:i},K=!0}function Y(t){const i=Math.min(...t),e=Math.max(...t),s=u(P.yAxis)?P.yAxis.min:1/0,n=u(P.yAxis)?P.yAxis.max:-1/0;P.yAxis={type:"linear",title:P.yAxis.title,min:Math.min(s,i),max:Math.max(n,e)}}function U(t){let i=[];if(0===t.length)return i;if(!v){const i=u(P.xAxis)?P.xAxis.min:1/0,e=u(P.xAxis)?P.xAxis.max:-1/0;F(Math.min(i,1),Math.max(e,t.length))}if(K||Y(t),g(P.xAxis)&&(i=P.xAxis.categories.map(((i,e)=>[i,t[e]]))),u(P.xAxis)){const e=P.xAxis.min,s=P.xAxis.max,n=(s-e)/(t.length-1),a=[];for(let t=e;t<=s;t+=n)a.push(`${t}`);i=a.map(((i,e)=>[i,t[e]]))}return i}function H(t){return E[0===t?0:t%E.length]}function j(t,i){const e=U(i);P.plots.push({type:"line",strokeFill:H(R),strokeWidth:2,data:e}),R++}function G(t,i){const e=U(i);P.plots.push({type:"bar",fill:H(R),data:e}),R++}function Q(){if(0===P.plots.length)throw Error("No Plot to render, please provide a plot with some data");return P.title=(0,h.ab)(),T.build(D,P,L,k)}function Z(){return L}function q(){return D}(0,h.K2)(I,"getChartDefaultThemeConfig"),(0,h.K2)($,"getChartDefaultConfig"),(0,h.K2)(M,"getChartDefaultData"),(0,h.K2)(B,"textSanitizer"),(0,h.K2)(z,"setTmpSVGG"),(0,h.K2)(W,"setOrientation"),(0,h.K2)(O,"setXAxisTitle"),(0,h.K2)(F,"setXAxisRangeData"),(0,h.K2)(N,"setXAxisBand"),(0,h.K2)(V,"setYAxisTitle"),(0,h.K2)(X,"setYAxisRangeData"),(0,h.K2)(Y,"setYAxisRangeFromPlotData"),(0,h.K2)(U,"transformDataWithoutCategory"),(0,h.K2)(H,"getPlotColorFromPalette"),(0,h.K2)(j,"setLineData"),(0,h.K2)(G,"setBarData"),(0,h.K2)(Q,"getDrawableElem"),(0,h.K2)(Z,"getChartThemeConfig"),(0,h.K2)(q,"getChartConfig");var J={parser:l,db:{getDrawableElem:Q,clear:(0,h.K2)((function(){(0,h.IU)(),R=0,D=$(),P={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},L=I(),E=L.plotColorPalette.split(",").map((t=>t.trim())),v=!1,K=!1}),"clear"),setAccTitle:h.SV,getAccTitle:h.iN,setDiagramTitle:h.ke,getDiagramTitle:h.ab,getAccDescription:h.m7,setAccDescription:h.EI,setOrientation:W,setXAxisTitle:O,setXAxisRangeData:F,setXAxisBand:N,setYAxisTitle:V,setYAxisRangeData:X,setLineData:j,setBarData:G,setTmpSVGG:z,getChartThemeConfig:Z,getChartConfig:q},renderer:{draw:(0,h.K2)(((t,i,e,s)=>{const n=s.db,o=n.getChartThemeConfig(),r=n.getChartConfig();function l(t){return"top"===t?"text-before-edge":"middle"}function c(t){return"left"===t?"start":"right"===t?"end":"middle"}function g(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,h.K2)(l,"getDominantBaseLine"),(0,h.K2)(c,"getTextAnchor"),(0,h.K2)(g,"getTextTransformation"),h.Rm.debug("Rendering xychart chart\n"+t);const u=(0,a.D)(i),x=u.append("g").attr("class","main"),d=x.append("rect").attr("width",r.width).attr("height",r.height).attr("class","background");(0,h.a$)(u,r.height,r.width,!0),u.attr("viewBox",`0 0 ${r.width} ${r.height}`),d.attr("fill",o.backgroundColor),n.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group"));const p=n.getDrawableElem(),f={};function y(t){let i=x,e="";for(const[s]of t.entries()){let n=x;s>0&&f[e]&&(n=f[e]),e+=t[s],i=f[e],i||(i=f[e]=n.append("g").attr("class",t[s]))}return i}(0,h.K2)(y,"getGroup");for(const a of p){if(0===a.data.length)continue;const t=y(a.groupTexts);switch(a.type){case"rect":t.selectAll("rect").data(a.data).enter().append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth));break;case"text":t.selectAll("text").data(a.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>l(t.verticalPos))).attr("text-anchor",(t=>c(t.horizontalPos))).attr("transform",(t=>g(t))).text((t=>t.text));break;case"path":t.selectAll("path").data(a.data).enter().append("path").attr("d",(t=>t.path)).attr("fill",(t=>t.fill?t.fill:"none")).attr("stroke",(t=>t.strokeFill)).attr("stroke-width",(t=>t.strokeWidth))}}}),"draw")}}}}]); \ No newline at end of file diff --git a/website/assets/js/58e0c7b0.b064d201.js b/website/assets/js/58e0c7b0.b064d201.js new file mode 100644 index 000000000..3c6f3fd44 --- /dev/null +++ b/website/assets/js/58e0c7b0.b064d201.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6655],{8793:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>l});const a=JSON.parse('{"id":"api/type-aliases/LunaticChangesHandler","title":"Type Alias: LunaticChangesHandler()","description":"LunaticChangesHandler: (args) => void","source":"@site/docs/api/type-aliases/LunaticChangesHandler.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticChangesHandler","permalink":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticChangesHandler.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticExtraProps","permalink":"/Lunatic/docs/api/interfaces/LunaticExtraProps"},"next":{"title":"LunaticCollectedValue","permalink":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue"}}');var s=t(4848),r=t(8453);const i={},c="Type Alias: LunaticChangesHandler()",d={},l=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Defined in",id:"defined-in",level:2}];function o(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"type-alias-lunaticchangeshandler",children:"Type Alias: LunaticChangesHandler()"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"LunaticChangesHandler"}),": (",(0,s.jsx)(n.code,{children:"args"}),") => ",(0,s.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Function taking as arguments the various changes the user has made."}),"\n",(0,s.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"object"}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L347",children:"src/use-lunatic/type.ts:347"})})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>c});var a=t(6540);const s={},r=a.createContext(s);function i(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/5978.b8a78a84.js b/website/assets/js/5978.b8a78a84.js new file mode 100644 index 000000000..abeff11cf --- /dev/null +++ b/website/assets/js/5978.b8a78a84.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5978],{8160:(t,r,e)=>{e.d(r,{m:()=>o});var n=e(9),o=class{constructor(t){this.init=t,this.records=this.init()}static{(0,n.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},3933:(t,r,e)=>{function n(t,r){t.accDescr&&r.setAccDescription?.(t.accDescr),t.accTitle&&r.setAccTitle?.(t.accTitle),t.title&&r.setDiagramTitle?.(t.title)}e.d(r,{S:()=>n}),(0,e(9).K2)(n,"populateCommonDb")},5978:(t,r,e)=>{e.d(r,{diagram:()=>ft});var n=e(3933),o=e(8160),a=e(540),c=e(9),s=e(8731),i=e(7),h={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},d=c.UI.gitGraph,m=(0,c.K2)((()=>(0,a.$t)({...d,...(0,c.zj)().gitGraph})),"getConfig"),$=new o.m((()=>{const t=m(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}}));function l(){return(0,a.yT)({length:7})}function y(t,r){const e=Object.create(null);return t.reduce(((t,n)=>{const o=r(n);return e[o]||(e[o]=!0,t.push(n)),t}),[])}(0,c.K2)(l,"getID"),(0,c.K2)(y,"uniqBy");var g=(0,c.K2)((function(t){$.records.direction=t}),"setDirection"),p=(0,c.K2)((function(t){c.Rm.debug("options str",t),t=t?.trim(),t=t||"{}";try{$.records.options=JSON.parse(t)}catch(r){c.Rm.error("error while parsing gitGraph options",r.message)}}),"setOptions"),x=(0,c.K2)((function(){return $.records.options}),"getOptions"),f=(0,c.K2)((function(t){let r=t.msg,e=t.id;const n=t.type;let o=t.tags;c.Rm.info("commit",r,e,n,o),c.Rm.debug("Entering commit:",r,e,n,o);const a=m();e=c.Y2.sanitizeText(e,a),r=c.Y2.sanitizeText(r,a),o=o?.map((t=>c.Y2.sanitizeText(t,a)));const s={id:e||$.records.seq+"-"+l(),message:r,seq:$.records.seq++,type:n??h.NORMAL,tags:o??[],parents:null==$.records.head?[]:[$.records.head.id],branch:$.records.currBranch};$.records.head=s,c.Rm.info("main branch",a.mainBranchName),$.records.commits.set(s.id,s),$.records.branches.set($.records.currBranch,s.id),c.Rm.debug("in pushCommit "+s.id)}),"commit"),u=(0,c.K2)((function(t){let r=t.name;const e=t.order;if(r=c.Y2.sanitizeText(r,m()),$.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);$.records.branches.set(r,null!=$.records.head?$.records.head.id:null),$.records.branchConfig.set(r,{name:r,order:e}),B(r),c.Rm.debug("in createBranch")}),"branch"),b=(0,c.K2)((t=>{let r=t.branch,e=t.id;const n=t.type,o=t.tags,a=m();r=c.Y2.sanitizeText(r,a),e&&(e=c.Y2.sanitizeText(e,a));const s=$.records.branches.get($.records.currBranch),i=$.records.branches.get(r),d=s?$.records.commits.get(s):void 0,y=i?$.records.commits.get(i):void 0;if(d&&y&&d.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if($.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===d||!d){const t=new Error(`Incorrect usage of "merge". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!$.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===y||!y){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(d===y){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&$.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw t.hash={text:`merge ${r} ${e} ${n} ${o?.join(" ")}`,token:`merge ${r} ${e} ${n} ${o?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${n} ${o?.join(" ")}`]},t}const g=i||"",p={id:e||`${$.records.seq}-${l()}`,message:`merged branch ${r} into ${$.records.currBranch}`,seq:$.records.seq++,parents:null==$.records.head?[]:[$.records.head.id,g],branch:$.records.currBranch,type:h.MERGE,customType:n,customId:!!e,tags:o??[]};$.records.head=p,$.records.commits.set(p.id,p),$.records.branches.set($.records.currBranch,p.id),c.Rm.debug($.records.branches),c.Rm.debug("in mergeBranch")}),"merge"),w=(0,c.K2)((function(t){let r=t.id,e=t.targetId,n=t.tags,o=t.parent;c.Rm.debug("Entering cherryPick:",r,e,n);const a=m();if(r=c.Y2.sanitizeText(r,a),e=c.Y2.sanitizeText(e,a),n=n?.map((t=>c.Y2.sanitizeText(t,a))),o=c.Y2.sanitizeText(o,a),!r||!$.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const s=$.records.commits.get(r);if(void 0===s||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&(!Array.isArray(s.parents)||!s.parents.includes(o))){throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.")}const i=s.branch;if(s.type===h.MERGE&&!o){throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.")}if(!e||!$.records.commits.has(e)){if(i===$.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=$.records.branches.get($.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=$.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const d={id:$.records.seq+"-"+l(),message:`cherry-picked ${s?.message} into ${$.records.currBranch}`,seq:$.records.seq++,parents:null==$.records.head?[]:[$.records.head.id,s.id],branch:$.records.currBranch,type:h.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===h.MERGE?`|parent:${o}`:""}`]};$.records.head=d,$.records.commits.set(d.id,d),$.records.branches.set($.records.currBranch,d.id),c.Rm.debug($.records.branches),c.Rm.debug("in cherryPick")}}),"cherryPick"),B=(0,c.K2)((function(t){if(t=c.Y2.sanitizeText(t,m()),!$.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{$.records.currBranch=t;const r=$.records.branches.get($.records.currBranch);$.records.head=void 0!==r&&r?$.records.commits.get(r)??null:null}}),"checkout");function E(t,r,e){const n=t.indexOf(r);-1===n?t.push(e):t.splice(n,1,e)}function k(t){const r=t.reduce(((t,r)=>t.seq>r.seq?t:r),t[0]);let e="";t.forEach((function(t){e+=t===r?"\t*":"\t|"}));const n=[e,r.id,r.seq];for(const o in $.records.branches)$.records.branches.get(o)===r.id&&n.push(o);if(c.Rm.debug(n.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=$.records.commits.get(r.parents[0]);E(t,r,e),r.parents[1]&&t.push($.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=$.records.commits.get(r.parents[0]);E(t,r,e)}}k(t=y(t,(t=>t.id)))}(0,c.K2)(E,"upsert"),(0,c.K2)(k,"prettyPrintCommitHistory");var C=(0,c.K2)((function(){c.Rm.debug($.records.commits);k([R()[0]])}),"prettyPrint"),T=(0,c.K2)((function(){$.reset(),(0,c.IU)()}),"clear"),L=(0,c.K2)((function(){return[...$.records.branchConfig.values()].map(((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)})).sort(((t,r)=>(t.order??0)-(r.order??0))).map((({name:t})=>({name:t})))}),"getBranchesAsObjArray"),K=(0,c.K2)((function(){return $.records.branches}),"getBranches"),M=(0,c.K2)((function(){return $.records.commits}),"getCommits"),R=(0,c.K2)((function(){const t=[...$.records.commits.values()];return t.forEach((function(t){c.Rm.debug(t.id)})),t.sort(((t,r)=>t.seq-r.seq)),t}),"getCommitsArray"),v={commitType:h,getConfig:m,setDirection:g,setOptions:p,getOptions:x,commit:f,branch:u,merge:b,cherryPick:w,checkout:B,prettyPrint:C,clear:T,getBranchesAsObjArray:L,getBranches:K,getCommits:M,getCommitsArray:R,getCurrentBranch:(0,c.K2)((function(){return $.records.currBranch}),"getCurrentBranch"),getDirection:(0,c.K2)((function(){return $.records.direction}),"getDirection"),getHead:(0,c.K2)((function(){return $.records.head}),"getHead"),setAccTitle:c.SV,getAccTitle:c.iN,getAccDescription:c.m7,setAccDescription:c.EI,setDiagramTitle:c.ke,getDiagramTitle:c.ab},P=(0,c.K2)(((t,r)=>{(0,n.S)(t,r),t.dir&&r.setDirection(t.dir);for(const e of t.statements)I(e,r)}),"populate"),I=(0,c.K2)(((t,r)=>{const e={Commit:(0,c.K2)((t=>r.commit(A(t))),"Commit"),Branch:(0,c.K2)((t=>r.branch(G(t))),"Branch"),Merge:(0,c.K2)((t=>r.merge(O(t))),"Merge"),Checkout:(0,c.K2)((t=>r.checkout(q(t))),"Checkout"),CherryPicking:(0,c.K2)((t=>r.cherryPick(z(t))),"CherryPicking")}[t.$type];e?e(t):c.Rm.error(`Unknown statement type: ${t.$type}`)}),"parseStatement"),A=(0,c.K2)((t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?h[t.type]:h.NORMAL,tags:t.tags??void 0})),"parseCommit"),G=(0,c.K2)((t=>({name:t.name,order:t.order??0})),"parseBranch"),O=(0,c.K2)((t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?h[t.type]:void 0,tags:t.tags??void 0})),"parseMerge"),q=(0,c.K2)((t=>t.branch),"parseCheckout"),z=(0,c.K2)((t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent})),"parseCherryPicking"),H={parse:(0,c.K2)((async t=>{const r=await(0,s.qg)("gitGraph",t);c.Rm.debug(r),P(r,v)}),"parse")};var S=(0,c.D7)(),D=S?.gitGraph,Y=10,N=40,j=new Map,W=new Map,_=new Map,F=[],U=0,V="LR",J=(0,c.K2)((()=>{j.clear(),W.clear(),_.clear(),U=0,F=[],V="LR"}),"clear"),Q=(0,c.K2)((t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach((t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)})),r}),"drawText"),X=(0,c.K2)((t=>{let r,e,n;return"BT"===V?(e=(0,c.K2)(((t,r)=>t<=r),"comparisonFunc"),n=1/0):(e=(0,c.K2)(((t,r)=>t>=r),"comparisonFunc"),n=0),t.forEach((t=>{const o="TB"===V||"BT"==V?W.get(t)?.y:W.get(t)?.x;void 0!==o&&e(o,n)&&(r=t,n=o)})),r}),"findClosestParent"),Z=(0,c.K2)((t=>{let r="",e=1/0;return t.forEach((t=>{const n=W.get(t).y;n<=e&&(r=t,e=n)})),r||void 0}),"findClosestParentBT"),tt=(0,c.K2)(((t,r,e)=>{let n=e,o=e;const a=[];t.forEach((t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(n=et(e),o=Math.max(n,o)):a.push(e),nt(e,n)})),n=o,a.forEach((t=>{ot(t,n,e)})),t.forEach((t=>{const e=r.get(t);if(e?.parents.length){const t=Z(e.parents);n=W.get(t).y-N,n<=o&&(o=n);const r=j.get(e.branch).pos,a=n-Y;W.set(e.id,{x:r,y:a})}}))}),"setParallelBTPos"),rt=(0,c.K2)((t=>{const r=X(t.parents.filter((t=>null!==t)));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=W.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e}),"findClosestParentPos"),et=(0,c.K2)((t=>rt(t)+N),"calculateCommitPosition"),nt=(0,c.K2)(((t,r)=>{const e=j.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const n=e.pos,o=r+Y;return W.set(t.id,{x:n,y:o}),{x:n,y:o}}),"setCommitPosition"),ot=(0,c.K2)(((t,r,e)=>{const n=j.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=r+e,a=n.pos;W.set(t.id,{x:a,y:o})}),"setRootPosition"),at=(0,c.K2)(((t,r,e,n,o,a)=>{if(a===h.HIGHLIGHT)t.append("rect").attr("x",e.x-10).attr("y",e.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${o%8} ${n}-outer`),t.append("rect").attr("x",e.x-6).attr("y",e.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${o%8} ${n}-inner`);else if(a===h.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const c=t.append("circle");if(c.attr("cx",e.x),c.attr("cy",e.y),c.attr("r",r.type===h.MERGE?9:10),c.attr("class",`commit ${r.id} commit${o%8}`),a===h.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",6),a.attr("class",`commit ${n} ${r.id} commit${o%8}`)}if(a===h.REVERSE){t.append("path").attr("d",`M ${e.x-5},${e.y-5}L${e.x+5},${e.y+5}M${e.x-5},${e.y+5}L${e.x+5},${e.y-5}`).attr("class",`commit ${n} ${r.id} commit${o%8}`)}}}),"drawCommitBullet"),ct=(0,c.K2)(((t,r,e,n)=>{if(r.type!==h.CHERRY_PICK&&(r.customId&&r.type===h.MERGE||r.type!==h.MERGE)&&D?.showCommitLabel){const o=t.append("g"),a=o.insert("rect").attr("class","commit-label-bkg"),c=o.append("text").attr("x",n).attr("y",e.y+25).attr("class","commit-label").text(r.id),s=c.node()?.getBBox();if(s&&(a.attr("x",e.posWithOffset-s.width/2-2).attr("y",e.y+13.5).attr("width",s.width+4).attr("height",s.height+4),"TB"===V||"BT"===V?(a.attr("x",e.x-(s.width+16+5)).attr("y",e.y-12),c.attr("x",e.x-(s.width+16)).attr("y",e.y+s.height-12)):c.attr("x",e.posWithOffset-s.width/2),D.rotateCommitLabel))if("TB"===V||"BT"===V)c.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),a.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(s.width+10)/25*9.5,r=10+s.width/25*8.5;o.attr("transform","translate("+t+", "+r+") rotate(-45, "+n+", "+e.y+")")}}}),"drawCommitLabel"),st=(0,c.K2)(((t,r,e,n)=>{if(r.tags.length>0){let o=0,a=0,c=0;const s=[];for(const n of r.tags.reverse()){const r=t.insert("polygon"),i=t.append("circle"),h=t.append("text").attr("y",e.y-16-o).attr("class","tag-label").text(n),d=h.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),c=Math.max(c,d.height),h.attr("x",e.posWithOffset-d.width/2),s.push({tag:h,hole:i,rect:r,yOffset:o}),o+=20}for(const{tag:t,hole:r,rect:i,yOffset:h}of s){const o=c/2,s=e.y-19.2-h;if(i.attr("class","tag-label-bkg").attr("points",`\n ${n-a/2-2},${s+2} \n ${n-a/2-2},${s-2}\n ${e.posWithOffset-a/2-4},${s-o-2}\n ${e.posWithOffset+a/2+4},${s-o-2}\n ${e.posWithOffset+a/2+4},${s+o+2}\n ${e.posWithOffset-a/2-4},${s+o+2}`),r.attr("cy",s).attr("cx",n-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===V||"BT"===V){const c=n+h;i.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${c+2}\n ${e.x},${c-2}\n ${e.x+Y},${c-o-2}\n ${e.x+Y+a+4},${c-o-2}\n ${e.x+Y+a+4},${c+o+2}\n ${e.x+Y},${c+o+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+n+")"),r.attr("cx",e.x+2).attr("cy",c).attr("transform","translate(12,12) rotate(45, "+e.x+","+n+")"),t.attr("x",e.x+5).attr("y",c+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+n+")")}}}}),"drawCommitTags"),it=(0,c.K2)((t=>{switch(t.customType??t.type){case h.NORMAL:return"commit-normal";case h.REVERSE:return"commit-reverse";case h.HIGHLIGHT:return"commit-highlight";case h.MERGE:return"commit-merge";case h.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}}),"getCommitClassType"),ht=(0,c.K2)(((t,r,e,n)=>{const o={x:0,y:0};if(!(t.parents.length>0)){if("TB"===r)return 30;if("BT"===r){return(n.get(t.id)??o).y-N}return 0}{const e=X(t.parents);if(e){const a=n.get(e)??o;if("TB"===r)return a.y+N;if("BT"===r){return(n.get(t.id)??o).y-N}return a.x+N}}return 0}),"calculatePosition"),dt=(0,c.K2)(((t,r,e)=>{const n="BT"===V&&e?r:r+Y,o="TB"===V||"BT"===V?n:j.get(t.branch)?.pos,a="TB"===V||"BT"===V?j.get(t.branch)?.pos:n;if(void 0===a||void 0===o)throw new Error(`Position were undefined for commit ${t.id}`);return{x:a,y:o,posWithOffset:n}}),"getCommitPosition"),mt=(0,c.K2)(((t,r,e)=>{if(!D)throw new Error("GitGraph config not found");const n=t.append("g").attr("class","commit-bullets"),o=t.append("g").attr("class","commit-labels");let a="TB"===V||"BT"===V?30:0;const s=[...r.keys()],i=D?.parallelCommits??!1,h=(0,c.K2)(((t,e)=>{const n=r.get(t)?.seq,o=r.get(e)?.seq;return void 0!==n&&void 0!==o?n-o:0}),"sortKeys");let d=s.sort(h);"BT"===V&&(i&&tt(d,r,a),d=d.reverse()),d.forEach((t=>{const c=r.get(t);if(!c)throw new Error(`Commit not found for key ${t}`);i&&(a=ht(c,V,a,W));const s=dt(c,a,i);if(e){const t=it(c),r=c.customType??c.type,e=j.get(c.branch)?.index??0;at(n,c,s,t,e,r),ct(o,c,s,a),st(o,c,s,a)}"TB"===V||"BT"===V?W.set(c.id,{x:s.x,y:s.posWithOffset}):W.set(c.id,{x:s.posWithOffset,y:s.y}),a="BT"===V&&i?a+N:a+N+Y,a>U&&(U=a)}))}),"drawCommits"),$t=(0,c.K2)(((t,r,e,n,o)=>{const a=("TB"===V||"BT"===V?e.x<n.x:e.y<n.y)?r.branch:t.branch,s=(0,c.K2)((t=>t.branch===a),"isOnBranchToGetCurve"),i=(0,c.K2)((e=>e.seq>t.seq&&e.seq<r.seq),"isBetweenCommits");return[...o.values()].some((t=>i(t)&&s(t)))}),"shouldRerouteArrow"),lt=(0,c.K2)(((t,r,e=0)=>{const n=t+Math.abs(t-r)/2;if(e>5)return n;if(F.every((t=>Math.abs(t-n)>=10)))return F.push(n),n;const o=Math.abs(t-r);return lt(t,r-o/5,e+1)}),"findLane"),yt=(0,c.K2)(((t,r,e,n)=>{const o=W.get(r.id),a=W.get(e.id);if(void 0===o||void 0===a)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=$t(r,e,o,a,n);let s,i="",d="",m=0,$=0,l=j.get(e.branch)?.index;if(e.type===h.MERGE&&r.id!==e.parents[0]&&(l=j.get(r.branch)?.index),c){i="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",m=10,$=10;const t=o.y<a.y?lt(o.y,a.y):lt(a.y,o.y),e=o.x<a.x?lt(o.x,a.x):lt(a.x,o.x);"TB"===V?o.x<a.x?s=`M ${o.x} ${o.y} L ${e-m} ${o.y} ${d} ${e} ${o.y+$} L ${e} ${a.y-m} ${i} ${e+$} ${a.y} L ${a.x} ${a.y}`:(l=j.get(r.branch)?.index,s=`M ${o.x} ${o.y} L ${e+m} ${o.y} ${i} ${e} ${o.y+$} L ${e} ${a.y-m} ${d} ${e-$} ${a.y} L ${a.x} ${a.y}`):"BT"===V?o.x<a.x?s=`M ${o.x} ${o.y} L ${e-m} ${o.y} ${i} ${e} ${o.y-$} L ${e} ${a.y+m} ${d} ${e+$} ${a.y} L ${a.x} ${a.y}`:(l=j.get(r.branch)?.index,s=`M ${o.x} ${o.y} L ${e+m} ${o.y} ${d} ${e} ${o.y-$} L ${e} ${a.y+m} ${i} ${e-$} ${a.y} L ${a.x} ${a.y}`):o.y<a.y?s=`M ${o.x} ${o.y} L ${o.x} ${t-m} ${i} ${o.x+$} ${t} L ${a.x-m} ${t} ${d} ${a.x} ${t+$} L ${a.x} ${a.y}`:(l=j.get(r.branch)?.index,s=`M ${o.x} ${o.y} L ${o.x} ${t+m} ${d} ${o.x+$} ${t} L ${a.x-m} ${t} ${i} ${a.x} ${t-$} L ${a.x} ${a.y}`)}else i="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",m=20,$=20,"TB"===V?(o.x<a.x&&(s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${i} ${o.x+$} ${a.y} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${d} ${a.x} ${o.y+$} L ${a.x} ${a.y}`),o.x>a.x&&(i="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",m=20,$=20,s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${d} ${o.x-$} ${a.y} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${a.x+m} ${o.y} ${i} ${a.x} ${o.y+$} L ${a.x} ${a.y}`),o.x===a.x&&(s=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):"BT"===V?(o.x<a.x&&(s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${d} ${o.x+$} ${a.y} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${i} ${a.x} ${o.y-$} L ${a.x} ${a.y}`),o.x>a.x&&(i="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",m=20,$=20,s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${i} ${o.x-$} ${a.y} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${i} ${a.x} ${o.y-$} L ${a.x} ${a.y}`),o.x===a.x&&(s=`M ${o.x} ${o.y} L ${a.x} ${a.y}`)):(o.y<a.y&&(s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${d} ${a.x} ${o.y+$} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${o.x} ${a.y-m} ${i} ${o.x+$} ${a.y} L ${a.x} ${a.y}`),o.y>a.y&&(s=e.type===h.MERGE&&r.id!==e.parents[0]?`M ${o.x} ${o.y} L ${a.x-m} ${o.y} ${i} ${a.x} ${o.y-$} L ${a.x} ${a.y}`:`M ${o.x} ${o.y} L ${o.x} ${a.y+m} ${d} ${o.x+$} ${a.y} L ${a.x} ${a.y}`),o.y===a.y&&(s=`M ${o.x} ${o.y} L ${a.x} ${a.y}`));if(void 0===s)throw new Error("Line definition not found");t.append("path").attr("d",s).attr("class","arrow arrow"+l%8)}),"drawArrow"),gt=(0,c.K2)(((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach((t=>{const n=r.get(t);n.parents&&n.parents.length>0&&n.parents.forEach((t=>{yt(e,r.get(t),n,r)}))}))}),"drawArrows"),pt=(0,c.K2)(((t,r)=>{const e=t.append("g");r.forEach(((t,r)=>{const n=r%8,o=j.get(t.name)?.pos;if(void 0===o)throw new Error(`Position not found for branch ${t.name}`);const a=e.append("line");a.attr("x1",0),a.attr("y1",o),a.attr("x2",U),a.attr("y2",o),a.attr("class","branch branch"+n),"TB"===V?(a.attr("y1",30),a.attr("x1",o),a.attr("y2",U),a.attr("x2",o)):"BT"===V&&(a.attr("y1",U),a.attr("x1",o),a.attr("y2",30),a.attr("x2",o)),F.push(o);const c=t.name,s=Q(c),i=e.insert("rect"),h=e.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+n);h.node().appendChild(s);const d=s.getBBox();i.attr("class","branchLabelBkg label"+n).attr("rx",4).attr("ry",4).attr("x",-d.width-4-(!0===D?.rotateCommitLabel?30:0)).attr("y",-d.height/2+8).attr("width",d.width+18).attr("height",d.height+4),h.attr("transform","translate("+(-d.width-14-(!0===D?.rotateCommitLabel?30:0))+", "+(o-d.height/2-1)+")"),"TB"===V?(i.attr("x",o-d.width/2-10).attr("y",0),h.attr("transform","translate("+(o-d.width/2-5)+", 0)")):"BT"===V?(i.attr("x",o-d.width/2-10).attr("y",U),h.attr("transform","translate("+(o-d.width/2-5)+", "+U+")")):i.attr("transform","translate(-19, "+(o-d.height/2)+")")}))}),"drawBranches"),xt=(0,c.K2)((function(t,r,e,n,o){return j.set(t,{pos:r,index:e}),r+=50+(o?40:0)+("TB"===V||"BT"===V?n.width/2:0)}),"setBranchPosition");var ft={parser:H,db:v,renderer:{draw:(0,c.K2)((function(t,r,e,n){if(J(),c.Rm.debug("in gitgraph renderer",t+"\n","id:",r,e),!D)throw new Error("GitGraph config not found");const o=D.rotateCommitLabel??!1,s=n.db;_=s.getCommits();const h=s.getBranchesAsObjArray();V=s.getDirection();const d=(0,i.Ltv)(`[id="${r}"]`);let m=0;h.forEach(((t,r)=>{const e=Q(t.name),n=d.append("g"),a=n.insert("g").attr("class","branchLabel"),c=a.insert("g").attr("class","label branch-label");c.node()?.appendChild(e);const s=e.getBBox();m=xt(t.name,m,r,s,o),c.remove(),a.remove(),n.remove()})),mt(d,_,!1),D.showBranches&&pt(d,h),gt(d,_),mt(d,_,!0),a._K.insertTitle(d,"gitTitleText",D.titleTopMargin??0,s.getDiagramTitle()),(0,c.mj)(void 0,d,D.diagramPadding,D.useMaxWidth)}),"draw")},styles:(0,c.K2)((t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((r=>`\n .branch-label${r} { fill: ${t["gitBranchLabel"+r]}; }\n .commit${r} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; }\n .label${r} { fill: ${t["git"+r]}; }\n .arrow${r} { stroke: ${t["git"+r]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/5c547149.06881283.js b/website/assets/js/5c547149.06881283.js new file mode 100644 index 000000000..a1d02f013 --- /dev/null +++ b/website/assets/js/5c547149.06881283.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9385],{1285:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>p,frontMatter:()=>i,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"components/lunatic-components","title":"Afficher le formulaire","description":"Le hook useLunatic() renvoie une m\xe9thode getComponents() qui permet de r\xe9cup\xe9rer les composants \xe0 afficher dans l\'application. Cette m\xe9thode renvoie un tableau contenant les propri\xe9t\xe9s des diff\xe9rents composants et c\'est \xe0 l\'orchestrateur de g\xe9rer leur affichage en utilisant la propri\xe9t\xe9 componentType pour s\xe9lectionner le bon composant.","source":"@site/docs/components/lunatic-components.mdx","sourceDirName":"components","slug":"/components/lunatic-components","permalink":"/Lunatic/docs/components/lunatic-components","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/lunatic-components.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Gestion des contr\xf4les","permalink":"/Lunatic/docs/hook/controls"},"next":{"title":"Personnalisation","permalink":"/Lunatic/docs/components/personnalisation"}}');var r=t(4848),s=t(8453);const i={},c="Afficher le formulaire",a={},l=[];function u(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",li:"li",mdxAdmonitionTitle:"mdxAdmonitionTitle",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"afficher-le-formulaire",children:"Afficher le formulaire"})}),"\n",(0,r.jsxs)(n.p,{children:["Le hook ",(0,r.jsx)(n.code,{children:"useLunatic()"})," renvoie une m\xe9thode ",(0,r.jsx)(n.code,{children:"getComponents()"})," qui permet de r\xe9cup\xe9rer les composants \xe0 afficher dans l'application. Cette m\xe9thode renvoie un tableau contenant les propri\xe9t\xe9s des diff\xe9rents composants et c'est \xe0 l'orchestrateur de g\xe9rer leur affichage en utilisant la propri\xe9t\xe9 ",(0,r.jsx)(n.code,{children:"componentType"})," pour s\xe9lectionner le bon composant."]}),"\n",(0,r.jsxs)(n.admonition,{type:"warning",children:[(0,r.jsx)(n.mdxAdmonitionTitle,{}),(0,r.jsx)(n.p,{children:"Depuis la V3, la feuille de style css de la librarie n'est plus import\xe9e par d\xe9faut. Pour l'utiliser il faut l'importer de cette fa\xe7on"}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-jsx",children:"import '@inseefr/lunatic/lib/main.css'\n"})})]}),"\n",(0,r.jsxs)(n.p,{children:["En plus du hook ",(0,r.jsx)(n.code,{children:"useLunatic()"}),", ",(0,r.jsx)(n.code,{children:"@inseefr/lunatic"})," offre une librairie de composant qui peut \xeatre utilis\xe9 pour le rendu. Pour ne pas avoir \xe0 boucler manuellement sur chaque \xe9l\xe9ment un composant ",(0,r.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/pull/664",children:"LunaticComponents"})," est fourni et permet de se charger de l'affichage."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-jsx",children:"import {LunaticComponents, useLunatic} from \"@inseefr/lunatic\";\n\nfunction App () {\n const {getComponents, Provider} = useLunatic(source, data, {initialPage: '1'})\n\n return <Provider>\n <LunaticComponents components={getComponents()}/>\n </Provider>\n}\n"})}),"\n",(0,r.jsx)(n.p,{children:"Ce composant peut aussi recevoir des propri\xe9t\xe9s suppl\xe9mentaires afin d'ajouter des comportements plus pouss\xe9s :"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"componentProps"}),", est une fonction qui permet de passer des propri\xe9t\xe9s suppl\xe9mentaires \xe0 chaque composant"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"autoFocusKey"}),", est une chaine de caract\xe8re qui d\xe9clenche un focus du premier champ lorsque sa valeur change"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"wrapper"}),", permet de d\xe9finir un \xe9l\xe9ment qui va venir entourer chaque \xe9l\xe9ment du formulaire"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-jsx",children:'<LunaticComponents\n autoFocusKey={pageTag}\n components={components}\n componentProps={() => ({\n\t errors: currentErrors,\n\t disabled: true,\n })}\n wrapper={({ children, id }) => (\n\t<div className="lunatic lunatic-component">{children}</div>\n )}\n/>\n'})}),"\n",(0,r.jsx)(n.p,{children:"Le reste de l'interface (navigation, affichage des erreurs) est \xe0 la charge de l'orchestrateur."})]})}function p(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>c});var o=t(6540);const r={},s=o.createContext(r);function i(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/5e6898a4.6c6fcbdf.js b/website/assets/js/5e6898a4.6c6fcbdf.js new file mode 100644 index 000000000..4ff07c191 --- /dev/null +++ b/website/assets/js/5e6898a4.6c6fcbdf.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7159],{4264:(e,n,r)=>{"use strict";r.d(n,{L:()=>p});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var s=r(7119),t=r(6487),l=r(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",o="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=r(7020),c=r(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const E=n.maxPage&&"1"!==n.maxPage;return(0,c.jsxs)("div",{className:a.FormExample,children:[(0,c.jsxs)(s.A,{children:[(0,c.jsx)(t.A,{value:"source",label:"Source",default:!0,children:(0,c.jsx)(l.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,c.jsx)(t.A,{value:"data",label:"Data",children:(0,c.jsx)(l.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,c.jsxs)(s.A,{children:[(0,c.jsx)(t.A,{value:"code",label:"Code",children:(0,c.jsx)(l.A,{language:"tsx",className:a.FormExampleCode,children:E?o:i})}),(0,c.jsx)(t.A,{value:"render",label:"Rendu",default:!0,children:(0,c.jsx)("div",{className:a.FormExampleRender,children:(0,c.jsx)(u.A,{fallback:(0,c.jsx)("div",{children:"Loading..."}),children:()=>{const e=E?r(5152).g:r(3314).S;return(0,c.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,r)=>{"use strict";r.d(n,{S:()=>t});var a=r(1999),s=r(4848);function t(e){let{source:n,data:r}=e;const{getComponents:t,Provider:l}=(0,a.O1)(n,r,{initialPage:"1"});return(0,s.jsx)(l,{children:(0,s.jsx)(a.R2,{components:t()})})}},5152:(e,n,r)=>{"use strict";r.d(n,{g:()=>l});var a=r(1999),s=r(6540),t=r(4848);function l(e){let{source:n,data:r,options:l}=e;const{getComponents:i,isLastPage:o,isFirstPage:u,goPreviousPage:c,goNextPage:d,Provider:p,compileControls:m}=(0,a.O1)(n,r,{initialPage:"1",...l}),[E,g]=(0,s.useState)();return(0,t.jsxs)("div",{children:[(0,t.jsx)(p,{children:(0,t.jsx)(a.R2,{components:i(),componentProps:()=>({errors:E?.currentErrors})})}),(0,t.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,t.jsx)("button",{className:"button button--primary",disabled:u,onClick:c,children:"Pr\xe9c\xe9dent"}),(0,t.jsx)("button",{className:"button button--primary",disabled:o,onClick:()=>{const e=m();e.currentErrors?g(e):d()},children:"Suivant"})]}),E&&(0,t.jsx)(a.I1,{errors:E.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:E.isCritical})]})}},6575:(e,n,r)=>{"use strict";r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>o,metadata:()=>a,toc:()=>d});const a=JSON.parse('{"id":"components/fields/suggester","title":"Suggester","description":"Le composant de Suggester permet d\'avoir un menu d\xe9roulant avec une option de recherche.","source":"@site/docs/components/fields/suggester.mdx","sourceDirName":"components/fields","slug":"/components/fields/suggester","permalink":"/Lunatic/docs/components/fields/suggester","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/suggester.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Dropdown","permalink":"/Lunatic/docs/components/fields/dropdown"},"next":{"title":"Radio","permalink":"/Lunatic/docs/components/fields/radio"}}');var s=r(4848),t=r(8453);const l=JSON.parse('{"$schema":"../../../lunatic-schema.json","suggesters":[{"responseNames":["VARIABLE_COMMUNE"],"name":"L_COMMUNEPASSEE-1-2-0","fields":[{"name":"label","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false},{"name":"id","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false}],"queryParser":{"type":"tokenized","params":{"language":"French","pattern":"[\\\\w.]+","min":3,"stemmer":false}},"version":"1"},{"responseNames":["VARIABLE_PAYS"],"name":"L_PAYS-1-2-0","fields":[{"name":"label","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false}],"queryParser":{"type":"tokenized","params":{"language":"French","pattern":"[\\\\w.]+","min":3,"stemmer":false}},"version":"1"},{"responseNames":["VARIABLE_NATIONALITE"],"name":"L_NATIONALITE-1-2-0","fields":[{"name":"label","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false}],"queryParser":{"type":"tokenized","params":{"language":"French","pattern":"[\\\\w.]+","min":3,"stemmer":false}},"version":"1"},{"responseNames":["VARIABLE_PCS"],"name":"L_PCS_HOMMES-1-5-0","fields":[{"name":"label","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false,"synonyms":{"accueil":["ACCEUIL"],"\xe9chafaudage":["ECHAFFAUDAGE"],"URSSAF":["URSAF","URSAFF"],"ing\xe9nierie":["INGENIEURIE","INGENERIE","INGIENERIE"],"construction":["CONSTRUCTEUR"],"distribution":["DISTRIBUTEUR"],"fabrication":["FABRICANT"],"abattoir":["ABATOIR","ABBATOIR","ABATOIRE","ABATTOIRE"],"ascenseur":["ASCENCEUR"],"ascenseurs":["ASCENCEURS"],"assenseur":["ASSENCEUR"],"joaillerie":["JOAILLIER"],"agroalimentaire":["AGGROALIMANTAIRE","AGROALIMANTAIRE"],"alimentaires":["ALIMANTAIRE"],"agroalimentaires":["AGGROALIMANTAIRES","AGROALIMENTAIRES"]}}],"queryParser":{"type":"tokenized","params":{"language":"French","pattern":"[\\\\w.]+","min":3,"stemmer":false}},"version":"1","meloto":true,"stopWords":["a","au","dans","de","des","du","en","er","la","le","ou","sur","d","l","aux","dans","un","une","pour","avec","chez","par","les"]},{"responseNames":["VARIABLE_BAILLEURS_SOCIAUX"],"name":"bailleurs_sociaux-1-5-0","fields":[{"name":"label","rules":["[\\\\w]+"],"language":"French","min":3,"stemmer":false}],"queryParser":{"type":"tokenized","params":{"language":"French","pattern":"[\\\\w.]+","min":3,"stemmer":false}},"version":"1"}],"components":[{"componentType":"Suggester","response":{"name":"VARIABLECO"},"optionResponses":[{"name":"VARIABLECO_NAME","attribute":"label"}],"storeName":"L_COMMUNEPASSEE-1-2-0","hierarchy":{"sequence":{"id":"lt4fhgd6","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"Sequence\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"lt4ezymk","page":"1","label":{"type":"VTL|MD","value":"\\"\u27a1 1. \\" || \\"Variable Commune\\""},"optionLabel":{"type":"VTL","value":"\\"id || \\" - \\" || label\\""},"mandatory":false,"maxLength":249},{"componentType":"Suggester","response":{"name":"VARIABLEPA"},"storeName":"L_PAYS-1-2-0","conditionFilter":{"type":"VTL","value":"true"},"id":"lt4fjoev","page":"2","label":{"type":"VTL|MD","value":"\\"\u27a1 2. \\" || \\"Variable Pays\\""},"mandatory":false,"maxLength":249},{"componentType":"Suggester","storeName":"L_NATIONALITE-1-2-0","response":{"name":"VARIABLENA"},"conditionFilter":{"type":"VTL","value":"true"},"id":"lt4f6i2y","page":"3","label":{"type":"VTL|MD","value":"\\"\u27a1 3. \\" || \\"Variable Nationalit\xe9\\""},"mandatory":false,"maxLength":249},{"componentType":"Suggester","storeName":"L_PCS_HOMMES-1-5-0","response":{"name":"VARIABLE_P"},"conditionFilter":{"type":"VTL","value":"true"},"id":"lt4f9q1o","page":"4","label":{"type":"VTL|MD","value":"\\"\u27a1 4. \\" || \\"VARIABLE_PCS\\""},"mandatory":false,"maxLength":249},{"componentType":"Suggester","storeName":"bailleurs_sociaux-1-5-0","response":{"name":"VARIABLE_B"},"conditionFilter":{"type":"VTL","value":"true"},"id":"lt4f8uba","page":"5","label":{"type":"VTL|MD","value":"\\"\u27a1 5. \\" || \\"VARIABLE_BAILLEURS_SOCIAUX\\""},"mandatory":false,"maxLength":249}],"pagination":"question","resizing":{},"label":{"type":"VTL|MD","value":"Suggester"},"lunaticModelVersion":"2.5.0","modele":"SUGGESTER","enoCoreVersion":"2.7.1","generatingDate":"27-02-2024 13:43:43","missing":false,"id":"lt4f6mib","maxPage":"5","variables":[{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"COMMENT_QE"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLECO"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLECO_NAME"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLEPA"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLENA"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLE_P"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"VARIABLE_B"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_VARIABLECO","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_VARIABLEPA","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_VARIABLENA","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_VARIABLE_P","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_VARIABLE_B","inFilter":"false"}]}');var i=r(4264);const o={},u="Suggester",c={},d=[{value:"Indexation",id:"indexation",level:2},{value:"R\xe9cup\xe9ration des donn\xe9es de la nomenclature",id:"r\xe9cup\xe9ration-des-donn\xe9es-de-la-nomenclature",level:2},{value:"Valeur arbitraire",id:"valeur-arbitraire",level:2}];function p(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"suggester",children:"Suggester"})}),"\n",(0,s.jsxs)(n.p,{children:["Le composant de ",(0,s.jsx)(n.code,{children:"Suggester"})," permet d'avoir un menu d\xe9roulant avec une option de recherche."]}),"\n","\n",(0,s.jsx)(i.L,{source:l}),"\n",(0,s.jsx)(n.h2,{id:"indexation",children:"Indexation"}),"\n",(0,s.jsxs)(n.p,{children:["Dans le fichier source la liste des donn\xe9es \xe0 rendre disponible et d\xe9finit dans la propri\xe9t\xe9 ",(0,s.jsx)(n.code,{children:"suggesters"}),". Vous pouvez retrouver les d\xe9tails sur le format de cette d\xe9finition en regardant le type ",(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/use-lunatic/type-source.ts",children:"SuggesterType"})," dans le code source. Il y a 3 parties importantes :"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"fields"}),", permet de d\xe9finir les champs qui vont \xeatre index\xe9 pour la recherche."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"queryParser"}),", permet de d\xe9finir les r\xe8gles \xe0 appliquer \xe0 la chaine de recherche."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"name"}),", nom de la nomenclature, qui sera utilis\xe9 dans la propri\xe9t\xe9 ",(0,s.jsx)(n.code,{children:"storeName"})," du composant mais aussi pour la r\xe9cup\xe9ration de la nomenclature dans ",(0,s.jsx)(n.code,{children:"getReferentiel()"})," ."]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Lors de l'initialisation de Lunatic \xe0 l'aide du hook ",(0,s.jsx)(n.code,{children:"useLunatic()"})," il faut pr\xe9ciser l'option ",(0,s.jsx)(n.code,{children:"getReferentiel()"})," qui permet d'indiquer comment charger les donn\xe9es associ\xe9es au r\xe9f\xe9rentiel :"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"const {} = useLunatic(source, data, {\n //...\n getReferentiel: async (name) => {\n\t return fetch(`https://insee.fr/referentiel/${name}.json`).then((r) => r.json());\n\t}\n})\n"})}),"\n",(0,s.jsxs)(n.p,{children:["La nomenclature doit n\xe9cessairement contenir un champ ",(0,s.jsx)(n.code,{children:"id"})," qui doit \xeatre unique pour chaque enregistrement et ",(0,s.jsx)(n.code,{children:"label"})," qui sert \xe0 l'affichage des options dans le suggester mais peut aussi contenir d'autre champs."]}),"\n",(0,s.jsx)(n.h2,{id:"r\xe9cup\xe9ration-des-donn\xe9es-de-la-nomenclature",children:"R\xe9cup\xe9ration des donn\xe9es de la nomenclature"}),"\n",(0,s.jsx)(n.p,{children:"Lors de la s\xe9lection on peut vouloir r\xe9cup\xe9rer des informations suppl\xe9mentaires dans la nomenclature (cat\xe9gorie d'un produit, unit\xe9, prix...)."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",children:'[\n\t{\n\t\t"id": "brosse",\n\t\t"label": "Brosse \xe0 cheveux",\n\t\t"price": 20\n\t},\n\t{\n\t\t"id": "balle",\n\t\t"label": "Balle rebondissante",\n\t\t"price": 10\n\t}\n]\n'})}),"\n",(0,s.jsx)(n.p,{children:"Dans ce cas, il est possible d'ajoute une option dans le JSON afin d'envoyer la donn\xe9es de certains champs dans des variables sp\xe9cifique lors d'un choix."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",children:'{\n "componentType": "Suggester",\n "response": {\n "name": "PRODUCT"\n },\n "optionResponses": [\n {\n "name": "PRODUCT_NAME",\n "attribute": "label"\n },\n {\n "name": "PRODUCT_PRICE",\n "attribute": "price"\n }\n ]\n}\n'})}),"\n",(0,s.jsx)(n.p,{children:"Lors de la s\xe9lection d'un \xe9l\xe9ment"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"PRODUCT"})," recevra l'ID du produit"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"PRODUCT_NAME"})," recevra son libell\xe9"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"PRODUCT_PRICE"})," recevra son prix"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"valeur-arbitraire",children:"Valeur arbitraire"}),"\n",(0,s.jsxs)(n.p,{children:["Il est possible de permettre \xe0 l'utilisateur de rentrer une valeur arbitraire si aucune option ne correspond \xe0 sa recherche.\nDans ce cas-l\xe0, il faudra ajouter un champ ",(0,s.jsx)(n.code,{children:"arbitrary"})," pour permettre de sauvegarder cette valeur arbitraire."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",children:'{\n "componentType": "Suggester",\n "response": {\n "name": "PRODUCT"\n },\n "arbitrary": {\n "response": { "name": "PRODUCT_OTHER" }\n }\n}\n'})}),"\n",(0,s.jsxs)(n.p,{children:["Le champ ",(0,s.jsx)(n.code,{children:"arbitrary.response"})," d\xe9finit la variable qui recevra la valeur arbitraire."]})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/5e8c322a.d94f90d7.js b/website/assets/js/5e8c322a.d94f90d7.js new file mode 100644 index 000000000..203312cb6 --- /dev/null +++ b/website/assets/js/5e8c322a.d94f90d7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[594],{8012:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>d,contentTitle:()=>a,default:()=>o,frontMatter:()=>c,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"api/index","title":"@inseefr/lunatic","description":"Classes","source":"@site/docs/api/index.md","sourceDirName":"api","slug":"/api/","permalink":"/Lunatic/docs/api/","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/index.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","next":{"title":"VTLExpressionError","permalink":"/Lunatic/docs/api/classes/VTLExpressionError"}}');var t=i(4848),r=i(8453);const c={},a="@inseefr/lunatic",d={},l=[{value:"Classes",id:"classes",level:2},{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"Variables",id:"variables",level:2},{value:"Functions",id:"functions",level:2}];function h(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"inseefrlunatic",children:"@inseefr/lunatic"})}),"\n",(0,t.jsx)(s.h2,{id:"classes",children:"Classes"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Class"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:"VTLExpressionError"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLInterpretationError",children:"VTLInterpretationError"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependencies",children:"VTLMissingDependencies"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependency",children:"VTLMissingDependency"})}),(0,t.jsx)(s.td,{children:"-"})]})]})]}),"\n",(0,t.jsx)(s.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Interface"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:"LunaticExtraProps"})}),(0,t.jsx)(s.td,{children:"-"})]})})]}),"\n",(0,t.jsx)(s.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Type alias"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticChangesHandler",children:"LunaticChangesHandler"})}),(0,t.jsx)(s.td,{children:"Function taking as arguments the various changes the user has made."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticCollectedValue",children:"LunaticCollectedValue"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition",children:"LunaticComponentDefinition"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticComponentProps",children:"LunaticComponentProps"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticControl",children:"LunaticControl"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticData",children:"LunaticData"})}),(0,t.jsx)(s.td,{children:"Survey data."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticError",children:"LunaticError"})}),(0,t.jsxs)(s.td,{children:["Errors returned by ",(0,t.jsx)(s.code,{children:"useLunatic"})," hook when an input check is made with their id, criticity, type and the message to display to the user."]})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticExpression",children:"LunaticExpression"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticOptions",children:"LunaticOptions"})}),(0,t.jsxs)(s.td,{children:["Specific behaviour options defined in the ",(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/functions/useLunatic",children:"useLunatic"})," hook."]})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticPager",children:"LunaticPager"})}),(0,t.jsx)(s.td,{children:"Contains informations about navigation (last page reached, number of pages, subpages, etc.)."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticSlotComponents",children:"LunaticSlotComponents"})}),(0,t.jsx)(s.td,{children:"Contain the type of every customizable components."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticSource",children:"LunaticSource"})}),(0,t.jsx)(s.td,{children:"A lunatic survey unit"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticState",children:"LunaticState"})}),(0,t.jsxs)(s.td,{children:["Return type of ",(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/functions/useLunatic",children:"useLunatic"}),"."]})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticStateVariable",children:"LunaticStateVariable"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticValues",children:"LunaticValues"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/type-aliases/LunaticVariable",children:"LunaticVariable"})}),(0,t.jsx)(s.td,{children:"Variables provided to Lunatic through the source and used internally in a store."})]})]})]}),"\n",(0,t.jsx)(s.h2,{id:"variables",children:"Variables"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Variable"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/variables/Button",children:"Button"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/variables/components",children:"components"})}),(0,t.jsx)(s.td,{children:"-"})]})]})]}),"\n",(0,t.jsx)(s.h2,{id:"functions",children:"Functions"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{children:"Function"}),(0,t.jsx)(s.th,{children:"Description"})]})}),(0,t.jsxs)(s.tbody,{children:[(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/functions/LunaticComponents",children:"LunaticComponents"})}),(0,t.jsx)(s.td,{children:"Entry point for orchestrators, this component display the list of fields."})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/functions/ModalControls",children:"ModalControls"})}),(0,t.jsx)(s.td,{children:"-"})]}),(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{children:(0,t.jsx)(s.a,{href:"/Lunatic/docs/api/functions/useLunatic",children:"useLunatic"})}),(0,t.jsxs)(s.td,{children:["The first library entrypoint is the ",(0,t.jsx)(s.code,{children:"useLunatic"})," hook."]})]})]})]})]})}function o(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>c,x:()=>a});var n=i(6540);const t={},r=n.createContext(t);function c(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/5e95c892.64ab6c54.js b/website/assets/js/5e95c892.64ab6c54.js new file mode 100644 index 000000000..aa5e2260a --- /dev/null +++ b/website/assets/js/5e95c892.64ab6c54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9647],{7591:(e,s,r)=>{r.r(s),r.d(s,{default:()=>l});r(6540);var c=r(8215),u=r(3523),a=r(4717),d=r(2831),n=r(3502),t=r(4848);function l(e){return(0,t.jsx)(u.e3,{className:(0,c.A)(a.G.wrapper.docsPages),children:(0,t.jsx)(n.A,{children:(0,d.v)(e.route.routes)})})}}}]); \ No newline at end of file diff --git a/website/assets/js/5ed7f5fe.380829ba.js b/website/assets/js/5ed7f5fe.380829ba.js new file mode 100644 index 000000000..b24daf55e --- /dev/null +++ b/website/assets/js/5ed7f5fe.380829ba.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5474],{4264:(e,n,l)=>{"use strict";l.d(n,{L:()=>p});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var t=l(7119),E=l(6487),s=l(3007);const r="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",o="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var i=l(7020),u=l(4848);const c={};function p(e){let{source:n,data:p=c,options:d}=e;const m=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:a.FormExample,children:[(0,u.jsxs)(t.A,{children:[(0,u.jsx)(E.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(E.A,{value:"data",label:"Data",children:(0,u.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(t.A,{children:[(0,u.jsx)(E.A,{value:"code",label:"Code",children:(0,u.jsx)(s.A,{language:"tsx",className:a.FormExampleCode,children:m?o:r})}),(0,u.jsx)(E.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:a.FormExampleRender,children:(0,u.jsx)(i.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=m?l(5152).g:l(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:d})}})})})]})]})}},3314:(e,n,l)=>{"use strict";l.d(n,{S:()=>E});var a=l(1999),t=l(4848);function E(e){let{source:n,data:l}=e;const{getComponents:E,Provider:s}=(0,a.O1)(n,l,{initialPage:"1"});return(0,t.jsx)(s,{children:(0,t.jsx)(a.R2,{components:E()})})}},5152:(e,n,l)=>{"use strict";l.d(n,{g:()=>s});var a=l(1999),t=l(6540),E=l(4848);function s(e){let{source:n,data:l,options:s}=e;const{getComponents:r,isLastPage:o,isFirstPage:i,goPreviousPage:u,goNextPage:c,Provider:p,compileControls:d}=(0,a.O1)(n,l,{initialPage:"1",...s}),[m,P]=(0,t.useState)();return(0,E.jsxs)("div",{children:[(0,E.jsx)(p,{children:(0,E.jsx)(a.R2,{components:r(),componentProps:()=>({errors:m?.currentErrors})})}),(0,E.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,E.jsx)("button",{className:"button button--primary",disabled:i,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,E.jsx)("button",{className:"button button--primary",disabled:o,onClick:()=>{const e=d();e.currentErrors?P(e):c()},children:"Suivant"})]}),m&&(0,E.jsx)(a.I1,{errors:m.currentErrors,goNext:()=>{P(void 0),c()},onClose:()=>{P(void 0)},isCritical:m.isCritical})]})}},895:(e,n,l)=>{"use strict";l.r(n),l.d(n,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>i,metadata:()=>a,toc:()=>p});const a=JSON.parse('{"id":"components/fields/table","title":"Table","description":"Le composant Table est un composant permettant d\'afficher un tableau d\'information \xe0 l\'utilisateur.","source":"@site/docs/components/fields/table.mdx","sourceDirName":"components/fields","slug":"/components/fields/table","permalink":"/Lunatic/docs/components/fields/table","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/table.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"CheckboxGroup","permalink":"/Lunatic/docs/components/fields/checkboxGroup"},"next":{"title":"Text","permalink":"/Lunatic/docs/components/fields/text"}}');var t=l(4848),E=l(8453);const s=JSON.parse('{"$schema":"../../../lunatic-schema.json","variables":[],"components":[{"page":"1","id":"j6p29i81","componentType":"Table","mandatory":false,"header":[{"label":{"value":"\\"<=>\\"","type":"VTL|MD"}},{"label":{"value":"\\"Header 1\\"","type":"VTL|MD"}},{"label":{"value":"\\"Header 2\\"","type":"VTL|MD"}}],"body":[[{"label":{"value":"\\"Line 1\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 11\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 12\\"","type":"VTL|MD"}}],[{"label":{"value":"\\"Line 2\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 21\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 22\\"","type":"VTL|MD"}}],[{"label":{"value":"\\"Line 3\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 31\\"","type":"VTL|MD"}},{"label":{"value":"\\"Cell 32\\"","type":"VTL|MD"}}]]}]}');var r=l(4264);const o=JSON.parse('{"$schema":"../../../lunatic-schema.json","components":[{"page":"1","id":"j4nwc63q","componentType":"Table","mandatory":false,"label":{"value":"\\"\u27a1 \\" || \\"Please, specify the percentage of Jay\u2019s expenses in the Kwik-E-Mart for each product?\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"missingResponse":{"name":"PERCENTAGE_EXPENSES_MISSING"},"bindingDependencies":["PERCENTAGE_EXPENSES_MISSING","PERCENTAGE_EXPENSES11","PERCENTAGE_EXPENSES21","PERCENTAGE_EXPENSES31","PERCENTAGE_EXPENSES41","PERCENTAGE_EXPENSES51","PERCENTAGE_EXPENSES61","PERCENTAGE_EXPENSES71"],"header":[{"colspan":2,"label":{"value":"","type":"VTL|MD"}},{"label":{"value":"\\"Percentage\\"","type":"VTL|MD"}}],"body":[[{"rowspan":2,"value":"A","label":{"value":"\\"Frozen products\\"","type":"VTL|MD"}},{"value":"A1","label":{"value":"\\"Ice creams\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewv2h3o","unit":"%","response":{"name":"PERCENTAGE_EXPENSES11"},"bindingDependencies":["PERCENTAGE_EXPENSES11"]}],[{"value":"A2","label":{"value":"\\"Jasper Beardly\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewvka2j","unit":"%","response":{"name":"PERCENTAGE_EXPENSES21"},"bindingDependencies":["PERCENTAGE_EXPENSES21"]}],[{"rowspan":3,"value":"B","label":{"value":"\\"Meat\\"","type":"VTL|MD"}},{"value":"B1","label":{"value":"\\"Bacon\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewv1f2a","unit":"%","response":{"name":"PERCENTAGE_EXPENSES31"},"bindingDependencies":["PERCENTAGE_EXPENSES31"]}],[{"value":"B2","label":{"value":"\\"Pork chop\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewvb2ql","unit":"%","response":{"name":"PERCENTAGE_EXPENSES41"},"bindingDependencies":["PERCENTAGE_EXPENSES41"]}],[{"value":"B3","label":{"value":"\\"Chicken\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewvbxla","unit":"%","response":{"name":"PERCENTAGE_EXPENSES51"},"bindingDependencies":["PERCENTAGE_EXPENSES51"]}],[{"value":"C","label":{"value":"\\"Compote\\"","type":"VTL|MD"}},{"value":"C1","label":{"value":"\\"Powersauce\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewvkjp0","unit":"%","response":{"name":"PERCENTAGE_EXPENSES61"},"bindingDependencies":["PERCENTAGE_EXPENSES61"]}],[{"colspan":2,"value":"D","label":{"value":"\\"Other\\"","type":"VTL|MD"}},{"componentType":"InputNumber","min":0,"max":100,"decimals":1,"id":"j4nwc63q-QOP-kewv2cyx","unit":"%","response":{"name":"PERCENTAGE_EXPENSES71"},"bindingDependencies":["PERCENTAGE_EXPENSES71"]}],[{"colspan":2,"value":"E","label":{"value":"\\"Total\\"","type":"VTL|MD"}},{"label":{"value":"SUM_EXPENSES","type":"VTL|MD"}}]]}],"variables":[{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES11","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES21","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES31","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES41","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES51","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES61","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES71","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PERCENTAGE_EXPENSES81","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"CALCULATED","name":"FILTER_RESULT_PERCENTAGE_EXPENSES","expression":{"value":"true","type":"VTL"},"inFilter":"false"},{"variableType":"CALCULATED","name":"SUM_EXPENSES","expression":{"value":"nvl(PERCENTAGE_EXPENSES11,0) + nvl(PERCENTAGE_EXPENSES21,0) + nvl(PERCENTAGE_EXPENSES31,0) + nvl(PERCENTAGE_EXPENSES41,0) + nvl(PERCENTAGE_EXPENSES51,0) + nvl(PERCENTAGE_EXPENSES61,0), + nvl(PERCENTAGE_EXPENSES71,0)","type":"VTL"},"bindingDependencies":["PERCENTAGE_EXPENSES11","PERCENTAGE_EXPENSES21","PERCENTAGE_EXPENSES31","PERCENTAGE_EXPENSES41","PERCENTAGE_EXPENSES51","PERCENTAGE_EXPENSES61","PERCENTAGE_EXPENSES71"],"inFilter":"false"}],"cleaning":{},"resizing":{}}'),i={},u="Table",c={},p=[];function d(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,E.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"table",children:"Table"})}),"\n",(0,t.jsxs)(n.p,{children:["Le composant ",(0,t.jsx)(n.strong,{children:"Table"})," est un composant permettant d'afficher un tableau d'information \xe0 l'utilisateur."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"header"}),", tableau contenant le contenu des cellules en en-t\xeate"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"body"}),", tableau contenant lignes du tableau (sous forme de tableau de cellule)\n^"]}),"\n"]}),"\n","\n",(0,t.jsx)(r.L,{source:s}),"\n",(0,t.jsx)(n.p,{children:"Il est possible de regrouper les lignes ou des colonnes via les propri\xe9t\xe9 colspan et rowspan. Enfin, les cellules peuvent contenir un autre composant, comme un input par exemple."}),"\n","\n",(0,t.jsx)(r.L,{source:o})]})}function m(e={}){const{wrapper:n}={...(0,E.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/6049a7bc.903fbb0d.js b/website/assets/js/6049a7bc.903fbb0d.js new file mode 100644 index 000000000..2f0fea049 --- /dev/null +++ b/website/assets/js/6049a7bc.903fbb0d.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5149],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>p});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=t(7119),r=t(6487),s=t(3007);const l="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",i="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=t(7020),c=t(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const v=n.maxPage&&"1"!==n.maxPage;return(0,c.jsxs)("div",{className:a.FormExample,children:[(0,c.jsxs)(o.A,{children:[(0,c.jsx)(r.A,{value:"source",label:"Source",default:!0,children:(0,c.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,c.jsx)(r.A,{value:"data",label:"Data",children:(0,c.jsx)(s.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,c.jsxs)(o.A,{children:[(0,c.jsx)(r.A,{value:"code",label:"Code",children:(0,c.jsx)(s.A,{language:"tsx",className:a.FormExampleCode,children:v?i:l})}),(0,c.jsx)(r.A,{value:"render",label:"Rendu",default:!0,children:(0,c.jsx)("div",{className:a.FormExampleRender,children:(0,c.jsx)(u.A,{fallback:(0,c.jsx)("div",{children:"Loading..."}),children:()=>{const e=v?t(5152).g:t(3314).S;return(0,c.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>r});var a=t(1999),o=t(4848);function r(e){let{source:n,data:t}=e;const{getComponents:r,Provider:s}=(0,a.O1)(n,t,{initialPage:"1"});return(0,o.jsx)(s,{children:(0,o.jsx)(a.R2,{components:r()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>s});var a=t(1999),o=t(6540),r=t(4848);function s(e){let{source:n,data:t,options:s}=e;const{getComponents:l,isLastPage:i,isFirstPage:u,goPreviousPage:c,goNextPage:d,Provider:p,compileControls:m}=(0,a.O1)(n,t,{initialPage:"1",...s}),[v,g]=(0,o.useState)();return(0,r.jsxs)("div",{children:[(0,r.jsx)(p,{children:(0,r.jsx)(a.R2,{components:l(),componentProps:()=>({errors:v?.currentErrors})})}),(0,r.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,r.jsx)("button",{className:"button button--primary",disabled:u,onClick:c,children:"Pr\xe9c\xe9dent"}),(0,r.jsx)("button",{className:"button button--primary",disabled:i,onClick:()=>{const e=m();e.currentErrors?g(e):d()},children:"Suivant"})]}),v&&(0,r.jsx)(a.I1,{errors:v.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:v.isCritical})]})}},3267:(e,n,t)=>{"use strict";t.d(n,{e:()=>o});var a=t(4848);function o(e){let{type:n}=e;const t=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,a.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:t,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,a.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},239:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>v,frontMatter:()=>u,metadata:()=>a,toc:()=>p});const a=JSON.parse('{"id":"components/fields/dropdown","title":"Dropdown","description":"Le composant permet de g\xe9n\xe9rer un menu d\xe9roulant.","source":"@site/docs/components/fields/dropdown.mdx","sourceDirName":"components/fields","slug":"/components/fields/dropdown","permalink":"/Lunatic/docs/components/fields/dropdown","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/dropdown.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Duration","permalink":"/Lunatic/docs/components/fields/duration"},"next":{"title":"Suggester","permalink":"/Lunatic/docs/components/fields/suggester"}}');var o=t(4848),r=t(8453),s=t(3267);const l=JSON.parse('{"maxPage":"1","components":[{"id":"j4nw5cqz","componentType":"Dropdown","mandatory":false,"page":"1","label":{"value":"\\"In which state do The Simpsons reside?\\"","type":"VTL|MD"},"response":{"name":"STATE"},"options":[{"value":"1","label":{"value":"\\"Washington\\"","type":"VTL|MD"}},{"value":"2","label":{"value":"\\"Kentucky\\"","type":"VTL|MD"}},{"value":"3","label":{"value":"\\"Ohio\\"","type":"VTL|MD"}},{"value":"4","label":{"value":"\\"Maine\\"","type":"VTL|MD"}},{"value":"5","label":{"value":"\\"North Dakota\\"","type":"VTL|MD"}},{"value":"6","label":{"value":"\\"Florida\\"","type":"VTL|MD"}},{"value":"7","label":{"value":"\\"North Takoma\\"","type":"VTL|MD"}},{"value":"8","label":{"value":"\\"California\\"","type":"VTL|MD"}},{"value":"9","label":{"value":"\\"Texas\\"","type":"VTL|MD"}},{"value":"10","label":{"value":"\\"Massachusetts\\"","type":"VTL|MD"}},{"value":"11","label":{"value":"\\"Nevada\\"","type":"VTL|MD"}},{"value":"12","label":{"value":"\\"Illinois\\"","type":"VTL|MD"}},{"value":"13","label":{"value":"\\"Not in any state, you fool!\\"","type":"VTL|MD"}}]},{"id":"j4nw5cqz-bis","componentType":"Dropdown","mandatory":false,"page":"1","label":{"value":"\\"In which state do The Simpsons reside?\\"","type":"VTL|MD"},"response":{"name":"STATE2"},"options":[{"value":"1","label":{"value":"\\"Washington\\"","type":"VTL|MD"}},{"value":"2","label":{"value":"\\"Kentucky\\"","type":"VTL|MD"}},{"value":"3","label":{"value":"\\"Ohio\\"","type":"VTL|MD"}},{"value":"4","label":{"value":"\\"Maine\\"","type":"VTL|MD"}},{"value":"5","label":{"value":"\\"North Dakota\\"","type":"VTL|MD"}},{"value":"6","label":{"value":"\\"Florida\\"","type":"VTL|MD"}},{"value":"7","label":{"value":"\\"North Takoma\\"","type":"VTL|MD"}},{"value":"8","label":{"value":"\\"California\\"","type":"VTL|MD"}},{"value":"9","label":{"value":"\\"Texas\\"","type":"VTL|MD"}},{"value":"10","label":{"value":"\\"Massachusetts\\"","type":"VTL|MD"}},{"value":"11","label":{"value":"\\"Nevada\\"","type":"VTL|MD"}},{"value":"12","label":{"value":"\\"Illinois\\"","type":"VTL|MD"}},{"value":"13","label":{"value":"\\"Not in any state, you fool!\\"","type":"VTL|MD"}}]}],"variables":[{"variableType":"COLLECTED","name":"STATE","componentRef":"j4nw5cqz","values":{"PREVIOUS":null,"COLLECTED":"2","FORCED":"3","EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"STATE2","componentRef":"j4nw5cqz-bis","values":{"PREVIOUS":null,"COLLECTED":"3","FORCED":"2","EDITED":null,"INPUTTED":null}}]}');var i=t(4264);const u={},c="Dropdown",d={},p=[];function m(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"dropdown",children:"Dropdown"})}),"\n",(0,o.jsx)(n.p,{children:"Le composant permet de g\xe9n\xe9rer un menu d\xe9roulant."}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"options"}),", liste des options s\xe9lectionnables","\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"value"}),", valeur a associ\xe9 \xe0 la r\xe9ponse"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"label"}),", libell\xe9 de l'option (expression VTL)"]}),"\n"]}),"\n"]}),"\n"]}),"\n","\n",(0,o.jsx)(s.e,{type:"ComponentDropdownType"}),"\n","\n",(0,o.jsx)(i.L,{source:l})]})}function v(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/6237.3e19f0f9.js b/website/assets/js/6237.3e19f0f9.js new file mode 100644 index 000000000..74afb0cb7 --- /dev/null +++ b/website/assets/js/6237.3e19f0f9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6237],{3814:(t,e,n)=>{n.d(e,{CP:()=>l,HT:()=>u,PB:()=>h,aC:()=>c,lC:()=>a,m:()=>o,tk:()=>r});var i=n(9),s=n(6750),r=(0,i.K2)(((t,e)=>{const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),e.name&&n.attr("name",e.name),e.rx&&n.attr("rx",e.rx),e.ry&&n.attr("ry",e.ry),void 0!==e.attrs)for(const i in e.attrs)n.attr(i,e.attrs[i]);return e.class&&n.attr("class",e.class),n}),"drawRect"),a=(0,i.K2)(((t,e)=>{const n={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};r(t,n).lower()}),"drawBackgroundRect"),o=(0,i.K2)(((t,e)=>{const n=e.text.replace(i.H1," "),s=t.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);const r=s.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),s}),"drawText"),c=(0,i.K2)(((t,e,n,i)=>{const r=t.append("image");r.attr("x",e),r.attr("y",n);const a=(0,s.J)(i);r.attr("xlink:href",a)}),"drawImage"),l=(0,i.K2)(((t,e,n,i)=>{const r=t.append("use");r.attr("x",e),r.attr("y",n);const a=(0,s.J)(i);r.attr("xlink:href",`#${a}`)}),"drawEmbeddedImage"),h=(0,i.K2)((()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0})),"getNoteRect"),u=(0,i.K2)((()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})),"getTextObj")},6237:(t,e,n)=>{n.d(e,{diagram:()=>Y});var i=n(3814),s=n(9),r=n(7),a=function(){var t=(0,s.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],i=[1,10],r=[1,11],a=[1,12],o=[1,13],c=[1,14],l={trace:(0,s.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,s.K2)((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 13:i.addTask(r[o-1],r[o]),this.$="task"}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:r,16:a,17:o,18:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:i,14:r,16:a,17:o,18:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,s.K2)((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:(0,s.K2)((function(t){var e=this,n=[0],i=[],r=[null],a=[],o=this.table,c="",l=0,h=0,u=0,y=a.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d.yy[f]=this.yy[f]);p.setInput(t,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var g=p.yylloc;a.push(g);var x=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K2)((function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),(0,s.K2)(m,"lex");for(var k,_,b,w,v,K,$,T,M,S={};;){if(b=n[n.length-1],this.defaultActions[b]?w=this.defaultActions[b]:(null==k&&(k=m()),w=o[b]&&o[b][k]),void 0===w||!w.length||!w[0]){var E="";for(K in M=[],o[b])this.terminals_[K]&&K>2&&M.push("'"+this.terminals_[K]+"'");E=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(E,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:g,expected:M})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(w[0]){case 1:n.push(k),r.push(p.yytext),a.push(p.yylloc),n.push(w[1]),k=null,_?(k=_,_=null):(h=p.yyleng,c=p.yytext,l=p.yylineno,g=p.yylloc,u>0&&u--);break;case 2:if($=this.productions_[w[1]][1],S.$=r[r.length-$],S._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},x&&(S._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(S,[c,h,l,d.yy,w[1],r,a].concat(y))))return v;$&&(n=n.slice(0,-1*$*2),r=r.slice(0,-1*$),a=a.slice(0,-1*$)),n.push(this.productions_[w[1]][0]),r.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}),"parse")},h=function(){return{EOF:1,parseError:(0,s.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,s.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,s.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,s.K2)((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,s.K2)((function(){return this._more=!0,this}),"more"),reject:(0,s.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,s.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,s.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.K2)((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:(0,s.K2)((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,s.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,s.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,s.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,s.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,s.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,s.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,s.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K2)((function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}}();function u(){this.yy={}}return l.lexer=h,(0,s.K2)(u,"Parser"),u.prototype=l,l.Parser=u,new u}();a.parser=a;var o=a,c="",l=[],h=[],u=[],y=(0,s.K2)((function(){l.length=0,h.length=0,c="",u.length=0,(0,s.IU)()}),"clear"),p=(0,s.K2)((function(t){c=t,l.push(t)}),"addSection"),d=(0,s.K2)((function(){return l}),"getSections"),f=(0,s.K2)((function(){let t=k();let e=0;for(;!t&&e<100;)t=k(),e++;return h.push(...u),h}),"getTasks"),g=(0,s.K2)((function(){const t=[];h.forEach((e=>{e.people&&t.push(...e.people)}));return[...new Set(t)].sort()}),"updateActors"),x=(0,s.K2)((function(t,e){const n=e.substr(1).split(":");let i=0,s=[];1===n.length?(i=Number(n[0]),s=[]):(i=Number(n[0]),s=n[1].split(","));const r=s.map((t=>t.trim())),a={section:c,type:c,people:r,task:t,score:i};u.push(a)}),"addTask"),m=(0,s.K2)((function(t){const e={section:c,type:c,description:t,task:t,classes:[]};h.push(e)}),"addTaskOrg"),k=(0,s.K2)((function(){const t=(0,s.K2)((function(t){return u[t].processed}),"compileTask");let e=!0;for(const[n,i]of u.entries())t(n),e=e&&i.processed;return e}),"compileTasks"),_=(0,s.K2)((function(){return g()}),"getActors"),b={getConfig:(0,s.K2)((()=>(0,s.D7)().journey),"getConfig"),clear:y,setDiagramTitle:s.ke,getDiagramTitle:s.ab,setAccTitle:s.SV,getAccTitle:s.iN,setAccDescription:s.EI,getAccDescription:s.m7,addSection:p,getSections:d,getTasks:f,addTask:x,addTaskOrg:m,getActors:_},w=(0,s.K2)((t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`),"getStyles"),v=(0,s.K2)((function(t,e){return(0,i.tk)(t,e)}),"drawRect"),K=(0,s.K2)((function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),a=t.append("g");function o(t){const i=(0,r.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(t){const i=(0,r.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,s.K2)(o,"smile"),(0,s.K2)(c,"sad"),(0,s.K2)(l,"ambivalent"),e.score>3?o(a):e.score<3?c(a):l(a),i}),"drawFace"),$=(0,s.K2)((function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n}),"drawCircle"),T=(0,s.K2)((function(t,e){return(0,i.m)(t,e)}),"drawText"),M=(0,s.K2)((function(t,e){function n(t,e,n,i,s){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-s)+" "+(t+n-1.2*s)+","+(e+i)+" "+t+","+(e+i)}(0,s.K2)(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,T(t,e)}),"drawLabel"),S=(0,s.K2)((function(t,e,n){const s=t.append("g"),r=(0,i.PB)();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width*e.taskCount+n.diagramMarginX*(e.taskCount-1),r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,v(s,r),C(n)(e.text,s,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection"),E=-1,I=(0,s.K2)((function(t,e,n){const s=e.x+n.width/2,r=t.append("g");E++;r.append("line").attr("id","task"+E).attr("x1",s).attr("y1",e.y).attr("x2",s).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),K(r,{cx:s,cy:300+30*(5-e.score),score:e.score});const a=(0,i.PB)();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,v(r,a);let o=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:o,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};$(r,i),o+=10})),C(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)}),"drawTask"),P=(0,s.K2)((function(t,e){(0,i.lC)(t,e)}),"drawBackgroundRect"),C=function(){function t(t,e,n,s,r,a,o,c){i(e.append("text").attr("x",n+r/2).attr("y",s+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function e(t,e,n,s,r,a,o,c,l){const{taskFontSize:h,taskFontFamily:u}=c,y=t.split(/<br\s*\/?>/gi);for(let p=0;p<y.length;p++){const t=p*h-h*(y.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",s).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",u);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(y[p]),c.attr("y",s+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(c,o)}}function n(t,n,s,r,a,o,c,l){const h=n.append("switch"),u=h.append("foreignObject").attr("x",s).attr("y",r).attr("width",a).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,s,r,a,o,c,l),i(u,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return(0,s.K2)(t,"byText"),(0,s.K2)(e,"byTspan"),(0,s.K2)(n,"byFo"),(0,s.K2)(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),A={drawRect:v,drawCircle:$,drawSection:S,drawText:T,drawLabel:M,drawTask:I,drawBackgroundRect:P,initGraphics:(0,s.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}),"initGraphics")},j=(0,s.K2)((function(t){Object.keys(t).forEach((function(e){V[e]=t[e]}))}),"setConf"),D={};function L(t){const e=(0,s.D7)().journey;let n=60;Object.keys(D).forEach((i=>{const s=D[i].color,r={cx:20,cy:n,r:7,fill:s,stroke:"#000",pos:D[i].position};A.drawCircle(t,r);const a={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};A.drawText(t,a),n+=20}))}(0,s.K2)(L,"drawActorLegend");var V=(0,s.D7)().journey,B=V.leftMargin,O=(0,s.K2)((function(t,e,n,i){const a=(0,s.D7)().journey,o=(0,s.D7)().securityLevel;let c;"sandbox"===o&&(c=(0,r.Ltv)("#i"+e));const l="sandbox"===o?(0,r.Ltv)(c.nodes()[0].contentDocument.body):(0,r.Ltv)("body");F.init();const h=l.select("#"+e);A.initGraphics(h);const u=i.db.getTasks(),y=i.db.getDiagramTitle(),p=i.db.getActors();for(const s in D)delete D[s];let d=0;p.forEach((t=>{D[t]={color:a.actorColours[d%a.actorColours.length],position:d},d++})),L(h),F.insert(0,0,B,50*Object.keys(D).length),z(h,u,0);const f=F.getBounds();y&&h.append("text").text(y).attr("x",B).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const g=f.stopy-f.starty+2*a.diagramMarginY,x=B+f.stopx+2*a.diagramMarginX;(0,s.a$)(h,g,x,a.useMaxWidth),h.append("line").attr("x1",B).attr("y1",4*a.height).attr("x2",x-B-4).attr("y2",4*a.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const m=y?70:0;h.attr("viewBox",`${f.startx} -25 ${x} ${g+m}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",g+m+25)}),"draw"),F={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,s.K2)((function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0}),"init"),updateVal:(0,s.K2)((function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])}),"updateVal"),updateBounds:(0,s.K2)((function(t,e,n,i){const r=(0,s.D7)().journey,a=this;let o=0;function c(c){return(0,s.K2)((function(s){o++;const l=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-l*r.boxMargin,Math.min),a.updateVal(s,"stopy",i+l*r.boxMargin,Math.max),a.updateVal(F.data,"startx",t-l*r.boxMargin,Math.min),a.updateVal(F.data,"stopx",n+l*r.boxMargin,Math.max),"activation"!==c&&(a.updateVal(s,"startx",t-l*r.boxMargin,Math.min),a.updateVal(s,"stopx",n+l*r.boxMargin,Math.max),a.updateVal(F.data,"starty",e-l*r.boxMargin,Math.min),a.updateVal(F.data,"stopy",i+l*r.boxMargin,Math.max))}),"updateItemBounds")}(0,s.K2)(c,"updateFn"),this.sequenceItems.forEach(c())}),"updateBounds"),insert:(0,s.K2)((function(t,e,n,i){const s=Math.min(t,n),r=Math.max(t,n),a=Math.min(e,i),o=Math.max(e,i);this.updateVal(F.data,"startx",s,Math.min),this.updateVal(F.data,"starty",a,Math.min),this.updateVal(F.data,"stopx",r,Math.max),this.updateVal(F.data,"stopy",o,Math.max),this.updateBounds(s,a,r,o)}),"insert"),bumpVerticalPos:(0,s.K2)((function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos}),"bumpVerticalPos"),getVerticalPos:(0,s.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,s.K2)((function(){return this.data}),"getBounds")},N=V.sectionFills,R=V.sectionColours,z=(0,s.K2)((function(t,e,n){const i=(0,s.D7)().journey;let r="";const a=n+(2*i.height+i.diagramMarginY);let o=0,c="#CCC",l="black",h=0;for(const[s,u]of e.entries()){if(r!==u.section){c=N[o%N.length],h=o%N.length,l=R[o%R.length];let n=0;const a=u.section;for(let t=s;t<e.length&&e[t].section==a;t++)n+=1;const y={x:s*i.taskMargin+s*i.width+B,y:50,text:u.section,fill:c,num:h,colour:l,taskCount:n};A.drawSection(t,y,i),r=u.section,o++}const n=u.people.reduce(((t,e)=>(D[e]&&(t[e]=D[e]),t)),{});u.x=s*i.taskMargin+s*i.width+B,u.y=a,u.width=i.diagramMarginX,u.height=i.diagramMarginY,u.colour=l,u.fill=c,u.num=h,u.actors=n,A.drawTask(t,u,i),F.insert(u.x,u.y,u.x+u.width+i.taskMargin,450)}}),"drawTasks"),W={setConf:j,draw:O},Y={parser:o,db:b,renderer:W,styles:w,init:(0,s.K2)((t=>{W.setConf(t.journey),b.clear()}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/6240.f83d349c.js b/website/assets/js/6240.f83d349c.js new file mode 100644 index 000000000..3a3635f86 --- /dev/null +++ b/website/assets/js/6240.f83d349c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6240],{6474:(t,e,s)=>{s.d(e,{A:()=>u,P:()=>a});var n=s(9),i=s(7),u=(0,n.K2)(((t,e)=>{let s;"sandbox"===e&&(s=(0,i.Ltv)("#i"+t));return("sandbox"===e?(0,i.Ltv)(s.nodes()[0].contentDocument.body):(0,i.Ltv)("body")).select(`[id="${t}"]`)}),"getDiagramElement"),a=(0,n.K2)(((t,e,s,i)=>{t.attr("class",s);const{width:u,height:a,x:l,y:c}=r(t,e);(0,n.a$)(t,a,u,i);const h=o(l,c,u,a,e);t.attr("viewBox",h),n.Rm.debug(`viewBox configured: ${h} with padding: ${e}`)}),"setupViewPortForSVG"),r=(0,n.K2)(((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}}),"calculateDimensionsWithPadding"),o=(0,n.K2)(((t,e,s,n,i)=>`${t-i} ${e-i} ${s} ${n}`),"createViewBox")},3859:(t,e,s)=>{s.d(e,{Lh:()=>ot,_$:()=>l,tM:()=>at,z2:()=>ut});var n=s(6474),i=s(7308),u=s(540),a=s(9),r=s(7),o=function(){var t=(0,a.K2)((function(t,e,s,n){for(s=s||{},n=t.length;n--;s[t[n]]=e);return s}),"o"),e=[1,18],s=[1,19],n=[1,20],i=[1,41],u=[1,42],r=[1,26],o=[1,24],l=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],y=[1,36],g=[1,37],m=[1,38],C=[1,27],f=[1,28],E=[1,29],b=[1,30],k=[1,31],T=[1,44],D=[1,46],F=[1,43],B=[1,47],_=[1,9],S=[1,8,9],N=[1,58],L=[1,59],$=[1,60],x=[1,61],O=[1,62],v=[1,63],I=[1,64],K=[1,8,9,41],w=[1,76],R=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],P=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],M=[13,58,84,99,101,102],G=[13,58,71,72,84,99,101,102],U=[13,58,66,67,68,69,70,84,99,101,102],Y=[1,98],z=[1,115],Q=[1,107],W=[1,113],X=[1,108],j=[1,109],V=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[22,58,59,80,84,85,86,87,88,89],tt=[1,8,9,39,41,44],et=[1,8,9,22],st=[1,143],nt=[1,8,9,59],it=[1,8,9,22,58,59,80,84,85,86,87,88,89],ut={trace:(0,a.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:(0,a.K2)((function(t,e,s,n,i,u,a){var r=u.length-1;switch(i){case 8:this.$=u[r-1];break;case 9:case 12:case 14:this.$=u[r];break;case 10:case 13:this.$=u[r-2]+"."+u[r];break;case 11:case 15:case 95:this.$=u[r-1]+u[r];break;case 16:case 17:this.$=u[r-1]+"~"+u[r]+"~";break;case 18:n.addRelation(u[r]);break;case 19:u[r-1].title=n.cleanupLabel(u[r]),n.addRelation(u[r-1]);break;case 30:this.$=u[r].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=u[r].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(u[r-3],u[r-1]);break;case 34:n.addClassesToNamespace(u[r-4],u[r-1]);break;case 35:this.$=u[r],n.addNamespace(u[r]);break;case 36:case 46:case 59:case 92:this.$=[u[r]];break;case 37:this.$=[u[r-1]];break;case 38:u[r].unshift(u[r-2]),this.$=u[r];break;case 40:n.setCssClass(u[r-2],u[r]);break;case 41:n.addMembers(u[r-3],u[r-1]);break;case 42:n.setCssClass(u[r-5],u[r-3]),n.addMembers(u[r-5],u[r-1]);break;case 43:this.$=u[r],n.addClass(u[r]);break;case 44:this.$=u[r-1],n.addClass(u[r-1]),n.setClassLabel(u[r-1],u[r]);break;case 45:n.addAnnotation(u[r],u[r-2]);break;case 47:u[r].push(u[r-1]),this.$=u[r];break;case 48:case 50:case 51:break;case 49:n.addMember(u[r-1],n.cleanupLabel(u[r]));break;case 52:this.$={id1:u[r-2],id2:u[r],relation:u[r-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:u[r-3],id2:u[r],relation:u[r-1],relationTitle1:u[r-2],relationTitle2:"none"};break;case 54:this.$={id1:u[r-3],id2:u[r],relation:u[r-2],relationTitle1:"none",relationTitle2:u[r-1]};break;case 55:this.$={id1:u[r-4],id2:u[r],relation:u[r-2],relationTitle1:u[r-3],relationTitle2:u[r-1]};break;case 56:n.addNote(u[r],u[r-1]);break;case 57:n.addNote(u[r]);break;case 58:this.$=u[r-2],n.defineClass(u[r-1],u[r]);break;case 60:this.$=u[r-2].concat([u[r]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:u[r-2],type2:u[r],lineType:u[r-1]};break;case 66:this.$={type1:"none",type2:u[r],lineType:u[r-1]};break;case 67:this.$={type1:u[r-1],type2:"none",lineType:u[r]};break;case 68:this.$={type1:"none",type2:"none",lineType:u[r]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=u[r-2],n.setClickEvent(u[r-1],u[r]);break;case 77:case 83:this.$=u[r-3],n.setClickEvent(u[r-2],u[r-1]),n.setTooltip(u[r-2],u[r]);break;case 78:this.$=u[r-2],n.setLink(u[r-1],u[r]);break;case 79:this.$=u[r-3],n.setLink(u[r-2],u[r-1],u[r]);break;case 80:this.$=u[r-3],n.setLink(u[r-2],u[r-1]),n.setTooltip(u[r-2],u[r]);break;case 81:this.$=u[r-4],n.setLink(u[r-3],u[r-2],u[r]),n.setTooltip(u[r-3],u[r-1]);break;case 84:this.$=u[r-3],n.setClickEvent(u[r-2],u[r-1],u[r]);break;case 85:this.$=u[r-4],n.setClickEvent(u[r-3],u[r-2],u[r-1]),n.setTooltip(u[r-3],u[r]);break;case 86:this.$=u[r-3],n.setLink(u[r-2],u[r]);break;case 87:this.$=u[r-4],n.setLink(u[r-3],u[r-1],u[r]);break;case 88:this.$=u[r-4],n.setLink(u[r-3],u[r-1]),n.setTooltip(u[r-3],u[r]);break;case 89:this.$=u[r-5],n.setLink(u[r-4],u[r-2],u[r]),n.setTooltip(u[r-4],u[r-1]);break;case 90:this.$=u[r-2],n.setCssStyle(u[r-1],u[r]);break;case 91:n.setCssClass(u[r-1],u[r]);break;case 93:u[r-2].push(u[r]),this.$=u[r-2]}}),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:i,43:23,46:u,47:r,49:o,50:l,52:c,54:h,55:p,58:d,60:A,61:y,62:g,63:m,73:C,74:f,76:E,80:b,81:k,84:T,99:D,101:F,102:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t(S,[2,18],{22:[1,50]}),t(S,[2,20]),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),{34:[1,51]},{36:[1,52]},t(S,[2,32]),t(S,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:N,67:L,68:$,69:x,70:O,71:v,72:I}),{39:[1,65]},t(K,[2,39],{39:[1,67],44:[1,66]}),t(S,[2,50]),t(S,[2,51]),{16:68,58:d,84:T,99:D,101:F},{16:39,18:69,19:40,58:d,84:T,99:D,101:F,102:B},{16:39,18:70,19:40,58:d,84:T,99:D,101:F,102:B},{16:39,18:71,19:40,58:d,84:T,99:D,101:F,102:B},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:d,84:T,99:D,101:F,102:B},{13:w,53:75},{56:77,58:[1,78]},t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),t(S,[2,64]),t(R,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:d,84:T,99:D,101:F,102:B}),t(R,[2,14],{20:[1,82]}),{15:83,16:84,58:d,84:T,99:D,101:F},{16:39,18:85,19:40,58:d,84:T,99:D,101:F,102:B},t(P,[2,118]),t(P,[2,119]),t(P,[2,120]),t(P,[2,121]),t([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:e,35:s,37:n,42:i,46:u,47:r,49:o,50:l,52:c,54:h,55:p,58:d,60:A,61:y,62:g,63:m,73:C,74:f,76:E,80:b,81:k,84:T,99:D,101:F,102:B}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:i,43:23,46:u,47:r,49:o,50:l,52:c,54:h,55:p,58:d,60:A,61:y,62:g,63:m,73:C,74:f,76:E,80:b,81:k,84:T,99:D,101:F,102:B},t(S,[2,19]),t(S,[2,30]),t(S,[2,31]),{13:[1,89],16:39,18:88,19:40,58:d,84:T,99:D,101:F,102:B},{51:90,64:56,65:57,66:N,67:L,68:$,69:x,70:O,71:v,72:I},t(S,[2,49]),{65:91,71:v,72:I},t(M,[2,68],{64:92,66:N,67:L,68:$,69:x,70:O}),t(G,[2,69]),t(G,[2,70]),t(G,[2,71]),t(G,[2,72]),t(G,[2,73]),t(U,[2,74]),t(U,[2,75]),{8:[1,94],24:95,40:93,43:23,46:u},{16:96,58:d,84:T,99:D,101:F},{45:97,49:Y},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:z,57:104,58:Q,80:W,82:105,83:106,84:X,85:j,86:V,87:q,88:H,89:J},{58:[1,116]},{13:w,53:117},t(S,[2,57]),t(S,[2,123]),{22:z,57:118,58:Q,59:[1,119],80:W,82:105,83:106,84:X,85:j,86:V,87:q,88:H,89:J},t(Z,[2,59]),{16:39,18:120,19:40,58:d,84:T,99:D,101:F,102:B},t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:d,84:T,99:D,101:F},t(tt,[2,43],{11:123,12:[1,124]}),t(_,[2,7]),{9:[1,125]},t(et,[2,52]),{16:39,18:126,19:40,58:d,84:T,99:D,101:F,102:B},{13:[1,128],16:39,18:127,19:40,58:d,84:T,99:D,101:F,102:B},t(M,[2,67],{64:129,66:N,67:L,68:$,69:x,70:O}),t(M,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:u},{8:[1,132],41:[2,36]},t(K,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Y},{16:39,18:136,19:40,58:d,84:T,99:D,101:F,102:B},t(S,[2,76],{13:[1,137]}),t(S,[2,78],{13:[1,139],75:[1,138]}),t(S,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},t(S,[2,90],{59:st}),t(nt,[2,92],{83:144,22:z,58:Q,80:W,84:X,85:j,86:V,87:q,88:H,89:J}),t(it,[2,94]),t(it,[2,96]),t(it,[2,97]),t(it,[2,98]),t(it,[2,99]),t(it,[2,100]),t(it,[2,101]),t(it,[2,102]),t(it,[2,103]),t(it,[2,104]),t(S,[2,91]),t(S,[2,56]),t(S,[2,58],{59:st}),{58:[1,145]},t(R,[2,13]),{15:146,16:84,58:d,84:T,99:D,101:F},{39:[2,11]},t(tt,[2,44]),{13:[1,147]},{1:[2,4]},t(et,[2,54]),t(et,[2,53]),{16:39,18:148,19:40,58:d,84:T,99:D,101:F,102:B},t(M,[2,65]),t(S,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:u},{45:151,49:Y},t(K,[2,41]),{41:[2,47]},t(S,[2,45]),t(S,[2,77]),t(S,[2,79]),t(S,[2,80],{75:[1,152]}),t(S,[2,83]),t(S,[2,84],{13:[1,153]}),t(S,[2,86],{13:[1,155],75:[1,154]}),{22:z,58:Q,80:W,82:156,83:106,84:X,85:j,86:V,87:q,88:H,89:J},t(it,[2,95]),t(Z,[2,60]),{39:[2,10]},{14:[1,157]},t(et,[2,55]),t(S,[2,34]),{41:[2,38]},{41:[1,158]},t(S,[2,81]),t(S,[2,85]),t(S,[2,87]),t(S,[2,88],{75:[1,159]}),t(nt,[2,93],{83:144,22:z,58:Q,80:W,84:X,85:j,86:V,87:q,88:H,89:J}),t(tt,[2,8]),t(K,[2,42]),t(S,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:(0,a.K2)((function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)}),"parseError"),parse:(0,a.K2)((function(t){var e=this,s=[0],n=[],i=[null],u=[],r=this.table,o="",l=0,c=0,h=0,p=u.slice.call(arguments,1),d=Object.create(this.lexer),A={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(A.yy[y]=this.yy[y]);d.setInput(t,A.yy),A.yy.lexer=d,A.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var g=d.yylloc;u.push(g);var m=d.options&&d.options.ranges;function C(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof A.yy.parseError?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.K2)((function(t){s.length=s.length-2*t,i.length=i.length-t,u.length=u.length-t}),"popStack"),(0,a.K2)(C,"lex");for(var f,E,b,k,T,D,F,B,_,S={};;){if(b=s[s.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==f&&(f=C()),k=r[b]&&r[b][f]),void 0===k||!k.length||!k[0]){var N="";for(D in _=[],r[b])this.terminals_[D]&&D>2&&_.push("'"+this.terminals_[D]+"'");N=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(N,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:g,expected:_})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+f);switch(k[0]){case 1:s.push(f),i.push(d.yytext),u.push(d.yylloc),s.push(k[1]),f=null,E?(f=E,E=null):(c=d.yyleng,o=d.yytext,l=d.yylineno,g=d.yylloc,h>0&&h--);break;case 2:if(F=this.productions_[k[1]][1],S.$=i[i.length-F],S._$={first_line:u[u.length-(F||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(F||1)].first_column,last_column:u[u.length-1].last_column},m&&(S._$.range=[u[u.length-(F||1)].range[0],u[u.length-1].range[1]]),void 0!==(T=this.performAction.apply(S,[o,c,l,A.yy,k[1],i,u].concat(p))))return T;F&&(s=s.slice(0,-1*F*2),i=i.slice(0,-1*F),u=u.slice(0,-1*F)),s.push(this.productions_[k[1]][0]),i.push(S.$),u.push(S._$),B=r[s[s.length-2]][s[s.length-1]],s.push(B);break;case 3:return!0}}return!0}),"parse")},at=function(){return{EOF:1,parseError:(0,a.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,a.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,a.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,a.K2)((function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===n.length?this.yylloc.first_column:0)+n[n.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,a.K2)((function(){return this._more=!0,this}),"more"),reject:(0,a.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,a.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,a.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,a.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,a.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,a.K2)((function(t,e){var s,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var u in i)this[u]=i[u];return!1}return!1}),"test_match"),next:(0,a.K2)((function(){if(this.done)return this.EOF;var t,e,s,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),u=0;u<i.length;u++)if((s=this._input.match(this.rules[i[u]]))&&(!e||s[0].length>e[0].length)){if(e=s,n=u,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,i[u])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,a.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,a.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,a.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,a.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,a.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,a.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,a.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,a.K2)((function(t,e,s,n){switch(s){case 0:return 60;case 1:return 61;case 2:return 62;case 3:return 63;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 77;case 23:return 78;case 25:return"STR";case 26:this.begin("string");break;case 27:return 80;case 28:return 55;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 81;case 50:return 73;case 51:return 74;case 52:return 76;case 53:return 52;case 54:return 54;case 55:return 47;case 56:return 48;case 57:return 79;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 75;case 68:case 69:return 67;case 70:case 71:return 69;case 72:return 68;case 73:return 66;case 74:return 70;case 75:return 71;case 76:return 72;case 77:return 22;case 78:return 44;case 79:return 99;case 80:return 17;case 81:return"PLUS";case 82:return 85;case 83:return 59;case 84:case 85:return 88;case 86:return 89;case 87:case 88:return"EQUALS";case 89:return 58;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 84;case 94:return 101;case 95:case 96:return 87;case 97:return 9}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}}();function rt(){this.yy={}}return ut.lexer=at,(0,a.K2)(rt,"Parser"),rt.prototype=ut,ut.Parser=rt,new rt}();o.parser=o;var l=o,c=["#","+","~","-",""],h=class{static{(0,a.K2)(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=(0,a.jZ)(t,(0,a.D7)());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+(0,a.QO)(this.id);"method"===this.memberType&&(t+=`(${(0,a.QO)(this.parameters.trim())})`,this.returnType&&(t+=" : "+(0,a.QO)(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(c.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,n=t.substring(0,1),i=t.substring(s-1);c.includes(n)&&(this.visibility=n),/[$*]/.exec(i)&&(e=i),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${(0,a.QO)(this.id)}${"method"===this.memberType?`(${(0,a.QO)(this.parameters)})${this.returnType?" : "+(0,a.QO)(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},p="classId-",d=[],A=new Map,y=new Map,g=[],m=[],C=0,f=new Map,E=0,b=[],k=(0,a.K2)((t=>a.Y2.sanitizeText(t,(0,a.D7)())),"sanitizeText"),T=(0,a.K2)((function(t){const e=a.Y2.sanitizeText(t,(0,a.D7)());let s="",n=e;if(e.indexOf("~")>0){const t=e.split("~");n=k(t[0]),s=k(t[1])}return{className:n,type:s}}),"splitClassNameAndType"),D=(0,a.K2)((function(t,e){const s=a.Y2.sanitizeText(t,(0,a.D7)());e&&(e=k(e));const{className:n}=T(s);A.get(n).label=e,A.get(n).text=`${e}${A.get(n).type?`<${A.get(n).type}>`:""}`}),"setClassLabel"),F=(0,a.K2)((function(t){const e=a.Y2.sanitizeText(t,(0,a.D7)()),{className:s,type:n}=T(e);if(A.has(s))return;const i=a.Y2.sanitizeText(s,(0,a.D7)());A.set(i,{id:i,type:n,label:i,text:`${i}${n?`<${n}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:p+i+"-"+C}),C++}),"addClass"),B=(0,a.K2)((function(t,e){const s={id:`interface${m.length}`,label:t,classId:e};m.push(s)}),"addInterface"),_=(0,a.K2)((function(t){const e=a.Y2.sanitizeText(t,(0,a.D7)());if(A.has(e))return A.get(e).domId;throw new Error("Class not found: "+e)}),"lookUpDomId"),S=(0,a.K2)((function(){d=[],A=new Map,g=[],m=[],(b=[]).push(j),f=new Map,E=0,V="TB",(0,a.IU)()}),"clear"),N=(0,a.K2)((function(t){return A.get(t)}),"getClass"),L=(0,a.K2)((function(){return A}),"getClasses"),$=(0,a.K2)((function(){return d}),"getRelations"),x=(0,a.K2)((function(){return g}),"getNotes"),O=(0,a.K2)((function(t){a.Rm.debug("Adding relation: "+JSON.stringify(t));const e=[X.LOLLIPOP,X.AGGREGATION,X.COMPOSITION,X.DEPENDENCY,X.EXTENSION];t.relation.type1!==X.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==X.LOLLIPOP||e.includes(t.relation.type1)?(F(t.id1),F(t.id2)):(F(t.id1),B(t.id2,t.id1),t.id2="interface"+(m.length-1)):(F(t.id2),B(t.id1,t.id2),t.id1="interface"+(m.length-1)),t.id1=T(t.id1).className,t.id2=T(t.id2).className,t.relationTitle1=a.Y2.sanitizeText(t.relationTitle1.trim(),(0,a.D7)()),t.relationTitle2=a.Y2.sanitizeText(t.relationTitle2.trim(),(0,a.D7)()),d.push(t)}),"addRelation"),v=(0,a.K2)((function(t,e){const s=T(t).className;A.get(s).annotations.push(e)}),"addAnnotation"),I=(0,a.K2)((function(t,e){F(t);const s=T(t).className,n=A.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?n.annotations.push(k(t.substring(2,t.length-2))):t.indexOf(")")>0?n.methods.push(new h(t,"method")):t&&n.members.push(new h(t,"attribute"))}}),"addMember"),K=(0,a.K2)((function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>I(t,e))))}),"addMembers"),w=(0,a.K2)((function(t,e){const s={id:`note${g.length}`,class:e,text:t};g.push(s)}),"addNote"),R=(0,a.K2)((function(t){return t.startsWith(":")&&(t=t.substring(1)),k(t.trim())}),"cleanupLabel"),P=(0,a.K2)((function(t,e){t.split(",").forEach((function(t){let s=t;/\d/.exec(t[0])&&(s=p+s);const n=A.get(s);n&&(n.cssClasses+=" "+e)}))}),"setCssClass"),M=(0,a.K2)((function(t,e){for(const s of t){let t=y.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},y.set(s,t)),e&&e.forEach((function(e){if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)})),A.forEach((t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap((t=>t.split(","))))}))}}),"defineClass"),G=(0,a.K2)((function(t,e){t.split(",").forEach((function(t){void 0!==e&&(A.get(t).tooltip=k(e))}))}),"setTooltip"),U=(0,a.K2)((function(t,e){return e&&f.has(e)?f.get(e).classes.get(t).tooltip:A.get(t).tooltip}),"getTooltip"),Y=(0,a.K2)((function(t,e,s){const n=(0,a.D7)();t.split(",").forEach((function(t){let i=t;/\d/.exec(t[0])&&(i=p+i);const a=A.get(i);a&&(a.link=u._K.formatUrl(e,n),"sandbox"===n.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?k(s):"_blank")})),P(t,"clickable")}),"setLink"),z=(0,a.K2)((function(t,e,s){t.split(",").forEach((function(t){Q(t,e,s),A.get(t).haveCallback=!0})),P(t,"clickable")}),"setClickEvent"),Q=(0,a.K2)((function(t,e,s){const n=a.Y2.sanitizeText(t,(0,a.D7)());if("loose"!==(0,a.D7)().securityLevel)return;if(void 0===e)return;const i=n;if(A.has(i)){const t=_(i);let n=[];if("string"==typeof s){n=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<n.length;t++){let e=n[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),n[t]=e}}0===n.length&&n.push(t),b.push((function(){const s=document.querySelector(`[id="${t}"]`);null!==s&&s.addEventListener("click",(function(){u._K.runFunc(e,...n)}),!1)}))}}),"setClickFunc"),W=(0,a.K2)((function(t){b.forEach((function(e){e(t)}))}),"bindFunctions"),X={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},j=(0,a.K2)((function(t){let e=(0,r.Ltv)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=(0,r.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0));(0,r.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=(0,r.Ltv)(this);if(null===t.attr("title"))return;const s=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+s.left+(s.right-s.left)/2+"px").style("top",window.scrollY+s.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);(0,r.Ltv)(this).classed("hover",!1)}))}),"setupToolTips");b.push(j);var V="TB",q=(0,a.K2)((()=>V),"getDirection"),H=(0,a.K2)((t=>{V=t}),"setDirection"),J=(0,a.K2)((function(t){f.has(t)||(f.set(t,{id:t,classes:new Map,children:{},domId:p+t+"-"+E}),E++)}),"addNamespace"),Z=(0,a.K2)((function(t){return f.get(t)}),"getNamespace"),tt=(0,a.K2)((function(){return f}),"getNamespaces"),et=(0,a.K2)((function(t,e){if(f.has(t))for(const s of e){const{className:e}=T(s);A.get(e).parent=t,f.get(t).classes.set(e,A.get(e))}}),"addClassesToNamespace"),st=(0,a.K2)((function(t,e){const s=A.get(t);if(e&&s)for(const n of e)n.includes(",")?s.styles.push(...n.split(",")):s.styles.push(n)}),"setCssStyle");function nt(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}(0,a.K2)(nt,"getArrowMarker");var it=(0,a.K2)((()=>{const t=[],e=[],s=(0,a.D7)();for(const i of f.keys()){const e=f.get(i);if(e){const n={id:e.id,label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:s.look};t.push(n)}}for(const i of A.keys()){const e=A.get(i);if(e){const n=e;n.parentId=e.parent,n.look=s.look,t.push(n)}}let n=0;for(const i of g){n++;const u={id:i.id,label:i.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look};t.push(u);const a=A.get(i.class)?.id??"";if(a){const t={id:`edgeNote${n}`,start:i.id,end:a,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const i of m){const e={id:i.id,label:i.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(e)}n=0;for(const i of d){n++;const t={id:(0,u.rY)(i.id1,i.id2,{prefix:"id",counter:n}),start:i.id1,end:i.id2,type:"normal",label:i.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:nt(i.relation.type1),arrowTypeEnd:nt(i.relation.type2),startLabelRight:"none"===i.relationTitle1?"":i.relationTitle1,endLabelLeft:"none"===i.relationTitle2?"":i.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:i.style||"",pattern:1==i.relation.lineType?"dashed":"solid",look:s.look};e.push(t)}return{nodes:t,edges:e,other:{},config:s,direction:q()}}),"getData"),ut={setAccTitle:a.SV,getAccTitle:a.iN,getAccDescription:a.m7,setAccDescription:a.EI,getConfig:(0,a.K2)((()=>(0,a.D7)().class),"getConfig"),addClass:F,bindFunctions:W,clear:S,getClass:N,getClasses:L,getNotes:x,addAnnotation:v,addNote:w,getRelations:$,addRelation:O,getDirection:q,setDirection:H,addMember:I,addMembers:K,cleanupLabel:R,lineType:{LINE:0,DOTTED_LINE:1},relationType:X,setClickEvent:z,setCssClass:P,defineClass:M,setLink:Y,getTooltip:U,setTooltip:G,lookUpDomId:_,setDiagramTitle:a.ke,getDiagramTitle:a.ab,setClassLabel:D,addNamespace:J,addClassesToNamespace:et,getNamespace:Z,getNamespaces:tt,setCssStyle:st,getData:it},at=(0,a.K2)((t=>`g.classGroup text {\n fill: ${t.nodeBorder||t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n\n.labelBkg {\n background: ${t.mainBkg};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`),"getStyles"),rt=(0,a.K2)(((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const n of t.doc)"dir"===n.stmt&&(s=n.value);return s}),"getDir"),ot={getClasses:(0,a.K2)((function(t,e){return e.db.getClasses()}),"getClasses"),draw:(0,a.K2)((async function(t,e,s,r){a.Rm.info("REF0:"),a.Rm.info("Drawing class diagram (v3)",e);const{securityLevel:o,state:l,layout:c}=(0,a.D7)(),h=r.db.getData(),p=(0,n.A)(e,o);h.type=r.type,h.layoutAlgorithm=(0,i.q7)(c),h.nodeSpacing=l?.nodeSpacing||50,h.rankSpacing=l?.rankSpacing||50,h.markers=["aggregation","extension","composition","dependency","lollipop"],h.diagramId=e,await(0,i.XX)(h,p);u._K.insertTitle(p,"classDiagramTitleText",l?.titleTopMargin??25,r.db.getDiagramTitle()),(0,n.P)(p,8,"classDiagram",l?.useMaxWidth??!0)}),"draw"),getDir:rt}}}]); \ No newline at end of file diff --git a/website/assets/js/6244.672ef196.js b/website/assets/js/6244.672ef196.js new file mode 100644 index 000000000..23ae2267d --- /dev/null +++ b/website/assets/js/6244.672ef196.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6244],{7375:function(t){t.exports=function(){"use strict";return function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var s=this.$utils(),r=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return s.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return s.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return s.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(r)}}}()},445:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],d=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=a.meridiem;if(i){for(var s=1;s<=24;s+=1)if(t.indexOf(i(s,0,e))>-1){n=s>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[i,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[i,c("day")],Do:[r,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],w:[s,c("week")],ww:[i,c("week")],M:[s,c("month")],MM:[i,c("month")],MMM:[r,function(t){var e=d("months"),n=(d("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=d("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};function f(n){var i,s;i=n,s=a&&a.formats;for(var r=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var r=i&&i.toUpperCase();return n||s[i]||t[i]||s[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),o=r.length,c=0;c<o;c+=1){var l=r[c],d=h[l],u=d&&d[0],f=d&&d[1];r[c]=f?{regex:u,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<o;n+=1){var s=r[n];if("string"==typeof s)i+=s.length;else{var a=s.regex,c=s.parser,l=t.slice(i),d=a.exec(l)[0];c.call(e,d),t=t.replace(d,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(o=t.parseTwoDigitYear);var i=e.prototype,s=i.parse;i.parse=function(t){var e=t.date,i=t.utc,r=t.args;this.$u=i;var o=r[1];if("string"==typeof o){var c=!0===r[2],l=!0===r[3],d=c||l,u=r[2];l&&(u=r[2]),a=this.$locale(),!c&&u&&(a=n.Ls[u]),this.$d=function(t,e,n,i){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var s=f(e)(t),r=s.year,a=s.month,o=s.day,c=s.hours,l=s.minutes,d=s.seconds,u=s.milliseconds,h=s.zone,y=s.week,k=new Date,m=o||(r||a?1:k.getDate()),p=r||k.getFullYear(),g=0;r&&!a||(g=a>0?a-1:k.getMonth());var b,T=c||0,v=l||0,x=d||0,w=u||0;return h?new Date(Date.UTC(p,g,m,T,v,x,w+60*h.offset*1e3)):n?new Date(Date.UTC(p,g,m,T,v,x,w)):(b=new Date(p,g,m,T,v,x,w),y&&(b=i(b).week(y).toDate()),b)}catch(t){return new Date("")}}(e,o,i,n),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&e!=this.format(o)&&(this.$d=new Date("")),a={}}else if(o instanceof Array)for(var h=o.length,y=1;y<=h;y+=1){r[1]=o[y-1];var k=n.apply(this,r);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===h&&(this.$d=new Date(""))}else s.call(this,t)}}}()},8313:function(t){t.exports=function(){"use strict";var t="day";return function(e,n,i){var s=function(e){return e.add(4-e.isoWeekday(),t)},r=n.prototype;r.isoWeekYear=function(){return s(this).year()},r.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,r,a,o=s(this),c=(n=this.isoWeekYear(),a=4-(r=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),r.isoWeekday()>4&&(a+=7),r.add(a,t));return o.diff(c,"week")+1},r.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=r.startOf;r.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()},6244:(t,e,n)=>{"use strict";n.d(e,{diagram:()=>Yt});var i=n(540),s=n(9),r=n(6750),a=n(4353),o=n(8313),c=n(445),l=n(7375),d=n(7),u=function(){var t=(0,s.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],r=[1,28],a=[1,29],o=[1,30],c=[1,31],l=[1,32],d=[1,33],u=[1,34],h=[1,9],f=[1,10],y=[1,11],k=[1,12],m=[1,13],p=[1,14],g=[1,15],b=[1,16],T=[1,19],v=[1,20],x=[1,21],w=[1,22],_=[1,23],D=[1,25],$=[1,35],C={trace:(0,s.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:(0,s.K2)((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setWeekday("monday");break;case 9:i.setWeekday("tuesday");break;case 10:i.setWeekday("wednesday");break;case 11:i.setWeekday("thursday");break;case 12:i.setWeekday("friday");break;case 13:i.setWeekday("saturday");break;case 14:i.setWeekday("sunday");break;case 15:i.setWeekend("friday");break;case 16:i.setWeekend("saturday");break;case 17:i.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:i.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:i.TopAxis(),this.$=r[o].substr(8);break;case 20:i.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:i.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:i.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:i.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:i.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 31:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:i.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],i.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],i.setClickEvent(r[o-2],r[o-1],null),i.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-2],r[o-1]),i.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],i.setClickEvent(r[o-2],r[o],null),i.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],i.setClickEvent(r[o-3],r[o-1],r[o]),i.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],i.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:y,25:k,26:m,27:p,28:g,29:b,30:T,31:v,33:x,35:w,36:_,37:24,38:D,40:$},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:i,14:r,15:a,16:o,17:c,18:l,19:18,20:d,21:u,22:h,23:f,24:y,25:k,26:m,27:p,28:g,29:b,30:T,31:v,33:x,35:w,36:_,37:24,38:D,40:$},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:(0,s.K2)((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:(0,s.K2)((function(t){var e=this,n=[0],i=[],r=[null],a=[],o=this.table,c="",l=0,d=0,u=0,h=a.slice.call(arguments,1),f=Object.create(this.lexer),y={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(y.yy[k]=this.yy[k]);f.setInput(t,y.yy),y.yy.lexer=f,y.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;a.push(m);var p=f.options&&f.options.ranges;function g(){var t;return"number"!=typeof(t=i.pop()||f.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K2)((function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),(0,s.K2)(g,"lex");for(var b,T,v,x,w,_,D,$,C,S={};;){if(v=n[n.length-1],this.defaultActions[v]?x=this.defaultActions[v]:(null==b&&(b=g()),x=o[v]&&o[v][b]),void 0===x||!x.length||!x[0]){var K="";for(_ in C=[],o[v])this.terminals_[_]&&_>2&&C.push("'"+this.terminals_[_]+"'");K=f.showPosition?"Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(K,{text:f.match,token:this.terminals_[b]||b,line:f.yylineno,loc:m,expected:C})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+b);switch(x[0]){case 1:n.push(b),r.push(f.yytext),a.push(f.yylloc),n.push(x[1]),b=null,T?(b=T,T=null):(d=f.yyleng,c=f.yytext,l=f.yylineno,m=f.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[x[1]][1],S.$=r[r.length-D],S._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},p&&(S._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(S,[c,d,l,y.yy,x[1],r,a].concat(h))))return w;D&&(n=n.slice(0,-1*D*2),r=r.slice(0,-1*D),a=a.slice(0,-1*D)),n.push(this.productions_[x[1]][0]),r.push(S.$),a.push(S._$),$=o[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0}),"parse")},S=function(){return{EOF:1,parseError:(0,s.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,s.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,s.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,s.K2)((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,s.K2)((function(){return this._more=!0,this}),"more"),reject:(0,s.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,s.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,s.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.K2)((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:(0,s.K2)((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,s.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,s.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,s.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,s.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,s.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,s.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,s.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K2)((function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}}),"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function K(){this.yy={}}return C.lexer=S,(0,s.K2)(K,"Parser"),K.prototype=C,C.Parser=K,new K}();u.parser=u;var h=u;a.extend(o),a.extend(c),a.extend(l);var f,y,k={friday:5,saturday:6},m="",p="",g=void 0,b="",T=[],v=[],x=new Map,w=[],_=[],D="",$="",C=["active","done","crit","milestone"],S=[],K=!1,E=!1,M="sunday",A="saturday",L=0,Y=(0,s.K2)((function(){w=[],_=[],D="",S=[],ht=0,f=void 0,y=void 0,mt=[],m="",p="",$="",g=void 0,b="",T=[],v=[],K=!1,E=!1,L=0,x=new Map,(0,s.IU)(),M="sunday",A="saturday"}),"clear"),I=(0,s.K2)((function(t){p=t}),"setAxisFormat"),W=(0,s.K2)((function(){return p}),"getAxisFormat"),F=(0,s.K2)((function(t){g=t}),"setTickInterval"),O=(0,s.K2)((function(){return g}),"getTickInterval"),P=(0,s.K2)((function(t){b=t}),"setTodayMarker"),B=(0,s.K2)((function(){return b}),"getTodayMarker"),z=(0,s.K2)((function(t){m=t}),"setDateFormat"),N=(0,s.K2)((function(){K=!0}),"enableInclusiveEndDates"),G=(0,s.K2)((function(){return K}),"endDatesAreInclusive"),H=(0,s.K2)((function(){E=!0}),"enableTopAxis"),R=(0,s.K2)((function(){return E}),"topAxisEnabled"),j=(0,s.K2)((function(t){$=t}),"setDisplayMode"),U=(0,s.K2)((function(){return $}),"getDisplayMode"),V=(0,s.K2)((function(){return m}),"getDateFormat"),Z=(0,s.K2)((function(t){T=t.toLowerCase().split(/[\s,]+/)}),"setIncludes"),X=(0,s.K2)((function(){return T}),"getIncludes"),q=(0,s.K2)((function(t){v=t.toLowerCase().split(/[\s,]+/)}),"setExcludes"),Q=(0,s.K2)((function(){return v}),"getExcludes"),J=(0,s.K2)((function(){return x}),"getLinks"),tt=(0,s.K2)((function(t){D=t,w.push(t)}),"addSection"),et=(0,s.K2)((function(){return w}),"getSections"),nt=(0,s.K2)((function(){let t=vt();let e=0;for(;!t&&e<10;)t=vt(),e++;return _=mt}),"getTasks"),it=(0,s.K2)((function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!(!n.includes("weekends")||t.isoWeekday()!==k[A]&&t.isoWeekday()!==k[A]+1)||(!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim()))))}),"isInvalidDate"),st=(0,s.K2)((function(t){M=t}),"setWeekday"),rt=(0,s.K2)((function(){return M}),"getWeekday"),at=(0,s.K2)((function(t){A=t}),"setWeekend"),ot=(0,s.K2)((function(t,e,n,i){if(!n.length||t.manualEndTime)return;let s,r;s=t.startTime instanceof Date?a(t.startTime):a(t.startTime,e,!0),s=s.add(1,"d"),r=t.endTime instanceof Date?a(t.endTime):a(t.endTime,e,!0);const[o,c]=ct(s,r,e,n,i);t.endTime=o.toDate(),t.renderEndTime=c}),"checkTaskDates"),ct=(0,s.K2)((function(t,e,n,i,s){let r=!1,a=null;for(;t<=e;)r||(a=e.toDate()),r=it(t,n,i,s),r&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]}),"fixTaskDates"),lt=(0,s.K2)((function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=bt(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let r=a(n,e.trim(),!0);if(r.isValid())return r.toDate();{s.Rm.debug("Invalid date:"+n),s.Rm.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}}),"getStartDate"),dt=(0,s.K2)((function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]}),"parseDuration"),ut=(0,s.K2)((function(t,e,n,i=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==s){let t=null;for(const n of s.groups.ids.split(" ")){let e=bt(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let r=a(n,e.trim(),!0);if(r.isValid())return i&&(r=r.add(1,"d")),r.toDate();let o=a(t);const[c,l]=dt(n);if(!Number.isNaN(c)){const t=o.add(c,l);t.isValid()&&(o=t)}return o.toDate()}),"getEndDate"),ht=0,ft=(0,s.K2)((function(t){return void 0===t?"task"+(ht+=1):t}),"parseId"),yt=(0,s.K2)((function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};Kt(i,s,C);for(let a=0;a<i.length;a++)i[a]=i[a].trim();let r="";switch(i.length){case 1:s.id=ft(),s.startTime=t.endTime,r=i[0];break;case 2:s.id=ft(),s.startTime=lt(void 0,m,i[0]),r=i[1];break;case 3:s.id=ft(i[0]),s.startTime=lt(void 0,m,i[1]),r=i[2]}return r&&(s.endTime=ut(s.startTime,m,r,K),s.manualEndTime=a(r,"YYYY-MM-DD",!0).isValid(),ot(s,m,v,T)),s}),"compileData"),kt=(0,s.K2)((function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),s={};Kt(i,s,C);for(let r=0;r<i.length;r++)i[r]=i[r].trim();switch(i.length){case 1:s.id=ft(),s.startTime={type:"prevTaskEnd",id:t},s.endTime={data:i[0]};break;case 2:s.id=ft(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=ft(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]}}return s}),"parseData"),mt=[],pt={},gt=(0,s.K2)((function(t,e){const n={section:D,type:D,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=kt(y,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=y,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=L,L++;const s=mt.push(n);y=n.id,pt[n.id]=s-1}),"addTask"),bt=(0,s.K2)((function(t){const e=pt[t];return mt[e]}),"findTaskById"),Tt=(0,s.K2)((function(t,e){const n={section:D,type:D,description:t,task:t,classes:[]},i=yt(f,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,f=n,_.push(n)}),"addTaskOrg"),vt=(0,s.K2)((function(){const t=(0,s.K2)((function(t){const e=mt[t];let n="";switch(mt[t].raw.startTime.type){case"prevTaskEnd":{const t=bt(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=lt(void 0,m,mt[t].raw.startTime.startData),n&&(mt[t].startTime=n)}return mt[t].startTime&&(mt[t].endTime=ut(mt[t].startTime,m,mt[t].raw.endTime.data,K),mt[t].endTime&&(mt[t].processed=!0,mt[t].manualEndTime=a(mt[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ot(mt[t],m,v,T))),mt[t].processed}),"compileTask");let e=!0;for(const[n,i]of mt.entries())t(n),e=e&&i.processed;return e}),"compileTasks"),xt=(0,s.K2)((function(t,e){let n=e;"loose"!==(0,s.D7)().securityLevel&&(n=(0,r.J)(e)),t.split(",").forEach((function(t){void 0!==bt(t)&&(Dt(t,(()=>{window.open(n,"_self")})),x.set(t,n))})),wt(t,"clickable")}),"setLink"),wt=(0,s.K2)((function(t,e){t.split(",").forEach((function(t){let n=bt(t);void 0!==n&&n.classes.push(e)}))}),"setClass"),_t=(0,s.K2)((function(t,e,n){if("loose"!==(0,s.D7)().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==bt(t)&&Dt(t,(()=>{i._K.runFunc(e,...r)}))}),"setClickFun"),Dt=(0,s.K2)((function(t,e){S.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))}),"pushFun"),$t=(0,s.K2)((function(t,e,n){t.split(",").forEach((function(t){_t(t,e,n)})),wt(t,"clickable")}),"setClickEvent"),Ct=(0,s.K2)((function(t){S.forEach((function(e){e(t)}))}),"bindFunctions"),St={getConfig:(0,s.K2)((()=>(0,s.D7)().gantt),"getConfig"),clear:Y,setDateFormat:z,getDateFormat:V,enableInclusiveEndDates:N,endDatesAreInclusive:G,enableTopAxis:H,topAxisEnabled:R,setAxisFormat:I,getAxisFormat:W,setTickInterval:F,getTickInterval:O,setTodayMarker:P,getTodayMarker:B,setAccTitle:s.SV,getAccTitle:s.iN,setDiagramTitle:s.ke,getDiagramTitle:s.ab,setDisplayMode:j,getDisplayMode:U,setAccDescription:s.EI,getAccDescription:s.m7,addSection:tt,getSections:et,getTasks:nt,addTask:gt,findTaskById:bt,addTaskOrg:Tt,setIncludes:Z,getIncludes:X,setExcludes:q,getExcludes:Q,setClickEvent:$t,setLink:xt,getLinks:J,bindFunctions:Ct,parseDuration:dt,isInvalidDate:it,setWeekday:st,getWeekday:rt,setWeekend:at};function Kt(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const s=new RegExp("^\\s*"+n+"\\s*$");t[0].match(s)&&(e[n]=!0,t.shift(1),i=!0)}))}(0,s.K2)(Kt,"getTaskTags");var Et,Mt=(0,s.K2)((function(){s.Rm.debug("Something is calling, setConf, remove the call")}),"setConf"),At={monday:d.ABi,tuesday:d.PGu,wednesday:d.GuW,thursday:d.Mol,friday:d.TUC,saturday:d.rGn,sunday:d.YPH},Lt=(0,s.K2)(((t,e)=>{let n=[...t].map((()=>-1/0)),i=[...t].sort(((t,e)=>t.startTime-e.startTime||t.order-e.order)),s=0;for(const r of i)for(let t=0;t<n.length;t++)if(r.startTime>=n[t]){n[t]=r.endTime,r.order=t+e,t>s&&(s=t);break}return s}),"getMaxIntersections"),Yt={parser:h,db:St,renderer:{setConf:Mt,draw:(0,s.K2)((function(t,e,n,i){const r=(0,s.D7)().gantt,o=(0,s.D7)().securityLevel;let c;"sandbox"===o&&(c=(0,d.Ltv)("#i"+e));const l="sandbox"===o?(0,d.Ltv)(c.nodes()[0].contentDocument.body):(0,d.Ltv)("body"),u="sandbox"===o?c.nodes()[0].contentDocument:document,h=u.getElementById(e);void 0===(Et=h.parentElement.offsetWidth)&&(Et=1200),void 0!==r.useWidth&&(Et=r.useWidth);const f=i.db.getTasks();let y=[];for(const s of f)y.push(s.type);y=$(y);const k={};let m=2*r.topPadding;if("compact"===i.db.getDisplayMode()||"compact"===r.displayMode){const t={};for(const n of f)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const i=Lt(t[n],e)+1;e+=i,m+=i*(r.barHeight+r.barGap),k[n]=i}}else{m+=f.length*(r.barHeight+r.barGap);for(const t of y)k[t]=f.filter((e=>e.type===t)).length}h.setAttribute("viewBox","0 0 "+Et+" "+m);const p=l.select(`[id="${e}"]`),g=(0,d.w7C)().domain([(0,d.jkA)(f,(function(t){return t.startTime})),(0,d.T9B)(f,(function(t){return t.endTime}))]).rangeRound([0,Et-r.leftPadding-r.rightPadding]);function b(t,e){const n=t.startTime,i=e.startTime;let s=0;return n>i?s=1:n<i&&(s=-1),s}function T(t,e,n){const s=r.barHeight,a=s+r.barGap,o=r.topPadding,c=r.leftPadding,l=(0,d.m4Y)().domain([0,y.length]).range(["#00B9FA","#F95002"]).interpolate(d.bEH);x(a,o,c,e,n,t,i.db.getExcludes(),i.db.getIncludes()),w(c,o,e,n),v(t,a,o,c,s,l,e),_(a,o),D(c,o,e,n)}function v(t,n,a,o,c,l,u){const h=[...new Set(t.map((t=>t.order)))].map((e=>t.find((t=>t.order===e))));p.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+a-2})).attr("width",(function(){return u-r.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of y.entries())if(t.type===n)return"section section"+e%r.numberSectionStyles;return"section section0"}));const f=p.append("g").selectAll("rect").data(t).enter(),k=i.db.getLinks();f.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?g(t.startTime)+o+.5*(g(t.endTime)-g(t.startTime))-.5*c:g(t.startTime)+o})).attr("y",(function(t,e){return t.order*n+a})).attr("width",(function(t){return t.milestone?c:g(t.renderEndTime||t.endTime)-g(t.startTime)})).attr("height",c).attr("transform-origin",(function(t,e){return e=t.order,(g(t.startTime)+o+.5*(g(t.endTime)-g(t.startTime))).toString()+"px "+(e*n+a+.5*c).toString()+"px"})).attr("class",(function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of y.entries())t.type===a&&(n=s%r.numberSectionStyles);let i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),i+=n,i+=" "+e,"task"+i})),f.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",r.fontSize).attr("x",(function(t){let e=g(t.startTime),n=g(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(g(t.endTime)-g(t.startTime))-.5*c),t.milestone&&(n=e+c);const i=this.getBBox().width;return i>n-e?n+i+1.5*r.leftPadding>u?e+o-5:n+o+5:(n-e)/2+e+o})).attr("y",(function(t,e){return t.order*n+r.barHeight/2+(r.fontSize/2-2)+a})).attr("text-height",c).attr("class",(function(t){const e=g(t.startTime);let n=g(t.endTime);t.milestone&&(n=e+c);const i=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[c,l]of y.entries())t.type===l&&(a=c%r.numberSectionStyles);let o="";return t.active&&(o=t.crit?"activeCritText"+a:"activeText"+a),t.done?o=t.crit?o+" doneCritText"+a:o+" doneText"+a:t.crit&&(o=o+" critText"+a),t.milestone&&(o+=" milestoneText"),i>n-e?n+i+1.5*r.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+o:s+" taskTextOutsideRight taskTextOutside"+a+" "+o+" width-"+i:s+" taskText taskText"+a+" "+o+" width-"+i}));if("sandbox"===(0,s.D7)().securityLevel){let t;t=(0,d.Ltv)("#i"+e);const n=t.nodes()[0].contentDocument;f.filter((function(t){return k.has(t.id)})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const s=e.parentNode;var r=n.createElement("a");r.setAttribute("xlink:href",k.get(t.id)),r.setAttribute("target","_top"),s.appendChild(r),r.appendChild(e),r.appendChild(i)}))}}function x(t,e,n,o,c,l,d,u){if(0===d.length&&0===u.length)return;let h,f;for(const{startTime:i,endTime:s}of l)(void 0===h||i<h)&&(h=i),(void 0===f||s>f)&&(f=s);if(!h||!f)return;if(a(f).diff(a(h),"year")>5)return void s.Rm.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const y=i.db.getDateFormat(),k=[];let m=null,b=a(h);for(;b.valueOf()<=f;)i.db.isInvalidDate(b,y,d,u)?m?m.end=b:m={start:b,end:b}:m&&(k.push(m),m=null),b=b.add(1,"d");p.append("g").selectAll("rect").data(k).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return g(t.start)+n})).attr("y",r.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return g(e)-g(t.start)})).attr("height",c-e-r.gridLineStartPadding).attr("transform-origin",(function(e,i){return(g(e.start)+n+.5*(g(e.end)-g(e.start))).toString()+"px "+(i*t+.5*c).toString()+"px"})).attr("class","exclude-range")}function w(t,e,n,s){let a=(0,d.l78)(g).tickSize(-s+e+r.gridLineStartPadding).tickFormat((0,d.DCK)(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));const o=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||r.tickInterval);if(null!==o){const t=o[1],e=o[2],n=i.db.getWeekday()||r.weekday;switch(e){case"millisecond":a.ticks(d.t6C.every(t));break;case"second":a.ticks(d.ucG.every(t));break;case"minute":a.ticks(d.wXd.every(t));break;case"hour":a.ticks(d.Agd.every(t));break;case"day":a.ticks(d.UAC.every(t));break;case"week":a.ticks(At[n].every(t));break;case"month":a.ticks(d.Ui6.every(t))}}if(p.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||r.topAxis){let n=(0,d.tlR)(g).tickSize(-s+e+r.gridLineStartPadding).tickFormat((0,d.DCK)(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(null!==o){const t=o[1],e=o[2],s=i.db.getWeekday()||r.weekday;switch(e){case"millisecond":n.ticks(d.t6C.every(t));break;case"second":n.ticks(d.ucG.every(t));break;case"minute":n.ticks(d.wXd.every(t));break;case"hour":n.ticks(d.Agd.every(t));break;case"day":n.ticks(d.UAC.every(t));break;case"week":n.ticks(At[s].every(t));break;case"month":n.ticks(d.Ui6.every(t))}}p.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function _(t,e){let n=0;const i=Object.keys(k).map((t=>[t,k[t]]));p.append("g").selectAll("text").data(i).enter().append((function(t){const e=t[0].split(s.Y2.lineBreakRegex),n=-(e.length-1)/2,i=u.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[s,r]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),s>0&&t.setAttribute("dy","1em"),t.textContent=r,i.appendChild(t)}return i})).attr("x",10).attr("y",(function(s,r){if(!(r>0))return s[1]*t/2+e;for(let a=0;a<r;a++)return n+=i[r-1][1],s[1]*t/2+n*t+e})).attr("font-size",r.sectionFontSize).attr("class",(function(t){for(const[e,n]of y.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%r.numberSectionStyles;return"sectionTitle"}))}function D(t,e,n,s){const a=i.db.getTodayMarker();if("off"===a)return;const o=p.append("g").attr("class","today"),c=new Date,l=o.append("line");l.attr("x1",g(c)+t).attr("x2",g(c)+t).attr("y1",r.titleTopMargin).attr("y2",s-r.titleTopMargin).attr("class","today"),""!==a&&l.attr("style",a.replace(/,/g,";"))}function $(t){const e={},n=[];for(let i=0,s=t.length;i<s;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}(0,s.K2)(b,"taskCompare"),f.sort(b),T(f,Et,m),(0,s.a$)(p,m,Et,r.useMaxWidth),p.append("text").text(i.db.getDiagramTitle()).attr("x",Et/2).attr("y",r.titleTopMargin).attr("class","titleText"),(0,s.K2)(T,"makeGantt"),(0,s.K2)(v,"drawRects"),(0,s.K2)(x,"drawExcludeDays"),(0,s.K2)(w,"makeGrid"),(0,s.K2)(_,"vertLabels"),(0,s.K2)(D,"drawToday"),(0,s.K2)($,"checkUnique")}),"draw")},styles:(0,s.K2)((t=>`\n .mermaid-main-font {\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);\n }\n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/6355.bc474220.js b/website/assets/js/6355.bc474220.js new file mode 100644 index 000000000..133847944 --- /dev/null +++ b/website/assets/js/6355.bc474220.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6355],{6355:(t,e,n)=>{n.d(e,{diagram:()=>D});var i=n(9874),s=n(1282),r=(n(4532),n(3115),n(483),n(540),n(7286)),o=n(9),a=n(3219),c=n(8041),l=n(5263),h=function(){var t=(0,o.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[1,4],n=[1,13],i=[1,12],s=[1,15],r=[1,16],a=[1,20],c=[1,19],l=[6,7,8],h=[1,26],u=[1,24],g=[1,25],d=[6,7,11],p=[1,31],y=[6,7,11,24],f=[1,6,13,16,17,20,23],m=[1,35],b=[1,36],_=[1,6,7,11,13,16,17,20,23],k=[1,38],E={trace:(0,o.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,o.K2)((function(t,e,n,i,s,r,o){var a=r.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",r[a-1].id),i.addNode(r[a-2].length,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 16:i.getLogger().info("Node: ",r[a].id),i.addNode(r[a-1].length,r[a].id,r[a].descr,r[a].type);break;case 17:i.getLogger().trace("Icon: ",r[a]),i.decorateNode({icon:r[a]});break;case 18:case 23:i.decorateNode({class:r[a]});break;case 19:i.getLogger().trace("SPACELIST");break;case 20:i.getLogger().trace("Node: ",r[a-1].id),i.addNode(0,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 21:i.getLogger().trace("Node: ",r[a].id),i.addNode(0,r[a].id,r[a].descr,r[a].type);break;case 22:i.decorateNode({icon:r[a]});break;case 27:i.getLogger().trace("node found ..",r[a-2]),this.$={id:r[a-1],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 28:this.$={id:r[a],descr:r[a],type:0};break;case 29:i.getLogger().trace("node found ..",r[a-3]),this.$={id:r[a-3],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 30:this.$=r[a-1]+r[a];break;case 31:this.$=r[a]}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:i,14:14,16:s,17:r,18:17,19:18,20:a,23:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,16:s,17:r,18:17,19:18,20:a,23:c},{6:n,9:22,12:11,13:i,14:14,16:s,17:r,18:17,19:18,20:a,23:c},{6:h,7:u,10:23,11:g},t(d,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:a,23:c}),t(d,[2,19]),t(d,[2,21],{15:30,24:p}),t(d,[2,22]),t(d,[2,23]),t(y,[2,25]),t(y,[2,26]),t(y,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:u,10:34,11:g},{1:[2,7],6:n,12:21,13:i,14:14,16:s,17:r,18:17,19:18,20:a,23:c},t(f,[2,14],{7:m,11:b}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(d,[2,16],{15:37,24:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,20],{24:k}),t(y,[2,31]),{21:[1,39]},{22:[1,40]},t(f,[2,13],{7:m,11:b}),t(_,[2,11]),t(_,[2,12]),t(d,[2,15],{24:k}),t(y,[2,30]),{22:[1,41]},t(y,[2,27]),t(y,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,o.K2)((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:(0,o.K2)((function(t){var e=this,n=[0],i=[],s=[null],r=[],a=this.table,c="",l=0,h=0,u=0,g=r.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;r.push(f);var m=d.options&&d.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K2)((function(t){n.length=n.length-2*t,s.length=s.length-t,r.length=r.length-t}),"popStack"),(0,o.K2)(b,"lex");for(var _,k,E,S,N,x,D,L,I,C={};;){if(E=n[n.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(null==_&&(_=b()),S=a[E]&&a[E][_]),void 0===S||!S.length||!S[0]){var O="";for(x in I=[],a[E])this.terminals_[x]&&x>2&&I.push("'"+this.terminals_[x]+"'");O=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:d.match,token:this.terminals_[_]||_,line:d.yylineno,loc:f,expected:I})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(S[0]){case 1:n.push(_),s.push(d.yytext),r.push(d.yylloc),n.push(S[1]),_=null,k?(_=k,k=null):(h=d.yyleng,c=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[S[1]][1],C.$=s[s.length-D],C._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},m&&(C._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),void 0!==(N=this.performAction.apply(C,[c,h,l,p.yy,S[1],s,r].concat(g))))return N;D&&(n=n.slice(0,-1*D*2),s=s.slice(0,-1*D),r=r.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),s.push(C.$),r.push(C._$),L=a[n[n.length-2]][n[n.length-1]],n.push(L);break;case 3:return!0}}return!0}),"parse")},S=function(){return{EOF:1,parseError:(0,o.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,o.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,o.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,o.K2)((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,o.K2)((function(){return this._more=!0,this}),"more"),reject:(0,o.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,o.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,o.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,o.K2)((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:(0,o.K2)((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,o.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,o.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,o.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,o.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,o.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,o.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,o.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K2)((function(t,e,n,i){switch(n){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const n=/\n\s*/g;return e.yytext=e.yytext.replace(n,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.yytext),21}}),"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}}();function N(){this.yy={}}return E.lexer=S,(0,o.K2)(N,"Parser"),N.prototype=E,E.Parser=N,new N}();h.parser=h;var u=h,g=[],d=[],p=0,y={},f=(0,o.K2)((()=>{g=[],d=[],p=0,y={}}),"clear"),m=(0,o.K2)((t=>{if(0===g.length)return null;const e=g[0].level;let n=null;for(let i=g.length-1;i>=0;i--)if(g[i].level!==e||n||(n=g[i]),g[i].level<e)throw new Error('Items without section detected, found section ("'+g[i].label+'")');return t===n?.level?null:n}),"getSection"),b=(0,o.K2)((function(){return d}),"getSections"),_=(0,o.K2)((function(){const t=[],e=b(),n=(0,o.D7)();for(const i of e){const e={id:i.id,label:(0,o.jZ)(i.label??"",n),isGroup:!0,ticket:i.ticket,shape:"kanbanSection",level:i.level,look:n.look};t.push(e);const s=g.filter((t=>t.parentId===i.id));for(const r of s){const e={id:r.id,parentId:i.id,label:(0,o.jZ)(r.label??"",n),isGroup:!1,ticket:r?.ticket,priority:r?.priority,assigned:r?.assigned,icon:r?.icon,shape:"kanbanItem",level:r.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(e)}}return{nodes:t,edges:[],other:{},config:(0,o.D7)()}}),"getData"),k=(0,o.K2)(((t,e,n,s,r)=>{const a=(0,o.D7)();let c=a.mindmap?.padding??o.UI.mindmap.padding;switch(s){case E.ROUNDED_RECT:case E.RECT:case E.HEXAGON:c*=2}const l={id:(0,o.jZ)(e,a)||"kbn"+p++,level:t,label:(0,o.jZ)(n,a),width:a.mindmap?.maxNodeWidth??o.UI.mindmap.maxNodeWidth,padding:c,isGroup:!1};if(void 0!==r){let t;t=r.includes("\n")?r+"\n":"{\n"+r+"\n}";const e=(0,i.H)(t,{schema:i.r});if(e.shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`No such shape: ${e.shape}. Shape names should be lowercase.`);e?.shape&&"kanbanItem"===e.shape&&(l.shape=e?.shape),e?.label&&(l.label=e?.label),e?.icon&&(l.icon=e?.icon.toString()),e?.assigned&&(l.assigned=e?.assigned.toString()),e?.ticket&&(l.ticket=e?.ticket.toString()),e?.priority&&(l.priority=e?.priority)}const h=m(t);h?l.parentId=h.id||"kbn"+p++:d.push(l),g.push(l)}),"addNode"),E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},S={clear:f,addNode:k,getSections:b,getData:_,nodeType:E,getType:(0,o.K2)(((t,e)=>{switch(o.Rm.debug("In get type",t,e),t){case"[":return E.RECT;case"(":return")"===e?E.ROUNDED_RECT:E.CLOUD;case"((":return E.CIRCLE;case")":return E.CLOUD;case"))":return E.BANG;case"{{":return E.HEXAGON;default:return E.DEFAULT}}),"getType"),setElementForId:(0,o.K2)(((t,e)=>{y[t]=e}),"setElementForId"),decorateNode:(0,o.K2)((t=>{if(!t)return;const e=(0,o.D7)(),n=g[g.length-1];t.icon&&(n.icon=(0,o.jZ)(t.icon,e)),t.class&&(n.cssClasses=(0,o.jZ)(t.class,e))}),"decorateNode"),type2Str:(0,o.K2)((t=>{switch(t){case E.DEFAULT:return"no-border";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded-rect";case E.CIRCLE:return"circle";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexgon";default:return"no-border"}}),"type2Str"),getLogger:(0,o.K2)((()=>o.Rm),"getLogger"),getElementById:(0,o.K2)((t=>y[t]),"getElementById")},N={draw:(0,o.K2)((async(t,e,n,i)=>{o.Rm.debug("Rendering kanban diagram\n"+t);const a=i.db.getData(),c=(0,o.D7)();c.htmlLabels=!1;const l=(0,r.D)(e),h=l.append("g");h.attr("class","sections");const u=l.append("g");u.attr("class","items");const g=a.nodes.filter((t=>t.isGroup));let d=0;const p=[];let y=25;for(const r of g){const t=c?.kanban?.sectionWidth||200;d+=1,r.x=t*d+10*(d-1)/2,r.width=t,r.y=0,r.height=3*t,r.rx=5,r.ry=5,r.cssClasses=r.cssClasses+" section-"+d;const e=await(0,s.U)(h,r);y=Math.max(y,e?.labelBBox?.height),p.push(e)}let f=0;for(const r of g){const t=p[f];f+=1;const e=c?.kanban?.sectionWidth||200,n=3*-e/2+y;let i=n;const o=a.nodes.filter((t=>t.parentId===r.id));for(const a of o){if(a.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");a.x=r.x,a.width=e-15;const t=(await(0,s.on)(u,a,{config:c})).node().getBBox();a.y=i+t.height/2,await(0,s.U_)(a),i=a.y+t.height/2+5}const l=t.cluster.select("rect"),h=Math.max(i-n+30,50)+(y-25);l.attr("height",h)}(0,o.ot)(void 0,l,c.mindmap?.padding??o.UI.kanban.padding,c.mindmap?.useMaxWidth??o.UI.kanban.useMaxWidth)}),"draw")},x=(0,o.K2)((t=>{let e="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],(0,a.A)(t["lineColor"+i])?t["lineColor"+i]=(0,c.A)(t["lineColor"+i],20):t["lineColor"+i]=(0,l.A)(t["lineColor"+i],20);const n=(0,o.K2)(((e,n)=>t.darkMode?(0,l.A)(e,n):(0,c.A)(e,n)),"adjuster");for(let i=0;i<t.THEME_COLOR_LIMIT;i++){const s=""+(17-3*i);e+=`\n .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {\n fill: ${n(t["cScale"+i],10)};\n stroke: ${n(t["cScale"+i],10)};\n\n }\n .section-${i-1} text {\n fill: ${t["cScaleLabel"+i]};\n }\n .node-icon-${i-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+i]};\n }\n .section-edge-${i-1}{\n stroke: ${t["cScale"+i]};\n }\n .edge-depth-${i-1}{\n stroke-width: ${s};\n }\n .section-${i-1} line {\n stroke: ${t["cScaleInv"+i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.background};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .kanban-ticket-link {\n fill: ${t.background};\n stroke: ${t.nodeBorder};\n text-decoration: underline;\n }\n `}return e}),"genSections"),D={db:S,renderer:N,parser:u,styles:(0,o.K2)((t=>`\n .edge {\n stroke-width: 3;\n }\n ${x(t)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${t.textColor};\n fill: ${t.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/6383.c67dc1cb.js b/website/assets/js/6383.c67dc1cb.js new file mode 100644 index 000000000..4c469eda2 --- /dev/null +++ b/website/assets/js/6383.c67dc1cb.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6383],{7799:function(t,e,i){var n;n=function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var n=i(0).FDLayoutConstants;function r(){}for(var o in n)r[o]=n[o];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=n.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=r},function(t,e,i){"use strict";var n=i(0).FDLayoutEdge;function r(t,e,i){n.call(this,t,e,i)}for(var o in r.prototype=Object.create(n.prototype),n)r[o]=n[o];t.exports=r},function(t,e,i){"use strict";var n=i(0).LGraph;function r(t,e,i){n.call(this,t,e,i)}for(var o in r.prototype=Object.create(n.prototype),n)r[o]=n[o];t.exports=r},function(t,e,i){"use strict";var n=i(0).LGraphManager;function r(t){n.call(this,t)}for(var o in r.prototype=Object.create(n.prototype),n)r[o]=n[o];t.exports=r},function(t,e,i){"use strict";var n=i(0).FDLayoutNode,r=i(0).IMath;function o(t,e,i,r){n.call(this,t,e,i,r)}for(var s in o.prototype=Object.create(n.prototype),n)o[s]=n[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,n=this.getChild().getNodes(),r=0;r<n.length;r++)null==(i=n[r]).getChild()?(i.moveBy(t,e),i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},function(t,e,i){"use strict";var n=i(0).FDLayout,r=i(4),o=i(3),s=i(5),a=i(2),h=i(1),l=i(0).FDLayoutConstants,c=i(0).LayoutConstants,g=i(0).Point,u=i(0).PointD,d=i(0).Layout,p=i(0).Integer,f=i(0).IGeometry,y=i(0).LGraph,E=i(0).Transform;function _(){n.call(this),this.toBeTiled={}}for(var m in _.prototype=Object.create(n.prototype),n)_[m]=n[m];_.prototype.newGraphManager=function(){var t=new r(this);return this.graphManager=t,t},_.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},_.prototype.newNode=function(t){return new s(this.graphManager,t)},_.prototype.newEdge=function(t){return new a(null,null,t)},_.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},_.prototype.layout=function(){return c.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},_.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)h.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(i));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},_.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,n=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,n),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},_.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var n=t[i].rect,r=t[i].id;e[r]={id:r,x:n.getCenterX(),y:n.getCenterY(),w:n.width,h:n.height}}return e},_.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===l.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},_.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],n=this.graphManager.getGraphs(),r=n.length;for(e=0;e<r;e++)(t=n[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},_.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,i=new Set;for(e=0;e<t.length;e++){var n=t[e];if(!i.has(n)){var r=n.getSource(),o=n.getTarget();if(r==o)n.getBendpoints().push(new u),n.getBendpoints().push(new u),this.createDummyNodesForBendpoints(n),i.add(n);else{var s=[];if(s=(s=s.concat(r.getEdgeListToNode(o))).concat(o.getEdgeListToNode(r)),!i.has(s[0])){var a;if(s.length>1)for(a=0;a<s.length;a++){var h=s[a];h.getBendpoints().push(new u),this.createDummyNodesForBendpoints(h)}s.forEach((function(t){i.add(t)}))}}}if(i.size==t.length)break}},_.prototype.positionNodesRadially=function(t){for(var e=new g(0,0),i=Math.ceil(Math.sqrt(t.length)),n=0,r=0,o=0,s=new u(0,0),a=0;a<t.length;a++){a%i==0&&(o=0,r=n,0!=a&&(r+=h.DEFAULT_COMPONENT_SEPERATION),n=0);var l=t[a],p=d.findCenterOfTree(l);e.x=o,e.y=r,(s=_.radialLayout(l,p,e)).y>n&&(n=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(c.WORLD_CENTER_X-s.x/2,c.WORLD_CENTER_Y-s.y/2))},_.radialLayout=function(t,e,i){var n=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);_.branchRadialLayout(e,null,0,359,0,n);var r=y.calculateBounds(t),o=new E;o.setDeviceOrgX(r.getMinX()),o.setDeviceOrgY(r.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var s=0;s<t.length;s++)t[s].transform(o);var a=new u(r.getMaxX(),r.getMaxY());return o.inverseTransformPoint(a)},_.branchRadialLayout=function(t,e,i,n,r,o){var s=(n-i+1)/2;s<0&&(s+=180);var a=(s+i)%360*f.TWO_PI/360,h=(Math.cos(a),r*Math.cos(a)),l=r*Math.sin(a);t.setCenter(h,l);var c=[],g=(c=c.concat(t.getEdges())).length;null!=e&&g--;for(var u,d=0,p=c.length,y=t.getEdgesBetween(e);y.length>1;){var E=y[0];y.splice(0,1);var m=c.indexOf(E);m>=0&&c.splice(m,1),p--,g--}u=null!=e?(c.indexOf(y[0])+1)%p:0;for(var v=Math.abs(n-i)/g,N=u;d!=g;N=++N%p){var A=c[N].getOtherEnd(t);if(A!=e){var L=(i+d*v)%360,T=(L+v)%360;_.branchRadialLayout(A,t,L,T,r+o,o),d++}}},_.maxDiagonalInTree=function(t){for(var e=p.MIN_VALUE,i=0;i<t.length;i++){var n=t[i].getDiagonal();n>e&&(e=n)}return e},_.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},_.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],n=this.graphManager.getAllNodes(),r=0;r<n.length;r++){var o=(a=n[r]).getParent();0!==this.getNodeDegreeWithChildren(a)||null!=o.id&&this.getToBeTiled(o)||i.push(a)}for(r=0;r<i.length;r++){var a,h=(a=i[r]).getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(a)}Object.keys(e).forEach((function(i){if(e[i].length>1){var n="DummyCompound_"+i;t.memberGroups[n]=e[i];var r=e[i][0].getParent(),o=new s(t.graphManager);o.id=n,o.paddingLeft=r.paddingLeft||0,o.paddingRight=r.paddingRight||0,o.paddingBottom=r.paddingBottom||0,o.paddingTop=r.paddingTop||0,t.idToDummyNode[n]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=r.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var c=e[i][l];h.remove(c),a.add(c)}}}))},_.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},_.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(i){var n=t.idToDummyNode[i];e[i]=t.tileNodes(t.memberGroups[i],n.paddingLeft+n.paddingRight),n.rect.width=e[i].width,n.rect.height=e[i].height}))},_.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,n=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,n,r)}},_.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(i){var n=t.idToDummyNode[i],r=n.paddingLeft,o=n.paddingTop;t.adjustLocations(e[i],n.rect.x,n.rect.y,r,o)}))},_.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var n=i.getNodes(),r=0;r<n.length;r++){var o=n[r];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[e]=!0,!0},_.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,n=0;n<e.length;n++){var r=e[n];r.getSource().id!==r.getTarget().id&&(i+=1)}return i},_.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),n=0;n<i.length;n++){var r=i[n];e+=this.getNodeDegreeWithChildren(r)}return e},_.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},_.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},_.prototype.adjustLocations=function(t,e,i,n,r){i+=r;for(var o=e+=n,s=0;s<t.rows.length;s++){var a=t.rows[s];e=o;for(var h=0,l=0;l<a.length;l++){var c=a[l];c.rect.x=e,c.rect.y=i,e+=c.rect.width+t.horizontalPadding,c.rect.height>h&&(h=c.rect.height)}i+=h+t.verticalPadding}},_.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(n){var r=e[n];i.tiledMemberPack[n]=i.tileNodes(t[n],r.paddingLeft+r.paddingRight),r.rect.width=i.tiledMemberPack[n].width,r.rect.height=i.tiledMemberPack[n].height}))},_.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0}));for(var n=0;n<t.length;n++){var r=t[n];0==i.rows.length?this.insertNodeToRow(i,r,0,e):this.canAddHorizontal(i,r.rect.width,r.rect.height)?this.insertNodeToRow(i,r,this.getShortestRowIndex(i),e):this.insertNodeToRow(i,r,i.rows.length,e),this.shiftToLastRow(i)}return i},_.prototype.insertNodeToRow=function(t,e,i,n){var r=n;i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(r),t.rowHeight.push(0));var o=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(o+=t.horizontalPadding),t.rowWidth[i]=o,t.width<o&&(t.width=o);var s=e.rect.height;i>0&&(s+=t.verticalPadding);var a=0;s>t.rowHeight[i]&&(a=t.rowHeight[i],t.rowHeight[i]=s,a=t.rowHeight[i]-a),t.height+=a,t.rows[i].push(e)},_.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,n=0;n<t.rows.length;n++)t.rowWidth[n]<i&&(e=n,i=t.rowWidth[n]);return e},_.prototype.getLongestRowIndex=function(t){for(var e=-1,i=Number.MIN_VALUE,n=0;n<t.rows.length;n++)t.rowWidth[n]>i&&(e=n,i=t.rowWidth[n]);return e},_.prototype.canAddHorizontal=function(t,e,i){var n=this.getShortestRowIndex(t);if(n<0)return!0;var r=t.rowWidth[n];if(r+t.horizontalPadding+e<=t.width)return!0;var o,s,a=0;return t.rowHeight[n]<i&&n>0&&(a=i+t.verticalPadding-t.rowHeight[n]),o=t.width-r>=e+t.horizontalPadding?(t.height+a)/(r+e+t.horizontalPadding):(t.height+a)/t.width,a=i+t.verticalPadding,(s=t.width<e?(t.height+a)/e:(t.height+a)/t.width)<1&&(s=1/s),o<1&&(o=1/o),o<s},_.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,n=t.rows[e],r=n[n.length-1],o=r.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){n.splice(-1,1),t.rows[i].push(r),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;a<n.length;a++)n[a].height>s&&(s=n[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=s,t.rowHeight[i]<r.height+t.verticalPadding&&(t.rowHeight[i]=r.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[i];t.height+=l-h,this.shiftToLastRow(t)}},_.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},_.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},_.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var n=this.graphManager.getAllNodes(),r=[];i=!1;for(var o=0;o<n.length;o++)1!=(t=n[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(r.push([t,t.getEdges()[0],t.getOwner()]),i=!0);if(1==i){for(var s=[],a=0;a<r.length;a++)1==r[a][0].getEdges().length&&(s.push(r[a]),r[a][0].getOwner().remove(r[a][0]));e.push(s),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},_.prototype.growTree=function(t){for(var e,i=t[t.length-1],n=0;n<i.length;n++)e=i[n],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},_.prototype.findPlaceforPrunedNode=function(t){var e,i,n=t[0],r=(i=n==t[1].source?t[1].target:t[1].source).startX,o=i.finishX,s=i.startY,a=i.finishY,h=[0,0,0,0];if(s>0)for(var c=r;c<=o;c++)h[0]+=this.grid[c][s-1].length+this.grid[c][s].length-1;if(o<this.grid.length-1)for(c=s;c<=a;c++)h[1]+=this.grid[o+1][c].length+this.grid[o][c].length-1;if(a<this.grid[0].length-1)for(c=r;c<=o;c++)h[2]+=this.grid[c][a+1].length+this.grid[c][a].length-1;if(r>0)for(c=s;c<=a;c++)h[3]+=this.grid[r-1][c].length+this.grid[r][c].length-1;for(var g,u,d=p.MAX_VALUE,f=0;f<h.length;f++)h[f]<d?(d=h[f],g=1,u=f):h[f]==d&&g++;if(3==g&&0==d)0==h[0]&&0==h[1]&&0==h[2]?e=1:0==h[0]&&0==h[1]&&0==h[3]?e=0:0==h[0]&&0==h[2]&&0==h[3]?e=3:0==h[1]&&0==h[2]&&0==h[3]&&(e=2);else if(2==g&&0==d){var y=Math.floor(2*Math.random());e=0==h[0]&&0==h[1]?0==y?0:1:0==h[0]&&0==h[2]?0==y?0:2:0==h[0]&&0==h[3]?0==y?0:3:0==h[1]&&0==h[2]?0==y?1:2:0==h[1]&&0==h[3]?0==y?1:3:0==y?2:3}else e=4==g&&0==d?y=Math.floor(4*Math.random()):u;0==e?n.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-l.DEFAULT_EDGE_LENGTH-n.getHeight()/2):1==e?n.setCenter(i.getCenterX()+i.getWidth()/2+l.DEFAULT_EDGE_LENGTH+n.getWidth()/2,i.getCenterY()):2==e?n.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+l.DEFAULT_EDGE_LENGTH+n.getHeight()/2):n.setCenter(i.getCenterX()-i.getWidth()/2-l.DEFAULT_EDGE_LENGTH-n.getWidth()/2,i.getCenterY())},t.exports=_},function(t,e,i){"use strict";var n={};n.layoutBase=i(0),n.CoSEConstants=i(1),n.CoSEEdge=i(2),n.CoSEGraph=i(3),n.CoSEGraphManager=i(4),n.CoSELayout=i(6),n.CoSENode=i(5),t.exports=n}])},t.exports=n(i(3143))},3457:function(t,e,i){var n;n=function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var n=i(0).layoutBase.LayoutConstants,r=i(0).layoutBase.FDLayoutConstants,o=i(0).CoSEConstants,s=i(0).CoSELayout,a=i(0).CoSENode,h=i(0).layoutBase.PointD,l=i(0).layoutBase.DimensionD,c={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function g(t){this.options=function(t,e){var i={};for(var n in t)i[n]=t[n];for(var n in e)i[n]=e[n];return i}(c,t),u(this.options)}var u=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=r.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=r.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=r.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=r.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=r.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=r.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?n.QUALITY=0:"proof"==t.quality?n.QUALITY=2:n.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=r.ANIMATE=n.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};g.prototype.run=function(){var t,e,i=this.options,n=(this.idToLNode={},this.layout=new s),r=this;r.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=n.newGraphManager();this.gm=o;var a=this.options.eles.nodes(),h=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(a),n);for(var l=0;l<h.length;l++){var c=h[l],g=this.idToLNode[c.data("source")],u=this.idToLNode[c.data("target")];g!==u&&0==g.getEdgesBetween(u).length&&(o.add(n.newEdge(),g,u).id=c.id())}var d=function(t,e){"number"==typeof t&&(t=e);var i=t.data("id"),n=r.idToLNode[i];return{x:n.getRect().getCenterX(),y:n.getRect().getCenterY()}},p=function o(){for(var s,a=function(){i.fit&&i.cy.fit(i.eles,i.padding),t||(t=!0,r.cy.one("layoutready",i.ready),r.cy.trigger({type:"layoutready",layout:r}))},h=r.options.refresh,l=0;l<h&&!s;l++)s=r.stopped||r.layout.tick();if(s)return n.checkLayoutSuccess()&&!n.isSubLayout&&n.doPostLayout(),n.tilingPostLayout&&n.tilingPostLayout(),n.isLayoutFinished=!0,r.options.eles.nodes().positions(d),a(),r.cy.one("layoutstop",r.options.stop),r.cy.trigger({type:"layoutstop",layout:r}),e&&cancelAnimationFrame(e),void(t=!1);var c=r.layout.getPositionsData();i.eles.nodes().positions((function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var i=t.id(),n=c[i],r=t;null==n&&(n=c[r.data("parent")]||c["DummyCompound_"+r.data("parent")],c[i]=n,null!=(r=r.parent()[0])););return null!=n?{x:n.x,y:n.y}:{x:t.position("x"),y:t.position("y")}}})),a(),e=requestAnimationFrame(o)};return n.addListener("layoutstarted",(function(){"during"===r.options.animate&&(e=requestAnimationFrame(p))})),n.runLayout(),"during"!==this.options.animate&&(r.options.eles.nodes().not(":parent").layoutPositions(r,r.options,d),t=!1),this},g.prototype.getTopMostNodes=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;var n=t.filter((function(t,i){"number"==typeof t&&(t=i);for(var n=t.parent()[0];null!=n;){if(e[n.id()])return!1;n=n.parent()[0]}return!0}));return n},g.prototype.processChildrenList=function(t,e,i){for(var n=e.length,r=0;r<n;r++){var o,s,c=e[r],g=c.children(),u=c.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=c.outerWidth()&&null!=c.outerHeight()?t.add(new a(i.graphManager,new h(c.position("x")-u.w/2,c.position("y")-u.h/2),new l(parseFloat(u.w),parseFloat(u.h)))):t.add(new a(this.graphManager))).id=c.data("id"),o.paddingLeft=parseInt(c.css("padding")),o.paddingTop=parseInt(c.css("padding")),o.paddingRight=parseInt(c.css("padding")),o.paddingBottom=parseInt(c.css("padding")),this.options.nodeDimensionsIncludeLabels&&c.isParent()){var d=c.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=c.boundingBox({includeLabels:!0,includeNodes:!1}).h,f=c.css("text-halign");o.labelWidth=d,o.labelHeight=p,o.labelPos=f}this.idToLNode[c.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=g&&g.length>0&&(s=i.getGraphManager().add(i.newGraph(),o),this.processChildrenList(s,g,i))}},g.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",g)};"undefined"!=typeof cytoscape&&d(cytoscape),t.exports=d}])},t.exports=n(i(7799))},3143:function(t){var e;e=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=26)}([function(t,e,i){"use strict";function n(){}n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,t.exports=n},function(t,e,i){"use strict";var n=i(2),r=i(8),o=i(9);function s(t,e,i){n.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(n.prototype),n)s[a]=n[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),n=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==n)break;i=i.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var n=i(2),r=i(10),o=i(13),s=i(0),a=i(16),h=i(4);function l(t,e,i,s){null==i&&null==s&&(s=e),n.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=i&&null!=e?new o(e.x,e.y,i.width,i.height):new o}for(var c in l.prototype=Object.create(n.prototype),n)l[c]=n[c];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach((function(n){if(n.target==t){if(n.source!=i)throw"Incorrect edge source!";e.push(n)}})),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach((function(n){if(n.source!=i&&n.target!=i)throw"Incorrect edge source and/or target";n.target!=t&&n.source!=t||e.push(n)})),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach((function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}})),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach((function(e){t.add(e)}));return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var t,e,i=-s.INITIAL_WORLD_BOUNDARY,n=s.INITIAL_WORLD_BOUNDARY;t=s.WORLD_CENTER_X+a.nextDouble()*(n-i)+i;var r=-s.INITIAL_WORLD_BOUNDARY,o=s.INITIAL_WORLD_BOUNDARY;e=s.WORLD_CENTER_Y+a.nextDouble()*(o-r)+r,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),s.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),i=t.getBottom()-t.getTop();this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>i&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-i)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-i),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var i=this.rect.y;i>s.WORLD_BOUNDARY?i=s.WORLD_BOUNDARY:i<-s.WORLD_BOUNDARY&&(i=-s.WORLD_BOUNDARY);var n=new h(e,i),r=t.inverseTransformPoint(n);this.setLocation(r.x,r.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";function n(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(t){this.x=t},n.prototype.setY=function(t){this.y=t},n.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=n},function(t,e,i){"use strict";var n=i(2),r=i(10),o=i(0),s=i(6),a=i(3),h=i(1),l=i(13),c=i(12),g=i(11);function u(t,e,i){n.call(this,i),this.estimatedSize=r.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in u.prototype=Object.create(n.prototype),n)u[d]=n[d];u.prototype.getNodes=function(){return this.nodes},u.prototype.getEdges=function(){return this.edges},u.prototype.getGraphManager=function(){return this.graphManager},u.prototype.getParent=function(){return this.parent},u.prototype.getLeft=function(){return this.left},u.prototype.getRight=function(){return this.right},u.prototype.getTop=function(){return this.top},u.prototype.getBottom=function(){return this.bottom},u.prototype.isConnected=function(){return this.isConnected},u.prototype.add=function(t,e,i){if(null==e&&null==i){var n=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(n)>-1)throw"Node already in graph!";return n.owner=this,this.getNodes().push(n),n}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(r.source=e,r.target=i,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),i!=e&&i.edges.push(r),r)},u.prototype.remove=function(t){var e=t;if(t instanceof a){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i=e.edges.slice(),n=i.length,r=0;r<n;r++)(o=i[r]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(s=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(t instanceof h){var o;if(null==(o=t))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var s,l=o.source.edges.indexOf(o),c=o.target.edges.indexOf(o);if(!(l>-1&&c>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(l,1),o.target!=o.source&&o.target.edges.splice(c,1),-1==(s=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(s,1)}},u.prototype.updateLeftTop=function(){for(var t,e,i,n=r.MAX_VALUE,o=r.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;h<a;h++){var l=s[h];n>(t=l.getTop())&&(n=t),o>(e=l.getLeft())&&(o=e)}return n==r.MAX_VALUE?null:(i=null!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=n-i,new c(this.left,this.top))},u.prototype.updateBounds=function(t){for(var e,i,n,o,s,a=r.MAX_VALUE,h=-r.MAX_VALUE,c=r.MAX_VALUE,g=-r.MAX_VALUE,u=this.nodes,d=u.length,p=0;p<d;p++){var f=u[p];t&&null!=f.child&&f.updateBounds(),a>(e=f.getLeft())&&(a=e),h<(i=f.getRight())&&(h=i),c>(n=f.getTop())&&(c=n),g<(o=f.getBottom())&&(g=o)}var y=new l(a,c,h-a,g-c);a==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),s=null!=u[0].getParent().paddingLeft?u[0].getParent().paddingLeft:this.margin,this.left=y.x-s,this.right=y.x+y.width+s,this.top=y.y-s,this.bottom=y.y+y.height+s},u.calculateBounds=function(t){for(var e,i,n,o,s=r.MAX_VALUE,a=-r.MAX_VALUE,h=r.MAX_VALUE,c=-r.MAX_VALUE,g=t.length,u=0;u<g;u++){var d=t[u];s>(e=d.getLeft())&&(s=e),a<(i=d.getRight())&&(a=i),h>(n=d.getTop())&&(h=n),c<(o=d.getBottom())&&(c=o)}return new l(s,h,a-s,c-h)},u.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},u.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},u.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,n=0;n<i;n++)t+=e[n].calcEstimatedSize();return this.estimatedSize=0==t?o.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},u.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,i,n=new g,r=new Set,o=this.nodes[0];for(o.withChildren().forEach((function(t){n.push(t),r.add(t)}));0!==n.length;)for(var s=(e=(o=n.shift()).getEdges()).length,a=0;a<s;a++)null==(i=e[a].getOtherEndInGraph(o,this))||r.has(i)||i.withChildren().forEach((function(t){n.push(t),r.add(t)}));if(this.isConnected=!1,r.size>=this.nodes.length){var h=0;r.forEach((function(e){e.owner==t&&h++})),h==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=u},function(t,e,i){"use strict";var n,r=i(1);function o(t){n=i(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,n,r){if(null==i&&null==n&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=i,i=t;var o=(n=e).getOwner(),s=r.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==s||s.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==s)return i.isInterGraph=!1,o.add(i,n,r);if(i.isInterGraph=!0,i.source=n,i.target=r,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof n){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var i,o=[],s=(o=o.concat(e.getEdges())).length,a=0;a<s;a++)i=o[a],e.remove(i);var h,l=[];for(s=(l=l.concat(e.getNodes())).length,a=0;a<s;a++)h=l[a],e.remove(h);e==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(e);this.graphs.splice(c,1),e.parent=null}else if(t instanceof r){if(null==(i=t))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";if(c=i.source.edges.indexOf(i),i.source.edges.splice(c,1),c=i.target.edges.indexOf(i),i.target.edges.splice(c,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";c=i.source.owner.getGraphManager().edges.indexOf(i),i.source.owner.getGraphManager().edges.splice(c,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,n=0;n<i;n++)t=t.concat(e[n].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){for(var t=[],e=this.getGraphs(),i=(e.length,0);i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,n=t.getOwner();null!=(i=n.getParent());){if(i==e)return!0;if(null==(n=i.getOwner()))break}for(n=e.getOwner();null!=(i=n.getParent());){if(i==t)return!0;if(null==(n=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,n,r,o=this.getAllEdges(),s=o.length,a=0;a<s;a++)if(e=(t=o[a]).source,i=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=i,e!=i){for(n=e.getOwner();null==t.lca;){for(t.targetInLca=i,r=i.getOwner();null==t.lca;){if(r==n){t.lca=r;break}if(r==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=r.getParent(),r=t.targetInLca.getOwner()}if(n==this.rootGraph)break;null==t.lca&&(t.sourceInLca=n.getParent(),n=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var n=e.getOwner();null!=n;){if(n==i)return n;n=n.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){var i;null==t&&null==e&&(t=this.rootGraph,e=1);for(var n=t.getNodes(),r=n.length,o=0;o<r;o++)(i=n[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,i=0;i<e;i++)if(t=this.edges[i],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,i){"use strict";var n=i(0);function r(){}for(var o in n)r[o]=n[o];r.MAX_ITERATIONS=2500,r.DEFAULT_EDGE_LENGTH=50,r.DEFAULT_SPRING_STRENGTH=.45,r.DEFAULT_REPULSION_STRENGTH=4500,r.DEFAULT_GRAVITY_STRENGTH=.4,r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,r.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,r.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,r.COOLING_ADAPTATION_FACTOR=.33,r.ADAPTATION_LOWER_NODE_LIMIT=1e3,r.ADAPTATION_UPPER_NODE_LIMIT=5e3,r.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,r.MAX_NODE_DISPLACEMENT=3*r.MAX_NODE_DISPLACEMENT_INCREMENTAL,r.MIN_REPULSION_DIST=r.DEFAULT_EDGE_LENGTH/10,r.CONVERGENCE_CHECK_PERIOD=100,r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,r.MIN_EDGE_LENGTH=1,r.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=r},function(t,e,i){"use strict";var n=i(12);function r(){}r.calcSeparationAmount=function(t,e,i,n){if(!t.intersects(e))throw"assert failed";var r=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,r),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]<a?a=i[0]:s=i[1],i[0]=-1*r[0]*(a/2+n),i[1]=-1*r[1]*(s/2+n)},r.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},r.getIntersection2=function(t,e,i){var n=t.getCenterX(),r=t.getCenterY(),o=e.getCenterX(),s=e.getCenterY();if(t.intersects(e))return i[0]=n,i[1]=r,i[2]=o,i[3]=s,!0;var a=t.getX(),h=t.getY(),l=t.getRight(),c=t.getX(),g=t.getBottom(),u=t.getRight(),d=t.getWidthHalf(),p=t.getHeightHalf(),f=e.getX(),y=e.getY(),E=e.getRight(),_=e.getX(),m=e.getBottom(),v=e.getRight(),N=e.getWidthHalf(),A=e.getHeightHalf(),L=!1,T=!1;if(n===o){if(r>s)return i[0]=n,i[1]=h,i[2]=o,i[3]=m,!1;if(r<s)return i[0]=n,i[1]=g,i[2]=o,i[3]=y,!1}else if(r===s){if(n>o)return i[0]=a,i[1]=r,i[2]=E,i[3]=s,!1;if(n<o)return i[0]=l,i[1]=r,i[2]=f,i[3]=s,!1}else{var O=t.height/t.width,D=e.height/e.width,I=(s-r)/(o-n),w=void 0,R=void 0,C=void 0,M=void 0,x=void 0,G=void 0;if(-O===I?n>o?(i[0]=c,i[1]=g,L=!0):(i[0]=l,i[1]=h,L=!0):O===I&&(n>o?(i[0]=a,i[1]=h,L=!0):(i[0]=u,i[1]=g,L=!0)),-D===I?o>n?(i[2]=_,i[3]=m,T=!0):(i[2]=E,i[3]=y,T=!0):D===I&&(o>n?(i[2]=f,i[3]=y,T=!0):(i[2]=v,i[3]=m,T=!0)),L&&T)return!1;if(n>o?r>s?(w=this.getCardinalDirection(O,I,4),R=this.getCardinalDirection(D,I,2)):(w=this.getCardinalDirection(-O,I,3),R=this.getCardinalDirection(-D,I,1)):r>s?(w=this.getCardinalDirection(-O,I,1),R=this.getCardinalDirection(-D,I,3)):(w=this.getCardinalDirection(O,I,2),R=this.getCardinalDirection(D,I,4)),!L)switch(w){case 1:M=h,C=n+-p/I,i[0]=C,i[1]=M;break;case 2:C=u,M=r+d*I,i[0]=C,i[1]=M;break;case 3:M=g,C=n+p/I,i[0]=C,i[1]=M;break;case 4:C=c,M=r+-d*I,i[0]=C,i[1]=M}if(!T)switch(R){case 1:G=y,x=o+-A/I,i[2]=x,i[3]=G;break;case 2:x=v,G=s+N*I,i[2]=x,i[3]=G;break;case 3:G=m,x=o+A/I,i[2]=x,i[3]=G;break;case 4:x=_,G=s+-N*I,i[2]=x,i[3]=G}}return!1},r.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},r.getIntersection=function(t,e,i,r){if(null==r)return this.getIntersection2(t,e,i);var o,s,a,h,l,c,g,u=t.x,d=t.y,p=e.x,f=e.y,y=i.x,E=i.y,_=r.x,m=r.y;return 0==(g=(o=f-d)*(h=y-_)-(s=m-E)*(a=u-p))?null:new n((a*(c=_*E-y*m)-h*(l=p*d-u*f))/g,(s*l-o*c)/g)},r.angleOfVector=function(t,e,i,n){var r=void 0;return t!==i?(r=Math.atan((n-e)/(i-t)),i<t?r+=Math.PI:n<e&&(r+=this.TWO_PI)):r=n<e?this.ONE_AND_HALF_PI:this.HALF_PI,r},r.doIntersect=function(t,e,i,n){var r=t.x,o=t.y,s=e.x,a=e.y,h=i.x,l=i.y,c=n.x,g=n.y,u=(s-r)*(g-l)-(c-h)*(a-o);if(0===u)return!1;var d=((g-l)*(c-r)+(h-c)*(g-o))/u,p=((o-a)*(c-r)+(s-r)*(g-o))/u;return 0<d&&d<1&&0<p&&p<1},r.HALF_PI=.5*Math.PI,r.ONE_AND_HALF_PI=1.5*Math.PI,r.TWO_PI=2*Math.PI,r.THREE_PI=3*Math.PI,t.exports=r},function(t,e,i){"use strict";function n(){}n.sign=function(t){return t>0?1:t<0?-1:0},n.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},n.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=n},function(t,e,i){"use strict";function n(){}n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,t.exports=n},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(t){return{value:t,next:null,prev:null}},o=function(t,e,i,n){return null!==t?t.next=e:n.head=e,null!==i?i.prev=e:n.tail=e,e.prev=t,e.next=i,n.length++,e},s=function(t,e){var i=t.prev,n=t.next;return null!==i?i.next=n:e.head=n,null!==n?n.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t},a=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach((function(t){return i.push(t)}))}return n(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,r(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,r(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,r(t),null,this)}},{key:"unshift",value:function(t){return o(null,r(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,n=this.head;i<t;)n=n.next,i++;n.value=e}}}]),t}();t.exports=a},function(t,e,i){"use strict";function n(t,e,i){this.x=null,this.y=null,null==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(i=t,this.x=i.x,this.y=i.y)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?(i=t,this.setLocation(i.x,i.y)):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},n.prototype.move=function(t,e){this.x=t,this.y=e},n.prototype.translate=function(t,e){this.x+=t,this.y+=e},n.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},n.prototype.toString=function(){return(new n).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=n&&(this.x=t,this.y=e,this.width=i,this.height=n)}n.prototype.getX=function(){return this.x},n.prototype.setX=function(t){this.x=t},n.prototype.getY=function(){return this.y},n.prototype.setY=function(t){this.y=t},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(t){this.width=t},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(t){this.height=t},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},t.exports=n},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function r(){}r.lastID=0,r.createID=function(t){return r.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=r.getString(),r.lastID++),t.uniqueID)},r.getString=function(t){return null==t&&(t=r.lastID),"Object#"+t},r.isPrimitive=function(t){var e=void 0===t?"undefined":n(t);return null==t||"object"!=e&&"function"!=e},t.exports=r},function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var r=i(0),o=i(6),s=i(3),a=i(1),h=i(5),l=i(4),c=i(17),g=i(27);function u(t){g.call(this),this.layoutQuality=r.QUALITY,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=r.DEFAULT_INCREMENTAL,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}u.RANDOM_SEED=1,u.prototype=Object.create(g.prototype),u.prototype.getGraphManager=function(){return this.graphManager},u.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},u.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},u.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},u.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},u.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},u.prototype.newNode=function(t){return new s(this.graphManager,t)},u.prototype.newEdge=function(t){return new a(null,null,t)},u.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},u.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==r.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},u.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},u.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var i=this.graphManager.getRoot().getNodes();for(e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},u.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof s){var e=t;if(null!=e.getChild())for(var i=e.getChild().getNodes(),n=0;n<i.length;n++)update(i[n]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof a){var r=t;null!=r.vGraphObject&&r.vGraphObject.update(r)}else if(t instanceof h){var o=t;null!=o.vGraphObject&&o.vGraphObject.update(o)}},u.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=r.QUALITY,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=r.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},u.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new c,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var n=this.getAllNodes(),r=0;r<n.length;r++)n[r].transform(e)}}},u.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,n=t.getNodes(),r=0;r<n.length;r++)null==(i=(e=n[r]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},u.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),r=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(r=!1);if(!r)return t;var s=new Set,a=[],h=new Map,l=[];for(l=l.concat(i);l.length>0&&e;){for(a.push(l[0]);a.length>0&&e;){var c=a[0];a.splice(0,1),s.add(c);var g=c.getEdges();for(o=0;o<g.length;o++){var u=g[o].getOtherEnd(c);if(h.get(c)!=u){if(s.has(u)){e=!1;break}a.push(u),h.set(u,c)}}}if(e){var d=[].concat(n(s));for(t.push(d),o=0;o<d.length;o++){var p=d[o],f=l.indexOf(p);f>-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},u.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,n=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r<t.bendpoints.length;r++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),n.add(o);var s=this.newEdge(null);this.graphManager.add(s,i,o),e.add(o),i=o}return s=this.newEdge(null),this.graphManager.add(s,i,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):n.remove(t),e},u.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(n(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(i.bendpoints.length>0){for(var r=this.edgeToDummyNodes.get(i),o=0;o<r.length;o++){var s=r[o],a=new l(s.getCenterX(),s.getCenterY()),h=i.bendpoints.get(o);h.x=a.x,h.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},u.transform=function(t,e,i,n){if(null!=i&&null!=n){var r=e;return t<=50?r-=(e-e/i)/50*(50-t):r+=(e*n-e)/50*(t-50),r}var o,s;return t<=50?(o=9*e/500,s=e/10):(o=9*e/50,s=-8*e),o*t+s},u.findCenterOfTree=function(t){var e=[];e=e.concat(t);var i=[],n=new Map,r=!1,o=null;1!=e.length&&2!=e.length||(r=!0,o=e[0]);for(var s=0;s<e.length;s++){var a=(c=e[s]).getNeighborsList().size;n.set(c,c.getNeighborsList().size),1==a&&i.push(c)}var h=[];for(h=h.concat(i);!r;){var l=[];for(l=l.concat(h),h=[],s=0;s<e.length;s++){var c=e[s],g=e.indexOf(c);g>=0&&e.splice(g,1),c.getNeighborsList().forEach((function(t){if(i.indexOf(t)<0){var e=n.get(t)-1;1==e&&h.push(t),n.set(t,e)}}))}i=i.concat(h),1!=e.length&&2!=e.length||(r=!0,o=e[0])}return o},u.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=u},function(t,e,i){"use strict";function n(){}n.seed=1,n.x=0,n.nextDouble=function(){return n.x=1e4*Math.sin(n.seed++),n.x-Math.floor(n.x)},t.exports=n},function(t,e,i){"use strict";var n=i(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},r.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},r.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},r.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},r.prototype.inverseTransformPoint=function(t){return new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,i){"use strict";var n=i(15),r=i(7),o=i(0),s=i(8),a=i(9);function h(){n.call(this),this.useSmartIdealEdgeLengthCalculation=r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=r.DEFAULT_EDGE_LENGTH,this.springConstant=r.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=r.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=r.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=r.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*r.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=r.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=r.MAX_ITERATIONS}for(var l in h.prototype=Object.create(n.prototype),n)h[l]=n[l];h.prototype.initParameters=function(){n.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,n,s,a,h=this.getGraphManager().getAllEdges(),l=0;l<h.length;l++)(t=h[l]).idealLength=this.idealEdgeLength,t.isInterGraph&&(i=t.getSource(),n=t.getTarget(),s=t.getSourceInLca().getEstimatedSize(),a=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=s+a-2*o.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=r.DEFAULT_EDGE_LENGTH*r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(i.getInclusionTreeDepth()+n.getInclusionTreeDepth()-2*e))},h.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>r.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*r.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-r.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>r.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(r.COOLING_ADAPTATION_FACTOR,1-(t-r.ADAPTATION_LOWER_NODE_LIMIT)/(r.ADAPTATION_UPPER_NODE_LIMIT-r.ADAPTATION_LOWER_NODE_LIMIT)*(1-r.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=r.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},h.prototype.calcRepulsionForces=function(){var t,e,i,n,o,s=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,o,s,a),o.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)n=h[e],i.getOwner()==n.getOwner()&&this.calcRepulsionForce(i,n)},h.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},h.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},h.prototype.calcSpringForce=function(t,e){var i,n,r,o,s=t.getSource(),a=t.getTarget();if(this.uniformLeafNodeSizes&&null==s.getChild()&&null==a.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(r=(n=this.springConstant*(i-e))*(t.lengthX/i),o=n*(t.lengthY/i),s.springForceX+=r,s.springForceY+=o,a.springForceX-=r,a.springForceY-=o)},h.prototype.calcRepulsionForce=function(t,e){var i,n,o,h,l,c,g,u=t.getRect(),d=e.getRect(),p=new Array(2),f=new Array(4);if(u.intersects(d)){s.calcSeparationAmount(u,d,p,r.DEFAULT_EDGE_LENGTH/2),c=2*p[0],g=2*p[1];var y=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=y*c,t.repulsionForceY-=y*g,e.repulsionForceX+=y*c,e.repulsionForceY+=y*g}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=d.getCenterX()-u.getCenterX(),n=d.getCenterY()-u.getCenterY()):(s.getIntersection(u,d,f),i=f[2]-f[0],n=f[3]-f[1]),Math.abs(i)<r.MIN_REPULSION_DIST&&(i=a.sign(i)*r.MIN_REPULSION_DIST),Math.abs(n)<r.MIN_REPULSION_DIST&&(n=a.sign(n)*r.MIN_REPULSION_DIST),o=i*i+n*n,h=Math.sqrt(o),c=(l=this.repulsionConstant*t.noOfChildren*e.noOfChildren/o)*i/h,g=l*n/h,t.repulsionForceX-=c,t.repulsionForceY-=g,e.repulsionForceX+=c,e.repulsionForceY+=g},h.prototype.calcGravitationalForce=function(t){var e,i,n,r,o,s,a,h;i=((e=t.getOwner()).getRight()+e.getLeft())/2,n=(e.getTop()+e.getBottom())/2,r=t.getCenterX()-i,o=t.getCenterY()-n,s=Math.abs(r)+t.getWidth()/2,a=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(s>(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},h.prototype.calcGrid=function(t){var e,i;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(i);for(r=0;r<e;r++)for(var o=0;o<i;o++)n[r][o]=new Array;return n},h.prototype.addNodeToGrid=function(t,e,i){var n,r,o,s;n=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),r=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),s=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange));for(var a=n;a<=r;a++)for(var h=o;h<=s;h++)this.grid[a][h].push(t),t.setGridCoordinates(n,r,o,s)},h.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(t,e,i,n){if(this.totalIterations%r.GRID_CALCULATION_CHECK_PERIOD==1&&i||n){var o,s=new Set;t.surrounding=new Array;for(var a=this.grid,h=t.startX-1;h<t.finishX+2;h++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(h<0||l<0||h>=a.length||l>=a[0].length))for(var c=0;c<a[h][l].length;c++)if(o=a[h][l][c],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!s.has(o)){var g=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),u=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);g<=this.repulsionRange&&u<=this.repulsionRange&&s.add(o)}t.surrounding=[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(s))}for(h=0;h<t.surrounding.length;h++)this.calcRepulsionForce(t,t.surrounding[h])},h.prototype.calcRepulsionRange=function(){return 0},t.exports=h},function(t,e,i){"use strict";var n=i(1),r=i(7);function o(t,e,i){n.call(this,t,e,i),this.idealLength=r.DEFAULT_EDGE_LENGTH}for(var s in o.prototype=Object.create(n.prototype),n)o[s]=n[s];t.exports=o},function(t,e,i){"use strict";var n=i(3);function r(t,e,i,r){n.call(this,t,e,i,r),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in r.prototype=Object.create(n.prototype),n)r[o]=n[o];r.prototype.setGridCoordinates=function(t,e,i,n){this.startX=t,this.finishX=e,this.startY=i,this.finishY=n},t.exports=r},function(t,e,i){"use strict";function n(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(t){this.width=t},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(t){this.height=t},t.exports=n},function(t,e,i){"use strict";var n=i(14);function r(){this.map={},this.keys=[]}r.prototype.put=function(t,e){var i=n.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},r.prototype.contains=function(t){return n.createID(t),null!=this.map[t]},r.prototype.get=function(t){var e=n.createID(t);return this.map[e]},r.prototype.keySet=function(){return this.keys},t.exports=r},function(t,e,i){"use strict";var n=i(14);function r(){this.set={}}r.prototype.add=function(t){var e=n.createID(t);this.contains(e)||(this.set[e]=t)},r.prototype.remove=function(t){delete this.set[n.createID(t)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(t){return this.set[n.createID(t)]==t},r.prototype.isEmpty=function(){return 0===this.size()},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,n=0;n<i;n++)t.push(this.set[e[n]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var n=t[i];this.add(n)}},t.exports=r},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(11),o=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===i&&void 0===i||(this.compareFunction=this._defaultCompareFunction);var n=void 0;n=e instanceof r?e.size():e.length,this._quicksort(e,0,n-1)}return n(t,[{key:"_quicksort",value:function(t,e,i){if(e<i){var n=this._partition(t,e,i);this._quicksort(t,e,n),this._quicksort(t,n+1,i)}}},{key:"_partition",value:function(t,e,i){for(var n=this._get(t,e),r=e,o=i;;){for(;this.compareFunction(n,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,r),n);)r++;if(!(r<o))return o;this._swap(t,r,o),r++,o--}}},{key:"_get",value:function(t,e){return t instanceof r?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof r?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var n=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,n)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=o},function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sequence1=e,this.sequence2=i,this.match_score=n,this.mismatch_penalty=r,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return n(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var n=1;n<this.jMax;n++){var r=[this.sequence1[i-1]===this.sequence2[n-1]?this.grid[i-1][n-1]+this.match_score:this.grid[i-1][n-1]+this.mismatch_penalty,this.grid[i-1][n]+this.gap_penalty,this.grid[i][n-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(r);this.grid[i][n]=r[o[0]],this.tracebackGrid[i][n]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],n=-1;-1!==(n=t.indexOf(e,n+1));)i.push(n);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=r},function(t,e,i){"use strict";var n=function(){};n.FDLayout=i(18),n.FDLayoutConstants=i(7),n.FDLayoutEdge=i(19),n.FDLayoutNode=i(20),n.DimensionD=i(21),n.HashMap=i(22),n.HashSet=i(23),n.IGeometry=i(8),n.IMath=i(9),n.Integer=i(10),n.Point=i(12),n.PointD=i(4),n.RandomSeed=i(16),n.RectangleD=i(13),n.Transform=i(17),n.UniqueIDGeneretor=i(14),n.Quicksort=i(24),n.LinkedList=i(11),n.LGraphObject=i(2),n.LGraph=i(5),n.LEdge=i(1),n.LGraphManager=i(6),n.LNode=i(3),n.Layout=i(15),n.LayoutConstants=i(0),n.NeedlemanWunsch=i(25),t.exports=n},function(t,e,i){"use strict";function n(){this.listeners=[]}var r=n.prototype;r.addListener=function(t,e){this.listeners.push({event:t,callback:e})},r.removeListener=function(t,e){for(var i=this.listeners.length;i>=0;i--){var n=this.listeners[i];n.event===t&&n.callback===e&&this.listeners.splice(i,1)}},r.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var n=this.listeners[i];t===n.event&&n.callback(e)}},t.exports=n}])},t.exports=e()},6383:(t,e,i)=>{"use strict";i.d(e,{diagram:()=>X});var n=i(483),r=i(540),o=i(7286),s=i(9),a=i(165),h=i(3457),l=i(7),c=i(3219),g=i(8041),u=i(5263),d=function(){var t=(0,s.K2)((function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i}),"o"),e=[1,4],i=[1,13],n=[1,12],r=[1,15],o=[1,16],a=[1,20],h=[1,19],l=[6,7,8],c=[1,26],g=[1,24],u=[1,25],d=[6,7,11],p=[1,6,13,15,16,19,22],f=[1,33],y=[1,34],E=[1,6,7,11,13,15,16,19,22],_={trace:(0,s.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,s.K2)((function(t,e,i,n,r,o,s){var a=o.length-1;switch(r){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",o[a].id),n.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:n.getLogger().trace("Icon: ",o[a]),n.decorateNode({icon:o[a]});break;case 17:case 21:n.decorateNode({class:o[a]});break;case 18:n.getLogger().trace("SPACELIST");break;case 19:n.getLogger().trace("Node: ",o[a].id),n.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:n.decorateNode({icon:o[a]});break;case 25:n.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:n.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:n.nodeType.DEFAULT};break;case 27:n.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:n.getType(o[a-2],o[a])}}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:n,14:14,15:r,16:o,17:17,18:18,19:a,22:h},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,15:r,16:o,17:17,18:18,19:a,22:h},{6:i,9:22,12:11,13:n,14:14,15:r,16:o,17:17,18:18,19:a,22:h},{6:c,7:g,10:23,11:u},t(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:h}),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,23]),t(d,[2,24]),t(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:c,7:g,10:32,11:u},{1:[2,7],6:i,12:21,13:n,14:14,15:r,16:o,17:17,18:18,19:a,22:h},t(p,[2,14],{7:f,11:y}),t(E,[2,8]),t(E,[2,9]),t(E,[2,10]),t(d,[2,15]),t(d,[2,16]),t(d,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:f,11:y}),t(E,[2,11]),t(E,[2,12]),{21:[1,37]},t(d,[2,25]),t(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,s.K2)((function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)}),"parseError"),parse:(0,s.K2)((function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,h="",l=0,c=0,g=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(p.yy[f]=this.yy[f]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;o.push(y);var E=d.options&&d.options.ranges;function _(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K2)((function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t}),"popStack"),(0,s.K2)(_,"lex");for(var m,v,N,A,L,T,O,D,I,w={};;){if(N=i[i.length-1],this.defaultActions[N]?A=this.defaultActions[N]:(null==m&&(m=_()),A=a[N]&&a[N][m]),void 0===A||!A.length||!A[0]){var R="";for(T in I=[],a[N])this.terminals_[T]&&T>2&&I.push("'"+this.terminals_[T]+"'");R=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(R,{text:d.match,token:this.terminals_[m]||m,line:d.yylineno,loc:y,expected:I})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+m);switch(A[0]){case 1:i.push(m),r.push(d.yytext),o.push(d.yylloc),i.push(A[1]),m=null,v?(m=v,v=null):(c=d.yyleng,h=d.yytext,l=d.yylineno,y=d.yylloc,g>0&&g--);break;case 2:if(O=this.productions_[A[1]][1],w.$=r[r.length-O],w._$={first_line:o[o.length-(O||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(O||1)].first_column,last_column:o[o.length-1].last_column},E&&(w._$.range=[o[o.length-(O||1)].range[0],o[o.length-1].range[1]]),void 0!==(L=this.performAction.apply(w,[h,c,l,p.yy,A[1],r,o].concat(u))))return L;O&&(i=i.slice(0,-1*O*2),r=r.slice(0,-1*O),o=o.slice(0,-1*O)),i.push(this.productions_[A[1]][0]),r.push(w.$),o.push(w._$),D=a[i[i.length-2]][i[i.length-1]],i.push(D);break;case 3:return!0}}return!0}),"parse")},m=function(){return{EOF:1,parseError:(0,s.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,s.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,s.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,s.K2)((function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,s.K2)((function(){return this._more=!0,this}),"more"),reject:(0,s.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,s.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,s.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.K2)((function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1}),"test_match"),next:(0,s.K2)((function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((i=this._input.match(this.rules[r[o]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,s.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,s.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,s.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,s.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,s.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,s.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,s.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K2)((function(t,e,i,n){switch(i){case 0:return t.getLogger().trace("Found comment",e.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return t.getLogger().trace("Long description:",e.yytext),20}}),"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}}();function v(){this.yy={}}return _.lexer=m,(0,s.K2)(v,"Parser"),v.prototype=_,_.Parser=v,new v}();d.parser=d;var p=d,f=[],y=0,E={},_=(0,s.K2)((()=>{f=[],y=0,E={}}),"clear"),m=(0,s.K2)((function(t){for(let e=f.length-1;e>=0;e--)if(f[e].level<t)return f[e];return null}),"getParent"),v=(0,s.K2)((()=>f.length>0?f[0]:null),"getMindmap"),N=(0,s.K2)(((t,e,i,n)=>{s.Rm.info("addNode",t,e,i,n);const r=(0,s.D7)();let o=r.mindmap?.padding??s.UI.mindmap.padding;switch(n){case A.ROUNDED_RECT:case A.RECT:case A.HEXAGON:o*=2}const a={id:y++,nodeId:(0,s.jZ)(e,r),level:t,descr:(0,s.jZ)(i,r),type:n,children:[],width:r.mindmap?.maxNodeWidth??s.UI.mindmap.maxNodeWidth,padding:o},h=m(t);if(h)h.children.push(a),f.push(a);else{if(0!==f.length)throw new Error('There can be only one root. No parent could be found for ("'+a.descr+'")');f.push(a)}}),"addNode"),A={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},L={clear:_,addNode:N,getMindmap:v,nodeType:A,getType:(0,s.K2)(((t,e)=>{switch(s.Rm.debug("In get type",t,e),t){case"[":return A.RECT;case"(":return")"===e?A.ROUNDED_RECT:A.CLOUD;case"((":return A.CIRCLE;case")":return A.CLOUD;case"))":return A.BANG;case"{{":return A.HEXAGON;default:return A.DEFAULT}}),"getType"),setElementForId:(0,s.K2)(((t,e)=>{E[t]=e}),"setElementForId"),decorateNode:(0,s.K2)((t=>{if(!t)return;const e=(0,s.D7)(),i=f[f.length-1];t.icon&&(i.icon=(0,s.jZ)(t.icon,e)),t.class&&(i.class=(0,s.jZ)(t.class,e))}),"decorateNode"),type2Str:(0,s.K2)((t=>{switch(t){case A.DEFAULT:return"no-border";case A.RECT:return"rect";case A.ROUNDED_RECT:return"rounded-rect";case A.CIRCLE:return"circle";case A.CLOUD:return"cloud";case A.BANG:return"bang";case A.HEXAGON:return"hexgon";default:return"no-border"}}),"type2Str"),getLogger:(0,s.K2)((()=>s.Rm),"getLogger"),getElementById:(0,s.K2)((t=>E[t]),"getElementById")},T=(0,s.K2)((function(t,e,i,n){e.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("d",`M0 ${i.height-5} v${10-i.height} q0,-5 5,-5 h${i.width-10} q5,0 5,5 v${i.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",i.height).attr("x2",i.width).attr("y2",i.height)}),"defaultBkg"),O=(0,s.K2)((function(t,e,i){e.append("rect").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("height",i.height).attr("width",i.width)}),"rectBkg"),D=(0,s.K2)((function(t,e,i){const n=i.width,r=i.height,o=.15*n,s=.25*n,a=.35*n,h=.2*n;e.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("d",`M0 0 a${o},${o} 0 0,1 ${.25*n},${-1*n*.1}\n a${a},${a} 1 0,1 ${.4*n},${-1*n*.1}\n a${s},${s} 1 0,1 ${.35*n},${1*n*.2}\n\n a${o},${o} 1 0,1 ${.15*n},${1*r*.35}\n a${h},${h} 1 0,1 ${-1*n*.15},${1*r*.65}\n\n a${s},${o} 1 0,1 ${-1*n*.25},${.15*n}\n a${a},${a} 1 0,1 ${-1*n*.5},0\n a${o},${o} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n a${o},${o} 1 0,1 ${-1*n*.1},${-1*r*.35}\n a${h},${h} 1 0,1 ${.1*n},${-1*r*.65}\n\n H0 V0 Z`)}),"cloudBkg"),I=(0,s.K2)((function(t,e,i){const n=i.width,r=i.height,o=.15*n;e.append("path").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("d",`M0 0 a${o},${o} 1 0,0 ${.25*n},${-1*r*.1}\n a${o},${o} 1 0,0 ${.25*n},0\n a${o},${o} 1 0,0 ${.25*n},0\n a${o},${o} 1 0,0 ${.25*n},${1*r*.1}\n\n a${o},${o} 1 0,0 ${.15*n},${1*r*.33}\n a${.8*o},${.8*o} 1 0,0 0,${1*r*.34}\n a${o},${o} 1 0,0 ${-1*n*.15},${1*r*.33}\n\n a${o},${o} 1 0,0 ${-1*n*.25},${.15*r}\n a${o},${o} 1 0,0 ${-1*n*.25},0\n a${o},${o} 1 0,0 ${-1*n*.25},0\n a${o},${o} 1 0,0 ${-1*n*.25},${-1*r*.15}\n\n a${o},${o} 1 0,0 ${-1*n*.1},${-1*r*.33}\n a${.8*o},${.8*o} 1 0,0 0,${-1*r*.34}\n a${o},${o} 1 0,0 ${.1*n},${-1*r*.33}\n\n H0 V0 Z`)}),"bangBkg"),w=(0,s.K2)((function(t,e,i){e.append("circle").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("r",i.width/2)}),"circleBkg");function R(t,e,i,n,r){return t.insert("polygon",":first-child").attr("points",n.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+(r.width-e)/2+", "+i+")")}(0,s.K2)(R,"insertPolygonShape");var C=(0,s.K2)((function(t,e,i){const n=i.height,r=n/4,o=i.width-i.padding+2*r;R(e,o,n,[{x:r,y:0},{x:o-r,y:0},{x:o,y:-n/2},{x:o-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],i)}),"hexagonBkg"),M=(0,s.K2)((function(t,e,i){e.append("rect").attr("id","node-"+i.id).attr("class","node-bkg node-"+t.type2Str(i.type)).attr("height",i.height).attr("rx",i.padding).attr("ry",i.padding).attr("width",i.width)}),"roundedRectBkg"),x=(0,s.K2)((async function(t,e,i,o,s){const a=s.htmlLabels,h=o%11,l=e.append("g");i.section=h;let c="section-"+h;h<0&&(c+=" section-root"),l.attr("class",(i.class?i.class+" ":"")+"mindmap-node "+c);const g=l.append("g"),u=l.append("g"),d=i.descr.replace(/(<br\/*>)/g,"\n");await(0,n.GZ)(u,d,{useHtmlLabels:a,width:i.width,classes:"mindmap-node-label"},s),a||u.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const p=u.node().getBBox(),[f]=(0,r.I5)(s.fontSize);if(i.height=p.height+1.1*f*.5+i.padding,i.width=p.width+2*i.padding,i.icon)if(i.type===t.nodeType.CIRCLE){i.height+=50,i.width+=50;l.append("foreignObject").attr("height","50px").attr("width",i.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+h+" "+i.icon),u.attr("transform","translate("+i.width/2+", "+(i.height/2-1.5*i.padding)+")")}else{i.width+=50;const t=i.height;i.height=Math.max(t,60);const e=Math.abs(i.height-t);l.append("foreignObject").attr("width","60px").attr("height",i.height).attr("style","text-align: center;margin-top:"+e/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+h+" "+i.icon),u.attr("transform","translate("+(25+i.width/2)+", "+(e/2+i.padding/2)+")")}else if(a){const t=(i.width-p.width)/2,e=(i.height-p.height)/2;u.attr("transform","translate("+t+", "+e+")")}else{const t=i.width/2,e=i.padding/2;u.attr("transform","translate("+t+", "+e+")")}switch(i.type){case t.nodeType.DEFAULT:T(t,g,i,h);break;case t.nodeType.ROUNDED_RECT:M(t,g,i,h);break;case t.nodeType.RECT:O(t,g,i,h);break;case t.nodeType.CIRCLE:g.attr("transform","translate("+i.width/2+", "+ +i.height/2+")"),w(t,g,i,h);break;case t.nodeType.CLOUD:D(t,g,i,h);break;case t.nodeType.BANG:I(t,g,i,h);break;case t.nodeType.HEXAGON:C(t,g,i,h)}return t.setElementForId(i.id,l),i.height}),"drawNode"),G=(0,s.K2)((function(t,e){const i=t.getElementById(e.id),n=e.x||0,r=e.y||0;i.attr("transform","translate("+n+","+r+")")}),"positionNode");async function S(t,e,i,n,r){await x(t,e,i,n,r),i.children&&await Promise.all(i.children.map(((i,o)=>S(t,e,i,n<0?o:n,r))))}function b(t,e){e.edges().map(((e,i)=>{const n=e.data();if(e[0]._private.bodyBounds){const r=e[0]._private.rscratch;s.Rm.trace("Edge: ",i,n),t.insert("path").attr("d",`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `).attr("class","edge section-edge-"+n.section+" edge-depth-"+n.depth)}}))}function F(t,e,i,n){e.add({group:"nodes",data:{id:t.id.toString(),labelText:t.descr,height:t.height,width:t.width,level:n,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach((r=>{F(r,e,i,n+1),e.add({group:"edges",data:{id:`${t.id}_${r.id}`,source:t.id,target:r.id,depth:n,section:r.section}})}))}function P(t,e){return new Promise((i=>{const n=(0,l.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),r=(0,a.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});n.remove(),F(t,r,e,0),r.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}})),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready((t=>{s.Rm.info("Ready",t),i(r)}))}))}function U(t,e){e.nodes().map(((e,i)=>{const n=e.data();n.x=e.position().x,n.y=e.position().y,G(t,n);const r=t.getElementById(n.nodeId);s.Rm.info("Id:",i,"Position: (",e.position().x,", ",e.position().y,")",n),r.attr("transform",`translate(${e.position().x-n.width/2}, ${e.position().y-n.height/2})`),r.attr("attr",`apa-${i})`)}))}a.A.use(h),(0,s.K2)(S,"drawNodes"),(0,s.K2)(b,"drawEdges"),(0,s.K2)(F,"addNodes"),(0,s.K2)(P,"layoutMindmap"),(0,s.K2)(U,"positionNodes");var Y={draw:(0,s.K2)((async(t,e,i,n)=>{s.Rm.debug("Rendering mindmap diagram\n"+t);const r=n.db,a=r.getMindmap();if(!a)return;const h=(0,s.D7)();h.htmlLabels=!1;const l=(0,o.D)(e),c=l.append("g");c.attr("class","mindmap-edges");const g=l.append("g");g.attr("class","mindmap-nodes"),await S(r,g,a,-1,h);const u=await P(a,h);b(c,u),U(r,u),(0,s.ot)(void 0,l,h.mindmap?.padding??s.UI.mindmap.padding,h.mindmap?.useMaxWidth??s.UI.mindmap.useMaxWidth)}),"draw")},k=(0,s.K2)((t=>{let e="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],(0,c.A)(t["lineColor"+i])?t["lineColor"+i]=(0,g.A)(t["lineColor"+i],20):t["lineColor"+i]=(0,u.A)(t["lineColor"+i],20);for(let i=0;i<t.THEME_COLOR_LIMIT;i++){const n=""+(17-3*i);e+=`\n .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {\n fill: ${t["cScale"+i]};\n }\n .section-${i-1} text {\n fill: ${t["cScaleLabel"+i]};\n }\n .node-icon-${i-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+i]};\n }\n .section-edge-${i-1}{\n stroke: ${t["cScale"+i]};\n }\n .edge-depth-${i-1}{\n stroke-width: ${n};\n }\n .section-${i-1} line {\n stroke: ${t["cScaleInv"+i]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e}),"genSections"),X={db:L,renderer:Y,parser:p,styles:(0,s.K2)((t=>`\n .edge {\n stroke-width: 3;\n }\n ${k(t)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/6452.7c0c122f.js b/website/assets/js/6452.7c0c122f.js new file mode 100644 index 000000000..9ea201079 --- /dev/null +++ b/website/assets/js/6452.7c0c122f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6452],{4071:(e,c,s)=>{s.d(c,{createPacketServices:()=>a.$});var a=s(1609);s(9369)}}]); \ No newline at end of file diff --git a/website/assets/js/69100af9.772282cc.js b/website/assets/js/69100af9.772282cc.js new file mode 100644 index 000000000..3886de7df --- /dev/null +++ b/website/assets/js/69100af9.772282cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8665],{3887:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>t,contentTitle:()=>l,default:()=>o,frontMatter:()=>i,metadata:()=>s,toc:()=>a});const s=JSON.parse('{"id":"api/variables/components","title":"Variable: components","description":"const components: object","source":"@site/docs/api/variables/components.md","sourceDirName":"api/variables","slug":"/api/variables/components","permalink":"/Lunatic/docs/api/variables/components","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/variables/components.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"Button","permalink":"/Lunatic/docs/api/variables/Button"},"next":{"title":"LunaticComponents","permalink":"/Lunatic/docs/api/functions/LunaticComponents"}}');var d=n(4848),c=n(8453);const i={},l="Variable: components",t={},a=[{value:"Type declaration",id:"type-declaration",level:2},{value:"Accordion",id:"accordion",level:3},{value:"CheckboxBoolean()",id:"checkboxboolean",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"CheckboxGroup()",id:"checkboxgroup",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"CheckboxOne()",id:"checkboxone",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Datepicker()",id:"datepicker",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Dropdown()",id:"dropdown",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Duration()",id:"duration",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"FilterDescription()",id:"filterdescription",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Input()",id:"input",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"InputNumber()",id:"inputnumber",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Loop()",id:"loop",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"PairwiseLinks()",id:"pairwiselinks",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Question()",id:"question",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Radio",id:"radio",level:3},{value:"RosterForLoop()",id:"rosterforloop",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Roundabout()",id:"roundabout",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Sequence",id:"sequence",level:3},{value:"Subsequence",id:"subsequence",level:3},{value:"Suggester()",id:"suggester",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Summary()",id:"summary",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Switch",id:"switch",level:3},{value:"Table()",id:"table",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Text()",id:"text",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Textarea()",id:"textarea",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in",level:2}];function h(e){const r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,c.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.header,{children:(0,d.jsx)(r.h1,{id:"variable-components",children:"Variable: components"})}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.code,{children:"const"})," ",(0,d.jsx)(r.strong,{children:"components"}),": ",(0,d.jsx)(r.code,{children:"object"})]}),"\n"]}),"\n",(0,d.jsx)(r.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,d.jsx)(r.h3,{id:"accordion",children:"Accordion"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Accordion"}),": ",(0,d.jsx)(r.code,{children:"ComponentType"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,d.jsx)(r.h3,{id:"checkboxboolean",children:"CheckboxBoolean()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"CheckboxBoolean"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"boolean"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"checkboxgroup",children:"CheckboxGroup()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"CheckboxGroup"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"Record"}),"<",(0,d.jsx)(r.code,{children:"string"}),", ",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"boolean"}),">> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"checkboxone",children:"CheckboxOne()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"CheckboxOne"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Checkbox acting as a radio (only one option can be checked at a time)"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-2",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"datepicker",children:"Datepicker()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Datepicker"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-3",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"dropdown",children:"Dropdown()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Dropdown"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-4",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"duration",children:"Duration()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Duration"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-5",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"filterdescription",children:"FilterDescription()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"FilterDescription"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"Props"})})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-6",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"input",children:"Input()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Input"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-7",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"inputnumber",children:"InputNumber()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"InputNumber"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"number"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-8",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"loop",children:"Loop()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Loop"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Loop without specific markup (stack of subcomponents)"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"unknown"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-9",children:"Returns"}),"\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n",(0,d.jsx)(r.h3,{id:"pairwiselinks",children:"PairwiseLinks()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"PairwiseLinks"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"Omit"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"unknown"}),">, ",(0,d.jsx)(r.code,{children:'"value"'}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-10",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"question",children:"Question()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Question"}),": (",(0,d.jsx)(r.code,{children:"props"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Surround a question giving additional context with label / description / declarations"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"props"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"Pick"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"unknown"}),">, ",(0,d.jsx)(r.code,{children:'"label"'})," | ",(0,d.jsx)(r.code,{children:'"description"'})," | ",(0,d.jsx)(r.code,{children:'"declarations"'})," | ",(0,d.jsx)(r.code,{children:'"id"'})," | ",(0,d.jsx)(r.code,{children:'"propsTransformer"'})," | ",(0,d.jsx)(r.code,{children:'"errors"'})," | ",(0,d.jsx)(r.code,{children:'"disabled"'})," | ",(0,d.jsx)(r.code,{children:'"readOnly"'}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-11",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"radio",children:"Radio"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Radio"}),": ",(0,d.jsx)(r.code,{children:"ComponentType"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,d.jsx)(r.h3,{id:"rosterforloop",children:"RosterForLoop()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"RosterForLoop"}),": (",(0,d.jsx)(r.code,{children:"props"}),") => ",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Loop displayed as a table"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"props"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"unknown"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-12",children:"Returns"}),"\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n",(0,d.jsx)(r.h3,{id:"roundabout",children:"Roundabout()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Roundabout"}),": (",(0,d.jsx)(r.code,{children:"props"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Roundabout is a special loop component where the user can select the iteration to go to"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"props"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-13",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"sequence",children:"Sequence"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Sequence"}),": ",(0,d.jsx)(r.code,{children:"ComponentType"}),"<",(0,d.jsx)(r.code,{children:"Pick"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),">, ",(0,d.jsx)(r.code,{children:'"label"'})," | ",(0,d.jsx)(r.code,{children:'"description"'})," | ",(0,d.jsx)(r.code,{children:'"declarations"'})," | ",(0,d.jsx)(r.code,{children:'"id"'})," | ",(0,d.jsx)(r.code,{children:'"style"'}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,d.jsx)(r.h3,{id:"subsequence",children:"Subsequence"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Subsequence"}),": ",(0,d.jsx)(r.code,{children:"ComponentType"}),"<",(0,d.jsx)(r.code,{children:"Pick"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),">, ",(0,d.jsx)(r.code,{children:'"label"'})," | ",(0,d.jsx)(r.code,{children:'"description"'})," | ",(0,d.jsx)(r.code,{children:'"declarations"'})," | ",(0,d.jsx)(r.code,{children:'"id"'}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,d.jsx)(r.h3,{id:"suggester",children:"Suggester()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Suggester"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-14",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"summary",children:"Summary()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Summary"}),": (",(0,d.jsx)(r.code,{children:"props"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.p,{children:"Summarize the responses done by the user"}),"\n",(0,d.jsx)(r.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"props"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"null"})," | ",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-15",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"switch",children:"Switch"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Switch"}),": ",(0,d.jsx)(r.code,{children:"ComponentType"}),"<",(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"boolean"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,d.jsx)(r.h3,{id:"table",children:"Table()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Table"}),": (",(0,d.jsx)(r.code,{children:"props"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"props"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"unknown"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-16",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h3,{id:"text",children:"Text()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Text"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"ReactNode"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-17",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"ReactNode"})}),"\n",(0,d.jsx)(r.h3,{id:"textarea",children:"Textarea()"}),"\n",(0,d.jsxs)(r.blockquote,{children:["\n",(0,d.jsxs)(r.p,{children:[(0,d.jsx)(r.strong,{children:"Textarea"}),": (",(0,d.jsx)(r.code,{children:"__namedParameters"}),") => ",(0,d.jsx)(r.code,{children:"Element"})]}),"\n"]}),"\n",(0,d.jsx)(r.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,d.jsxs)(r.table,{children:[(0,d.jsx)(r.thead,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.th,{children:"Parameter"}),(0,d.jsx)(r.th,{children:"Type"})]})}),(0,d.jsx)(r.tbody,{children:(0,d.jsxs)(r.tr,{children:[(0,d.jsx)(r.td,{children:(0,d.jsx)(r.code,{children:"__namedParameters"})}),(0,d.jsxs)(r.td,{children:[(0,d.jsx)(r.code,{children:"LunaticBaseProps"}),"<",(0,d.jsx)(r.code,{children:"string"}),"> & ",(0,d.jsx)(r.a,{href:"/Lunatic/docs/api/interfaces/LunaticExtraProps",children:(0,d.jsx)(r.code,{children:"LunaticExtraProps"})})," & ",(0,d.jsx)(r.code,{children:"object"})]})]})})]}),"\n",(0,d.jsx)(r.h4,{id:"returns-18",children:"Returns"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.code,{children:"Element"})}),"\n",(0,d.jsx)(r.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,d.jsx)(r.p,{children:(0,d.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/library.ts#L29",children:"src/components/library.ts:29"})})]})}function o(e={}){const{wrapper:r}={...(0,c.R)(),...e.components};return r?(0,d.jsx)(r,{...e,children:(0,d.jsx)(h,{...e})}):h(e)}},8453:(e,r,n)=>{n.d(r,{R:()=>i,x:()=>l});var s=n(6540);const d={},c=s.createContext(d);function i(e){const r=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),s.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/6e0c98ef.95bb471a.js b/website/assets/js/6e0c98ef.95bb471a.js new file mode 100644 index 000000000..bd319270b --- /dev/null +++ b/website/assets/js/6e0c98ef.95bb471a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5813],{100:e=>{e.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"Champs","description":"Ces composants permettent \xe0 l\'utilisateur d\'entr\xe9e des informations","slug":"/category/champs","permalink":"/Lunatic/docs/category/champs","sidebar":"docs","navigation":{"previous":{"title":"FilterDescription","permalink":"/Lunatic/docs/components/decorations/filter-description"},"next":{"title":"Input","permalink":"/Lunatic/docs/components/fields/input"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/6ef797bf.d6d81f41.js b/website/assets/js/6ef797bf.d6d81f41.js new file mode 100644 index 000000000..fc40914c1 --- /dev/null +++ b/website/assets/js/6ef797bf.d6d81f41.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3861],{7155:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"internal/reducer","title":"\xc9tat & Reducer","description":"Cette partie est destin\xe9e aux personnes qui explorent le code de Lunatic. L\'objectif est d\'offrir une version g\xe9n\xe9raliste du fonctionnement de la biblioth\xe8que.","source":"@site/docs/internal/reducer.mdx","sourceDirName":"internal","slug":"/internal/reducer","permalink":"/Lunatic/docs/internal/reducer","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/internal/reducer.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Fonctionnement interne","permalink":"/Lunatic/docs/category/fonctionnement-interne"},"next":{"title":"Resizing","permalink":"/Lunatic/docs/internal/resizing"}}');var i=t(4848),r=t(8453);const o={},a="\xc9tat & Reducer",c={},l=[{value:"Le reducer",id:"le-reducer",level:2},{value:"Initialisation",id:"initialisation",level:3},{value:"Navigation",id:"navigation",level:3},{value:"Changement de valeurs",id:"changement-de-valeurs",level:3},{value:"G\xe9n\xe9ration des composants",id:"g\xe9n\xe9ration-des-composants",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"\xe9tat--reducer",children:"\xc9tat & Reducer"})}),"\n",(0,i.jsx)(n.p,{children:"Cette partie est destin\xe9e aux personnes qui explorent le code de Lunatic. L'objectif est d'offrir une version g\xe9n\xe9raliste du fonctionnement de la biblioth\xe8que."}),"\n",(0,i.jsx)(n.h2,{id:"le-reducer",children:"Le reducer"}),"\n",(0,i.jsxs)(n.p,{children:["En son c\u0153ur Lunatic repose sur un syst\xe8me de reducer qui peut recevoir plusieurs actions. L'\xe9tat li\xe9 \xe0 ce reducer est ",(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/use-lunatic/type.ts#L90",children:"document\xe9 via un type TypeScript"}),"."]}),"\n",(0,i.jsx)(n.h3,{id:"initialisation",children:"Initialisation"}),"\n",(0,i.jsxs)(n.p,{children:["Cette action (",(0,i.jsx)(n.code,{children:"ActionKind.On_INIT"}),") est lanc\xe9e lorsque le composant utilisant ",(0,i.jsx)(n.code,{children:"useLunatic()"})," est mont\xe9 et permet d'effectuer plusieurs op\xe9rations pour initialiser les donn\xe9es qui vont servir pour la suite."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["Boucle sur les variables d\xe9finies dans la source pour les sauvegarder dans un dictionnaire (",(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/use-lunatic/commons/variables/lunatic-variables-store.ts",children:"LunaticVariableStore"}),")"]}),"\n",(0,i.jsx)(n.li,{children:"Extrait depuis les composants les diff\xe9rentes pages et cr\xe9e un objet contenant la liste des composants group\xe9 par nom de page."}),"\n",(0,i.jsxs)(n.li,{children:["D\xe9compose la valeur d'",(0,i.jsx)(n.strong,{children:"initialPage"})," pour g\xe9n\xe9rer l'objet qui repr\xe9sentera l'\xe9tat de la navigation (pager)."]}),"\n",(0,i.jsxs)(n.li,{children:["G\xe9n\xe8re une fonction ",(0,i.jsx)(n.code,{children:"executeExpression()"})," qui permettra d'ex\xe9cuter les expressions VTL"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"navigation",children:"Navigation"}),"\n",(0,i.jsxs)(n.p,{children:["Ces actions (",(0,i.jsx)(n.code,{children:"ActionKind.GO_PREVIOUS_PAGE"}),", ",(0,i.jsx)(n.code,{children:"ActionKind.GO_NEXT_PAGE"}),", ",(0,i.jsx)(n.code,{children:"ActionKind.GO_TO_PAGE"}),") sont d\xe9clench\xe9es par les ",(0,i.jsx)(n.a,{href:"../hook/navigation",children:"m\xe9thodes de navigation"}),". Lors de cette op\xe9ration un nouveau ",(0,i.jsx)(n.code,{children:"pager"})," va \xeatre calcul\xe9 en fonction de la position dans le formulaire. Cette action est appel\xe9 avec les donn\xe9es suivantes :"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"name"}),", nom de la variable modifi\xe9e"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"value"}),", nouvelle valeur"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"iteration"}),", l'it\xe9ration sur laquelle on se trouve (cette it\xe9ration est repr\xe9sent\xe9e sous forme d'un tableau, car dans le cas du ",(0,i.jsx)(n.a,{href:"../components/aggregators/pairwise",children:"PairWise"})," il y a 2 niveaux de profondeur)"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"changement-de-valeurs",children:"Changement de valeurs"}),"\n",(0,i.jsxs)(n.p,{children:["Cette action (",(0,i.jsx)(n.code,{children:"ActionKind.HANDLE_CHANGES"}),") est d\xe9clench\xe9e lorsque l'utilisateur modifie une ou plusieurs valeurs dans le formulaire. Lors de cette op\xe9ration les valeurs chang\xe9es vont \xeatre enregistr\xe9es par le dictionnaire."]}),"\n",(0,i.jsx)(n.h2,{id:"g\xe9n\xe9ration-des-composants",children:"G\xe9n\xe9ration des composants"}),"\n",(0,i.jsxs)(n.p,{children:["Lorsque l'\xe9tat change Lunatic va r\xe9g\xe9n\xe9rer la liste des composants \xe0 afficher. Cette g\xe9n\xe9ration se fait au travers de la fonction ",(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/use-lunatic/commons/get-components-from-state.ts#L6",children:(0,i.jsx)(n.code,{children:"getComponentsFromState()"})})," qui prendra l'\xe9tat en param\xe8tre et renverra la liste des composants (de leurs propri\xe9t\xe9s). Pour comprendre comment se passe ce remplissage, vous pouvez regarder le code de la m\xe9thode ",(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/use-lunatic/commons/fill-components/fill-components.ts#L59-L69",children:"fillComponent"})," qui s\xe9pare la logique."]})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>a});var s=t(6540);const i={},r=s.createContext(i);function o(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/6f0fe8bc.7e6da869.js b/website/assets/js/6f0fe8bc.7e6da869.js new file mode 100644 index 000000000..e2cb4d1d7 --- /dev/null +++ b/website/assets/js/6f0fe8bc.7e6da869.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5487],{9366:e=>{e.exports=JSON.parse('{"version":{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"typedocSidebar":[{"type":"category","label":"Typedoc API","items":[{"type":"category","label":"Classes","items":[{"type":"link","label":"VTLExpressionError","href":"/Lunatic/docs/api/classes/VTLExpressionError","docId":"api/classes/VTLExpressionError","unlisted":false},{"type":"link","label":"VTLInterpretationError","href":"/Lunatic/docs/api/classes/VTLInterpretationError","docId":"api/classes/VTLInterpretationError","unlisted":false},{"type":"link","label":"VTLMissingDependencies","href":"/Lunatic/docs/api/classes/VTLMissingDependencies","docId":"api/classes/VTLMissingDependencies","unlisted":false},{"type":"link","label":"VTLMissingDependency","href":"/Lunatic/docs/api/classes/VTLMissingDependency","docId":"api/classes/VTLMissingDependency","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Interfaces","items":[{"type":"link","label":"LunaticExtraProps","href":"/Lunatic/docs/api/interfaces/LunaticExtraProps","docId":"api/interfaces/LunaticExtraProps","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Type Aliases","items":[{"type":"link","label":"LunaticChangesHandler","href":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler","docId":"api/type-aliases/LunaticChangesHandler","unlisted":false},{"type":"link","label":"LunaticCollectedValue","href":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue","docId":"api/type-aliases/LunaticCollectedValue","unlisted":false},{"type":"link","label":"LunaticComponentDefinition","href":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition","docId":"api/type-aliases/LunaticComponentDefinition","unlisted":false},{"type":"link","label":"LunaticComponentProps","href":"/Lunatic/docs/api/type-aliases/LunaticComponentProps","docId":"api/type-aliases/LunaticComponentProps","unlisted":false},{"type":"link","label":"LunaticControl","href":"/Lunatic/docs/api/type-aliases/LunaticControl","docId":"api/type-aliases/LunaticControl","unlisted":false},{"type":"link","label":"LunaticData","href":"/Lunatic/docs/api/type-aliases/LunaticData","docId":"api/type-aliases/LunaticData","unlisted":false},{"type":"link","label":"LunaticError","href":"/Lunatic/docs/api/type-aliases/LunaticError","docId":"api/type-aliases/LunaticError","unlisted":false},{"type":"link","label":"LunaticExpression","href":"/Lunatic/docs/api/type-aliases/LunaticExpression","docId":"api/type-aliases/LunaticExpression","unlisted":false},{"type":"link","label":"LunaticOptions","href":"/Lunatic/docs/api/type-aliases/LunaticOptions","docId":"api/type-aliases/LunaticOptions","unlisted":false},{"type":"link","label":"LunaticPager","href":"/Lunatic/docs/api/type-aliases/LunaticPager","docId":"api/type-aliases/LunaticPager","unlisted":false},{"type":"link","label":"LunaticSlotComponents","href":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents","docId":"api/type-aliases/LunaticSlotComponents","unlisted":false},{"type":"link","label":"LunaticSource","href":"/Lunatic/docs/api/type-aliases/LunaticSource","docId":"api/type-aliases/LunaticSource","unlisted":false},{"type":"link","label":"LunaticState","href":"/Lunatic/docs/api/type-aliases/LunaticState","docId":"api/type-aliases/LunaticState","unlisted":false},{"type":"link","label":"LunaticStateVariable","href":"/Lunatic/docs/api/type-aliases/LunaticStateVariable","docId":"api/type-aliases/LunaticStateVariable","unlisted":false},{"type":"link","label":"LunaticValues","href":"/Lunatic/docs/api/type-aliases/LunaticValues","docId":"api/type-aliases/LunaticValues","unlisted":false},{"type":"link","label":"LunaticVariable","href":"/Lunatic/docs/api/type-aliases/LunaticVariable","docId":"api/type-aliases/LunaticVariable","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Variables","items":[{"type":"link","label":"Button","href":"/Lunatic/docs/api/variables/Button","docId":"api/variables/Button","unlisted":false},{"type":"link","label":"components","href":"/Lunatic/docs/api/variables/components","docId":"api/variables/components","unlisted":false}],"collapsed":true,"collapsible":true},{"type":"category","label":"Functions","items":[{"type":"link","label":"LunaticComponents","href":"/Lunatic/docs/api/functions/LunaticComponents","docId":"api/functions/LunaticComponents","unlisted":false},{"type":"link","label":"ModalControls","href":"/Lunatic/docs/api/functions/ModalControls","docId":"api/functions/ModalControls","unlisted":false},{"type":"link","label":"useLunatic","href":"/Lunatic/docs/api/functions/useLunatic","docId":"api/functions/useLunatic","unlisted":false}],"collapsed":true,"collapsible":true}],"collapsed":true,"collapsible":true,"href":"/Lunatic/docs/api/"}],"docs":[{"type":"link","label":"D\xe9marrage","href":"/Lunatic/docs/","docId":"intro","unlisted":false},{"type":"category","label":"hook useLunatic()","collapsed":false,"items":[{"type":"link","label":"Param\xe8tres","href":"/Lunatic/docs/hook/parameters","docId":"hook/parameters","unlisted":false},{"type":"link","label":"Retour","href":"/Lunatic/docs/hook/return","docId":"hook/return","unlisted":false},{"type":"link","label":"Navigation","href":"/Lunatic/docs/hook/navigation","docId":"hook/navigation","unlisted":false},{"type":"link","label":"Gestion des contr\xf4les","href":"/Lunatic/docs/hook/controls","docId":"hook/controls","unlisted":false}],"collapsible":true,"href":"/Lunatic/docs/category/hook-uselunatic"},{"type":"link","label":"Afficher le formulaire","href":"/Lunatic/docs/components/lunatic-components","docId":"components/lunatic-components","unlisted":false},{"type":"link","label":"Personnalisation","href":"/Lunatic/docs/components/personnalisation","docId":"components/personnalisation","unlisted":false},{"type":"category","label":"Composants","collapsed":false,"items":[{"type":"link","label":"Propri\xe9t\xe9s de base","href":"/Lunatic/docs/components/base","docId":"components/base","unlisted":false},{"type":"category","label":"Balisage","collapsed":true,"items":[{"type":"link","label":"Sequence & SubSequence","href":"/Lunatic/docs/components/decorations/sequence","docId":"components/decorations/sequence","unlisted":false},{"type":"link","label":"Question","href":"/Lunatic/docs/components/decorations/question","docId":"components/decorations/question","unlisted":false},{"type":"link","label":"FilterDescription","href":"/Lunatic/docs/components/decorations/filter-description","docId":"components/decorations/filter-description","unlisted":false}],"collapsible":true,"href":"/Lunatic/docs/category/balisage"},{"type":"category","label":"Champs","collapsed":true,"items":[{"type":"link","label":"Input","href":"/Lunatic/docs/components/fields/input","docId":"components/fields/input","unlisted":false},{"type":"link","label":"InputNumber","href":"/Lunatic/docs/components/fields/input-number","docId":"components/fields/input-number","unlisted":false},{"type":"link","label":"Textarea","href":"/Lunatic/docs/components/fields/textarea","docId":"components/fields/textarea","unlisted":false},{"type":"link","label":"Datepicker","href":"/Lunatic/docs/components/fields/datepicker","docId":"components/fields/datepicker","unlisted":false},{"type":"link","label":"Duration","href":"/Lunatic/docs/components/fields/duration","docId":"components/fields/duration","unlisted":false},{"type":"link","label":"Dropdown","href":"/Lunatic/docs/components/fields/dropdown","docId":"components/fields/dropdown","unlisted":false},{"type":"link","label":"Suggester","href":"/Lunatic/docs/components/fields/suggester","docId":"components/fields/suggester","unlisted":false},{"type":"link","label":"Radio","href":"/Lunatic/docs/components/fields/radio","docId":"components/fields/radio","unlisted":false},{"type":"link","label":"CheckboxOne","href":"/Lunatic/docs/components/fields/checkboxOne","docId":"components/fields/checkboxOne","unlisted":false},{"type":"link","label":"CheckboxBoolean","href":"/Lunatic/docs/components/fields/checkboxBoolean","docId":"components/fields/checkboxBoolean","unlisted":false},{"type":"link","label":"CheckboxGroup","href":"/Lunatic/docs/components/fields/checkboxGroup","docId":"components/fields/checkboxGroup","unlisted":false},{"type":"link","label":"Table","href":"/Lunatic/docs/components/fields/table","docId":"components/fields/table","unlisted":false},{"type":"link","label":"Text","href":"/Lunatic/docs/components/fields/text","docId":"components/fields/text","unlisted":false}],"collapsible":true,"href":"/Lunatic/docs/category/champs"},{"type":"category","label":"Agr\xe9gateurs","collapsed":true,"items":[{"type":"link","label":"Loop","href":"/Lunatic/docs/components/aggregators/loop","docId":"components/aggregators/loop","unlisted":false},{"type":"link","label":"RosterForLoop","href":"/Lunatic/docs/components/aggregators/rosterForLoop","docId":"components/aggregators/rosterForLoop","unlisted":false},{"type":"link","label":"Roundabout","href":"/Lunatic/docs/components/aggregators/roundabout","docId":"components/aggregators/roundabout","unlisted":false},{"type":"link","label":"PairwiseLinks","href":"/Lunatic/docs/components/aggregators/pairwise","docId":"components/aggregators/pairwise","unlisted":false}],"collapsible":true,"href":"/Lunatic/docs/category/agr\xe9gateurs"}],"collapsible":true,"href":"/Lunatic/docs/category/composants"},{"type":"link","label":"VTL","href":"/Lunatic/docs/vtl","docId":"vtl","unlisted":false},{"type":"category","label":"Fonctionnement interne","items":[{"type":"link","label":"\xc9tat & Reducer","href":"/Lunatic/docs/internal/reducer","docId":"internal/reducer","unlisted":false},{"type":"link","label":"Resizing","href":"/Lunatic/docs/internal/resizing","docId":"internal/resizing","unlisted":false},{"type":"link","label":"Cleaning","href":"/Lunatic/docs/internal/cleaning","docId":"internal/cleaning","unlisted":false},{"type":"link","label":"Missing","href":"/Lunatic/docs/internal/missing","docId":"internal/missing","unlisted":false}],"collapsed":true,"collapsible":true,"href":"/Lunatic/docs/category/fonctionnement-interne"}]},"docs":{"api/classes/VTLExpressionError":{"id":"api/classes/VTLExpressionError","title":"Class: VTLExpressionError","description":"Extends","sidebar":"typedocSidebar"},"api/classes/VTLInterpretationError":{"id":"api/classes/VTLInterpretationError","title":"Class: VTLInterpretationError","description":"Extends","sidebar":"typedocSidebar"},"api/classes/VTLMissingDependencies":{"id":"api/classes/VTLMissingDependencies","title":"Class: VTLMissingDependencies","description":"Extends","sidebar":"typedocSidebar"},"api/classes/VTLMissingDependency":{"id":"api/classes/VTLMissingDependency","title":"Class: VTLMissingDependency","description":"Extends","sidebar":"typedocSidebar"},"api/functions/LunaticComponents":{"id":"api/functions/LunaticComponents","title":"Function: LunaticComponents()","description":"LunaticComponents\\\\(namedParameters): Element","sidebar":"typedocSidebar"},"api/functions/ModalControls":{"id":"api/functions/ModalControls","title":"Function: ModalControls()","description":"ModalControls(props): ReactPortal \\\\| null","sidebar":"typedocSidebar"},"api/functions/useLunatic":{"id":"api/functions/useLunatic","title":"Function: useLunatic()","description":"useLunatic(source, data, argOptions): LunaticState","sidebar":"typedocSidebar"},"api/index":{"id":"api/index","title":"@inseefr/lunatic","description":"Classes","sidebar":"typedocSidebar"},"api/interfaces/LunaticExtraProps":{"id":"api/interfaces/LunaticExtraProps","title":"Interface: LunaticExtraProps","description":"","sidebar":"typedocSidebar"},"api/type-aliases/LunaticChangesHandler":{"id":"api/type-aliases/LunaticChangesHandler","title":"Type Alias: LunaticChangesHandler()","description":"LunaticChangesHandler: (args) => void","sidebar":"typedocSidebar"},"api/type-aliases/LunaticCollectedValue":{"id":"api/type-aliases/LunaticCollectedValue","title":"Type Alias: LunaticCollectedValue","description":"LunaticCollectedValue: Partial\\\\","sidebar":"typedocSidebar"},"api/type-aliases/LunaticComponentDefinition":{"id":"api/type-aliases/LunaticComponentDefinition","title":"Type Alias: LunaticComponentDefinition\\\\<T\\\\>","description":"LunaticComponentDefinition\\\\: ComponentDefinition & object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticComponentProps":{"id":"api/type-aliases/LunaticComponentProps","title":"Type Alias: LunaticComponentProps\\\\<T\\\\>","description":"LunaticComponentProps\\\\: ComponentPropsByType\\\\[T\\\\]","sidebar":"typedocSidebar"},"api/type-aliases/LunaticControl":{"id":"api/type-aliases/LunaticControl","title":"Type Alias: LunaticControl","description":"LunaticControl: ControlDefinition","sidebar":"typedocSidebar"},"api/type-aliases/LunaticData":{"id":"api/type-aliases/LunaticData","title":"Type Alias: LunaticData","description":"LunaticData: Partial\\\\, Record\\\\\\\\> & object\\\\>","sidebar":"typedocSidebar"},"api/type-aliases/LunaticError":{"id":"api/type-aliases/LunaticError","title":"Type Alias: LunaticError","description":"LunaticError: Pick\\\\ & object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticExpression":{"id":"api/type-aliases/LunaticExpression","title":"Type Alias: LunaticExpression","description":"LunaticExpression: VTLExpression \\\\| VTLScalarExpression","sidebar":"typedocSidebar"},"api/type-aliases/LunaticOptions":{"id":"api/type-aliases/LunaticOptions","title":"Type Alias: LunaticOptions","description":"LunaticOptions: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticPager":{"id":"api/type-aliases/LunaticPager","title":"Type Alias: LunaticPager","description":"LunaticPager: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticSlotComponents":{"id":"api/type-aliases/LunaticSlotComponents","title":"Type Alias: LunaticSlotComponents","description":"LunaticSlotComponents: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticSource":{"id":"api/type-aliases/LunaticSource","title":"Type Alias: LunaticSource","description":"LunaticSource: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticState":{"id":"api/type-aliases/LunaticState","title":"Type Alias: LunaticState","description":"LunaticState: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticStateVariable":{"id":"api/type-aliases/LunaticStateVariable","title":"Type Alias: LunaticStateVariable","description":"LunaticStateVariable Object }\\\\[[LunaticVariable\\\\[\\"variableType\\"\\\\]\\\\]","sidebar":"typedocSidebar"},"api/type-aliases/LunaticValues":{"id":"api/type-aliases/LunaticValues","title":"Type Alias: LunaticValues","description":"LunaticValues: object","sidebar":"typedocSidebar"},"api/type-aliases/LunaticVariable":{"id":"api/type-aliases/LunaticVariable","title":"Type Alias: LunaticVariable","description":"LunaticVariable: Variable","sidebar":"typedocSidebar"},"api/variables/Button":{"id":"api/variables/Button","title":"Variable: Button","description":"const Button: ComponentType\\\\","sidebar":"typedocSidebar"},"api/variables/components":{"id":"api/variables/components","title":"Variable: components","description":"const components: object","sidebar":"typedocSidebar"},"components/aggregators/loop":{"id":"components/aggregators/loop","title":"Loop","description":"Le composant Loop (parfois appel\xe9 BlockForLoop) permet de cr\xe9er une boucle permettant de poser une s\xe9rie de questions plusieurs fois (exemple: demander des informations sur plusieurs personnes).","sidebar":"docs"},"components/aggregators/pairwise":{"id":"components/aggregators/pairwise","title":"PairwiseLinks","description":"Le composant lien 2 \xe0 2 permet de d\xe9finir des relations bidirectionnelles entre les donn\xe9es.","sidebar":"docs"},"components/aggregators/rosterForLoop":{"id":"components/aggregators/rosterForLoop","title":"RosterForLoop","description":"Le composant RosterForLoop fonctionne comme une boucle non pagin\xe9e mais pr\xe9sente les diff\xe9rents champs dans un tableau.","sidebar":"docs"},"components/aggregators/roundabout":{"id":"components/aggregators/roundabout","title":"Roundabout","description":"Ce composant se comporte comme une boucle avec une page carrefour qui permet de sauter \xe0 n\'importe quelle it\xe9ration.","sidebar":"docs"},"components/base":{"id":"components/base","title":"Propri\xe9t\xe9s de base","description":"Les champs qui composent un formulaire Lunatic sont d\xe9finis dans la propri\xe9t\xe9 components du fichier source JSON. Certaines propri\xe9t\xe9s sont communes \xe0 tous les composants :","sidebar":"docs"},"components/decorations/filter-description":{"id":"components/decorations/filter-description","title":"FilterDescription","description":"Le composant FilterDescription permet de d\'ajouter du contexte \xe0 un filtre. Cet \xe9l\xe9ment n\'a pas vocation \xe0 \xeatre utilis\xe9 dans la version web des formulaires et ne sera donc jamais retourn\xe9 dans la liste des composants.","sidebar":"docs"},"components/decorations/question":{"id":"components/decorations/question","title":"Question","description":"Le composant Question entoure une question en lui donnant un contexte suppl\xe9mentaire avec un titre une description et des d\xe9clarations.","sidebar":"docs"},"components/decorations/sequence":{"id":"components/decorations/sequence","title":"Sequence & SubSequence","description":"Les composants Sequence et SubSequence permettent de d\xe9marrer une s\xe9quence de question et n\'ont pour but de n\'afficher que des informations textuelles \xe0 l\'utilisateur (\xe9quivalent s\xe9mantique \xe0 des titres de premiers et second niveau).","sidebar":"docs"},"components/fields/checkboxBoolean":{"id":"components/fields/checkboxBoolean","title":"CheckboxBoolean","description":"Affiche une case \xe0 cocher \\"Oui\\" / \\"Non\\"","sidebar":"docs"},"components/fields/checkboxGroup":{"id":"components/fields/checkboxGroup","title":"CheckboxGroup","description":"Affiche une liste de case \xe0 cocher. Chaque case sera associ\xe9 \xe0 une variable sp\xe9cifique pr\xe9cis\xe9 au travers de l\'option responses. Chaque r\xe9ponse prendra la valeur true ou false en fonction de l\'\xe9tat de la case \xe0 cocher.","sidebar":"docs"},"components/fields/checkboxOne":{"id":"components/fields/checkboxOne","title":"CheckboxOne","description":"Permet de s\xe9lectionner une valeur parmi une liste d\'option. Le fonctionnement est similaire \xe0 celui des radios si ce n\'est que la case peut \xeatre d\xe9cochable.","sidebar":"docs"},"components/fields/datepicker":{"id":"components/fields/datepicker","title":"Datepicker","description":"Le composant Datepicker permet \xe0 l\'utilisateur de s\xe9lectionner une date.","sidebar":"docs"},"components/fields/dropdown":{"id":"components/fields/dropdown","title":"Dropdown","description":"Le composant permet de g\xe9n\xe9rer un menu d\xe9roulant.","sidebar":"docs"},"components/fields/duration":{"id":"components/fields/duration","title":"Duration","description":"Le composant Duration permet \xe0 l\'utilisateur de renseigner une dur\xe9e. Elle peut \xeatre d\xe9finie en :","sidebar":"docs"},"components/fields/input":{"id":"components/fields/input","title":"Input","description":"Le composant Input permet d\'afficher un simple champ texte.","sidebar":"docs"},"components/fields/input-number":{"id":"components/fields/input-number","title":"InputNumber","description":"Le composant InputNumber permet d\'afficher un champ num\xe9rique.","sidebar":"docs"},"components/fields/radio":{"id":"components/fields/radio","title":"Radio","description":"Permet de s\xe9lectionner une valeur parmi une liste d\'option","sidebar":"docs"},"components/fields/suggester":{"id":"components/fields/suggester","title":"Suggester","description":"Le composant de Suggester permet d\'avoir un menu d\xe9roulant avec une option de recherche.","sidebar":"docs"},"components/fields/table":{"id":"components/fields/table","title":"Table","description":"Le composant Table est un composant permettant d\'afficher un tableau d\'information \xe0 l\'utilisateur.","sidebar":"docs"},"components/fields/text":{"id":"components/fields/text","title":"Text","description":"Le composant Text permet d\'afficher du texte. L\'objectif de ce composant est d\'\xeatre r\xe9utilis\xe9 en tant qu\'enfant d\'autres composants.","sidebar":"docs"},"components/fields/textarea":{"id":"components/fields/textarea","title":"Textarea","description":"Le composant Textarea permet d\'afficher un champ texte multiligne.","sidebar":"docs"},"components/lunatic-components":{"id":"components/lunatic-components","title":"Afficher le formulaire","description":"Le hook useLunatic() renvoie une m\xe9thode getComponents() qui permet de r\xe9cup\xe9rer les composants \xe0 afficher dans l\'application. Cette m\xe9thode renvoie un tableau contenant les propri\xe9t\xe9s des diff\xe9rents composants et c\'est \xe0 l\'orchestrateur de g\xe9rer leur affichage en utilisant la propri\xe9t\xe9 componentType pour s\xe9lectionner le bon composant.","sidebar":"docs"},"components/personnalisation":{"id":"components/personnalisation","title":"Personnalisation","description":"Par d\xe9faut, les composants propos\xe9s par @inseefr/lunatic sont assez simples avec un style minimal. Vous pouvez personnaliser les champs avec votre propre CSS, mais pour des cas plus complexes, vous pouvez remplacer les composants de bases par vos propres composants \xe0 l\'aide de l\'option slots.","sidebar":"docs"},"hook/controls":{"id":"hook/controls","title":"Gestion des contr\xf4les","description":"Les contr\xf4les permettent de d\xe9finir les r\xe8gles de validation dans le questionnaire (sous forme d\'expression VTL). Le hook useLunatic fournit une fonction compileControls permettant d\'ex\xe9cuter ces contr\xf4les et de r\xe9cup\xe9rer les erreurs.","sidebar":"docs"},"hook/navigation":{"id":"hook/navigation","title":"Navigation","description":"Par d\xe9faut le formulaire est d\xe9compos\xe9 en plusieurs pages qui peuvent \xeatre atteinte par le biais d\'une navigation. L\'interface visuelle de la navigation n\'est pas incluse dans @inseefr/lunatic et c\'est \xe0 l\'orchestrateur d\'ajouter les \xe9l\xe9ments de navigations. Le hook fournit plusieurs m\xe9thodes pour simplifier le travail.","sidebar":"docs"},"hook/parameters":{"id":"hook/parameters","title":"Param\xe8tres","description":"Le premier point d\'entr\xe9e avec la librairie est le hook useLunatic(source, data, options) qui prend 3 arguments :","sidebar":"docs"},"hook/return":{"id":"hook/return","title":"Retour","description":"Le hook useLunatic retourne un objet de type LunaticState","sidebar":"docs"},"hook/track-changes":{"id":"hook/track-changes","title":"Suivi des changements","description":"Afin de simplifier le suivi des changements @inseefr/lunatic offre un syst\xe8me int\xe9gr\xe9 permettant d\'obtenir les variables modifi\xe9es entre 2 \xe9tapes. Cela permet par exemple de mettre en place une synchronisation partielle des donn\xe9es au fil du remplissage du formulaire (plut\xf4t que d\'attendre la finalisation du formulaire)."},"internal/cleaning":{"id":"internal/cleaning","title":"Cleaning","description":"Le cleaning permet de nettoyer des variables lors d\'un changement d\'une autre variable. Cela permet de supprimer les valeurs associ\xe9es \xe0 des composants qui seraient saut\xe9s par exemple.","sidebar":"docs"},"internal/missing":{"id":"internal/missing","title":"Missing","description":"Le syst\xe8me de missing permet \xe0 l\'utilisateur d\'indiquer qu\'il ne connait pas ou ne souhaite pas r\xe9pondre \xe0 la question. Le choix de ne pas r\xe9pondre est sauvegard\xe9 dans une variable distincte, mais doit aussi vider la valeur entr\xe9e pour la variable originale. Ce syst\xe8me est semblable \xe0 celui du cleaning mais la d\xe9claration se fait diff\xe9remment au travers de la propri\xe9t\xe9 missingBlock.","sidebar":"docs"},"internal/reducer":{"id":"internal/reducer","title":"\xc9tat & Reducer","description":"Cette partie est destin\xe9e aux personnes qui explorent le code de Lunatic. L\'objectif est d\'offrir une version g\xe9n\xe9raliste du fonctionnement de la biblioth\xe8que.","sidebar":"docs"},"internal/resizing":{"id":"internal/resizing","title":"Resizing","description":"Le resizing permet de synchroniser la taille de plusieurs variables. Par exemple lorsque l\'on rajoute des personnes, on va ajuster la liste des ages. Ce processus est d\xe9clar\xe9 dans la propri\xe9t\xe9 resizing.","sidebar":"docs"},"intro":{"id":"intro","title":"D\xe9marrage","description":"Lunatic est une biblioth\xe8que React pour afficher des questionnaires con\xe7us sur l\'outil Pogues et g\xe9n\xe9r\xe9s au format Lunatic-Model via Eno.","sidebar":"docs"},"vtl":{"id":"vtl","title":"VTL","description":"Il est possible \xe0 plusieurs endroits dans la d\xe9finition des composants d\'utiliser la syntaxe VTL.","sidebar":"docs"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/72b55bd9.c7a68712.js b/website/assets/js/72b55bd9.c7a68712.js new file mode 100644 index 000000000..7a620320d --- /dev/null +++ b/website/assets/js/72b55bd9.c7a68712.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6255],{4264:(e,n,s)=>{"use strict";s.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var a=s(7119),i=s(6487),r=s(3007);const l="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",o="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var d=s(7020),u=s(4848);const c={};function p(e){let{source:n,data:p=c,options:x}=e;const m=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(a.A,{children:[(0,u.jsx)(i.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(r.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(i.A,{value:"data",label:"Data",children:(0,u.jsx)(r.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(a.A,{children:[(0,u.jsx)(i.A,{value:"code",label:"Code",children:(0,u.jsx)(r.A,{language:"tsx",className:t.FormExampleCode,children:m?o:l})}),(0,u.jsx)(i.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(d.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=m?s(5152).g:s(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:x})}})})})]})]})}},3314:(e,n,s)=>{"use strict";s.d(n,{S:()=>i});var t=s(1999),a=s(4848);function i(e){let{source:n,data:s}=e;const{getComponents:i,Provider:r}=(0,t.O1)(n,s,{initialPage:"1"});return(0,a.jsx)(r,{children:(0,a.jsx)(t.R2,{components:i()})})}},5152:(e,n,s)=>{"use strict";s.d(n,{g:()=>r});var t=s(1999),a=s(6540),i=s(4848);function r(e){let{source:n,data:s,options:r}=e;const{getComponents:l,isLastPage:o,isFirstPage:d,goPreviousPage:u,goNextPage:c,Provider:p,compileControls:x}=(0,t.O1)(n,s,{initialPage:"1",...r}),[m,v]=(0,a.useState)();return(0,i.jsxs)("div",{children:[(0,i.jsx)(p,{children:(0,i.jsx)(t.R2,{components:l(),componentProps:()=>({errors:m?.currentErrors})})}),(0,i.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,i.jsx)("button",{className:"button button--primary",disabled:d,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,i.jsx)("button",{className:"button button--primary",disabled:o,onClick:()=>{const e=x();e.currentErrors?v(e):c()},children:"Suivant"})]}),m&&(0,i.jsx)(t.I1,{errors:m.currentErrors,goNext:()=>{v(void 0),c()},onClose:()=>{v(void 0)},isCritical:m.isCritical})]})}},4890:(e,n,s)=>{"use strict";s.r(n),s.d(n,{assets:()=>u,contentTitle:()=>d,default:()=>x,frontMatter:()=>o,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"components/aggregators/pairwise","title":"PairwiseLinks","description":"Le composant lien 2 \xe0 2 permet de d\xe9finir des relations bidirectionnelles entre les donn\xe9es.","source":"@site/docs/components/aggregators/pairwise.mdx","sourceDirName":"components/aggregators","slug":"/components/aggregators/pairwise","permalink":"/Lunatic/docs/components/aggregators/pairwise","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/aggregators/pairwise.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Roundabout","permalink":"/Lunatic/docs/components/aggregators/roundabout"},"next":{"title":"VTL","permalink":"/Lunatic/docs/vtl"}}');var a=s(4848),i=s(8453),r=s(4264);const l=JSON.parse('{"maxPage":"5","components":[{"id":"seq","componentType":"Sequence","label":{"value":"\\"Description des individus de votre logement\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"1"},{"id":"loop-prenom","componentType":"RosterForLoop","label":{"value":"\\"Ajouter un individu\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"bindingDependencies":["PRENOM"],"lines":{"min":{"value":"1","type":"VTL"},"max":{"value":"10","type":"VTL"}},"page":"1","components":[{"componentType":"Input","label":{"value":"\\"Pr\xe9nom\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["PRENOM"],"id":"prenom","response":{"name":"PRENOM"}}]},{"id":"age-loop","componentType":"Loop","paginatedLoop":true,"iterations":{"value":"count(PRENOM)","type":"VTL"},"page":"2","maxPage":"1","conditionFilter":{"value":"true","type":"VTL"},"loopDependencies":["PRENOM"],"components":[{"id":"age-quest","label":{"value":"\\"\xc2ge de \\" || PRENOM","type":"VTL|MD"},"conditionFilter":{"type":"VTL","value":"true"},"componentType":"InputNumber","page":"2.1","response":{"name":"AGE"}}]},{"id":"pairwise-links","componentType":"PairwiseLinks","conditionFilter":{"value":"true","type":"VTL"},"xAxisIterations":{"value":"count(PRENOM)","type":"VTL"},"yAxisIterations":{"value":"count(PRENOM)","type":"VTL"},"page":"3","symLinks":{"LINKS":{"1":"1","2":"3","3":"2","4":"4","5":"6","6":"5","7":"8","8":"7","9":"10","10":"9","11":"13","12":"12","13":"11","14":null,"15":"15","16":"16","17":"17","18":"18"}},"components":[{"componentType":"Dropdown","id":"dropdown-1","conditionFilter":{"value":"xAxis <> yAxis","type":"VTL"},"label":{"value":"\\"Qui est \\" || yAxis || \\" pour \\" || xAxis || \\" ?\\"","type":"VTL|MD"},"response":{"name":"LINKS"},"options":[{"value":"1","label":{"value":"\\"Son conjoint, sa conjointe\\"","type":"VTL"}},{"value":"2","label":{"value":"\\"Sa m\xe8re, son p\xe8re\\"","type":"VTL"}},{"value":"3","label":{"value":"\\"Sa fille, son fils\\"","type":"VTL"}},{"value":"4","label":{"value":"\\"Sa soeur, son fr\xe8re (y compris demi et quasi)\\"","type":"VTL"}},{"value":"5","label":{"value":"\\"Sa belle-m\xe8re, son beau-p\xe8re (conjoint.e d\'un des parents)\\"","type":"VTL"}},{"value":"6","label":{"value":"\\"L\'enfant du conjoint (belle-fille, beau-fils)\\"","type":"VTL"}},{"value":"7","label":{"value":"\\"Sa belle-m\xe8re, son beau-p\xe8re (parent du conjoint)\\"","type":"VTL"}},{"value":"8","label":{"value":"\\"Sa belle-fille, son beau-fils (conjoint.e d\'un enfant)\\"","type":"VTL"}},{"value":"9","label":{"value":"\\"Sa grand-m\xe8re, son grand-p\xe8re\\"","type":"VTL"}},{"value":"10","label":{"value":"\\"Sa petite-fille, petit-fils\\"","type":"VTL"}},{"value":"11","label":{"value":"\\"Sa tante, son oncle\\"","type":"VTL"}},{"value":"12","label":{"value":"\\"Sa cousine, son cousin\\"","type":"VTL"}},{"value":"13","label":{"value":"\\"Sa ni\xe8ce, son neveu\\"","type":"VTL"}},{"value":"14","label":{"value":"\\"Un enfant plac\xe9 en famille d\'accueil\\"","type":"VTL"}},{"value":"15","label":{"value":"\\"Sa belle-soeur, son beau-fr\xe8re\\"","type":"VTL"}},{"value":"16","label":{"value":"\\"Un autre lien familial\\"","type":"VTL"}},{"value":"17","label":{"value":"\\"Un colocataire, sous-locataire\\"","type":"VTL"}},{"value":"18","label":{"value":"\\"Autre lien (employ\xe9 de maison, salari\xe9 log\xe9, jeune au pair \u2026)\\"","type":"VTL"}}]},{"componentType":"Textarea","label":{"value":"\\"Pouvez-vous d\xe9crire le lien entre \\" || xAxis || \\" et \\" || yAxis || \\" ?\\"","type":"VTL|MD"},"conditionFilter":{"value":"LINKS = \\"17\\"","type":"VTL"},"id":"other","response":{"name":"OTHER"}}]},{"id":"pariwise-block","componentType":"Loop","paginatedLoop":true,"iterations":{"value":"count(PRENOM)","type":"VTL"},"page":"4","maxPage":"1","conditionFilter":{"value":"true","type":"VTL"},"loopDependencies":["PRENOM"],"components":[{"componentType":"Textarea","page":"4.1","label":{"value":"PRENOM || \\", why do you live without your parents?\\"","type":"VTL|MD"},"conditionFilter":{"value":"\\"3\\" not_in LINKS and AGE < 18","type":"VTL"},"id":"why","response":{"name":"WHY"}}]},{"componentType":"Sequence","label":{"type":"VTL","value":"\\"END\\""},"page":"5","id":"end"}],"variables":[{"variableType":"COLLECTED","name":"PRENOM","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}},{"variableType":"COLLECTED","name":"AGE","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}},{"variableType":"COLLECTED","name":"LINKS","values":{"PREVIOUS":[[null]],"COLLECTED":[[null]],"FORCED":[[null]],"EDITED":[[null]],"INPUTTED":[[null]]}},{"variableType":"COLLECTED","name":"OTHER","values":{"PREVIOUS":[[null]],"COLLECTED":[[null]],"FORCED":[[null]],"EDITED":[[null]],"INPUTTED":[[null]]}},{"variableType":"COLLECTED","name":"WHY","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}},{"variableType":"CALCULATED","name":"xAxis","expression":{"value":"PRENOM","type":"VTL"},"bindingDependencies":["PRENOM"],"shapeFrom":"PRENOM","inFilter":"false"},{"variableType":"CALCULATED","name":"yAxis","expression":{"value":"PRENOM","type":"VTL"},"bindingDependencies":["PRENOM"],"shapeFrom":"PRENOM","inFilter":"false"}],"resizing":{"PRENOM":{"sizeForLinksVariables":["count(PRENOM)","count(PRENOM)"],"linksVariables":["LINKS"]}}}'),o={},d="PairwiseLinks",u={},c=[{value:"symLinks",id:"symlinks",level:2},{value:"xAxis et yAxis",id:"xaxis-et-yaxis",level:2},{value:"Format des donn\xe9es",id:"format-des-donn\xe9es",level:2}];function p(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"pairwiselinks",children:"PairwiseLinks"})}),"\n",(0,a.jsxs)(n.p,{children:["Le composant ",(0,a.jsx)(n.strong,{children:"lien 2 \xe0 2"})," permet de d\xe9finir des relations bidirectionnelles entre les donn\xe9es."]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.strong,{children:"xAxisIterations"}),", nombre d'\xe9l\xe9ments sur le premier axe"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.strong,{children:"yAxisIterations"}),", nombre d'\xe9l\xe9ments sur le second axe"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.strong,{children:"components"}),", liste des questions \xe0 poser pour chaque combinaison possible"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.strong,{children:"symLinks"}),", d\xe9finit la relation bidirectionnelle entre les donn\xe9es"]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"symlinks",children:"symLinks"}),"\n",(0,a.jsx)(n.p,{children:"L'option symLinks va permettre d'indiquer la valeur inverse \xe0 une valeur s\xe9lectionn\xe9e. Si on prend l'exemple d'un s\xe9lect avec 3 valeurs"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-json",children:'{\n "symLinks": {\n "LINKS": {\n "\xe9poux": "\xe9poux",\n "fils": "parent",\n "parent": "fils"\n }\n }\n}\n'})}),"\n",(0,a.jsxs)(n.p,{children:["De cette mani\xe8re lorsqu'on indiquera que ",(0,a.jsx)(n.strong,{children:"X"})," est ",(0,a.jsx)(n.strong,{children:'"fils"'})," de ",(0,a.jsx)(n.strong,{children:"Y"}),", le syst\xe8me changera aussi la relation inverse pour indiquer que ",(0,a.jsx)(n.strong,{children:"Y"})," est ",(0,a.jsx)(n.strong,{children:'"parent"'})," de ",(0,a.jsx)(n.strong,{children:"X"}),"."]}),"\n",(0,a.jsx)(n.h2,{id:"xaxis-et-yaxis",children:"xAxis et yAxis"}),"\n",(0,a.jsxs)(n.p,{children:["Lorsque le pairwise est utilis\xe9, 2 variables calcul\xe9es vont agir de mani\xe8re sp\xe9ciale afin de pouvoir renvoyer les bonnes indications \xe0 l'utilisateur : ",(0,a.jsx)(n.strong,{children:"xAxis"})," et ",(0,a.jsx)(n.strong,{children:"yAxis"}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-json",children:'[\n {\n "variableType": "CALCULATED",\n "name": "xAxis",\n "expression": { "value": "PRENOM", "type": "VTL" },\n "bindingDependencies": ["PRENOM"]\n },\n {\n "variableType": "CALCULATED",\n "name": "yAxis",\n "expression": { "value": "PRENOM", "type": "VTL" },\n "bindingDependencies": ["PRENOM"]\n }\n]\n'})}),"\n",(0,a.jsx)(n.p,{children:"Si ces variables sont utilis\xe9es dans une expression d'un composant du pairwise, le syst\xe8me de calcul ira piocher l'\xe9l\xe9ment au bon index."}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-json",children:'{\n "label": {\n "value": "\\"Qui est \\" || yAxis || \\" pour \\" || xAxis || \\" ?\\"",\n "type": "VTL|MD"\n }\n}\n'})}),"\n","\n",(0,a.jsx)(r.L,{source:l,data:{COLLECTED:{PRENOM:{COLLECTED:["Maman","Papa","Fils"]},AGE:{COLLECTED:[30,29,5]},LINKS:{COLLECTED:[[null]]},OTHER:{COLLECTED:[[null]]}}},options:{initialPage:"3"}}),"\n",(0,a.jsx)(n.h2,{id:"format-des-donn\xe9es",children:"Format des donn\xe9es"}),"\n",(0,a.jsx)(n.p,{children:"Les donn\xe9es sont sauvegard\xe9es sous forme d'un tableau \xe0 2 dimensions"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{children:"x \\ y"}),(0,a.jsx)(n.th,{children:"Maman"}),(0,a.jsx)(n.th,{children:"Papa"}),(0,a.jsx)(n.th,{children:"Fils"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Maman"}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Papa"}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Fils"}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{})]})]})]}),"\n",(0,a.jsx)(n.p,{children:'Si on souhaite indiquer la r\xe9lation Parent (valeur "2") et enfant (valeur "3").\nEn suivant la question "qui est Y pour X ?" le tableau sera compl\xe9t\xe9 de la mani\xe8re suivante.'}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{children:"x \\ y"}),(0,a.jsx)(n.th,{children:"Maman"}),(0,a.jsx)(n.th,{children:"Papa"}),(0,a.jsx)(n.th,{children:"Fils"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Maman"}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{children:"3"})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Papa"}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{}),(0,a.jsx)(n.td,{children:"3"})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{children:"Fils"}),(0,a.jsx)(n.td,{children:"2"}),(0,a.jsx)(n.td,{children:"2"}),(0,a.jsx)(n.td,{})]})]})]}),"\n",(0,a.jsx)(n.p,{children:"Ce qui donnera ce tableau en JavaScript"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-js",children:'[\n [null, null, "3" ],\n [null, null, "3" ],\n ["2", "2", null]\n]\n'})})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/7306.e2ddab41.js b/website/assets/js/7306.e2ddab41.js new file mode 100644 index 000000000..9a4d70dc8 --- /dev/null +++ b/website/assets/js/7306.e2ddab41.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7306],{7306:(t,e,r)=>{r.d(e,{diagram:()=>W});var a=r(540),i=r(9),n=r(697),s=r(7),o=r(2334);const c=[];for(let U=0;U<256;++U)c.push((U+256).toString(16).slice(1));function l(t,e=0){return c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]}const h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const d=function(t){return"string"==typeof t&&h.test(t)};const u=function(t){if(!d(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function y(t,e,r,a){switch(t){case 0:return e&r^~e&a;case 1:case 3:return e^r^a;case 2:return e&r^e&a^r&a}}function p(t,e){return t<<e|t>>>32-e}const _=function(t,e,r){function a(t,a,i,n){var s;if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof a&&(a=u(a)),16!==(null===(s=a)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let o=new Uint8Array(16+t.length);if(o.set(a),o.set(t,a.length),o=r(o),o[6]=15&o[6]|e,o[8]=63&o[8]|128,i){n=n||0;for(let t=0;t<16;++t)i[n+t]=o[t];return i}return l(o)}try{a.name=t}catch(i){}return a.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",a.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",a}("v5",80,(function(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const a=t.length/4+2,i=Math.ceil(a/16),n=new Array(i);for(let s=0;s<i;++s){const e=new Uint32Array(16);for(let r=0;r<16;++r)e[r]=t[64*s+4*r]<<24|t[64*s+4*r+1]<<16|t[64*s+4*r+2]<<8|t[64*s+4*r+3];n[s]=e}n[i-1][14]=8*(t.length-1)/Math.pow(2,32),n[i-1][14]=Math.floor(n[i-1][14]),n[i-1][15]=8*(t.length-1)&4294967295;for(let s=0;s<i;++s){const t=new Uint32Array(80);for(let e=0;e<16;++e)t[e]=n[s][e];for(let e=16;e<80;++e)t[e]=p(t[e-3]^t[e-8]^t[e-14]^t[e-16],1);let a=r[0],i=r[1],o=r[2],c=r[3],l=r[4];for(let r=0;r<80;++r){const n=Math.floor(r/20),s=p(a,5)+y(n,i,o,c)+l+e[n]+t[r]>>>0;l=c,c=o,o=p(i,30)>>>0,i=a,a=s}r[0]=r[0]+a>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+o>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}));var f=function(){var t=(0,i.K2)((function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r}),"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],a=[1,11],n=[1,12],s=[1,13],o=[1,14],c=[1,15],l=[1,21],h=[1,22],d=[1,23],u=[1,24],y=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],_=[1,34],f=[27,28,46,47],E=[41,42,43,44,45],g=[17,34],m=[1,54],O=[1,53],k=[17,34,36,38],b={trace:(0,i.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:(0,i.K2)((function(t,e,r,a,i,n,s){var o=n.length-1;switch(i){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:case 19:case 43:case 27:case 28:case 31:this.$=n[o];break;case 8:a.addEntity(n[o-4]),a.addEntity(n[o-2]),a.addRelationship(n[o-4],n[o],n[o-2],n[o-3]);break;case 9:a.addEntity(n[o-3]),a.addAttributes(n[o-3],n[o-1]);break;case 10:a.addEntity(n[o-2]);break;case 11:a.addEntity(n[o]);break;case 12:a.addEntity(n[o-6],n[o-4]),a.addAttributes(n[o-6],n[o-1]);break;case 13:a.addEntity(n[o-5],n[o-3]);break;case 14:a.addEntity(n[o-3],n[o-1]);break;case 15:case 16:this.$=n[o].trim(),a.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),a.setAccDescription(this.$);break;case 20:case 41:case 42:case 32:this.$=n[o].replace(/"/g,"");break;case 21:case 29:this.$=[n[o]];break;case 22:n[o].push(n[o-1]),this.$=n[o];break;case 23:this.$={attributeType:n[o-1],attributeName:n[o]};break;case 24:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeKeyTypeList:n[o]};break;case 25:this.$={attributeType:n[o-2],attributeName:n[o-1],attributeComment:n[o]};break;case 26:this.$={attributeType:n[o-3],attributeName:n[o-2],attributeKeyTypeList:n[o-1],attributeComment:n[o]};break;case 30:n[o-2].push(n[o]),this.$=n[o-2];break;case 33:this.$={cardA:n[o],relType:n[o-1],cardB:n[o-2]};break;case 34:this.$=a.Cardinality.ZERO_OR_ONE;break;case 35:this.$=a.Cardinality.ZERO_OR_MORE;break;case 36:this.$=a.Cardinality.ONE_OR_MORE;break;case 37:this.$=a.Cardinality.ONLY_ONE;break;case 38:this.$=a.Cardinality.MD_PARENT;break;case 39:this.$=a.Identification.NON_IDENTIFYING;break;case 40:this.$=a.Identification.IDENTIFYING}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:a,24:n,26:s,27:o,28:c},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:a,24:n,26:s,27:o,28:c},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:l,42:h,43:d,44:u,45:y}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:o,28:c},{16:30,17:[1,31],29:32,30:33,34:_},{11:35,27:o,28:c},{40:36,46:[1,37],47:[1,38]},t(f,[2,34]),t(f,[2,35]),t(f,[2,36]),t(f,[2,37]),t(f,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:_},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:l,42:h,43:d,44:u,45:y},t(E,[2,39]),t(E,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(g,[2,23],{32:50,33:51,35:52,37:m,38:O}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(g,[2,24],{33:56,36:[1,57],38:O}),t(g,[2,25]),t(k,[2,29]),t(g,[2,32]),t(k,[2,31]),{16:58,17:[1,59],29:32,30:33,34:_},t(g,[2,26]),{35:60,37:m},{17:[1,61]},t(e,[2,13]),t(k,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:(0,i.K2)((function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)}),"parseError"),parse:(0,i.K2)((function(t){var e=this,r=[0],a=[],n=[null],s=[],o=this.table,c="",l=0,h=0,d=0,u=s.slice.call(arguments,1),y=Object.create(this.lexer),p={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(p.yy[_]=this.yy[_]);y.setInput(t,p.yy),p.yy.lexer=y,p.yy.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;s.push(f);var E=y.options&&y.options.ranges;function g(){var t;return"number"!=typeof(t=a.pop()||y.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)((function(t){r.length=r.length-2*t,n.length=n.length-t,s.length=s.length-t}),"popStack"),(0,i.K2)(g,"lex");for(var m,O,k,b,R,N,x,T,A,M={};;){if(k=r[r.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==m&&(m=g()),b=o[k]&&o[k][m]),void 0===b||!b.length||!b[0]){var w="";for(N in A=[],o[k])this.terminals_[N]&&N>2&&A.push("'"+this.terminals_[N]+"'");w=y.showPosition?"Parse error on line "+(l+1)+":\n"+y.showPosition()+"\nExpecting "+A.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(w,{text:y.match,token:this.terminals_[m]||m,line:y.yylineno,loc:f,expected:A})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+m);switch(b[0]){case 1:r.push(m),n.push(y.yytext),s.push(y.yylloc),r.push(b[1]),m=null,O?(m=O,O=null):(h=y.yyleng,c=y.yytext,l=y.yylineno,f=y.yylloc,d>0&&d--);break;case 2:if(x=this.productions_[b[1]][1],M.$=n[n.length-x],M._$={first_line:s[s.length-(x||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(x||1)].first_column,last_column:s[s.length-1].last_column},E&&(M._$.range=[s[s.length-(x||1)].range[0],s[s.length-1].range[1]]),void 0!==(R=this.performAction.apply(M,[c,h,l,p.yy,b[1],n,s].concat(u))))return R;x&&(r=r.slice(0,-1*x*2),n=n.slice(0,-1*x),s=s.slice(0,-1*x)),r.push(this.productions_[b[1]][0]),n.push(M.$),s.push(M._$),T=o[r[r.length-2]][r[r.length-1]],r.push(T);break;case 3:return!0}}return!0}),"parse")},R=function(){return{EOF:1,parseError:(0,i.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,i.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,i.K2)((function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,i.K2)((function(){return this._more=!0,this}),"more"),reject:(0,i.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,i.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,e){var r,a,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var n in i)this[n]=i[n];return!1}return!1}),"test_match"),next:(0,i.K2)((function(){if(this.done)return this.EOF;var t,e,r,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),n=0;n<i.length;n++)if((r=this._input.match(this.rules[i[n]]))&&(!e||r[0].length>e[0].length)){if(e=r,a=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[n])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,i.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,i.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,i.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,i.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,i.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,i.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,i.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)((function(t,e,r,a){switch(r){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:case 15:case 20:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 16:return 37;case 17:case 18:return 34;case 19:return 38;case 21:return this.popState(),17;case 22:case 54:return e.yytext[0];case 23:return 18;case 24:return 19;case 25:case 29:case 30:case 43:return 41;case 26:case 27:case 28:case 36:case 38:case 45:return 43;case 31:case 32:case 33:case 34:case 35:case 37:case 44:return 42;case 39:case 40:case 41:case 42:return 44;case 46:return 45;case 47:case 50:case 51:case 52:return 46;case 48:case 49:return 47;case 53:return 27;case 55:return 6}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}}}();function N(){this.yy={}}return b.lexer=R,(0,i.K2)(N,"Parser"),N.prototype=b,b.Parser=N,new N}();f.parser=f;var E=f,g=new Map,m=[],O=(0,i.K2)((function(t,e=void 0){return g.has(t)?!g.get(t).alias&&e&&(g.get(t).alias=e,i.Rm.info(`Add alias '${e}' to entity '${t}'`)):(g.set(t,{attributes:[],alias:e}),i.Rm.info("Added new entity :",t)),g.get(t)}),"addEntity"),k=(0,i.K2)((()=>g),"getEntities"),b=(0,i.K2)((function(t,e){let r,a=O(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),i.Rm.debug("Added attribute ",e[r].attributeName)}),"addAttributes"),R=(0,i.K2)((function(t,e,r,a){let n={entityA:t,roleA:e,entityB:r,relSpec:a};m.push(n),i.Rm.debug("Added new relationship :",n)}),"addRelationship"),N=(0,i.K2)((()=>m),"getRelationships"),x=(0,i.K2)((function(){g=new Map,m=[],(0,i.IU)()}),"clear"),T={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},getConfig:(0,i.K2)((()=>(0,i.D7)().er),"getConfig"),addEntity:O,addAttributes:b,getEntities:k,addRelationship:R,getRelationships:N,clear:x,setAccTitle:i.SV,getAccTitle:i.iN,setAccDescription:i.EI,getAccDescription:i.m7,setDiagramTitle:i.ke,getDiagramTitle:i.ab},A={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},M={ERMarkers:A,insertMarkers:(0,i.K2)((function(t,e){let r;t.append("defs").append("marker").attr("id",A.MD_PARENT_START).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",A.MD_PARENT_END).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",A.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",A.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",A.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",A.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",A.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",A.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",A.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",A.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}),"insertMarkers")},w=/[^\dA-Za-z](\W)*/g,I={},D=new Map,S=(0,i.K2)((function(t){const e=Object.keys(t);for(const r of e)I[r]=t[r]}),"setConf"),v=(0,i.K2)(((t,e,r)=>{const a=I.entityPadding/3,n=I.entityPadding/3,s=.85*I.fontSize,o=e.node().getBBox(),c=[];let l=!1,h=!1,d=0,u=0,y=0,p=0,_=o.height+2*a,f=1;r.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(l=!0),void 0!==t.attributeComment&&(h=!0)})),r.forEach((r=>{const n=`${e.node().id}-attr-${f}`;let o=0;const E=(0,i.QO)(r.attributeType),g=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.D7)().fontFamily).style("font-size",s+"px").text(E),m=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.D7)().fontFamily).style("font-size",s+"px").text(r.attributeName),O={};O.tn=g,O.nn=m;const k=g.node().getBBox(),b=m.node().getBBox();if(d=Math.max(d,k.width),u=Math.max(u,b.width),o=Math.max(k.height,b.height),l){const e=void 0!==r.attributeKeyTypeList?r.attributeKeyTypeList.join(","):"",a=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.D7)().fontFamily).style("font-size",s+"px").text(e);O.kn=a;const c=a.node().getBBox();y=Math.max(y,c.width),o=Math.max(o,c.height)}if(h){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${n}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",(0,i.D7)().fontFamily).style("font-size",s+"px").text(r.attributeComment||"");O.cn=e;const a=e.node().getBBox();p=Math.max(p,a.width),o=Math.max(o,a.height)}O.height=o,c.push(O),_+=o+2*a,f+=1}));let E=4;l&&(E+=2),h&&(E+=2);const g=d+u+y+p,m={width:Math.max(I.minEntityWidth,Math.max(o.width+2*I.entityPadding,g+n*E)),height:r.length>0?_:Math.max(I.minEntityHeight,o.height+2*I.entityPadding)};if(r.length>0){const r=Math.max(0,(m.width-g-n*E)/(E/2));e.attr("transform","translate("+m.width/2+","+(a+o.height/2)+")");let i=o.height+2*a,s="attributeBoxOdd";c.forEach((e=>{const o=i+a+e.height/2;e.tn.attr("transform","translate("+n+","+o+")");const c=t.insert("rect","#"+e.tn.node().id).classed(`er ${s}`,!0).attr("x",0).attr("y",i).attr("width",d+2*n+r).attr("height",e.height+2*a),_=parseFloat(c.attr("x"))+parseFloat(c.attr("width"));e.nn.attr("transform","translate("+(_+n)+","+o+")");const f=t.insert("rect","#"+e.nn.node().id).classed(`er ${s}`,!0).attr("x",_).attr("y",i).attr("width",u+2*n+r).attr("height",e.height+2*a);let E=parseFloat(f.attr("x"))+parseFloat(f.attr("width"));if(l){e.kn.attr("transform","translate("+(E+n)+","+o+")");const c=t.insert("rect","#"+e.kn.node().id).classed(`er ${s}`,!0).attr("x",E).attr("y",i).attr("width",y+2*n+r).attr("height",e.height+2*a);E=parseFloat(c.attr("x"))+parseFloat(c.attr("width"))}h&&(e.cn.attr("transform","translate("+(E+n)+","+o+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${s}`,"true").attr("x",E).attr("y",i).attr("width",p+2*n+r).attr("height",e.height+2*a)),i+=e.height+2*a,s="attributeBoxOdd"===s?"attributeBoxEven":"attributeBoxOdd"}))}else m.height=Math.max(I.minEntityHeight,_),e.attr("transform","translate("+m.width/2+","+m.height/2+")");return m}),"drawAttributes"),L=(0,i.K2)((function(t,e,r){let a;return[...e.keys()].forEach((function(n){const s=F(n,"entity");D.set(n,s);const o=t.append("g").attr("id",s);a=void 0===a?s:a;const c="text-"+s,l=o.append("text").classed("er entityLabel",!0).attr("id",c).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",(0,i.D7)().fontFamily).style("font-size",I.fontSize+"px").text(e.get(n).alias??n),{width:h,height:d}=v(o,l,e.get(n).attributes),u=o.insert("rect","#"+c).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",h).attr("height",d).node().getBBox();r.setNode(s,{width:u.width,height:u.height,shape:"rect",id:s})})),a}),"drawEntities"),$=(0,i.K2)((function(t,e){e.nodes().forEach((function(r){void 0!==r&&void 0!==e.node(r)&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")}))}),"adjustEntities"),K=(0,i.K2)((function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")}),"getEdgeName"),C=(0,i.K2)((function(t,e){return t.forEach((function(t){e.setEdge(D.get(t.entityA),D.get(t.entityB),{relationship:t},K(t))})),t}),"addRelationships"),B=0,P=(0,i.K2)((function(t,e,r,a,n){B++;const o=r.edge(D.get(e.entityA),D.get(e.entityB),K(e)),c=(0,s.n8j)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.qrM),l=t.insert("path","#"+a).classed("er relationshipLine",!0).attr("d",c(o.points)).style("stroke",I.stroke).style("fill","none");e.relSpec.relType===n.db.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");let h="";switch(I.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case n.db.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+h+"#"+M.ERMarkers.ZERO_OR_ONE_END+")");break;case n.db.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+h+"#"+M.ERMarkers.ZERO_OR_MORE_END+")");break;case n.db.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+h+"#"+M.ERMarkers.ONE_OR_MORE_END+")");break;case n.db.Cardinality.ONLY_ONE:l.attr("marker-end","url("+h+"#"+M.ERMarkers.ONLY_ONE_END+")");break;case n.db.Cardinality.MD_PARENT:l.attr("marker-end","url("+h+"#"+M.ERMarkers.MD_PARENT_END+")")}switch(e.relSpec.cardB){case n.db.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+h+"#"+M.ERMarkers.ZERO_OR_ONE_START+")");break;case n.db.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+h+"#"+M.ERMarkers.ZERO_OR_MORE_START+")");break;case n.db.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+h+"#"+M.ERMarkers.ONE_OR_MORE_START+")");break;case n.db.Cardinality.ONLY_ONE:l.attr("marker-start","url("+h+"#"+M.ERMarkers.ONLY_ONE_START+")");break;case n.db.Cardinality.MD_PARENT:l.attr("marker-start","url("+h+"#"+M.ERMarkers.MD_PARENT_START+")")}const d=l.node().getTotalLength(),u=l.node().getPointAtLength(.5*d),y="rel"+B,p=e.roleA.split(/<br ?\/>/g),_=t.append("text").classed("er relationshipLabel",!0).attr("id",y).attr("x",u.x).attr("y",u.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",(0,i.D7)().fontFamily).style("font-size",I.fontSize+"px");if(1==p.length)_.text(e.roleA);else{const t=.5*-(p.length-1);p.forEach(((e,r)=>{_.append("tspan").attr("x",u.x).attr("dy",`${0===r?t:1}em`).text(e)}))}const f=_.node().getBBox();t.insert("rect","#"+y).classed("er relationshipLabelBox",!0).attr("x",u.x-f.width/2).attr("y",u.y-f.height/2).attr("width",f.width).attr("height",f.height)}),"drawRelationshipFromLayout"),Y=(0,i.K2)((function(t,e,r,c){I=(0,i.D7)().er,i.Rm.info("Drawing ER diagram");const l=(0,i.D7)().securityLevel;let h;"sandbox"===l&&(h=(0,s.Ltv)("#i"+e));const d=("sandbox"===l?(0,s.Ltv)(h.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select(`[id='${e}']`);let u;M.insertMarkers(d,I),u=new n.T({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:I.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const y=L(d,c.db.getEntities(),u),p=C(c.db.getRelationships(),u);(0,o.Zp)(u),$(d,u),p.forEach((function(t){P(d,t,u,y,c)}));const _=I.diagramPadding;a._K.insertTitle(d,"entityTitleText",I.titleTopMargin,c.db.getDiagramTitle());const f=d.node().getBBox(),E=f.width+2*_,g=f.height+2*_;(0,i.a$)(d,g,E,I.useMaxWidth),d.attr("viewBox",`${f.x-_} ${f.y-_} ${E} ${g}`)}),"draw"),Z="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function F(t="",e=""){const r=t.replace(w,"");return`${z(e)}${z(r)}${_(t,Z)}`}function z(t=""){return t.length>0?`${t}-`:""}(0,i.K2)(F,"generateId"),(0,i.K2)(z,"strWithHyphen");var W={parser:E,db:T,renderer:{setConf:S,draw:Y},styles:(0,i.K2)((t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n \n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/7354.f2073142.js b/website/assets/js/7354.f2073142.js new file mode 100644 index 000000000..af30b4879 --- /dev/null +++ b/website/assets/js/7354.f2073142.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7354],{7354:(e,r,a)=>{a.d(r,{diagram:()=>c});var t=a(6144),s=a(7286),n=a(9),d=a(8731),i={parse:(0,n.K2)((async e=>{const r=await(0,d.qg)("info",e);n.Rm.debug(r)}),"parse")},o={version:t.r},c={parser:i,db:{getVersion:(0,n.K2)((()=>o.version),"getVersion")},renderer:{draw:(0,n.K2)(((e,r,a)=>{n.Rm.debug("rendering info diagram\n"+e);const t=(0,s.D)(r);(0,n.a$)(t,100,400,!0);t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${a}`)}),"draw")}}}}]); \ No newline at end of file diff --git a/website/assets/js/7357.a69ceee5.js b/website/assets/js/7357.a69ceee5.js new file mode 100644 index 000000000..04d393217 --- /dev/null +++ b/website/assets/js/7357.a69ceee5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7357],{3933:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(9).K2)(r,"populateCommonDb")},7357:(t,e,a)=>{a.d(e,{diagram:()=>x});var r=a(3933),n=a(540),o=a(7286),l=a(9),i=a(8731),c={packet:[]},s=structuredClone(c),d=l.UI.packet,k=(0,l.K2)((()=>{const t=(0,n.$t)({...d,...(0,l.zj)().packet});return t.showBits&&(t.paddingY+=10),t}),"getConfig"),p=(0,l.K2)((()=>s.packet),"getPacket"),b={pushWord:(0,l.K2)((t=>{t.length>0&&s.packet.push(t)}),"pushWord"),getPacket:p,getConfig:k,clear:(0,l.K2)((()=>{(0,l.IU)(),s=structuredClone(c)}),"clear"),setAccTitle:l.SV,getAccTitle:l.iN,setDiagramTitle:l.ke,getDiagramTitle:l.ab,getAccDescription:l.m7,setAccDescription:l.EI},g=(0,l.K2)((t=>{(0,r.S)(t,b);let e=-1,a=[],n=1;const{bitsPerRow:o}=b.getConfig();for(let{start:r,end:i,label:c}of t.blocks){if(i&&i<r)throw new Error(`Packet block ${r} - ${i} is invalid. End must be greater than start.`);if(r!==e+1)throw new Error(`Packet block ${r} - ${i??r} is not contiguous. It should start from ${e+1}.`);for(e=i??r,l.Rm.debug(`Packet block ${r} - ${e} with label ${c}`);a.length<=o+1&&b.getPacket().length<1e4;){const[t,e]=h({start:r,end:i,label:c},n,o);if(a.push(t),t.end+1===n*o&&(b.pushWord(a),a=[],n++),!e)break;({start:r,end:i,label:c}=e)}}b.pushWord(a)}),"populate"),h=(0,l.K2)(((t,e,a)=>{if(void 0===t.end&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*a?[t,void 0]:[{start:t.start,end:e*a-1,label:t.label},{start:e*a,end:t.end,label:t.label}]}),"getNextFittingBlock"),f={parse:(0,l.K2)((async t=>{const e=await(0,i.qg)("packet",t);l.Rm.debug(e),g(e)}),"parse")},u=(0,l.K2)(((t,e,a,r)=>{const n=r.db,i=n.getConfig(),{rowHeight:c,paddingY:s,bitWidth:d,bitsPerRow:k}=i,p=n.getPacket(),b=n.getDiagramTitle(),g=c+s,h=g*(p.length+1)-(b?0:c),f=d*k+2,u=(0,o.D)(e);u.attr("viewbox",`0 0 ${f} ${h}`),(0,l.a$)(u,h,f,i.useMaxWidth);for(const[o,l]of p.entries())$(u,l,o,i);u.append("text").text(b).attr("x",f/2).attr("y",h-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")}),"draw"),$=(0,l.K2)(((t,e,a,{rowHeight:r,paddingX:n,paddingY:o,bitWidth:l,bitsPerRow:i,showBits:c})=>{const s=t.append("g"),d=a*(r+o)+o;for(const k of e){const t=k.start%i*l+1,e=(k.end-k.start+1)*l-n;if(s.append("rect").attr("x",t).attr("y",d).attr("width",e).attr("height",r).attr("class","packetBlock"),s.append("text").attr("x",t+e/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(k.label),!c)continue;const a=k.end===k.start,o=d-2;s.append("text").attr("x",t+(a?e/2:0)).attr("y",o).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",a?"middle":"start").text(k.start),a||s.append("text").attr("x",t+e).attr("y",o).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(k.end)}}),"drawWord"),w={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},x={parser:f,db:b,renderer:{draw:u},styles:(0,l.K2)((({packet:t}={})=>{const e=(0,n.$t)(w,t);return`\n\t.packetByte {\n\t\tfont-size: ${e.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${e.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${e.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${e.labelColor};\n\t\tfont-size: ${e.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${e.titleColor};\n\t\tfont-size: ${e.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${e.blockStrokeColor};\n\t\tstroke-width: ${e.blockStrokeWidth};\n\t\tfill: ${e.blockFillColor};\n\t}\n\t`}),"styles")}}}]); \ No newline at end of file diff --git a/website/assets/js/758.2de31dbb.js b/website/assets/js/758.2de31dbb.js new file mode 100644 index 000000000..3d9c2b392 --- /dev/null +++ b/website/assets/js/758.2de31dbb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[758],{6474:(t,e,s)=>{s.d(e,{A:()=>r,P:()=>o});var i=s(9),n=s(7),r=(0,i.K2)(((t,e)=>{let s;"sandbox"===e&&(s=(0,n.Ltv)("#i"+t));return("sandbox"===e?(0,n.Ltv)(s.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${t}"]`)}),"getDiagramElement"),o=(0,i.K2)(((t,e,s,n)=>{t.attr("class",s);const{width:r,height:o,x:c,y:h}=a(t,e);(0,i.a$)(t,o,r,n);const d=l(c,h,r,o,e);t.attr("viewBox",d),i.Rm.debug(`viewBox configured: ${d} with padding: ${e}`)}),"setupViewPortForSVG"),a=(0,i.K2)(((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}}),"calculateDimensionsWithPadding"),l=(0,i.K2)(((t,e,s,i,n)=>`${t-n} ${e-n} ${s} ${i}`),"createViewBox")},758:(t,e,s)=>{s.d(e,{Zk:()=>l,iP:()=>Bt,q7:()=>w,tM:()=>Ft});var i=s(6474),n=s(7308),r=s(540),o=s(9),a=function(){var t=(0,o.K2)((function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s}),"o"),e=[1,2],s=[1,3],i=[1,4],n=[2,4],r=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,32],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],_=[1,27],b=[1,28],T=[1,29],k=[1,30],E=[1,31],x=[1,34],D=[1,35],C=[1,36],$=[1,37],v=[1,33],L=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],A=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],K={trace:(0,o.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,o.K2)((function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var l=r[a],c=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 34:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 35:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 36:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 44:case 45:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}}),"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:r,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:_,37:b,38:T,42:k,45:E,48:x,49:D,50:C,51:$,54:v},t(L,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:_,37:b,38:T,42:k,45:E,48:x,49:D,50:C,51:$,54:v},t(L,[2,7]),t(L,[2,8]),t(L,[2,9]),t(L,[2,10]),t(L,[2,11]),t(L,[2,12],{14:[1,39],15:[1,40]}),t(L,[2,16]),{18:[1,41]},t(L,[2,18],{20:[1,42]}),{23:[1,43]},t(L,[2,22]),t(L,[2,23]),t(L,[2,24]),t(L,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(L,[2,28]),{34:[1,48]},{36:[1,49]},t(L,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(I,[2,42],{55:[1,54]}),t(I,[2,43],{55:[1,55]}),t(L,[2,36]),t(L,[2,37]),t(L,[2,38]),t(L,[2,39]),t(L,[2,6]),t(L,[2,13]),{13:56,24:u,54:v},t(L,[2,17]),t(A,n,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(L,[2,29]),t(L,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(L,[2,14],{14:[1,67]}),{4:r,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,68],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:_,37:b,38:T,42:k,45:E,48:x,49:D,50:C,51:$,54:v},t(L,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(L,[2,32]),t(L,[2,33]),t(L,[2,34]),t(L,[2,35]),t(I,[2,44]),t(I,[2,45]),t(L,[2,15]),t(L,[2,19]),t(A,n,{7:72}),t(L,[2,26]),t(L,[2,27]),{4:r,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,73],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:_,37:b,38:T,42:k,45:E,48:x,49:D,50:C,51:$,54:v},t(L,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:(0,o.K2)((function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)}),"parseError"),parse:(0,o.K2)((function(t){var e=this,s=[0],i=[],n=[null],r=[],a=this.table,l="",c=0,h=0,d=0,u=r.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;r.push(f);var m=p.options&&p.options.ranges;function S(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K2)((function(t){s.length=s.length-2*t,n.length=n.length-t,r.length=r.length-t}),"popStack"),(0,o.K2)(S,"lex");for(var _,b,T,k,E,x,D,C,$,v={};;){if(T=s[s.length-1],this.defaultActions[T]?k=this.defaultActions[T]:(null==_&&(_=S()),k=a[T]&&a[T][_]),void 0===k||!k.length||!k[0]){var L="";for(x in $=[],a[T])this.terminals_[x]&&x>2&&$.push("'"+this.terminals_[x]+"'");L=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(L,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:f,expected:$})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(k[0]){case 1:s.push(_),n.push(p.yytext),r.push(p.yylloc),s.push(k[1]),_=null,b?(_=b,b=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(D=this.productions_[k[1]][1],v.$=n[n.length-D],v._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},m&&(v._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(v,[l,h,c,y.yy,k[1],n,r].concat(u))))return E;D&&(s=s.slice(0,-1*D*2),n=n.slice(0,-1*D),r=r.slice(0,-1*D)),s.push(this.productions_[k[1]][0]),n.push(v.$),r.push(v._$),C=a[s[s.length-2]][s[s.length-1]],s.push(C);break;case 3:return!0}}return!0}),"parse")},R=function(){return{EOF:1,parseError:(0,o.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,o.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,o.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,o.K2)((function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,o.K2)((function(){return this._more=!0,this}),"more"),reject:(0,o.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,o.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,o.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,o.K2)((function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1}),"test_match"),next:(0,o.K2)((function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,o.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,o.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,o.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,o.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,o.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,o.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,o.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K2)((function(t,e,s,i){switch(s){case 0:return 41;case 1:case 42:return 48;case 2:case 43:return 49;case 3:case 44:return 50;case 4:case 45:return 51;case 5:case 6:case 8:case 9:case 10:case 11:case 54:case 56:case 62:break;case 7:case 77:return 5;case 12:case 32:return this.pushState("SCALE"),17;case 13:case 33:return 18;case 14:case 20:case 34:case 49:case 52:this.popState();break;case 15:return this.begin("acc_title"),33;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),35;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),38;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),39;case 25:return this.popState(),40;case 26:return this.pushState("CLASS"),45;case 27:return this.popState(),this.pushState("CLASS_STYLE"),46;case 28:return this.popState(),47;case 29:return this.pushState("STYLE"),42;case 30:return this.popState(),this.pushState("STYLEDEF_STYLES"),43;case 31:return this.popState(),44;case 35:this.pushState("STATE");break;case 36:case 39:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 46:this.pushState("STATE_STRING");break;case 47:return this.pushState("STATE_ID"),"AS";case 48:case 64:return this.popState(),"ID";case 50:return"STATE_DESCR";case 51:return 19;case 53:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),56;case 59:return this.popState(),this.pushState("NOTE_ID"),57;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 54;case 72:return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 55;case 78:return"INVALID"}}),"anonymous"),rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,29,35,42,43,44,45,54,55,56,57,71,72,73,74,75],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[31],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[30],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,33,34],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[48],inclusive:!1},STATE_STRING:{rules:[49,50],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,36,37,38,39,40,41,46,47,51,52,53],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,35,53,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}}}();function w(){this.yy={}}return K.lexer=R,(0,o.K2)(w,"Parser"),w.prototype=K,K.Parser=w,new w}();a.parser=a;var l=a,c="state",h="relation",d="default",u="divider",p="fill:none",y="fill: #333",g="text",f="normal",m="rect",S="rectWithTitle",_="divider",b="roundedWithTitle",T="statediagram",k=`${T}-state`,E="transition",x=`${E} note-edge`,D=`${T}-note`,C=`${T}-cluster`,$=`${T}-cluster-alt`,v="parent",L="note",I="----",A=`${I}${L}`,K=`${I}${v}`,R=(0,o.K2)(((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s}),"getDir"),w={getClasses:(0,o.K2)((function(t,e){return e.db.extract(e.db.getRootDocV2()),e.db.getClasses()}),"getClasses"),draw:(0,o.K2)((async function(t,e,s,a){o.Rm.info("REF0:"),o.Rm.info("Drawing state diagram (v2)",e);const{securityLevel:l,state:c,layout:h}=(0,o.D7)();a.db.extract(a.db.getRootDocV2());const d=a.db.getData(),u=(0,i.A)(e,l);d.type=a.type,d.layoutAlgorithm=h,d.nodeSpacing=c?.nodeSpacing||50,d.rankSpacing=c?.rankSpacing||50,d.markers=["barb"],d.diagramId=e,await(0,n.XX)(d,u);r._K.insertTitle(u,"statediagramTitleText",c?.titleTopMargin??25,a.db.getDiagramTitle()),(0,i.P)(u,8,T,c?.useMaxWidth??!0)}),"draw"),getDir:R},O=new Map,N=0;function B(t="",e=0,s="",i=I){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}(0,o.K2)(B,"stateDomId");var F=(0,o.K2)(((t,e,s,i,n,r,a,l)=>{o.Rm.trace("items",e),e.forEach((e=>{switch(e.stmt){case c:case d:z(t,e,s,i,n,r,a,l);break;case h:{z(t,e.state1,s,i,n,r,a,l),z(t,e.state2,s,i,n,r,a,l);const c={id:"edge"+N,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:p,labelStyle:"",label:o.Y2.sanitizeText(e.description,(0,o.D7)()),arrowheadStyle:y,labelpos:"c",labelType:g,thickness:f,classes:E,look:a};n.push(c),N++}}}))}),"setupDoc"),P=(0,o.K2)(((t,e="TB")=>{let s=e;if(t.doc)for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s}),"getDir");function Y(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach((t=>{if(s.get(t)){const i=s.get(t);e.cssCompiledStyles=[...e.cssCompiledStyles,...i.styles]}})));const i=t.find((t=>t.id===e.id));i?Object.assign(i,e):t.push(e)}function G(t){return t?.classes?.join(" ")??""}function j(t){return t?.styles??[]}(0,o.K2)(Y,"insertOrUpdateNode"),(0,o.K2)(G,"getClassesFromDbInfo"),(0,o.K2)(j,"getStylesFromDbInfo");var z=(0,o.K2)(((t,e,s,i,n,r,a,l)=>{const c=e.id,h=s.get(c),T=G(h),E=j(h);if(o.Rm.info("dataFetcher parsedItem",e,h,E),"root"!==c){let s=m;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==d&&(s=e.type),O.get(c)||O.set(c,{id:c,shape:s,description:o.Y2.sanitizeText(c,(0,o.D7)()),cssClasses:`${T} ${k}`,cssStyles:E});const h=O.get(c);e.description&&(Array.isArray(h.description)?(h.shape=S,h.description.push(e.description)):h.description?.length>0?(h.shape=S,h.description===c?h.description=[e.description]:h.description=[h.description,e.description]):(h.shape=m,h.description=e.description),h.description=o.Y2.sanitizeTextOrArray(h.description,(0,o.D7)())),1===h.description?.length&&h.shape===S&&("group"===h.type?h.shape=b:h.shape=m),!h.type&&e.doc&&(o.Rm.info("Setting cluster for XCX",c,P(e)),h.type="group",h.isGroup=!0,h.dir=P(e),h.shape=e.type===u?_:b,h.cssClasses=`${h.cssClasses} ${C} ${r?$:""}`);const I={labelStyle:"",shape:h.shape,label:h.description,cssClasses:h.cssClasses,cssCompiledStyles:[],cssStyles:h.cssStyles,id:c,dir:h.dir,domId:B(c,N),type:h.type,isGroup:"group"===h.type,padding:8,rx:10,ry:10,look:a};if(I.shape===_&&(I.label=""),t&&"root"!==t.id&&(o.Rm.trace("Setting node ",c," to be child of its parent ",t.id),I.parentId=t.id),I.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,cssClasses:D,cssStyles:[],cssCompilesStyles:[],id:c+A+"-"+N,domId:B(c,N,L),type:h.type,isGroup:"group"===h.type,padding:(0,o.D7)().flowchart.padding,look:a,position:e.note.position},s=c+K,r={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:h.cssClasses,cssStyles:[],id:c+K,domId:B(c,N,v),type:"group",isGroup:!0,padding:16,look:a,position:e.note.position};N++,r.id=s,t.parentId=s,Y(i,r,l),Y(i,t,l),Y(i,I,l);let d=c,u=t.id;"left of"===e.note.position&&(d=t.id,u=c),n.push({id:d+"-"+u,start:d,end:u,arrowhead:"none",arrowTypeEnd:"",style:p,labelStyle:"",classes:x,arrowheadStyle:y,labelpos:"c",labelType:g,thickness:f,look:a})}else Y(i,I,l)}e.doc&&(o.Rm.trace("Adding nodes children "),F(e,e.doc,s,i,n,!r,a,l))}),"dataFetcher"),U=(0,o.K2)((()=>{O.clear(),N=0}),"reset"),M="[*]",X="start",V=M,W="color",H="fill";function J(){return new Map}(0,o.K2)(J,"newClassesList");var q=[],Z=[],Q="LR",tt=[],et=J(),st=(0,o.K2)((()=>({relations:[],states:new Map,documents:{}})),"newDoc"),it={root:st()},nt=it.root,rt=0,ot=0,at=(0,o.K2)((t=>JSON.parse(JSON.stringify(t))),"clone"),lt=(0,o.K2)((t=>{o.Rm.info("Setting root doc",t),tt=t}),"setRootDoc"),ct=(0,o.K2)((()=>tt),"getRootDoc"),ht=(0,o.K2)(((t,e,s)=>{if(e.stmt===h)ht(t,e.state1,!0),ht(t,e.state2,!1);else if(e.stmt===c&&("[*]"===e.id?(e.id=s?t.id+"_start":t.id+"_end",e.start=s):e.id=e.id.trim()),e.doc){const t=[];let s,i=[];for(s=0;s<e.doc.length;s++)if(e.doc[s].type===u){const n=at(e.doc[s]);n.doc=at(i),t.push(n),i=[]}else i.push(e.doc[s]);if(t.length>0&&i.length>0){const s={stmt:c,id:(0,r.$C)(),type:"divider",doc:at(i)};t.push(at(s)),e.doc=t}e.doc.forEach((t=>ht(e,t,!0)))}}),"docTranslator"),dt=(0,o.K2)((()=>(ht({id:"root"},{id:"root",doc:tt},!0),{id:"root",doc:tt})),"getRootDocV2"),ut=(0,o.K2)((t=>{let e;e=t.doc?t.doc:t,o.Rm.info(e),yt(!0),o.Rm.info("Extract initial document:",e),e.forEach((t=>{switch(o.Rm.warn("Statement",t.stmt),t.stmt){case c:pt(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case h:xt(t.state1,t.state2,t.description);break;case"classDef":vt(t.id.trim(),t.classes);break;case"style":{const e=t.id.trim().split(","),s=t.styleClass.split(",");e.forEach((t=>{let e=gt(t);if(void 0===e){const s=t.trim();pt(s),e=gt(s)}e.styles=s.map((t=>t.replace(/;/g,"")?.trim()))}))}break;case"applyClass":It(t.id.trim(),t.styleClass)}}));const s=ft(),i=(0,o.D7)().look;U(),z(void 0,dt(),s,q,Z,!0,i,et),q.forEach((t=>{if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error("Group nodes can only have label. Remove the additional description for node ["+t.id+"]");t.label=t.label[0]}}))}),"extract"),pt=(0,o.K2)((function(t,e=d,s=null,i=null,n=null,r=null,a=null,l=null){const c=t?.trim();if(nt.states.has(c)?(nt.states.get(c).doc||(nt.states.get(c).doc=s),nt.states.get(c).type||(nt.states.get(c).type=e)):(o.Rm.info("Adding state ",c,i),nt.states.set(c,{id:c,descriptions:[],type:e,doc:s,note:n,classes:[],styles:[],textStyles:[]})),i&&(o.Rm.info("Setting state description",c,i),"string"==typeof i&&Dt(c,i.trim()),"object"==typeof i&&i.forEach((t=>Dt(c,t.trim())))),n){const t=nt.states.get(c);t.note=n,t.note.text=o.Y2.sanitizeText(t.note.text,(0,o.D7)())}if(r){o.Rm.info("Setting state classes",c,r);("string"==typeof r?[r]:r).forEach((t=>It(c,t.trim())))}if(a){o.Rm.info("Setting state styles",c,a);("string"==typeof a?[a]:a).forEach((t=>At(c,t.trim())))}if(l){o.Rm.info("Setting state styles",c,a);("string"==typeof l?[l]:l).forEach((t=>Kt(c,t.trim())))}}),"addState"),yt=(0,o.K2)((function(t){q=[],Z=[],it={root:st()},nt=it.root,rt=0,et=J(),t||(0,o.IU)()}),"clear"),gt=(0,o.K2)((function(t){return nt.states.get(t)}),"getState"),ft=(0,o.K2)((function(){return nt.states}),"getStates"),mt=(0,o.K2)((function(){o.Rm.info("Documents = ",it)}),"logDocuments"),St=(0,o.K2)((function(){return nt.relations}),"getRelations");function _t(t=""){let e=t;return t===M&&(rt++,e=`${X}${rt}`),e}function bt(t="",e=d){return t===M?X:e}function Tt(t=""){let e=t;return t===V&&(e=`end${++rt}`),e}function kt(t="",e=d){return t===V?"end":e}function Et(t,e,s){let i=_t(t.id.trim()),n=bt(t.id.trim(),t.type),r=_t(e.id.trim()),a=bt(e.id.trim(),e.type);pt(i,n,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),pt(r,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),nt.relations.push({id1:i,id2:r,relationTitle:o.Y2.sanitizeText(s,(0,o.D7)())})}(0,o.K2)(_t,"startIdIfNeeded"),(0,o.K2)(bt,"startTypeIfNeeded"),(0,o.K2)(Tt,"endIdIfNeeded"),(0,o.K2)(kt,"endTypeIfNeeded"),(0,o.K2)(Et,"addRelationObjs");var xt=(0,o.K2)((function(t,e,s){if("object"==typeof t)Et(t,e,s);else{const i=_t(t.trim()),n=bt(t),r=Tt(e.trim()),a=kt(e);pt(i,n),pt(r,a),nt.relations.push({id1:i,id2:r,title:o.Y2.sanitizeText(s,(0,o.D7)())})}}),"addRelation"),Dt=(0,o.K2)((function(t,e){const s=nt.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s.descriptions.push(o.Y2.sanitizeText(i,(0,o.D7)()))}),"addDescription"),Ct=(0,o.K2)((function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()}),"cleanupLabel"),$t=(0,o.K2)((()=>"divider-id-"+ ++ot),"getDividerId"),vt=(0,o.K2)((function(t,e=""){et.has(t)||et.set(t,{id:t,styles:[],textStyles:[]});const s=et.get(t);null!=e&&e.split(",").forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(W).exec(t)){const t=e.replace(H,"bgFill").replace(W,H);s.textStyles.push(t)}s.styles.push(e)}))}),"addStyleClass"),Lt=(0,o.K2)((function(){return et}),"getClasses"),It=(0,o.K2)((function(t,e){t.split(",").forEach((function(t){let s=gt(t);if(void 0===s){const e=t.trim();pt(e),s=gt(e)}s.classes.push(e)}))}),"setCssClass"),At=(0,o.K2)((function(t,e){const s=gt(t);void 0!==s&&s.styles.push(e)}),"setStyle"),Kt=(0,o.K2)((function(t,e){const s=gt(t);void 0!==s&&s.textStyles.push(e)}),"setTextStyle"),Rt=(0,o.K2)((()=>Q),"getDirection"),wt=(0,o.K2)((t=>{Q=t}),"setDirection"),Ot=(0,o.K2)((t=>t&&":"===t[0]?t.substr(1).trim():t.trim()),"trimColon"),Nt=(0,o.K2)((()=>{const t=(0,o.D7)();return{nodes:q,edges:Z,other:{},config:t,direction:R(dt())}}),"getData"),Bt={getConfig:(0,o.K2)((()=>(0,o.D7)().state),"getConfig"),getData:Nt,addState:pt,clear:yt,getState:gt,getStates:ft,getRelations:St,getClasses:Lt,getDirection:Rt,addRelation:xt,getDividerId:$t,setDirection:wt,cleanupLabel:Ct,lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:mt,getRootDoc:ct,setRootDoc:lt,getRootDocV2:dt,extract:ut,trimColon:Ot,getAccTitle:o.iN,setAccTitle:o.SV,getAccDescription:o.m7,setAccDescription:o.EI,addStyleClass:vt,setCssClass:It,addDescription:Dt,setDiagramTitle:o.ke,getDiagramTitle:o.ab},Ft=(0,o.K2)((t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`),"getStyles")}}]); \ No newline at end of file diff --git a/website/assets/js/7691.7a088108.js b/website/assets/js/7691.7a088108.js new file mode 100644 index 000000000..3cc6f8870 --- /dev/null +++ b/website/assets/js/7691.7a088108.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7691],{7691:(t,e,n)=>{n.d(e,{diagram:()=>J});var i=n(9),s=n(7),r=n(3219),a=n(8041),o=n(5263),c=function(){var t=(0,i.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],s=[1,10],r=[1,11],a=[1,12],o=[1,13],c=[1,16],l=[1,17],h={trace:(0,i.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:(0,i.K2)((function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 15:i.addTask(r[o],0,""),this.$=r[o];break;case 16:i.addEvent(r[o].substr(2)),this.$=r[o]}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:s,14:r,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:(0,i.K2)((function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)}),"parseError"),parse:(0,i.K2)((function(t){var e=this,n=[0],s=[],r=[null],a=[],o=this.table,c="",l=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y.yy[g]=this.yy[g]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function x(){var t;return"number"!=typeof(t=s.pop()||p.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)((function(t){n.length=n.length-2*t,r.length=r.length-t,a.length=a.length-t}),"popStack"),(0,i.K2)(x,"lex");for(var b,k,_,w,v,K,S,$,E,T={};;){if(_=n[n.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==b&&(b=x()),w=o[_]&&o[_][b]),void 0===w||!w.length||!w[0]){var I="";for(K in E=[],o[_])this.terminals_[K]&&K>2&&E.push("'"+this.terminals_[K]+"'");I=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:f,expected:E})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(w[0]){case 1:n.push(b),r.push(p.yytext),a.push(p.yylloc),n.push(w[1]),b=null,k?(b=k,k=null):(h=p.yyleng,c=p.yytext,l=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[w[1]][1],T.$=r[r.length-S],T._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(T._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(T,[c,h,l,y.yy,w[1],r,a].concat(u))))return v;S&&(n=n.slice(0,-1*S*2),r=r.slice(0,-1*S),a=a.slice(0,-1*S)),n.push(this.productions_[w[1]][0]),r.push(T.$),a.push(T._$),$=o[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0}),"parse")},d=function(){return{EOF:1,parseError:(0,i.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,i.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,i.K2)((function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,i.K2)((function(){return this._more=!0,this}),"more"),reject:(0,i.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,i.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1}),"test_match"),next:(0,i.K2)((function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,i.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,i.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,i.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,i.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,i.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,i.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,i.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)((function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,(0,i.K2)(u,"Parser"),u.prototype=h,h.Parser=u,new u}();c.parser=c;var l=c,h={};(0,i.VA)(h,{addEvent:()=>w,addSection:()=>x,addTask:()=>_,addTaskOrg:()=>v,clear:()=>m,default:()=>S,getCommonDb:()=>f,getSections:()=>b,getTasks:()=>k});var d="",u=0,p=[],y=[],g=[],f=(0,i.K2)((()=>i.Wt),"getCommonDb"),m=(0,i.K2)((function(){p.length=0,y.length=0,d="",g.length=0,(0,i.IU)()}),"clear"),x=(0,i.K2)((function(t){d=t,p.push(t)}),"addSection"),b=(0,i.K2)((function(){return p}),"getSections"),k=(0,i.K2)((function(){let t=K();let e=0;for(;!t&&e<100;)t=K(),e++;return y.push(...g),y}),"getTasks"),_=(0,i.K2)((function(t,e,n){const i={id:u++,section:d,type:d,task:t,score:e||0,events:n?[n]:[]};g.push(i)}),"addTask"),w=(0,i.K2)((function(t){g.find((t=>t.id===u-1)).events.push(t)}),"addEvent"),v=(0,i.K2)((function(t){const e={section:d,type:d,description:t,task:t,classes:[]};y.push(e)}),"addTaskOrg"),K=(0,i.K2)((function(){const t=(0,i.K2)((function(t){return g[t].processed}),"compileTask");let e=!0;for(const[n,i]of g.entries())t(n),e=e&&i.processed;return e}),"compileTasks"),S={clear:m,getCommonDb:f,addSection:x,getSections:b,getTasks:k,addTask:_,addTaskOrg:v,addEvent:w},$=(0,i.K2)((function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n}),"drawRect"),E=(0,i.K2)((function(t,e){const n=15,r=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),a=t.append("g");function o(t){const i=(0,s.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(t){const i=(0,s.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,i.K2)(o,"smile"),(0,i.K2)(c,"sad"),(0,i.K2)(l,"ambivalent"),e.score>3?o(a):e.score<3?c(a):l(a),r}),"drawFace"),T=(0,i.K2)((function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n}),"drawCircle"),I=(0,i.K2)((function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const s=i.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(n),i}),"drawText"),R=(0,i.K2)((function(t,e){function n(t,e,n,i,s){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-s)+" "+(t+n-1.2*s)+","+(e+i)+" "+t+","+(e+i)}(0,i.K2)(n,"genPoints");const s=t.append("polygon");s.attr("points",n(e.x,e.y,50,20,7)),s.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,I(t,e)}),"drawLabel"),A=(0,i.K2)((function(t,e,n){const i=t.append("g"),s=P();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,$(i,s),H(n)(e.text,i,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection"),L=-1,M=(0,i.K2)((function(t,e,n){const i=e.x+n.width/2,s=t.append("g");L++;s.append("line").attr("id","task"+L).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),E(s,{cx:i,cy:300+30*(5-e.score),score:e.score});const r=P();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="task task-type-"+e.num,r.rx=3,r.ry=3,$(s,r),H(n)(e.task,s,r.x,r.y,r.width,r.height,{class:"task"},n,e.colour)}),"drawTask"),C=(0,i.K2)((function(t,e){$(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()}),"drawBackgroundRect"),N=(0,i.K2)((function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}}),"getTextObj"),P=(0,i.K2)((function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect"),H=function(){function t(t,e,n,i,r,a,o,c){s(e.append("text").attr("x",n+r/2).attr("y",i+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function e(t,e,n,i,r,a,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(u[p]),c.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(c,o)}}function n(t,n,i,r,a,o,c,l){const h=n.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",a).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,i,r,a,o,c,l),s(d,c)}function s(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return(0,i.K2)(t,"byText"),(0,i.K2)(e,"byTspan"),(0,i.K2)(n,"byFo"),(0,i.K2)(s,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),O=(0,i.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}),"initGraphics");function j(t,e){t.each((function(){var t,n=(0,s.Ltv)(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),o=parseFloat(n.attr("dy")),c=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),c.text(r.join(" ").trim()),(c.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),c.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],c=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))}))}(0,i.K2)(j,"wrap");var D=(0,i.K2)((function(t,e,n,i){const s=n%12-1,r=t.append("g");e.section=s,r.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+s);const a=r.append("g"),o=r.append("g"),c=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(j,e.width).node().getBBox(),l=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=c.height+1.1*l*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,o.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),W(a,e,s,i),e}),"drawNode"),z=(0,i.K2)((function(t,e,n){const i=t.append("g"),s=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(j,e.width).node().getBBox(),r=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),s.height+1.1*r*.5+e.padding}),"getVirtualNodeHeight"),W=(0,i.K2)((function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}),"defaultBkg"),B={drawRect:$,drawCircle:T,drawSection:A,drawText:I,drawLabel:R,drawTask:M,drawBackgroundRect:C,getTextObj:N,getNoteRect:P,initGraphics:O,drawNode:D,getVirtualNodeHeight:z},F=(0,i.K2)((function(t,e,n,r){const a=(0,i.D7)(),o=a.leftMargin??50;i.Rm.debug("timeline",r.db);const c=a.securityLevel;let l;"sandbox"===c&&(l=(0,s.Ltv)("#i"+e));const h=("sandbox"===c?(0,s.Ltv)(l.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select("#"+e);h.append("g");const d=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();i.Rm.debug("task",d),B.initGraphics(h);const p=r.db.getSections();i.Rm.debug("sections",p);let y=0,g=0,f=0,m=0,x=50+o,b=50;m=50;let k=0,_=!0;p.forEach((function(t){const e={number:k,descr:t,section:k,width:150,padding:20,maxHeight:y},n=B.getVirtualNodeHeight(h,e,a);i.Rm.debug("sectionHeight before draw",n),y=Math.max(y,n+20)}));let w=0,v=0;i.Rm.debug("tasks.length",d.length);for(const[s,S]of d.entries()){const t={number:s,descr:S,section:S.section,width:150,padding:20,maxHeight:g},e=B.getVirtualNodeHeight(h,t,a);i.Rm.debug("taskHeight before draw",e),g=Math.max(g,e+20),w=Math.max(w,S.events.length);let n=0;for(const i of S.events){const t={descr:i,section:S.section,number:S.section,width:150,padding:20,maxHeight:50};n+=B.getVirtualNodeHeight(h,t,a)}v=Math.max(v,n)}i.Rm.debug("maxSectionHeight before draw",y),i.Rm.debug("maxTaskHeight before draw",g),p&&p.length>0?p.forEach((t=>{const e=d.filter((e=>e.section===t)),n={number:k,descr:t,section:k,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:y};i.Rm.debug("sectionNode",n);const s=h.append("g"),r=B.drawNode(s,n,k,a);i.Rm.debug("sectionNode output",r),s.attr("transform",`translate(${x}, 50)`),b+=y+50,e.length>0&&V(h,e,k,x,b,g,a,w,v,y,!1),x+=200*Math.max(e.length,1),b=50,k++})):(_=!1,V(h,d,k,x,b,g,a,w,v,y,!0));const K=h.node().getBBox();i.Rm.debug("bounds",K),u&&h.append("text").text(u).attr("x",K.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=_?y+g+150:g+100;h.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",f).attr("x2",K.width+3*o).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),(0,i.ot)(void 0,h,a.timeline?.padding??50,a.timeline?.useMaxWidth??!1)}),"draw"),V=(0,i.K2)((function(t,e,n,s,r,a,o,c,l,h,d){for(const u of e){const e={descr:u.task,section:n,number:n,width:150,padding:20,maxHeight:a};i.Rm.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper"),p=B.drawNode(c,e,n,o).height;if(i.Rm.debug("taskHeight after draw",p),c.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,p),u.events){const e=t.append("g").attr("class","lineWrapper");let i=a;r+=100,i+=G(t,u.events,n,s,r,o),r-=100,e.append("line").attr("x1",s+95).attr("y1",r+a).attr("x2",s+95).attr("y2",r+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s+=200,d&&!o.timeline?.disableMulticolor&&n++}r-=10}),"drawTasks"),G=(0,i.K2)((function(t,e,n,s,r,a){let o=0;const c=r;r+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};i.Rm.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),h=B.drawNode(c,e,n,a).height;o+=h,c.attr("transform",`translate(${s}, ${r})`),r=r+10+h}return r=c,o}),"drawEvents"),U={setConf:(0,i.K2)((()=>{}),"setConf"),draw:F},q=(0,i.K2)((t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],(0,r.A)(t["lineColor"+n])?t["lineColor"+n]=(0,a.A)(t["lineColor"+n],20):t["lineColor"+n]=(0,o.A)(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e}),"genSections"),J={db:h,renderer:U,parser:l,styles:(0,i.K2)((t=>`\n .edge {\n stroke-width: 3;\n }\n ${q(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`),"getStyles")}}}]); \ No newline at end of file diff --git a/website/assets/js/7723.462b020e.js b/website/assets/js/7723.462b020e.js new file mode 100644 index 000000000..e9126e1a2 --- /dev/null +++ b/website/assets/js/7723.462b020e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7723],{7723:(e,s,c)=>{c.d(s,{createPieServices:()=>a.f});var a=c(8685);c(9369)}}]); \ No newline at end of file diff --git a/website/assets/js/7a34fa89.c2ea4e92.js b/website/assets/js/7a34fa89.c2ea4e92.js new file mode 100644 index 000000000..31a0723ac --- /dev/null +++ b/website/assets/js/7a34fa89.c2ea4e92.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8804],{3074:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>r,contentTitle:()=>d,default:()=>x,frontMatter:()=>c,metadata:()=>i,toc:()=>t});const i=JSON.parse('{"id":"api/type-aliases/LunaticSlotComponents","title":"Type Alias: LunaticSlotComponents","description":"LunaticSlotComponents: object","source":"@site/docs/api/type-aliases/LunaticSlotComponents.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticSlotComponents","permalink":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticSlotComponents.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticPager","permalink":"/Lunatic/docs/api/type-aliases/LunaticPager"},"next":{"title":"LunaticSource","permalink":"/Lunatic/docs/api/type-aliases/LunaticSource"}}');var s=o(4848),l=o(8453);const c={},d="Type Alias: LunaticSlotComponents",r={},t=[{value:"Type declaration",id:"type-declaration",level:2},{value:"Accordion",id:"accordion",level:3},{value:"Button",id:"button",level:3},{value:"CheckboxBoolean",id:"checkboxboolean",level:3},{value:"CheckboxGroup",id:"checkboxgroup",level:3},{value:"CheckboxOption",id:"checkboxoption",level:3},{value:"Combobox",id:"combobox",level:3},{value:"ComboboxClearButton",id:"comboboxclearbutton",level:3},{value:"ComboboxContainer",id:"comboboxcontainer",level:3},{value:"ComboboxContentBox",id:"comboboxcontentbox",level:3},{value:"ComboboxInput",id:"comboboxinput",level:3},{value:"ComboboxLabelSelection",id:"comboboxlabelselection",level:3},{value:"ComboboxOption",id:"comboboxoption",level:3},{value:"ComboboxPanelContainer",id:"comboboxpanelcontainer",level:3},{value:"ComponentWrapper",id:"componentwrapper",level:3},{value:"Datepicker",id:"datepicker",level:3},{value:"Declaration",id:"declaration",level:3},{value:"Declarations",id:"declarations",level:3},{value:"Dropdown",id:"dropdown",level:3},{value:"Duration",id:"duration",level:3},{value:"Fieldset",id:"fieldset",level:3},{value:"Input",id:"input",level:3},{value:"InputNumber",id:"inputnumber",level:3},{value:"Label",id:"label",level:3},{value:"Loop",id:"loop",level:3},{value:"MarkdownLink",id:"markdownlink",level:3},{value:"Notification",id:"notification",level:3},{value:"Question",id:"question",level:3},{value:"Radio",id:"radio",level:3},{value:"RadioGroup",id:"radiogroup",level:3},{value:"RadioOption",id:"radiooption",level:3},{value:"Roundabout",id:"roundabout",level:3},{value:"RouterLink",id:"routerlink",level:3},{value:"Sequence",id:"sequence",level:3},{value:"Subsequence",id:"subsequence",level:3},{value:"Suggester",id:"suggester",level:3},{value:"SuggesterNotification",id:"suggesternotification",level:3},{value:"SummaryResponses",id:"summaryresponses",level:3},{value:"SummaryTitle",id:"summarytitle",level:3},{value:"Switch",id:"switch",level:3},{value:"Table",id:"table",level:3},{value:"Tbody",id:"tbody",level:3},{value:"Td",id:"td",level:3},{value:"Textarea",id:"textarea",level:3},{value:"Th",id:"th",level:3},{value:"Thead",id:"thead",level:3},{value:"Tr",id:"tr",level:3},{value:"Defined in",id:"defined-in",level:2}];function h(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",...(0,l.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"type-alias-lunaticslotcomponents",children:"Type Alias: LunaticSlotComponents"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"LunaticSlotComponents"}),": ",(0,s.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Contain the type of every customizable components."}),"\n",(0,s.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsx)(n.h3,{id:"accordion",children:"Accordion"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Accordion"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Accordion"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"button",children:"Button"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Button"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.a,{href:"/Lunatic/docs/api/variables/Button",children:(0,s.jsx)(n.code,{children:"Button"})})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"checkboxboolean",children:"CheckboxBoolean"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"CheckboxBoolean"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomCheckboxBoolean"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"checkboxgroup",children:"CheckboxGroup"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"CheckboxGroup"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomCheckboxGroup"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"checkboxoption",children:"CheckboxOption"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"CheckboxOption"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CheckboxOption"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"combobox",children:"Combobox"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Combobox"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Combobox"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxclearbutton",children:"ComboboxClearButton"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxClearButton"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxClearButton"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxcontainer",children:"ComboboxContainer"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxContainer"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxContainer"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxcontentbox",children:"ComboboxContentBox"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxContentBox"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxContentBox"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxinput",children:"ComboboxInput"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxInput"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxInput"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxlabelselection",children:"ComboboxLabelSelection"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxLabelSelection"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxLabelSelection"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxoption",children:"ComboboxOption"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxOption"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxOption"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"comboboxpanelcontainer",children:"ComboboxPanelContainer"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComboboxPanelContainer"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"ComboboxPanelContainer"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"componentwrapper",children:"ComponentWrapper"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ComponentWrapper"}),": ",(0,s.jsx)(n.code,{children:"ComponentType"}),"<",(0,s.jsx)(n.code,{children:"PropsWithChildren"}),"<",(0,s.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticComponentProps",children:(0,s.jsx)(n.code,{children:"LunaticComponentProps"})})," & ",(0,s.jsx)(n.code,{children:"object"}),">>"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"datepicker",children:"Datepicker"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Datepicker"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomDatepicker"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"declaration",children:"Declaration"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Declaration"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Declaration"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"declarations",children:"Declarations"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Declarations"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Declarations"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"dropdown",children:"Dropdown"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Dropdown"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomDropdown"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"duration",children:"Duration"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Duration"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomDuration"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"fieldset",children:"Fieldset"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Fieldset"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Fieldset"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"input",children:"Input"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Input"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomInput"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"inputnumber",children:"InputNumber"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"InputNumber"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomInputNumber"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"label",children:"Label"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Label"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Label"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"loop",children:"Loop"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Loop"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomLoop"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"markdownlink",children:"MarkdownLink"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"MarkdownLink"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"MarkdownLink"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"notification",children:"Notification"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Notification"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Notification"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"question",children:"Question"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Question"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomQuestion"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"radio",children:"Radio"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Radio"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Radio"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"radiogroup",children:"RadioGroup"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"RadioGroup"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"RadioGroup"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"radiooption",children:"RadioOption"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"RadioOption"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"RadioOption"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"roundabout",children:"Roundabout"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Roundabout"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomRoundabout"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"routerlink",children:"RouterLink"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"RouterLink"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"RouterLink"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"sequence",children:"Sequence"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Sequence"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Sequence"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"subsequence",children:"Subsequence"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Subsequence"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Subsequence"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"suggester",children:"Suggester"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Suggester"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomSuggester"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"suggesternotification",children:"SuggesterNotification"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"SuggesterNotification"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"SuggesterNotification"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"summaryresponses",children:"SummaryResponses"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"SummaryResponses"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"SummaryResponses"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"summarytitle",children:"SummaryTitle"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"SummaryTitle"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"SummaryTitle"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"switch",children:"Switch"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Switch"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomSwitch"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"table",children:"Table"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Table"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Table"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"tbody",children:"Tbody"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Tbody"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Tbody"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"td",children:"Td"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Td"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Td"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"textarea",children:"Textarea"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Textarea"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"CustomTextarea"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"th",children:"Th"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Th"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Th"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"thead",children:"Thead"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Thead"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Thead"})]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"tr",children:"Tr"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Tr"}),": ",(0,s.jsx)(n.em,{children:"typeof"})," ",(0,s.jsx)(n.code,{children:"Tr"})]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/shared/HOC/slottableComponent.tsx#L50",children:"src/components/shared/HOC/slottableComponent.tsx:50"})})]})}function x(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,n,o)=>{o.d(n,{R:()=>c,x:()=>d});var i=o(6540);const s={},l=i.createContext(s);function c(e){const n=i.useContext(l);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),i.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/7c0f0c82.8f2379dc.js b/website/assets/js/7c0f0c82.8f2379dc.js new file mode 100644 index 000000000..fe2a00af3 --- /dev/null +++ b/website/assets/js/7c0f0c82.8f2379dc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1930],{7745:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>p,contentTitle:()=>c,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"components/personnalisation","title":"Personnalisation","description":"Par d\xe9faut, les composants propos\xe9s par @inseefr/lunatic sont assez simples avec un style minimal. Vous pouvez personnaliser les champs avec votre propre CSS, mais pour des cas plus complexes, vous pouvez remplacer les composants de bases par vos propres composants \xe0 l\'aide de l\'option slots.","source":"@site/docs/components/personnalisation.mdx","sourceDirName":"components","slug":"/components/personnalisation","permalink":"/Lunatic/docs/components/personnalisation","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/personnalisation.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Afficher le formulaire","permalink":"/Lunatic/docs/components/lunatic-components"},"next":{"title":"Composants","permalink":"/Lunatic/docs/category/composants"}}');var t=n(4848),r=n(8453);const a={},c="Personnalisation",p={},i=[];function l(e){const s={a:"a",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"personnalisation",children:"Personnalisation"})}),"\n",(0,t.jsxs)(s.p,{children:["Par d\xe9faut, les composants propos\xe9s par ",(0,t.jsx)(s.code,{children:"@inseefr/lunatic"})," sont assez simples avec un style minimal. Vous pouvez personnaliser les champs avec votre propre CSS, mais pour des cas plus complexes, vous pouvez remplacer les composants de bases par vos propres composants \xe0 l'aide de l'option ",(0,t.jsx)(s.code,{children:"slots"}),"."]}),"\n",(0,t.jsx)(s.pre,{children:(0,t.jsx)(s.code,{className:"language-jsx",children:"const slots = {\n Input: MyCustomInput,\n InputNumber: MyCustomInputNumber,\n};\n\n<LunaticComponents slots={slots} />\n"})}),"\n",(0,t.jsxs)(s.p,{children:["Si vous utilisez TypeScript, vous pouvez utiliser le type ",(0,t.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/3.0/src/components/shared/HOC/slottableComponent.tsx#L56",children:"LunaticSlotComponents"})," pour typer vos composants (l'objet contient en index tous les composants personnalisables)."]}),"\n",(0,t.jsxs)(s.p,{children:["Pour un exemple d'impl\xe9mentation vous pouvez regarder ",(0,t.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic-DSFR",children:"les composants du DSFR"}),"."]})]})}function u(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,s,n)=>{n.d(s,{R:()=>a,x:()=>c});var o=n(6540);const t={},r=o.createContext(t);function a(e){const s=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),o.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/8159.156a20a5.js b/website/assets/js/8159.156a20a5.js new file mode 100644 index 000000000..102f8b85f --- /dev/null +++ b/website/assets/js/8159.156a20a5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8159],{9825:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var i=n(8215),o=n(2032),s=n(8445),r=n(4848);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,i.A)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(s.A,{as:"h1",className:"hero__title",children:(0,r.jsx)(o.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},8159:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(6540);var i=n(2032),o=n(3523),s=n(3502),r=n(9825),a=n(4848);function d(){const e=(0,i.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.be,{title:e}),(0,a.jsx)(s.A,{children:(0,a.jsx)(r.A,{})})]})}}}]); \ No newline at end of file diff --git a/website/assets/js/835f525a.c7489480.js b/website/assets/js/835f525a.c7489480.js new file mode 100644 index 000000000..a7294493a --- /dev/null +++ b/website/assets/js/835f525a.c7489480.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4858],{7510:e=>{e.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"Balisage","description":"Ces composants offrent des indication visuels pour aider l\'utilisateur \xe0 s\'orienter dans le formulaire","slug":"/category/balisage","permalink":"/Lunatic/docs/category/balisage","sidebar":"docs","navigation":{"previous":{"title":"Propri\xe9t\xe9s de base","permalink":"/Lunatic/docs/components/base"},"next":{"title":"Sequence & SubSequence","permalink":"/Lunatic/docs/components/decorations/sequence"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/8413.5458cc78.js b/website/assets/js/8413.5458cc78.js new file mode 100644 index 000000000..95cf54654 --- /dev/null +++ b/website/assets/js/8413.5458cc78.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8413],{8413:(e,t,i)=>{i.d(t,{diagram:()=>Y});var n=i(9),r=i(7),s=i(2334),a=i(697),l=function(){var e=(0,n.K2)((function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i}),"o"),t=[1,3],i=[1,4],r=[1,5],s=[1,6],a=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],l=[1,18],o=[2,7],h=[1,22],c=[1,23],u=[1,24],d=[1,25],y=[1,26],p=[1,27],_=[1,20],g=[1,28],E=[1,29],R=[62,63],m=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],f=[1,47],I=[1,48],S=[1,49],N=[1,50],b=[1,51],k=[1,52],T=[1,53],x=[53,54],w=[1,64],A=[1,60],q=[1,61],v=[1,62],K=[1,63],$=[1,65],O=[1,69],L=[1,70],C=[1,67],M=[1,68],F=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],D={trace:(0,n.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:(0,n.K2)((function(e,t,i,n,r,s,a){var l=s.length-1;switch(r){case 4:this.$=s[l].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[l].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[l-3],s[l-4]);break;case 14:n.setNewReqId(s[l-2]);break;case 15:n.setNewReqText(s[l-2]);break;case 16:n.setNewReqRisk(s[l-2]);break;case 17:n.setNewReqVerifyMethod(s[l-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[l-3]);break;case 34:n.setNewElementType(s[l-2]);break;case 35:n.setNewElementDocRef(s[l-2]);break;case 38:n.addRelationship(s[l-2],s[l],s[l-4]);break;case 39:n.addRelationship(s[l-2],s[l-4],s[l]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES}}),"anonymous"),table:[{3:1,4:2,6:t,9:i,11:r,13:s},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:i,11:r,13:s},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:i,11:r,13:s},{1:[2,2]},{4:17,5:l,7:13,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:l,7:31,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},{4:17,5:l,7:32,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},{4:17,5:l,7:33,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},{4:17,5:l,7:34,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},{4:17,5:l,7:35,8:o,9:i,11:r,13:s,14:14,15:15,16:16,17:19,23:21,31:h,32:c,33:u,34:d,35:y,36:p,44:_,62:g,63:E},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(R,[2,20]),e(R,[2,21]),e(R,[2,22]),e(R,[2,23]),e(R,[2,24]),e(R,[2,25]),e(m,[2,49]),e(m,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:f,56:I,57:S,58:N,59:b,60:k,61:T},{52:54,55:f,56:I,57:S,58:N,59:b,60:k,61:T},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(x,[2,40]),e(x,[2,41]),e(x,[2,42]),e(x,[2,43]),e(x,[2,44]),e(x,[2,45]),e(x,[2,46]),{54:[1,58]},{5:w,20:59,21:A,24:q,26:v,28:K,30:$},{5:O,30:L,46:66,47:C,49:M},{23:71,62:g,63:E},{23:72,62:g,63:E},e(F,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:w,20:77,21:A,24:q,26:v,28:K,30:$},e(F,[2,19]),e(F,[2,33]),{22:[1,78]},{22:[1,79]},{5:O,30:L,46:80,47:C,49:M},e(F,[2,37]),e(F,[2,38]),e(F,[2,39]),{23:81,62:g,63:E},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(F,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(F,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:w,20:106,21:A,24:q,26:v,28:K,30:$},{5:w,20:107,21:A,24:q,26:v,28:K,30:$},{5:w,20:108,21:A,24:q,26:v,28:K,30:$},{5:w,20:109,21:A,24:q,26:v,28:K,30:$},{5:O,30:L,46:110,47:C,49:M},{5:O,30:L,46:111,47:C,49:M},e(F,[2,14]),e(F,[2,15]),e(F,[2,16]),e(F,[2,17]),e(F,[2,34]),e(F,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:(0,n.K2)((function(e,t){if(!t.recoverable){var i=new Error(e);throw i.hash=t,i}this.trace(e)}),"parseError"),parse:(0,n.K2)((function(e){var t=this,i=[0],r=[],s=[null],a=[],l=this.table,o="",h=0,c=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(p.yy[_]=this.yy[_]);y.setInput(e,p.yy),p.yy.lexer=y,p.yy.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;a.push(g);var E=y.options&&y.options.ranges;function R(){var e;return"number"!=typeof(e=r.pop()||y.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,n.K2)((function(e){i.length=i.length-2*e,s.length=s.length-e,a.length=a.length-e}),"popStack"),(0,n.K2)(R,"lex");for(var m,f,I,S,N,b,k,T,x,w={};;){if(I=i[i.length-1],this.defaultActions[I]?S=this.defaultActions[I]:(null==m&&(m=R()),S=l[I]&&l[I][m]),void 0===S||!S.length||!S[0]){var A="";for(b in x=[],l[I])this.terminals_[b]&&b>2&&x.push("'"+this.terminals_[b]+"'");A=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[m]||m,line:y.yylineno,loc:g,expected:x})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+m);switch(S[0]){case 1:i.push(m),s.push(y.yytext),a.push(y.yylloc),i.push(S[1]),m=null,f?(m=f,f=null):(c=y.yyleng,o=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[S[1]][1],w.$=s[s.length-k],w._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},E&&(w._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),void 0!==(N=this.performAction.apply(w,[o,c,h,p.yy,S[1],s,a].concat(d))))return N;k&&(i=i.slice(0,-1*k*2),s=s.slice(0,-1*k),a=a.slice(0,-1*k)),i.push(this.productions_[S[1]][0]),s.push(w.$),a.push(w._$),T=l[i[i.length-2]][i[i.length-1]],i.push(T);break;case 3:return!0}}return!0}),"parse")},P=function(){return{EOF:1,parseError:(0,n.K2)((function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)}),"parseError"),setInput:(0,n.K2)((function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,n.K2)((function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e}),"input"),unput:(0,n.K2)((function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,n.K2)((function(){return this._more=!0,this}),"more"),reject:(0,n.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,n.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,n.K2)((function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,n.K2)((function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,n.K2)((function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,n.K2)((function(e,t){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var s in r)this[s]=r[s];return!1}return!1}),"test_match"),next:(0,n.K2)((function(){if(this.done)return this.EOF;var e,t,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),s=0;s<r.length;s++)if((i=this._input.match(this.rules[r[s]]))&&(!t||i[0].length>t[0].length)){if(t=i,n=s,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[s])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,n.K2)((function(){var e=this.next();return e||this.lex()}),"lex"),begin:(0,n.K2)((function(e){this.conditionStack.push(e)}),"begin"),popState:(0,n.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,n.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,n.K2)((function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"}),"topState"),pushState:(0,n.K2)((function(e){this.begin(e)}),"pushState"),stateStackSize:(0,n.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,n.K2)((function(e,t,i,n){switch(i){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 48:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:case 10:case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 49:return"qString";case 50:return t.yytext=t.yytext.trim(),62}}),"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}}}();function V(){this.yy={}}return D.lexer=P,(0,n.K2)(V,"Parser"),V.prototype=D,D.Parser=V,new V}();l.parser=l;var o=l,h=[],c={},u=new Map,d={},y=new Map,p=(0,n.K2)(((e,t)=>(u.has(e)||u.set(e,{name:e,type:t,id:c.id,text:c.text,risk:c.risk,verifyMethod:c.verifyMethod}),c={},u.get(e))),"addRequirement"),_=(0,n.K2)((()=>u),"getRequirements"),g=(0,n.K2)((e=>{void 0!==c&&(c.id=e)}),"setNewReqId"),E=(0,n.K2)((e=>{void 0!==c&&(c.text=e)}),"setNewReqText"),R=(0,n.K2)((e=>{void 0!==c&&(c.risk=e)}),"setNewReqRisk"),m=(0,n.K2)((e=>{void 0!==c&&(c.verifyMethod=e)}),"setNewReqVerifyMethod"),f=(0,n.K2)((e=>(y.has(e)||(y.set(e,{name:e,type:d.type,docRef:d.docRef}),n.Rm.info("Added new requirement: ",e)),d={},y.get(e))),"addElement"),I=(0,n.K2)((()=>y),"getElements"),S=(0,n.K2)((e=>{void 0!==d&&(d.type=e)}),"setNewElementType"),N=(0,n.K2)((e=>{void 0!==d&&(d.docRef=e)}),"setNewElementDocRef"),b=(0,n.K2)(((e,t,i)=>{h.push({type:e,src:t,dst:i})}),"addRelationship"),k=(0,n.K2)((()=>h),"getRelationships"),T=(0,n.K2)((()=>{h=[],c={},u=new Map,d={},y=new Map,(0,n.IU)()}),"clear"),x={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:(0,n.K2)((()=>(0,n.D7)().req),"getConfig"),addRequirement:p,getRequirements:_,setNewReqId:g,setNewReqText:E,setNewReqRisk:R,setNewReqVerifyMethod:m,setAccTitle:n.SV,getAccTitle:n.iN,setAccDescription:n.EI,getAccDescription:n.m7,addElement:f,getElements:I,setNewElementType:S,setNewElementDocRef:N,addRelationship:b,getRelationships:k,clear:T},w=(0,n.K2)((e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n\n`),"getStyles"),A={CONTAINS:"contains",ARROW:"arrow"},q={ReqMarkers:A,insertLineEndings:(0,n.K2)(((e,t)=>{let i=e.append("defs").append("marker").attr("id",A.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");i.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),i.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),i.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",A.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${t.line_height},${t.line_height/2}\n M${t.line_height},${t.line_height/2}\n L0,${t.line_height}`).attr("stroke-width",1)}),"insertLineEndings")},v={},K=0,$=(0,n.K2)(((e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",v.rect_min_width+"px").attr("height",v.rect_min_height+"px")),"newRectNode"),O=(0,n.K2)(((e,t,i)=>{let n=v.rect_min_width/2,r=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",n).attr("y",v.rect_padding).attr("dominant-baseline","hanging"),s=0;i.forEach((e=>{0==s?r.append("tspan").attr("text-anchor","middle").attr("x",v.rect_min_width/2).attr("dy",0).text(e):r.append("tspan").attr("text-anchor","middle").attr("x",v.rect_min_width/2).attr("dy",.75*v.line_height).text(e),s++}));let a=1.5*v.rect_padding+s*v.line_height*.75;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",v.rect_min_width).attr("y1",a).attr("y2",a),{titleNode:r,y:a}}),"newTitleNode"),L=(0,n.K2)(((e,t,i,n)=>{let r=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",v.rect_padding).attr("y",n).attr("dominant-baseline","hanging"),s=0;let a=[];return i.forEach((e=>{let t=e.length;for(;t>30&&s<3;){let i=e.substring(0,30);t=(e=e.substring(30,e.length)).length,a[a.length]=i,s++}if(3==s){let e=a[a.length-1];a[a.length-1]=e.substring(0,e.length-4)+"..."}else a[a.length]=e;s=0})),a.forEach((e=>{r.append("tspan").attr("x",v.rect_padding).attr("dy",v.line_height).text(e)})),r}),"newBodyNode"),C=(0,n.K2)(((e,t,i,n)=>{const r=t.node().getTotalLength(),s=t.node().getPointAtLength(.5*r),a="rel"+K;K++;const l=e.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n).node().getBBox();e.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",s.x-l.width/2).attr("y",s.y-l.height/2).attr("width",l.width).attr("height",l.height).attr("fill","white").attr("fill-opacity","85%")}),"addEdgeLabel"),M=(0,n.K2)((function(e,t,i,s,a){const l=i.edge(U(t.src),U(t.dst)),o=(0,r.n8j)().x((function(e){return e.x})).y((function(e){return e.y})),h=e.insert("path","#"+s).attr("class","er relationshipLine").attr("d",o(l.points)).attr("fill","none");t.type==a.db.Relationships.CONTAINS?h.attr("marker-start","url("+n.Y2.getUrl(v.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+n.Y2.getUrl(v.arrowMarkerAbsolute)+"#"+q.ReqMarkers.ARROW+"_line_ending)")),C(e,h,v,`<<${t.type}>>`)}),"drawRelationshipFromLayout"),F=(0,n.K2)(((e,t,i)=>{e.forEach(((e,r)=>{r=U(r),n.Rm.info("Added new requirement: ",r);const s=i.append("g").attr("id",r),a=$(s,"req-"+r);let l=[],o=O(s,r+"_title",[`<<${e.type}>>`,`${e.name}`]);l.push(o.titleNode);let h=L(s,r+"_body",[`Id: ${e.id}`,`Text: ${e.text}`,`Risk: ${e.risk}`,`Verification: ${e.verifyMethod}`],o.y);l.push(h);const c=a.node().getBBox();t.setNode(r,{width:c.width,height:c.height,shape:"rect",id:r})}))}),"drawReqs"),D=(0,n.K2)(((e,t,i)=>{e.forEach(((e,n)=>{const r=U(n),s=i.append("g").attr("id",r),a="element-"+r,l=$(s,a);let o=[],h=O(s,a+"_title",["<<Element>>",`${n}`]);o.push(h.titleNode);let c=L(s,a+"_body",[`Type: ${e.type||"Not Specified"}`,`Doc Ref: ${e.docRef||"None"}`],h.y);o.push(c);const u=l.node().getBBox();t.setNode(r,{width:u.width,height:u.height,shape:"rect",id:r})}))}),"drawElements"),P=(0,n.K2)(((e,t)=>(e.forEach((function(e){let i=U(e.src),n=U(e.dst);t.setEdge(i,n,{relationship:e})})),e)),"addRelationships"),V=(0,n.K2)((function(e,t){t.nodes().forEach((function(i){void 0!==i&&void 0!==t.node(i)&&(e.select("#"+i),e.select("#"+i).attr("transform","translate("+(t.node(i).x-t.node(i).width/2)+","+(t.node(i).y-t.node(i).height/2)+" )"))}))}),"adjustEntities"),U=(0,n.K2)((e=>e.replace(/\s/g,"").replace(/\./g,"_")),"elementString"),Y={parser:o,db:x,renderer:{draw:(0,n.K2)(((e,t,i,l)=>{const o=(v=(0,n.D7)().requirement).securityLevel;let h;"sandbox"===o&&(h=(0,r.Ltv)("#i"+t));const c=("sandbox"===o?(0,r.Ltv)(h.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id='${t}']`);q.insertLineEndings(c,v);const u=new a.T({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:v.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let d=l.db.getRequirements(),y=l.db.getElements(),p=l.db.getRelationships();F(d,u,c),D(y,u,c),P(p,u),(0,s.Zp)(u),V(c,u),p.forEach((function(e){M(c,e,u,t,l)}));const _=v.rect_padding,g=c.node().getBBox(),E=g.width+2*_,R=g.height+2*_;(0,n.a$)(c,R,E,v.useMaxWidth),c.attr("viewBox",`${g.x-_} ${g.y-_} ${E} ${R}`)}),"draw")},styles:w}}}]); \ No newline at end of file diff --git a/website/assets/js/8540.4da3845f.js b/website/assets/js/8540.4da3845f.js new file mode 100644 index 000000000..f669df147 --- /dev/null +++ b/website/assets/js/8540.4da3845f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8540],{3814:(t,e,a)=>{a.d(e,{CP:()=>l,HT:()=>h,PB:()=>d,aC:()=>c,lC:()=>n,m:()=>o,tk:()=>i});var r=a(9),s=a(6750),i=(0,r.K2)(((t,e)=>{const a=t.append("rect");if(a.attr("x",e.x),a.attr("y",e.y),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("width",e.width),a.attr("height",e.height),e.name&&a.attr("name",e.name),e.rx&&a.attr("rx",e.rx),e.ry&&a.attr("ry",e.ry),void 0!==e.attrs)for(const r in e.attrs)a.attr(r,e.attrs[r]);return e.class&&a.attr("class",e.class),a}),"drawRect"),n=(0,r.K2)(((t,e)=>{const a={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};i(t,a).lower()}),"drawBackgroundRect"),o=(0,r.K2)(((t,e)=>{const a=e.text.replace(r.H1," "),s=t.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);const i=s.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(a),s}),"drawText"),c=(0,r.K2)(((t,e,a,r)=>{const i=t.append("image");i.attr("x",e),i.attr("y",a);const n=(0,s.J)(r);i.attr("xlink:href",n)}),"drawImage"),l=(0,r.K2)(((t,e,a,r)=>{const i=t.append("use");i.attr("x",e),i.attr("y",a);const n=(0,s.J)(r);i.attr("xlink:href",`#${n}`)}),"drawEmbeddedImage"),d=(0,r.K2)((()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0})),"getNoteRect"),h=(0,r.K2)((()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0})),"getTextObj")},8160:(t,e,a)=>{a.d(e,{m:()=>s});var r=a(9),s=class{constructor(t){this.init=t,this.records=this.init()}static{(0,r.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},8540:(t,e,a)=>{a.d(e,{diagram:()=>Ut});var r=a(3814),s=a(8160),i=a(540),n=a(9),o=a(7),c=a(6750),l=function(){var t=(0,n.K2)((function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a}),"o"),e=[1,2],a=[1,3],r=[1,4],s=[2,4],i=[1,9],o=[1,11],c=[1,13],l=[1,14],d=[1,16],h=[1,17],p=[1,18],g=[1,24],u=[1,25],x=[1,26],y=[1,27],m=[1,28],b=[1,29],T=[1,30],f=[1,31],E=[1,32],w=[1,33],I=[1,34],L=[1,35],_=[1,36],P=[1,37],k=[1,38],A=[1,39],v=[1,41],N=[1,42],M=[1,43],D=[1,44],O=[1,45],S=[1,46],K=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],R=[4,5,16,50,52,53],Y=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],C=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],B=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],V=[68,69,70],F=[1,122],W={trace:(0,n.K2)((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:(0,n.K2)((function(t,e,a,r,s,i,n){var o=i.length-1;switch(s){case 3:return r.apply(i[o]),i[o];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:i[o-1].push(i[o]),this.$=i[o-1];break;case 6:case 7:case 11:case 12:case 62:this.$=i[o];break;case 15:i[o].type="createParticipant",this.$=i[o];break;case 16:i[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(i[o-2])}),i[o-1].push({type:"boxEnd",boxText:i[o-2]}),this.$=i[o-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(i[o-2]),sequenceIndexStep:Number(i[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(i[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:i[o-1].actor};break;case 23:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:i[o-1].actor};break;case 29:r.setDiagramTitle(i[o].substring(6)),this.$=i[o].substring(6);break;case 30:r.setDiagramTitle(i[o].substring(7)),this.$=i[o].substring(7);break;case 31:this.$=i[o].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=i[o].trim(),r.setAccDescription(this.$);break;case 34:i[o-1].unshift({type:"loopStart",loopText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.LOOP_START}),i[o-1].push({type:"loopEnd",loopText:i[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=i[o-1];break;case 35:i[o-1].unshift({type:"rectStart",color:r.parseMessage(i[o-2]),signalType:r.LINETYPE.RECT_START}),i[o-1].push({type:"rectEnd",color:r.parseMessage(i[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=i[o-1];break;case 36:i[o-1].unshift({type:"optStart",optText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.OPT_START}),i[o-1].push({type:"optEnd",optText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=i[o-1];break;case 37:i[o-1].unshift({type:"altStart",altText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.ALT_START}),i[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=i[o-1];break;case 38:i[o-1].unshift({type:"parStart",parText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.PAR_START}),i[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=i[o-1];break;case 39:i[o-1].unshift({type:"parStart",parText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),i[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=i[o-1];break;case 40:i[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.CRITICAL_START}),i[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=i[o-1];break;case 41:i[o-1].unshift({type:"breakStart",breakText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.BREAK_START}),i[o-1].push({type:"breakEnd",optText:r.parseMessage(i[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=i[o-1];break;case 43:this.$=i[o-3].concat([{type:"option",optionText:r.parseMessage(i[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},i[o]]);break;case 45:this.$=i[o-3].concat([{type:"and",parText:r.parseMessage(i[o-1]),signalType:r.LINETYPE.PAR_AND},i[o]]);break;case 47:this.$=i[o-3].concat([{type:"else",altText:r.parseMessage(i[o-1]),signalType:r.LINETYPE.ALT_ELSE},i[o]]);break;case 48:i[o-3].draw="participant",i[o-3].type="addParticipant",i[o-3].description=r.parseMessage(i[o-1]),this.$=i[o-3];break;case 49:i[o-1].draw="participant",i[o-1].type="addParticipant",this.$=i[o-1];break;case 50:i[o-3].draw="actor",i[o-3].type="addParticipant",i[o-3].description=r.parseMessage(i[o-1]),this.$=i[o-3];break;case 51:i[o-1].draw="actor",i[o-1].type="addParticipant",this.$=i[o-1];break;case 52:i[o-1].type="destroyParticipant",this.$=i[o-1];break;case 53:this.$=[i[o-1],{type:"addNote",placement:i[o-2],actor:i[o-1].actor,text:i[o]}];break;case 54:i[o-2]=[].concat(i[o-1],i[o-1]).slice(0,2),i[o-2][0]=i[o-2][0].actor,i[o-2][1]=i[o-2][1].actor,this.$=[i[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:i[o-2].slice(0,2),text:i[o]}];break;case 55:this.$=[i[o-1],{type:"addLinks",actor:i[o-1].actor,text:i[o]}];break;case 56:this.$=[i[o-1],{type:"addALink",actor:i[o-1].actor,text:i[o]}];break;case 57:this.$=[i[o-1],{type:"addProperties",actor:i[o-1].actor,text:i[o]}];break;case 58:this.$=[i[o-1],{type:"addDetails",actor:i[o-1].actor,text:i[o]}];break;case 61:this.$=[i[o-2],i[o]];break;case 63:this.$=r.PLACEMENT.LEFTOF;break;case 64:this.$=r.PLACEMENT.RIGHTOF;break;case 65:this.$=[i[o-4],i[o-1],{type:"addMessage",from:i[o-4].actor,to:i[o-1].actor,signalType:i[o-3],msg:i[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:i[o-1].actor}];break;case 66:this.$=[i[o-4],i[o-1],{type:"addMessage",from:i[o-4].actor,to:i[o-1].actor,signalType:i[o-3],msg:i[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:i[o-4].actor}];break;case 67:this.$=[i[o-3],i[o-1],{type:"addMessage",from:i[o-3].actor,to:i[o-1].actor,signalType:i[o-2],msg:i[o]}];break;case 68:this.$={type:"addParticipant",actor:i[o]};break;case 69:this.$=r.LINETYPE.SOLID_OPEN;break;case 70:this.$=r.LINETYPE.DOTTED_OPEN;break;case 71:this.$=r.LINETYPE.SOLID;break;case 72:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=r.LINETYPE.DOTTED;break;case 74:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=r.LINETYPE.SOLID_CROSS;break;case 76:this.$=r.LINETYPE.DOTTED_CROSS;break;case 77:this.$=r.LINETYPE.SOLID_POINT;break;case 78:this.$=r.LINETYPE.DOTTED_POINT;break;case 79:this.$=r.parseMessage(i[o].trim().substring(1))}}),"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:o,8:8,9:10,12:12,13:c,14:l,17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},t(K,[2,5]),{9:47,12:12,13:c,14:l,17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},t(K,[2,7]),t(K,[2,8]),t(K,[2,14]),{12:48,50:P,52:k,53:A},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(K,[2,29]),t(K,[2,30]),{32:[1,61]},{34:[1,62]},t(K,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:S},{22:72,70:S},{22:73,70:S},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(K,[2,6]),t(K,[2,15]),t(R,[2,9],{10:93}),t(K,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(K,[2,21]),{5:[1,97]},{5:[1,98]},t(K,[2,24]),t(K,[2,25]),t(K,[2,26]),t(K,[2,27]),t(K,[2,28]),t(K,[2,31]),t(K,[2,32]),t(Y,s,{7:99}),t(Y,s,{7:100}),t(Y,s,{7:101}),t(C,s,{40:102,7:103}),t(B,s,{42:104,7:105}),t(B,s,{7:105,42:106}),t($,s,{45:107,7:108}),t(Y,s,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:S},t(V,[2,69]),t(V,[2,70]),t(V,[2,71]),t(V,[2,72]),t(V,[2,73]),t(V,[2,74]),t(V,[2,75]),t(V,[2,76]),t(V,[2,77]),t(V,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:F},{56:123,81:F},{56:124,81:F},{56:125,81:F},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:P,52:k,53:A},{5:[1,131]},t(K,[2,19]),t(K,[2,20]),t(K,[2,22]),t(K,[2,23]),{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,132],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,133],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,134],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{16:[1,135]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,46],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,49:[1,136],50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{16:[1,137]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,44],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,48:[1,138],50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[2,42],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,47:[1,141],50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{4:i,5:o,8:8,9:10,12:12,13:c,14:l,16:[1,142],17:15,18:d,21:h,22:40,23:p,24:19,25:20,26:21,27:22,28:23,29:g,30:u,31:x,33:y,35:m,36:b,37:T,38:f,39:E,41:w,43:I,44:L,46:_,50:P,52:k,53:A,54:v,59:N,60:M,61:D,62:O,70:S},{15:[1,143]},t(K,[2,49]),{15:[1,144]},t(K,[2,51]),t(K,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:F},{56:148,81:F},{56:149,81:F},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(K,[2,16]),t(R,[2,10]),{12:151,50:P,52:k,53:A},t(R,[2,12]),t(R,[2,13]),t(K,[2,18]),t(K,[2,34]),t(K,[2,35]),t(K,[2,36]),t(K,[2,37]),{15:[1,152]},t(K,[2,38]),{15:[1,153]},t(K,[2,39]),t(K,[2,40]),{15:[1,154]},t(K,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:F},{56:158,81:F},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(R,[2,11]),t(C,s,{7:103,40:160}),t(B,s,{7:105,42:161}),t($,s,{7:108,45:162}),t(K,[2,48]),t(K,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:(0,n.K2)((function(t,e){if(!e.recoverable){var a=new Error(t);throw a.hash=e,a}this.trace(t)}),"parseError"),parse:(0,n.K2)((function(t){var e=this,a=[0],r=[],s=[null],i=[],o=this.table,c="",l=0,d=0,h=0,p=i.slice.call(arguments,1),g=Object.create(this.lexer),u={yy:{}};for(var x in this.yy)Object.prototype.hasOwnProperty.call(this.yy,x)&&(u.yy[x]=this.yy[x]);g.setInput(t,u.yy),u.yy.lexer=g,u.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var y=g.yylloc;i.push(y);var m=g.options&&g.options.ranges;function b(){var t;return"number"!=typeof(t=r.pop()||g.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,n.K2)((function(t){a.length=a.length-2*t,s.length=s.length-t,i.length=i.length-t}),"popStack"),(0,n.K2)(b,"lex");for(var T,f,E,w,I,L,_,P,k,A={};;){if(E=a[a.length-1],this.defaultActions[E]?w=this.defaultActions[E]:(null==T&&(T=b()),w=o[E]&&o[E][T]),void 0===w||!w.length||!w[0]){var v="";for(L in k=[],o[E])this.terminals_[L]&&L>2&&k.push("'"+this.terminals_[L]+"'");v=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(v,{text:g.match,token:this.terminals_[T]||T,line:g.yylineno,loc:y,expected:k})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+T);switch(w[0]){case 1:a.push(T),s.push(g.yytext),i.push(g.yylloc),a.push(w[1]),T=null,f?(T=f,f=null):(d=g.yyleng,c=g.yytext,l=g.yylineno,y=g.yylloc,h>0&&h--);break;case 2:if(_=this.productions_[w[1]][1],A.$=s[s.length-_],A._$={first_line:i[i.length-(_||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(_||1)].first_column,last_column:i[i.length-1].last_column},m&&(A._$.range=[i[i.length-(_||1)].range[0],i[i.length-1].range[1]]),void 0!==(I=this.performAction.apply(A,[c,d,l,u.yy,w[1],s,i].concat(p))))return I;_&&(a=a.slice(0,-1*_*2),s=s.slice(0,-1*_),i=i.slice(0,-1*_)),a.push(this.productions_[w[1]][0]),s.push(A.$),i.push(A._$),P=o[a[a.length-2]][a[a.length-1]],a.push(P);break;case 3:return!0}}return!0}),"parse")},q=function(){return{EOF:1,parseError:(0,n.K2)((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:(0,n.K2)((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:(0,n.K2)((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:(0,n.K2)((function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:(0,n.K2)((function(){return this._more=!0,this}),"more"),reject:(0,n.K2)((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:(0,n.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,n.K2)((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:(0,n.K2)((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,n.K2)((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,n.K2)((function(t,e){var a,r,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var i in s)this[i]=s[i];return!1}return!1}),"test_match"),next:(0,n.K2)((function(){if(this.done)return this.EOF;var t,e,a,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),i=0;i<s.length;i++)if((a=this._input.match(this.rules[s[i]]))&&(!e||a[0].length>e[0].length)){if(e=a,r=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,s[i])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:(0,n.K2)((function(){var t=this.next();return t||this.lex()}),"lex"),begin:(0,n.K2)((function(t){this.conditionStack.push(t)}),"begin"),popState:(0,n.K2)((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:(0,n.K2)((function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules}),"_currentRules"),topState:(0,n.K2)((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:(0,n.K2)((function(t){this.begin(t)}),"pushState"),stateStackSize:(0,n.K2)((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,n.K2)((function(t,e,a,r){switch(a){case 0:case 51:case 66:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 52:return e.yytext=e.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 67:return"INVALID"}}),"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}}}();function z(){this.yy={}}return W.lexer=q,(0,n.K2)(z,"Parser"),z.prototype=W,W.Parser=z,new z}();l.parser=l;var d=l,h=new s.m((()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0}))),p=(0,n.K2)((function(t){h.records.boxes.push({name:t.text,wrap:t.wrap??M(),fill:t.color,actorKeys:[]}),h.records.currentBox=h.records.boxes.slice(-1)[0]}),"addBox"),g=(0,n.K2)((function(t,e,a,r){let s=h.records.currentBox;const i=h.records.actors.get(t);if(i){if(h.records.currentBox&&i.box&&h.records.currentBox!==i.box)throw new Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${h.records.currentBox.name}' at the same time.`);if(s=i.box?i.box:h.records.currentBox,i.box=s,i&&e===i.name&&null==a)return}if(null==a?.text&&(a={text:e,type:r}),null!=r&&null!=a.text||(a={text:e,type:r}),h.records.actors.set(t,{box:s,name:e,description:a.text,wrap:a.wrap??M(),prevActor:h.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),h.records.prevActor){const e=h.records.actors.get(h.records.prevActor);e&&(e.nextActor=t)}h.records.currentBox&&h.records.currentBox.actorKeys.push(t),h.records.prevActor=t}),"addActor"),u=(0,n.K2)((t=>{let e,a=0;if(!t)return 0;for(e=0;e<h.records.messages.length;e++)h.records.messages[e].type===K.ACTIVE_START&&h.records.messages[e].from===t&&a++,h.records.messages[e].type===K.ACTIVE_END&&h.records.messages[e].from===t&&a--;return a}),"activationCount"),x=(0,n.K2)((function(t,e,a,r){h.records.messages.push({from:t,to:e,message:a.text,wrap:a.wrap??M(),answer:r})}),"addMessage"),y=(0,n.K2)((function(t,e,a,r,s=!1){if(r===K.ACTIVE_END){if(u(t??"")<1){const e=new Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}}return h.records.messages.push({from:t,to:e,message:a?.text??"",wrap:a?.wrap??M(),type:r,activate:s}),!0}),"addSignal"),m=(0,n.K2)((function(){return h.records.boxes.length>0}),"hasAtLeastOneBox"),b=(0,n.K2)((function(){return h.records.boxes.some((t=>t.name))}),"hasAtLeastOneBoxWithTitle"),T=(0,n.K2)((function(){return h.records.messages}),"getMessages"),f=(0,n.K2)((function(){return h.records.boxes}),"getBoxes"),E=(0,n.K2)((function(){return h.records.actors}),"getActors"),w=(0,n.K2)((function(){return h.records.createdActors}),"getCreatedActors"),I=(0,n.K2)((function(){return h.records.destroyedActors}),"getDestroyedActors"),L=(0,n.K2)((function(t){return h.records.actors.get(t)}),"getActor"),_=(0,n.K2)((function(){return[...h.records.actors.keys()]}),"getActorKeys"),P=(0,n.K2)((function(){h.records.sequenceNumbersEnabled=!0}),"enableSequenceNumbers"),k=(0,n.K2)((function(){h.records.sequenceNumbersEnabled=!1}),"disableSequenceNumbers"),A=(0,n.K2)((()=>h.records.sequenceNumbersEnabled),"showSequenceNumbers"),v=(0,n.K2)((function(t){h.records.wrapEnabled=t}),"setWrap"),N=(0,n.K2)((t=>{if(void 0===t)return{};t=t.trim();const e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}),"extractWrap"),M=(0,n.K2)((()=>void 0!==h.records.wrapEnabled?h.records.wrapEnabled:(0,n.D7)().sequence?.wrap??!1),"autoWrap"),D=(0,n.K2)((function(){h.reset(),(0,n.IU)()}),"clear"),O=(0,n.K2)((function(t){const e=t.trim(),{wrap:a,cleanedText:r}=N(e),s={text:r,wrap:a};return n.Rm.debug(`parseMessage: ${JSON.stringify(s)}`),s}),"parseMessage"),S=(0,n.K2)((function(t){const e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{const e=(new Option).style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}const{wrap:s,cleanedText:i}=N(r);return{text:i?(0,n.jZ)(i,(0,n.D7)()):void 0,color:a,wrap:s}}),"parseBoxData"),K={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},R=(0,n.K2)((function(t,e,a){const r={actor:t,placement:e,message:a.text,wrap:a.wrap??M()},s=[].concat(t,t);h.records.notes.push(r),h.records.messages.push({from:s[0],to:s[1],message:a.text,wrap:a.wrap??M(),type:K.NOTE,placement:e})}),"addNote"),Y=(0,n.K2)((function(t,e){const a=L(t);try{let t=(0,n.jZ)(e.text,(0,n.D7)());t=t.replace(/&/g,"&"),t=t.replace(/=/g,"=");B(a,JSON.parse(t))}catch(r){n.Rm.error("error while parsing actor link text",r)}}),"addLinks"),C=(0,n.K2)((function(t,e){const a=L(t);try{const t={};let r=(0,n.jZ)(e.text,(0,n.D7)());const s=r.indexOf("@");r=r.replace(/&/g,"&"),r=r.replace(/=/g,"=");const i=r.slice(0,s-1).trim(),o=r.slice(s+1).trim();t[i]=o,B(a,t)}catch(r){n.Rm.error("error while parsing actor link text",r)}}),"addALink");function B(t,e){if(null==t.links)t.links=e;else for(const a in e)t.links[a]=e[a]}(0,n.K2)(B,"insertLinks");var $=(0,n.K2)((function(t,e){const a=L(t);try{const t=(0,n.jZ)(e.text,(0,n.D7)());V(a,JSON.parse(t))}catch(r){n.Rm.error("error while parsing actor properties text",r)}}),"addProperties");function V(t,e){if(null==t.properties)t.properties=e;else for(const a in e)t.properties[a]=e[a]}function F(){h.records.currentBox=void 0}(0,n.K2)(V,"insertProperties"),(0,n.K2)(F,"boxEnd");var W=(0,n.K2)((function(t,e){const a=L(t),r=document.getElementById(e.text);try{const t=r.innerHTML,e=JSON.parse(t);e.properties&&V(a,e.properties),e.links&&B(a,e.links)}catch(s){n.Rm.error("error while parsing actor details text",s)}}),"addDetails"),q=(0,n.K2)((function(t,e){if(void 0!==t?.properties)return t.properties[e]}),"getActorProperty"),z=(0,n.K2)((function(t){if(Array.isArray(t))t.forEach((function(t){z(t)}));else switch(t.type){case"sequenceIndex":h.records.messages.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":g(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(h.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");h.records.lastCreated=t.actor,g(t.actor,t.actor,t.description,t.draw),h.records.createdActors.set(t.actor,h.records.messages.length);break;case"destroyParticipant":h.records.lastDestroyed=t.actor,h.records.destroyedActors.set(t.actor,h.records.messages.length);break;case"activeStart":case"activeEnd":y(t.actor,void 0,void 0,t.signalType);break;case"addNote":R(t.actor,t.placement,t.text);break;case"addLinks":Y(t.actor,t.text);break;case"addALink":C(t.actor,t.text);break;case"addProperties":$(t.actor,t.text);break;case"addDetails":W(t.actor,t.text);break;case"addMessage":if(h.records.lastCreated){if(t.to!==h.records.lastCreated)throw new Error("The created participant "+h.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");h.records.lastCreated=void 0}else if(h.records.lastDestroyed){if(t.to!==h.records.lastDestroyed&&t.from!==h.records.lastDestroyed)throw new Error("The destroyed participant "+h.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");h.records.lastDestroyed=void 0}y(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":p(t.boxData);break;case"boxEnd":F();break;case"loopStart":y(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":y(void 0,void 0,void 0,t.signalType);break;case"rectStart":y(void 0,void 0,t.color,t.signalType);break;case"optStart":y(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":y(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,n.SV)(t.text);break;case"parStart":case"and":y(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":y(void 0,void 0,t.criticalText,t.signalType);break;case"option":y(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":y(void 0,void 0,t.breakText,t.signalType)}}),"apply"),H={addActor:g,addMessage:x,addSignal:y,addLinks:Y,addDetails:W,addProperties:$,autoWrap:M,setWrap:v,enableSequenceNumbers:P,disableSequenceNumbers:k,showSequenceNumbers:A,getMessages:T,getActors:E,getCreatedActors:w,getDestroyedActors:I,getActor:L,getActorKeys:_,getActorProperty:q,getAccTitle:n.iN,getBoxes:f,getDiagramTitle:n.ab,setDiagramTitle:n.ke,getConfig:(0,n.K2)((()=>(0,n.D7)().sequence),"getConfig"),clear:D,parseMessage:O,parseBoxData:S,LINETYPE:K,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:R,setAccTitle:n.SV,apply:z,setAccDescription:n.EI,getAccDescription:n.m7,hasAtLeastOneBox:m,hasAtLeastOneBoxWithTitle:b},j=(0,n.K2)((t=>`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`),"getStyles"),U="actor-top",J="actor-bottom",X="actor-man",G=(0,n.K2)((function(t,e){return(0,r.tk)(t,e)}),"drawRect"),Z=(0,n.K2)((function(t,e,a,r,s){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};const i=e.links,n=e.actorCnt,o=e.rectData;var l="none";s&&(l="block !important");const d=t.append("g");d.attr("id","actor"+n+"_popup"),d.attr("class","actorPopupMenu"),d.attr("display",l);var h="";void 0!==o.class&&(h=" "+o.class);let p=o.width>a?o.width:a;const g=d.append("rect");if(g.attr("class","actorPopupMenuPanel"+h),g.attr("x",o.x),g.attr("y",o.height),g.attr("fill",o.fill),g.attr("stroke",o.stroke),g.attr("width",p),g.attr("height",o.height),g.attr("rx",o.rx),g.attr("ry",o.ry),null!=i){var u=20;for(let t in i){var x=d.append("a"),y=(0,c.J)(i[t]);x.attr("xlink:href",y),x.attr("target","_blank"),It(r)(t,x,o.x+10,o.height+u,p,20,{class:"actor"},r),u+=30}}return g.attr("height",u),{height:o.height+u,width:p}}),"drawPopup"),Q=(0,n.K2)((function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"}),"popupMenuToggle"),tt=(0,n.K2)((async function(t,e,a=null){let r=t.append("foreignObject");const s=await(0,n.VJ)(e.text,(0,n.zj)()),i=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();if(r.attr("height",Math.round(i.height)).attr("width",Math.round(i.width)),"noteText"===e.class){const a=t.node().firstChild;a.setAttribute("height",i.height+2*e.textMargin);const s=a.getBBox();r.attr("x",Math.round(s.x+s.width/2-i.width/2)).attr("y",Math.round(s.y+s.height/2-i.height/2))}else if(a){let{startx:t,stopx:s,starty:n}=a;if(t>s){const e=t;t=s,s=e}r.attr("x",Math.round(t+Math.abs(t-s)/2-i.width/2)),"loopText"===e.class?r.attr("y",Math.round(n)):r.attr("y",Math.round(n-i.height))}return[r]}),"drawKatex"),et=(0,n.K2)((function(t,e){let a=0,r=0;const s=e.text.split(n.Y2.lineBreakRegex),[o,c]=(0,i.I5)(e.fontSize);let l=[],d=0,h=(0,n.K2)((()=>e.y),"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":h=(0,n.K2)((()=>Math.round(e.y+e.textMargin)),"yfunc");break;case"middle":case"center":h=(0,n.K2)((()=>Math.round(e.y+(a+r+e.textMargin)/2)),"yfunc");break;case"bottom":case"end":h=(0,n.K2)((()=>Math.round(e.y+(a+r+2*e.textMargin)-e.textMargin)),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[n,p]of s.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==o&&(d=n*o);const s=t.append("text");s.attr("x",e.x),s.attr("y",h()),void 0!==e.anchor&&s.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&s.style("font-family",e.fontFamily),void 0!==c&&s.style("font-size",c),void 0!==e.fontWeight&&s.style("font-weight",e.fontWeight),void 0!==e.fill&&s.attr("fill",e.fill),void 0!==e.class&&s.attr("class",e.class),void 0!==e.dy?s.attr("dy",e.dy):0!==d&&s.attr("dy",d);const g=p||i.pe;if(e.tspan){const t=s.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(g)}else s.text(g);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(s._groups||s)[0][0].getBBox().height,a=r),l.push(s)}return l}),"drawText"),at=(0,n.K2)((function(t,e){function a(t,e,a,r,s){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+r-s)+" "+(t+a-1.2*s)+","+(e+r)+" "+t+","+(e+r)}(0,n.K2)(a,"genPoints");const r=t.append("polygon");return r.attr("points",a(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,et(t,e),r}),"drawLabel"),rt=-1,st=(0,n.K2)(((t,e,a,r)=>{t.select&&a.forEach((a=>{const s=e.get(a),i=t.select("#actor"+s.actorCnt);!r.mirrorActors&&s.stopy?i.attr("y2",s.stopy+s.height/2):r.mirrorActors&&i.attr("y2",s.stopy)}))}),"fixLifeLineHeights"),it=(0,n.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty,o=e.x+e.width/2,c=i+e.height,l=t.append("g").lower();var d=l;s||(rt++,Object.keys(e.links||{}).length&&!a.forceMenus&&d.attr("onclick",Q(`actor${rt}_popup`)).attr("cursor","pointer"),d.append("line").attr("id","actor"+rt).attr("x1",o).attr("y1",c).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name),d=l.append("g"),e.actorCnt=rt,null!=e.links&&d.attr("id","root-"+rt));const h=(0,r.PB)();var p="actor";e.properties?.class?p=e.properties.class:h.fill="#eaeaea",p+=s?` ${J}`:` ${U}`,h.x=e.x,h.y=i,h.width=e.width,h.height=e.height,h.class=p,h.rx=3,h.ry=3,h.name=e.name;const g=G(d,h);if(e.rectData=h,e.properties?.icon){const t=e.properties.icon.trim();"@"===t.charAt(0)?(0,r.CP)(d,h.x+h.width-20,h.y+10,t.substr(1)):(0,r.aC)(d,h.x+h.width-20,h.y+10,t)}wt(a,(0,n.Wi)(e.description))(e.description,d,h.x,h.y,h.width,h.height,{class:"actor actor-box"},a);let u=e.height;if(g.node){const t=g.node().getBBox();e.height=t.height,u=t.height}return u}),"drawActorTypeParticipant"),nt=(0,n.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty,o=e.x+e.width/2,c=i+80,l=t.append("g").lower();s||(rt++,l.append("line").attr("id","actor"+rt).attr("x1",o).attr("y1",c).attr("x2",o).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name),e.actorCnt=rt);const d=t.append("g");let h=X;h+=s?` ${J}`:` ${U}`,d.attr("class",h),d.attr("name",e.name);const p=(0,r.PB)();p.x=e.x,p.y=i,p.fill="#eaeaea",p.width=e.width,p.height=e.height,p.class="actor",p.rx=3,p.ry=3,d.append("line").attr("id","actor-man-torso"+rt).attr("x1",o).attr("y1",i+25).attr("x2",o).attr("y2",i+45),d.append("line").attr("id","actor-man-arms"+rt).attr("x1",o-18).attr("y1",i+33).attr("x2",o+18).attr("y2",i+33),d.append("line").attr("x1",o-18).attr("y1",i+60).attr("x2",o).attr("y2",i+45),d.append("line").attr("x1",o).attr("y1",i+45).attr("x2",o+18-2).attr("y2",i+60);const g=d.append("circle");g.attr("cx",e.x+e.width/2),g.attr("cy",i+10),g.attr("r",15),g.attr("width",e.width),g.attr("height",e.height);const u=d.node().getBBox();return e.height=u.height,wt(a,(0,n.Wi)(e.description))(e.description,d,p.x,p.y+35,p.width,p.height,{class:`actor ${X}`},a),e.height}),"drawActorTypeActor"),ot=(0,n.K2)((async function(t,e,a,r){switch(e.type){case"actor":return await nt(t,e,a,r);case"participant":return await it(t,e,a,r)}}),"drawActor"),ct=(0,n.K2)((function(t,e,a){const r=t.append("g");pt(r,e),e.name&&wt(a)(e.name,r,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a),r.lower()}),"drawBox"),lt=(0,n.K2)((function(t){return t.append("g")}),"anchorElement"),dt=(0,n.K2)((function(t,e,a,s,i){const n=(0,r.PB)(),o=e.anchored;n.x=e.startx,n.y=e.starty,n.class="activation"+i%3,n.width=e.stopx-e.startx,n.height=a-e.starty,G(o,n)}),"drawActivation"),ht=(0,n.K2)((async function(t,e,a,s){const{boxMargin:i,boxTextMargin:o,labelBoxHeight:c,labelBoxWidth:l,messageFontFamily:d,messageFontSize:h,messageFontWeight:p}=s,g=t.append("g"),u=(0,n.K2)((function(t,e,a,r){return g.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r).attr("class","loopLine")}),"drawLoopLine");u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){u(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let x=(0,r.HT)();x.text=a,x.x=e.startx,x.y=e.starty,x.fontFamily=d,x.fontSize=h,x.fontWeight=p,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=l||50,x.height=c||20,x.textMargin=o,x.class="labelText",at(g,x),x=ft(),x.text=e.title,x.x=e.startx+l/2+(e.stopx-e.startx)/2,x.y=e.starty+i+o,x.anchor="middle",x.valign="middle",x.textMargin=o,x.class="loopText",x.fontFamily=d,x.fontSize=h,x.fontWeight=p,x.wrap=!0;let y=(0,n.Wi)(x.text)?await tt(g,x,e):et(g,x);if(void 0!==e.sectionTitles)for(const[r,m]of Object.entries(e.sectionTitles))if(m.message){x.text=m.message,x.x=e.startx+(e.stopx-e.startx)/2,x.y=e.sections[r].y+i+o,x.class="loopText",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=d,x.fontSize=h,x.fontWeight=p,x.wrap=e.wrap,(0,n.Wi)(x.text)?(e.starty=e.sections[r].y,await tt(g,x,e)):et(g,x);let t=Math.round(y.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[r].height+=t-(i+o)}return e.height=Math.round(e.stopy-e.starty),g}),"drawLoop"),pt=(0,n.K2)((function(t,e){(0,r.lC)(t,e)}),"drawBackgroundRect"),gt=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}),"insertDatabaseIcon"),ut=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}),"insertComputerIcon"),xt=(0,n.K2)((function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}),"insertClockIcon"),yt=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")}),"insertArrowHead"),mt=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"insertArrowFilledHead"),bt=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}),"insertSequenceNumber"),Tt=(0,n.K2)((function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")}),"insertArrowCrossHead"),ft=(0,n.K2)((function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}}),"getTextObj"),Et=(0,n.K2)((function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect"),wt=function(){function t(t,e,a,r,i,n,o){s(e.append("text").attr("x",a+i/2).attr("y",r+n/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,r,o,c,l,d){const{actorFontSize:h,actorFontFamily:p,actorFontWeight:g}=d,[u,x]=(0,i.I5)(h),y=t.split(n.Y2.lineBreakRegex);for(let i=0;i<y.length;i++){const t=i*u-u*(y.length-1)/2,n=e.append("text").attr("x",a+o/2).attr("y",r).style("text-anchor","middle").style("font-size",x).style("font-weight",g).style("font-family",p);n.append("tspan").attr("x",a+o/2).attr("dy",t).text(y[i]),n.attr("y",r+c/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(n,l)}}function a(t,a,r,i,n,o,c,l){const d=a.append("switch"),h=d.append("foreignObject").attr("x",r).attr("y",i).attr("width",n).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,r,i,n,o,c,l),s(h,c)}async function r(t,a,r,i,o,c,l,d){const h=await(0,n.Dl)(t,(0,n.zj)()),p=a.append("switch"),g=p.append("foreignObject").attr("x",r+o/2-h.width/2).attr("y",i+c/2-h.height/2).attr("width",h.width).attr("height",h.height).append("xhtml:div").style("height","100%").style("width","100%");g.append("div").style("text-align","center").style("vertical-align","middle").html(await(0,n.VJ)(t,(0,n.zj)())),e(t,p,r,i,o,c,l,d),s(g,l)}function s(t,e){for(const a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.K2)(t,"byText"),(0,n.K2)(e,"byTspan"),(0,n.K2)(a,"byFo"),(0,n.K2)(r,"byKatex"),(0,n.K2)(s,"_setTextAttrs"),function(s,i=!1){return i?r:"fo"===s.textPlacement?a:"old"===s.textPlacement?t:e}}(),It=function(){function t(t,e,a,s,i,n,o){r(e.append("text").attr("x",a).attr("y",s).style("text-anchor","start").text(t),o)}function e(t,e,a,s,i,o,c,l){const{actorFontSize:d,actorFontFamily:h,actorFontWeight:p}=l,g=t.split(n.Y2.lineBreakRegex);for(let n=0;n<g.length;n++){const t=n*d-d*(g.length-1)/2,i=e.append("text").attr("x",a).attr("y",s).style("text-anchor","start").style("font-size",d).style("font-weight",p).style("font-family",h);i.append("tspan").attr("x",a).attr("dy",t).text(g[n]),i.attr("y",s+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(i,c)}}function a(t,a,s,i,n,o,c,l){const d=a.append("switch"),h=d.append("foreignObject").attr("x",s).attr("y",i).attr("width",n).attr("height",o).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,d,s,i,0,o,c,l),r(h,c)}function r(t,e){for(const a in e)e.hasOwnProperty(a)&&t.attr(a,e[a])}return(0,n.K2)(t,"byText"),(0,n.K2)(e,"byTspan"),(0,n.K2)(a,"byFo"),(0,n.K2)(r,"_setTextAttrs"),function(r){return"fo"===r.textPlacement?a:"old"===r.textPlacement?t:e}}(),Lt={drawRect:G,drawText:et,drawLabel:at,drawActor:ot,drawBox:ct,drawPopup:Z,anchorElement:lt,drawActivation:dt,drawLoop:ht,drawBackgroundRect:pt,insertArrowHead:yt,insertArrowFilledHead:mt,insertSequenceNumber:bt,insertArrowCrossHead:Tt,insertDatabaseIcon:gt,insertComputerIcon:ut,insertClockIcon:xt,getTextObj:ft,getNoteRect:Et,fixLifeLineHeights:st,sanitizeUrl:c.J},_t={},Pt={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,n.K2)((function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))}),"getHeight"),clear:(0,n.K2)((function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]}),"clear"),addBox:(0,n.K2)((function(t){this.boxes.push(t)}),"addBox"),addActor:(0,n.K2)((function(t){this.actors.push(t)}),"addActor"),addLoop:(0,n.K2)((function(t){this.loops.push(t)}),"addLoop"),addMessage:(0,n.K2)((function(t){this.messages.push(t)}),"addMessage"),addNote:(0,n.K2)((function(t){this.notes.push(t)}),"addNote"),lastActor:(0,n.K2)((function(){return this.actors[this.actors.length-1]}),"lastActor"),lastLoop:(0,n.K2)((function(){return this.loops[this.loops.length-1]}),"lastLoop"),lastMessage:(0,n.K2)((function(){return this.messages[this.messages.length-1]}),"lastMessage"),lastNote:(0,n.K2)((function(){return this.notes[this.notes.length-1]}),"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,n.K2)((function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Rt((0,n.D7)())}),"init"),updateVal:(0,n.K2)((function(t,e,a,r){void 0===t[e]?t[e]=a:t[e]=r(a,t[e])}),"updateVal"),updateBounds:(0,n.K2)((function(t,e,a,r){const s=this;let i=0;function o(o){return(0,n.K2)((function(n){i++;const c=s.sequenceItems.length-i+1;s.updateVal(n,"starty",e-c*_t.boxMargin,Math.min),s.updateVal(n,"stopy",r+c*_t.boxMargin,Math.max),s.updateVal(Pt.data,"startx",t-c*_t.boxMargin,Math.min),s.updateVal(Pt.data,"stopx",a+c*_t.boxMargin,Math.max),"activation"!==o&&(s.updateVal(n,"startx",t-c*_t.boxMargin,Math.min),s.updateVal(n,"stopx",a+c*_t.boxMargin,Math.max),s.updateVal(Pt.data,"starty",e-c*_t.boxMargin,Math.min),s.updateVal(Pt.data,"stopy",r+c*_t.boxMargin,Math.max))}),"updateItemBounds")}(0,n.K2)(o,"updateFn"),this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))}),"updateBounds"),insert:(0,n.K2)((function(t,e,a,r){const s=n.Y2.getMin(t,a),i=n.Y2.getMax(t,a),o=n.Y2.getMin(e,r),c=n.Y2.getMax(e,r);this.updateVal(Pt.data,"startx",s,Math.min),this.updateVal(Pt.data,"starty",o,Math.min),this.updateVal(Pt.data,"stopx",i,Math.max),this.updateVal(Pt.data,"stopy",c,Math.max),this.updateBounds(s,o,i,c)}),"insert"),newActivation:(0,n.K2)((function(t,e,a){const r=a.get(t.from),s=Yt(t.from).length||0,i=r.x+r.width/2+(s-1)*_t.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+_t.activationWidth,stopy:void 0,actor:t.from,anchored:Lt.anchorElement(e)})}),"newActivation"),endActivation:(0,n.K2)((function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from);return this.activations.splice(e,1)[0]}),"endActivation"),createLoop:(0,n.K2)((function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}}),"createLoop"),newLoop:(0,n.K2)((function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))}),"newLoop"),endLoop:(0,n.K2)((function(){return this.sequenceItems.pop()}),"endLoop"),isLoopOverlap:(0,n.K2)((function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap}),"isLoopOverlap"),addSectionToLoop:(0,n.K2)((function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:Pt.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)}),"addSectionToLoop"),saveVerticalPos:(0,n.K2)((function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)}),"saveVerticalPos"),resetVerticalPos:(0,n.K2)((function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)}),"resetVerticalPos"),bumpVerticalPos:(0,n.K2)((function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=n.Y2.getMax(this.data.stopy,this.verticalPos)}),"bumpVerticalPos"),getVerticalPos:(0,n.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,n.K2)((function(){return{bounds:this.data,models:this.models}}),"getBounds")},kt=(0,n.K2)((async function(t,e){Pt.bumpVerticalPos(_t.boxMargin),e.height=_t.boxMargin,e.starty=Pt.getVerticalPos();const a=(0,r.PB)();a.x=e.startx,a.y=e.starty,a.width=e.width||_t.width,a.class="note";const s=t.append("g"),i=Lt.drawRect(s,a),o=(0,r.HT)();o.x=e.startx,o.y=e.starty,o.width=a.width,o.dy="1em",o.text=e.message,o.class="noteText",o.fontFamily=_t.noteFontFamily,o.fontSize=_t.noteFontSize,o.fontWeight=_t.noteFontWeight,o.anchor=_t.noteAlign,o.textMargin=_t.noteMargin,o.valign="center";const c=(0,n.Wi)(o.text)?await tt(s,o):et(s,o),l=Math.round(c.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));i.attr("height",l+2*_t.noteMargin),e.height+=l+2*_t.noteMargin,Pt.bumpVerticalPos(l+2*_t.noteMargin),e.stopy=e.starty+l+2*_t.noteMargin,e.stopx=e.startx+a.width,Pt.insert(e.startx,e.starty,e.stopx,e.stopy),Pt.models.addNote(e)}),"drawNote"),At=(0,n.K2)((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont"),vt=(0,n.K2)((t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight})),"noteFont"),Nt=(0,n.K2)((t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight})),"actorFont");async function Mt(t,e){Pt.bumpVerticalPos(10);const{startx:a,stopx:r,message:s}=e,o=n.Y2.splitBreaks(s).length,c=(0,n.Wi)(s),l=c?await(0,n.Dl)(s,(0,n.D7)()):i._K.calculateTextDimensions(s,At(_t));if(!c){const t=l.height/o;e.height+=t,Pt.bumpVerticalPos(t)}let d,h=l.height-10;const p=l.width;if(a===r){d=Pt.getVerticalPos()+h,_t.rightAngles||(h+=_t.boxMargin,d=Pt.getVerticalPos()+h),h+=30;const t=n.Y2.getMax(p/2,_t.width/2);Pt.insert(a-t,Pt.getVerticalPos()-10+h,r+t,Pt.getVerticalPos()+30+h)}else h+=_t.boxMargin,d=Pt.getVerticalPos()+h,Pt.insert(a,d-10,r,d);return Pt.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,Pt.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),d}(0,n.K2)(Mt,"boundMessage");var Dt=(0,n.K2)((async function(t,e,a,s){const{startx:o,stopx:c,starty:l,message:d,type:h,sequenceIndex:p,sequenceVisible:g}=e,u=i._K.calculateTextDimensions(d,At(_t)),x=(0,r.HT)();x.x=o,x.y=l+10,x.width=c-o,x.class="messageText",x.dy="1em",x.text=d,x.fontFamily=_t.messageFontFamily,x.fontSize=_t.messageFontSize,x.fontWeight=_t.messageFontWeight,x.anchor=_t.messageAlign,x.valign="center",x.textMargin=_t.wrapPadding,x.tspan=!1,(0,n.Wi)(x.text)?await tt(t,x,{startx:o,stopx:c,starty:a}):et(t,x);const y=u.width;let m;o===c?m=_t.rightAngles?t.append("path").attr("d",`M ${o},${a} H ${o+n.Y2.getMax(_t.width/2,y/2)} V ${a+25} H ${o}`):t.append("path").attr("d","M "+o+","+a+" C "+(o+60)+","+(a-10)+" "+(o+60)+","+(a+30)+" "+o+","+(a+20)):(m=t.append("line"),m.attr("x1",o),m.attr("y1",a),m.attr("x2",c),m.attr("y2",a)),h===s.db.LINETYPE.DOTTED||h===s.db.LINETYPE.DOTTED_CROSS||h===s.db.LINETYPE.DOTTED_POINT||h===s.db.LINETYPE.DOTTED_OPEN||h===s.db.LINETYPE.BIDIRECTIONAL_DOTTED?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let b="";_t.arrowMarkerAbsolute&&(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,b=b.replace(/\(/g,"\\("),b=b.replace(/\)/g,"\\)")),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),h!==s.db.LINETYPE.SOLID&&h!==s.db.LINETYPE.DOTTED||m.attr("marker-end","url("+b+"#arrowhead)"),h!==s.db.LINETYPE.BIDIRECTIONAL_SOLID&&h!==s.db.LINETYPE.BIDIRECTIONAL_DOTTED||(m.attr("marker-start","url("+b+"#arrowhead)"),m.attr("marker-end","url("+b+"#arrowhead)")),h!==s.db.LINETYPE.SOLID_POINT&&h!==s.db.LINETYPE.DOTTED_POINT||m.attr("marker-end","url("+b+"#filled-head)"),h!==s.db.LINETYPE.SOLID_CROSS&&h!==s.db.LINETYPE.DOTTED_CROSS||m.attr("marker-end","url("+b+"#crosshead)"),(g||_t.showSequenceNumbers)&&(m.attr("marker-start","url("+b+"#sequencenumber)"),t.append("text").attr("x",o).attr("y",a+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(p))}),"drawMessage"),Ot=(0,n.K2)((function(t,e,a,r,s,i,o){let c,l=0,d=0,h=0;for(const p of r){const t=e.get(p),r=t.box;c&&c!=r&&(o||Pt.models.addBox(c),d+=_t.boxMargin+c.margin),r&&r!=c&&(o||(r.x=l+d,r.y=s),d+=r.margin),t.width=t.width||_t.width,t.height=n.Y2.getMax(t.height||_t.height,_t.height),t.margin=t.margin||_t.actorMargin,h=n.Y2.getMax(h,t.height),a.get(t.name)&&(d+=t.width/2),t.x=l+d,t.starty=Pt.getVerticalPos(),Pt.insert(t.x,s,t.x+t.width,t.height),l+=t.width+d,t.box&&(t.box.width=l+r.margin-t.box.x),d=t.margin,c=t.box,Pt.models.addActor(t)}c&&!o&&Pt.models.addBox(c),Pt.bumpVerticalPos(h)}),"addActorRenderingData"),St=(0,n.K2)((async function(t,e,a,r){if(r){let r=0;Pt.bumpVerticalPos(2*_t.boxMargin);for(const s of a){const a=e.get(s);a.stopy||(a.stopy=Pt.getVerticalPos());const i=await Lt.drawActor(t,a,_t,!0);r=n.Y2.getMax(r,i)}Pt.bumpVerticalPos(r+_t.boxMargin)}else for(const s of a){const a=e.get(s);await Lt.drawActor(t,a,_t,!1)}}),"drawActors"),Kt=(0,n.K2)((function(t,e,a,r){let s=0,i=0;for(const n of a){const a=e.get(n),o=Wt(a),c=Lt.drawPopup(t,a,o,_t,_t.forceMenus,r);c.height>s&&(s=c.height),c.width+a.x>i&&(i=c.width+a.x)}return{maxHeight:s,maxWidth:i}}),"drawActorsPopup"),Rt=(0,n.K2)((function(t){(0,n.hH)(_t,t),t.fontFamily&&(_t.actorFontFamily=_t.noteFontFamily=_t.messageFontFamily=t.fontFamily),t.fontSize&&(_t.actorFontSize=_t.noteFontSize=_t.messageFontSize=t.fontSize),t.fontWeight&&(_t.actorFontWeight=_t.noteFontWeight=_t.messageFontWeight=t.fontWeight)}),"setConf"),Yt=(0,n.K2)((function(t){return Pt.activations.filter((function(e){return e.actor===t}))}),"actorActivations"),Ct=(0,n.K2)((function(t,e){const a=e.get(t),r=Yt(t);return[r.reduce((function(t,e){return n.Y2.getMin(t,e.startx)}),a.x+a.width/2-1),r.reduce((function(t,e){return n.Y2.getMax(t,e.stopx)}),a.x+a.width/2+1)]}),"activationBounds");function Bt(t,e,a,r,s){Pt.bumpVerticalPos(a);let o=r;if(e.id&&e.message&&t[e.id]){const a=t[e.id].width,s=At(_t);e.message=i._K.wrapLabel(`[${e.message}]`,a-2*_t.wrapPadding,s),e.width=a,e.wrap=!0;const c=i._K.calculateTextDimensions(e.message,s),l=n.Y2.getMax(c.height,_t.labelBoxHeight);o=r+l,n.Rm.debug(`${l} - ${e.message}`)}s(e),Pt.bumpVerticalPos(o)}function $t(t,e,a,r,s,i,o){function c(a,r){a.x<s.get(t.from).x?(Pt.insert(e.stopx-r,e.starty,e.startx,e.stopy+a.height/2+_t.noteMargin),e.stopx=e.stopx+r):(Pt.insert(e.startx,e.starty,e.stopx+r,e.stopy+a.height/2+_t.noteMargin),e.stopx=e.stopx-r)}function l(a,r){a.x<s.get(t.to).x?(Pt.insert(e.startx-r,e.starty,e.stopx,e.stopy+a.height/2+_t.noteMargin),e.startx=e.startx+r):(Pt.insert(e.stopx,e.starty,e.startx+r,e.stopy+a.height/2+_t.noteMargin),e.startx=e.startx-r)}if((0,n.K2)(c,"receiverAdjustment"),(0,n.K2)(l,"senderAdjustment"),i.get(t.to)==r){const e=s.get(t.to);c(e,"actor"==e.type?21:e.width/2+3),e.starty=a-e.height/2,Pt.bumpVerticalPos(e.height/2)}else if(o.get(t.from)==r){const e=s.get(t.from);if(_t.mirrorActors){l(e,"actor"==e.type?18:e.width/2)}e.stopy=a-e.height/2,Pt.bumpVerticalPos(e.height/2)}else if(o.get(t.to)==r){const e=s.get(t.to);if(_t.mirrorActors){c(e,"actor"==e.type?21:e.width/2+3)}e.stopy=a-e.height/2,Pt.bumpVerticalPos(e.height/2)}}(0,n.K2)(Bt,"adjustLoopHeightForWrap"),(0,n.K2)($t,"adjustCreatedDestroyedData");var Vt=(0,n.K2)((async function(t,e,a,r){const{securityLevel:s,sequence:i}=(0,n.D7)();let c;_t=i,"sandbox"===s&&(c=(0,o.Ltv)("#i"+e));const l="sandbox"===s?(0,o.Ltv)(c.nodes()[0].contentDocument.body):(0,o.Ltv)("body"),d="sandbox"===s?c.nodes()[0].contentDocument:document;Pt.init(),n.Rm.debug(r.db);const h="sandbox"===s?l.select(`[id="${e}"]`):(0,o.Ltv)(`[id="${e}"]`),p=r.db.getActors(),g=r.db.getCreatedActors(),u=r.db.getDestroyedActors(),x=r.db.getBoxes();let y=r.db.getActorKeys();const m=r.db.getMessages(),b=r.db.getDiagramTitle(),T=r.db.hasAtLeastOneBox(),f=r.db.hasAtLeastOneBoxWithTitle(),E=await Ft(p,m,r);if(_t.height=await qt(p,E,x),Lt.insertComputerIcon(h),Lt.insertDatabaseIcon(h),Lt.insertClockIcon(h),T&&(Pt.bumpVerticalPos(_t.boxMargin),f&&Pt.bumpVerticalPos(x[0].textMaxHeight)),!0===_t.hideUnusedParticipants){const t=new Set;m.forEach((e=>{t.add(e.from),t.add(e.to)})),y=y.filter((e=>t.has(e)))}Ot(h,p,g,y,0,m,!1);const w=await jt(m,p,E,r);function I(t,e){const a=Pt.endActivation(t);a.starty+18>e&&(a.starty=e-6,e+=12),Lt.drawActivation(h,a,e,_t,Yt(t.from).length),Pt.insert(a.startx,e-10,a.stopx,e)}Lt.insertArrowHead(h),Lt.insertArrowCrossHead(h),Lt.insertArrowFilledHead(h),Lt.insertSequenceNumber(h),(0,n.K2)(I,"activeEnd");let L=1,_=1;const P=[],k=[];let A=0;for(const o of m){let t,e,a;switch(o.type){case r.db.LINETYPE.NOTE:Pt.resetVerticalPos(),e=o.noteModel,await kt(h,e);break;case r.db.LINETYPE.ACTIVE_START:Pt.newActivation(o,h,p);break;case r.db.LINETYPE.ACTIVE_END:I(o,Pt.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t)));break;case r.db.LINETYPE.LOOP_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"loop",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:Bt(w,o,_t.boxMargin,_t.boxMargin,(t=>Pt.newLoop(void 0,t.message)));break;case r.db.LINETYPE.RECT_END:t=Pt.endLoop(),k.push(t),Pt.models.addLoop(t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos());break;case r.db.LINETYPE.OPT_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t)));break;case r.db.LINETYPE.OPT_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"opt",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t)));break;case r.db.LINETYPE.ALT_ELSE:Bt(w,o,_t.boxMargin+_t.boxTextMargin,_t.boxMargin,(t=>Pt.addSectionToLoop(t)));break;case r.db.LINETYPE.ALT_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"alt",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t))),Pt.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:Bt(w,o,_t.boxMargin+_t.boxTextMargin,_t.boxMargin,(t=>Pt.addSectionToLoop(t)));break;case r.db.LINETYPE.PAR_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"par",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:L=o.message.start||L,_=o.message.step||_,o.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t)));break;case r.db.LINETYPE.CRITICAL_OPTION:Bt(w,o,_t.boxMargin+_t.boxTextMargin,_t.boxMargin,(t=>Pt.addSectionToLoop(t)));break;case r.db.LINETYPE.CRITICAL_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"critical",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:Bt(w,o,_t.boxMargin,_t.boxMargin+_t.boxTextMargin,(t=>Pt.newLoop(t)));break;case r.db.LINETYPE.BREAK_END:t=Pt.endLoop(),await Lt.drawLoop(h,t,"break",_t),Pt.bumpVerticalPos(t.stopy-Pt.getVerticalPos()),Pt.models.addLoop(t);break;default:try{a=o.msgModel,a.starty=Pt.getVerticalPos(),a.sequenceIndex=L,a.sequenceVisible=r.db.showSequenceNumbers();const t=await Mt(0,a);$t(o,a,t,A,p,g,u),P.push({messageModel:a,lineStartY:t}),Pt.models.addMessage(a)}catch(R){n.Rm.error("error while drawing message",R)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(o.type)&&(L+=_),A++}n.Rm.debug("createdActors",g),n.Rm.debug("destroyedActors",u),await St(h,p,y,!1);for(const n of P)await Dt(h,n.messageModel,n.lineStartY,r);_t.mirrorActors&&await St(h,p,y,!0),k.forEach((t=>Lt.drawBackgroundRect(h,t))),st(h,p,y,_t);for(const n of Pt.models.boxes)n.height=Pt.getVerticalPos()-n.y,Pt.insert(n.x,n.y,n.x+n.width,n.height),n.startx=n.x,n.starty=n.y,n.stopx=n.startx+n.width,n.stopy=n.starty+n.height,n.stroke="rgb(0,0,0, 0.5)",Lt.drawBox(h,n,_t);T&&Pt.bumpVerticalPos(_t.boxMargin);const v=Kt(h,p,y,d),{bounds:N}=Pt.getBounds();void 0===N.startx&&(N.startx=0),void 0===N.starty&&(N.starty=0),void 0===N.stopx&&(N.stopx=0),void 0===N.stopy&&(N.stopy=0);let M=N.stopy-N.starty;M<v.maxHeight&&(M=v.maxHeight);let D=M+2*_t.diagramMarginY;_t.mirrorActors&&(D=D-_t.boxMargin+_t.bottomMarginAdj);let O=N.stopx-N.startx;O<v.maxWidth&&(O=v.maxWidth);const S=O+2*_t.diagramMarginX;b&&h.append("text").text(b).attr("x",(N.stopx-N.startx)/2-2*_t.diagramMarginX).attr("y",-25),(0,n.a$)(h,D,S,_t.useMaxWidth);const K=b?40:0;h.attr("viewBox",N.startx-_t.diagramMarginX+" -"+(_t.diagramMarginY+K)+" "+S+" "+(D+K)),n.Rm.debug("models:",Pt.models)}),"draw");async function Ft(t,e,a){const r={};for(const s of e)if(t.get(s.to)&&t.get(s.from)){const e=t.get(s.to);if(s.placement===a.db.PLACEMENT.LEFTOF&&!e.prevActor)continue;if(s.placement===a.db.PLACEMENT.RIGHTOF&&!e.nextActor)continue;const o=void 0!==s.placement,c=!o,l=o?vt(_t):At(_t),d=s.wrap?i._K.wrapLabel(s.message,_t.width-2*_t.wrapPadding,l):s.message,h=((0,n.Wi)(d)?await(0,n.Dl)(s.message,(0,n.D7)()):i._K.calculateTextDimensions(d,l)).width+2*_t.wrapPadding;c&&s.from===e.nextActor?r[s.to]=n.Y2.getMax(r[s.to]||0,h):c&&s.from===e.prevActor?r[s.from]=n.Y2.getMax(r[s.from]||0,h):c&&s.from===s.to?(r[s.from]=n.Y2.getMax(r[s.from]||0,h/2),r[s.to]=n.Y2.getMax(r[s.to]||0,h/2)):s.placement===a.db.PLACEMENT.RIGHTOF?r[s.from]=n.Y2.getMax(r[s.from]||0,h):s.placement===a.db.PLACEMENT.LEFTOF?r[e.prevActor]=n.Y2.getMax(r[e.prevActor]||0,h):s.placement===a.db.PLACEMENT.OVER&&(e.prevActor&&(r[e.prevActor]=n.Y2.getMax(r[e.prevActor]||0,h/2)),e.nextActor&&(r[s.from]=n.Y2.getMax(r[s.from]||0,h/2)))}return n.Rm.debug("maxMessageWidthPerActor:",r),r}(0,n.K2)(Ft,"getMaxMessageWidthPerActor");var Wt=(0,n.K2)((function(t){let e=0;const a=Nt(_t);for(const r in t.links){const t=i._K.calculateTextDimensions(r,a).width+2*_t.wrapPadding+2*_t.boxMargin;e<t&&(e=t)}return e}),"getRequiredPopupWidth");async function qt(t,e,a){let r=0;for(const o of t.keys()){const e=t.get(o);e.wrap&&(e.description=i._K.wrapLabel(e.description,_t.width-2*_t.wrapPadding,Nt(_t)));const a=(0,n.Wi)(e.description)?await(0,n.Dl)(e.description,(0,n.D7)()):i._K.calculateTextDimensions(e.description,Nt(_t));e.width=e.wrap?_t.width:n.Y2.getMax(_t.width,a.width+2*_t.wrapPadding),e.height=e.wrap?n.Y2.getMax(a.height,_t.height):_t.height,r=n.Y2.getMax(r,e.height)}for(const i in e){const a=t.get(i);if(!a)continue;const r=t.get(a.nextActor);if(!r){const t=e[i]+_t.actorMargin-a.width/2;a.margin=n.Y2.getMax(t,_t.actorMargin);continue}const s=e[i]+_t.actorMargin-a.width/2-r.width/2;a.margin=n.Y2.getMax(s,_t.actorMargin)}let s=0;return a.forEach((e=>{const a=At(_t);let r=e.actorKeys.reduce(((e,a)=>e+(t.get(a).width+(t.get(a).margin||0))),0);r-=2*_t.boxTextMargin,e.wrap&&(e.name=i._K.wrapLabel(e.name,r-2*_t.wrapPadding,a));const o=i._K.calculateTextDimensions(e.name,a);s=n.Y2.getMax(o.height,s);const c=n.Y2.getMax(r,o.width+2*_t.wrapPadding);if(e.margin=_t.boxTextMargin,r<c){const t=(c-r)/2;e.margin+=t}})),a.forEach((t=>t.textMaxHeight=s)),n.Y2.getMax(r,_t.height)}(0,n.K2)(qt,"calculateActorMargins");var zt=(0,n.K2)((async function(t,e,a){const r=e.get(t.from),s=e.get(t.to),o=r.x,c=s.x,l=t.wrap&&t.message;let d=(0,n.Wi)(t.message)?await(0,n.Dl)(t.message,(0,n.D7)()):i._K.calculateTextDimensions(l?i._K.wrapLabel(t.message,_t.width,vt(_t)):t.message,vt(_t));const h={width:l?_t.width:n.Y2.getMax(_t.width,d.width+2*_t.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(h.width=l?n.Y2.getMax(_t.width,d.width):n.Y2.getMax(r.width/2+s.width/2,d.width+2*_t.noteMargin),h.startx=o+(r.width+_t.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(h.width=l?n.Y2.getMax(_t.width,d.width+2*_t.noteMargin):n.Y2.getMax(r.width/2+s.width/2,d.width+2*_t.noteMargin),h.startx=o-h.width+(r.width-_t.actorMargin)/2):t.to===t.from?(d=i._K.calculateTextDimensions(l?i._K.wrapLabel(t.message,n.Y2.getMax(_t.width,r.width),vt(_t)):t.message,vt(_t)),h.width=l?n.Y2.getMax(_t.width,r.width):n.Y2.getMax(r.width,_t.width,d.width+2*_t.noteMargin),h.startx=o+(r.width-h.width)/2):(h.width=Math.abs(o+r.width/2-(c+s.width/2))+_t.actorMargin,h.startx=o<c?o+r.width/2-_t.actorMargin/2:c+s.width/2-_t.actorMargin/2),l&&(h.message=i._K.wrapLabel(t.message,h.width-2*_t.wrapPadding,vt(_t))),n.Rm.debug(`NM:[${h.startx},${h.stopx},${h.starty},${h.stopy}:${h.width},${h.height}=${t.message}]`),h}),"buildNoteModel"),Ht=(0,n.K2)((function(t,e,a){if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};const[r,s]=Ct(t.from,e),[o,c]=Ct(t.to,e),l=r<=o;let d=l?s:r,h=l?o:c;const p=Math.abs(o-c)>2,g=(0,n.K2)((t=>l?-t:t),"adjustValue");t.from===t.to?h=d:(t.activate&&!p&&(h+=g(_t.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN].includes(t.type)||(h+=g(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(d-=g(3)));const u=[r,s,o,c],x=Math.abs(d-h);t.wrap&&t.message&&(t.message=i._K.wrapLabel(t.message,n.Y2.getMax(x+2*_t.wrapPadding,_t.width),At(_t)));const y=i._K.calculateTextDimensions(t.message,At(_t));return{width:n.Y2.getMax(t.wrap?0:y.width+2*_t.wrapPadding,x+2*_t.wrapPadding,_t.width),height:0,startx:d,stopx:h,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}}),"buildMessageModel"),jt=(0,n.K2)((async function(t,e,a,r){const s={},o=[];let c,l,d;for(const h of t){switch(h.id=i._K.random({length:10}),h.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:o.push({id:h.id,msg:h.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:h.message&&(c=o.pop(),s[c.id]=c,s[h.id]=c,o.push(c));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:c=o.pop(),s[c.id]=c;break;case r.db.LINETYPE.ACTIVE_START:{const t=e.get(h.from?h.from:h.to.actor),a=Yt(h.from?h.from:h.to.actor).length,r=t.x+t.width/2+(a-1)*_t.activationWidth/2,s={startx:r,stopx:r+_t.activationWidth,actor:h.from,enabled:!0};Pt.activations.push(s)}break;case r.db.LINETYPE.ACTIVE_END:{const t=Pt.activations.map((t=>t.actor)).lastIndexOf(h.from);Pt.activations.splice(t,1).splice(0,1)}}void 0!==h.placement?(l=await zt(h,e,r),h.noteModel=l,o.forEach((t=>{c=t,c.from=n.Y2.getMin(c.from,l.startx),c.to=n.Y2.getMax(c.to,l.startx+l.width),c.width=n.Y2.getMax(c.width,Math.abs(c.from-c.to))-_t.labelBoxWidth}))):(d=Ht(h,e,r),h.msgModel=d,d.startx&&d.stopx&&o.length>0&&o.forEach((t=>{if(c=t,d.startx===d.stopx){const t=e.get(h.from),a=e.get(h.to);c.from=n.Y2.getMin(t.x-d.width/2,t.x-t.width/2,c.from),c.to=n.Y2.getMax(a.x+d.width/2,a.x+t.width/2,c.to),c.width=n.Y2.getMax(c.width,Math.abs(c.to-c.from))-_t.labelBoxWidth}else c.from=n.Y2.getMin(d.startx,c.from),c.to=n.Y2.getMax(d.stopx,c.to),c.width=n.Y2.getMax(c.width,d.width)-_t.labelBoxWidth})))}return Pt.activations=[],n.Rm.debug("Loop type widths:",s),s}),"calculateLoopBounds"),Ut={parser:d,db:H,renderer:{bounds:Pt,drawActors:St,drawActorsPopup:Kt,setConf:Rt,draw:Vt},styles:j,init:(0,n.K2)((({wrap:t})=>{H.setWrap(t)}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/85c3c79c.2f203624.js b/website/assets/js/85c3c79c.2f203624.js new file mode 100644 index 000000000..d6f90ea15 --- /dev/null +++ b/website/assets/js/85c3c79c.2f203624.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7086],{3295:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>u,frontMatter:()=>a,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"internal/cleaning","title":"Cleaning","description":"Le cleaning permet de nettoyer des variables lors d\'un changement d\'une autre variable. Cela permet de supprimer les valeurs associ\xe9es \xe0 des composants qui seraient saut\xe9s par exemple.","source":"@site/docs/internal/cleaning.mdx","sourceDirName":"internal","slug":"/internal/cleaning","permalink":"/Lunatic/docs/internal/cleaning","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/internal/cleaning.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Resizing","permalink":"/Lunatic/docs/internal/resizing"},"next":{"title":"Missing","permalink":"/Lunatic/docs/internal/missing"}}');var r=t(4848),i=t(8453);const a={},c="Cleaning",l={},o=[];function d(e){const n={admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"cleaning",children:"Cleaning"})}),"\n",(0,r.jsx)(n.p,{children:"Le cleaning permet de nettoyer des variables lors d'un changement d'une autre variable. Cela permet de supprimer les valeurs associ\xe9es \xe0 des composants qui seraient saut\xe9s par exemple."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n\t"cleaning": {\n\t\t"ORIGIN": {\n\t\t\t"CITY": "ORIGIN = \\"FR\\""\n\t\t}\n\t}\n}\n'})}),"\n",(0,r.jsxs)(n.p,{children:["On observe les changements de la variable ",(0,r.jsx)(n.code,{children:"ORIGIN"})," et lorsque sa valeur change, on va r\xe9initialiser les variables d\xe9finit dans l'objet (ici ",(0,r.jsx)(n.code,{children:"CITY"}),"). Si l'expression VTL est interpr\xe9t\xe9 avec la valeur ",(0,r.jsx)(n.code,{children:"true"})," alors le cleaning n'est pas effectu\xe9."]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsx)(n.p,{children:"Vous ne pouvez observer que des variables collect\xe9es."})})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>c});var s=t(6540);const r={},i=s.createContext(r);function a(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/8731.6a51e12b.js b/website/assets/js/8731.6a51e12b.js new file mode 100644 index 000000000..a88b3249c --- /dev/null +++ b/website/assets/js/8731.6a51e12b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8731],{9850:(e,t,n)=>{t.Qi=t.XO=void 0;const r=n(9590),i=n(3347),s=n(2676);var o;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:s.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(o||(t.XO=o={}));const a=Object.freeze((function(e,t){const n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new s.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.Qi=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=o.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=o.None}}},2676:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const r=n(9590);var i;!function(e){const t={dispose(){}};e.None=function(){return t}}(i||(t.Event=i={}));class s{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r<i;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t)return this._callbacks.splice(r,1),void this._contexts.splice(r,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,a=n.length;o<a;o++)try{t.push(n[o].apply(i[o],e))}catch(s){(0,r.default)().console.error(s)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class o{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new s),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=o,o._noop=function(){}},3347:(e,t)=>{function n(e){return"string"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))}},9590:(e,t)=>{let n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},9402:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(9369),i=n(3394),s=class extends r.mR{static{(0,r.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},o={parser:{TokenBuilder:(0,r.K2)((()=>new s),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function a(e=i.DD){const t=(0,i.WQ)((0,i.uM)(e),r.sr),n=(0,i.WQ)((0,i.tG)({shared:t}),r.e5,o);return t.ServiceRegistry.register(n),{shared:t,Info:n}}(0,r.K2)(a,"createInfoServices")},8685:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(9369),i=n(3394),s=class extends r.mR{static{(0,r.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},o=class extends r.dg{static{(0,r.K2)(this,"PieValueConverter")}runCustomConverter(e,t,n){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},a={parser:{TokenBuilder:(0,r.K2)((()=>new s),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new o),"ValueConverter")}};function c(e=i.DD){const t=(0,i.WQ)((0,i.uM)(e),r.sr),n=(0,i.WQ)((0,i.tG)({shared:t}),r.KX,a);return t.ServiceRegistry.register(n),{shared:t,Pie:n}}(0,r.K2)(c,"createPieServices")},1609:(e,t,n)=>{n.d(t,{$:()=>a});var r=n(9369),i=n(3394),s=class extends r.mR{static{(0,r.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet-beta"])}},o={parser:{TokenBuilder:(0,r.K2)((()=>new s),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function a(e=i.DD){const t=(0,i.WQ)((0,i.uM)(e),r.sr),n=(0,i.WQ)((0,i.tG)({shared:t}),r.AM,o);return t.ServiceRegistry.register(n),{shared:t,Packet:n}}(0,r.K2)(a,"createPacketServices")},9936:(e,t,n)=>{n.d(t,{S:()=>c});var r=n(9369),i=n(3394),s=class extends r.mR{static{(0,r.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},o=class extends r.dg{static{(0,r.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,n){return"ARCH_ICON"===e.name?t.replace(/[()]/g,"").trim():"ARCH_TEXT_ICON"===e.name?t.replace(/["()]/g,""):"ARCH_TITLE"===e.name?t.replace(/[[\]]/g,"").trim():void 0}},a={parser:{TokenBuilder:(0,r.K2)((()=>new s),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new o),"ValueConverter")}};function c(e=i.DD){const t=(0,i.WQ)((0,i.uM)(e),r.sr),n=(0,i.WQ)((0,i.tG)({shared:t}),r.jE,a);return t.ServiceRegistry.register(n),{shared:t,Architecture:n}}(0,r.K2)(c,"createArchitectureServices")},2785:(e,t,n)=>{n.d(t,{b:()=>a});var r=n(9369),i=n(3394),s=class extends r.mR{static{(0,r.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},o={parser:{TokenBuilder:(0,r.K2)((()=>new s),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function a(e=i.DD){const t=(0,i.WQ)((0,i.uM)(e),r.sr),n=(0,i.WQ)((0,i.tG)({shared:t}),r.eZ,o);return t.ServiceRegistry.register(n),{shared:t,GitGraph:n}}(0,r.K2)(a,"createGitGraphServices")},9369:(e,t,n)=>{n.d(t,{AM:()=>$,K2:()=>s,KX:()=>w,Tm:()=>P,dg:()=>_,e5:()=>C,eZ:()=>O,jE:()=>L,mR:()=>M,sr:()=>N});var r=n(3394),i=Object.defineProperty,s=(e,t)=>i(e,"name",{value:t,configurable:!0});s((function(e){return g.isInstance(e,"Architecture")}),"isArchitecture");var o="Branch";s((function(e){return g.isInstance(e,o)}),"isBranch");var a="Commit";s((function(e){return g.isInstance(e,a)}),"isCommit");s((function(e){return g.isInstance(e,"Common")}),"isCommon");var c="GitGraph";s((function(e){return g.isInstance(e,c)}),"isGitGraph");s((function(e){return g.isInstance(e,"Info")}),"isInfo");var l="Merge";s((function(e){return g.isInstance(e,l)}),"isMerge");s((function(e){return g.isInstance(e,"Packet")}),"isPacket");s((function(e){return g.isInstance(e,"PacketBlock")}),"isPacketBlock");s((function(e){return g.isInstance(e,"Pie")}),"isPie");s((function(e){return g.isInstance(e,"PieSection")}),"isPieSection");var u,d,h,f,p,m=class extends r.kD{static{s(this,"MermaidAstReflection")}getAllTypes(){return["Architecture","Branch","Checkout","CherryPicking","Commit","Common","Direction","Edge","GitGraph","Group","Info","Junction","Merge","Packet","PacketBlock","Pie","PieSection","Service","Statement"]}computeIsSubtype(e,t){switch(e){case o:case"Checkout":case"CherryPicking":case a:case l:return this.isSubtype("Statement",t);case"Direction":return this.isSubtype(c,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;throw new Error(`${t} is not a valid reference id.`)}getTypeMetaData(e){switch(e){case"Architecture":return{name:"Architecture",properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]};case"Branch":return{name:"Branch",properties:[{name:"name"},{name:"order"}]};case"Checkout":return{name:"Checkout",properties:[{name:"branch"}]};case"CherryPicking":return{name:"CherryPicking",properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]};case"Commit":return{name:"Commit",properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Common":return{name:"Common",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Edge":return{name:"Edge",properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:!1},{name:"lhsId"},{name:"lhsInto",defaultValue:!1},{name:"rhsDir"},{name:"rhsGroup",defaultValue:!1},{name:"rhsId"},{name:"rhsInto",defaultValue:!1},{name:"title"}]};case"GitGraph":return{name:"GitGraph",properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]};case"Group":return{name:"Group",properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]};case"Info":return{name:"Info",properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]};case"Junction":return{name:"Junction",properties:[{name:"id"},{name:"in"}]};case"Merge":return{name:"Merge",properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]};case"Packet":return{name:"Packet",properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]};case"PacketBlock":return{name:"PacketBlock",properties:[{name:"end"},{name:"label"},{name:"start"}]};case"Pie":return{name:"Pie",properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:!1},{name:"title"}]};case"PieSection":return{name:"PieSection",properties:[{name:"label"},{name:"value"}]};case"Service":return{name:"Service",properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]};case"Direction":return{name:"Direction",properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]};default:return{name:e,properties:[]}}}},g=new m,y=s((()=>u??(u=(0,r.y0)('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'))),"InfoGrammar"),A=s((()=>d??(d=(0,r.y0)('{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'))),"PacketGrammar"),T=s((()=>h??(h=(0,r.y0)('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'))),"PieGrammar"),v=s((()=>f??(f=(0,r.y0)('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'))),"ArchitectureGrammar"),R=s((()=>p??(p=(0,r.y0)('{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}'))),"GitGraphGrammar"),E={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},k={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},x={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},I={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},S={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1},N={AstReflection:s((()=>new m),"AstReflection")},C={Grammar:s((()=>y()),"Grammar"),LanguageMetaData:s((()=>E),"LanguageMetaData"),parser:{}},$={Grammar:s((()=>A()),"Grammar"),LanguageMetaData:s((()=>k),"LanguageMetaData"),parser:{}},w={Grammar:s((()=>T()),"Grammar"),LanguageMetaData:s((()=>x),"LanguageMetaData"),parser:{}},L={Grammar:s((()=>v()),"Grammar"),LanguageMetaData:s((()=>I),"LanguageMetaData"),parser:{}},O={Grammar:s((()=>R()),"Grammar"),LanguageMetaData:s((()=>S),"LanguageMetaData"),parser:{}},b={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},_=class extends r.dM{static{s(this,"AbstractMermaidValueConverter")}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);return void 0===r&&(r=this.runCustomConverter(e,t,n)),void 0===r?super.runConverter(e,t,n):r}runCommonConverter(e,t,n){const r=b[e.name];if(void 0===r)return;const i=r.exec(t);return null!==i?void 0!==i[1]?i[1].trim().replace(/[\t ]{2,}/gm," "):void 0!==i[2]?i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n"):void 0:void 0}},P=class extends _{static{s(this,"CommonValueConverter")}runCustomConverter(e,t,n){}},M=class extends r.QU{static{s(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,n){const r=super.buildKeywordTokens(e,t,n);return r.forEach((e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))})),r}};(class extends M{static{s(this,"CommonTokenBuilder")}})},8731:(e,t,n)=>{n.d(t,{qg:()=>o});n(2785),n(9402),n(1609),n(8685),n(9936);var r=n(9369),i={},s={info:(0,r.K2)((async()=>{const{createInfoServices:e}=await n.e(890).then(n.bind(n,890)),t=e().Info.parser.LangiumParser;i.info=t}),"info"),packet:(0,r.K2)((async()=>{const{createPacketServices:e}=await n.e(6452).then(n.bind(n,4071)),t=e().Packet.parser.LangiumParser;i.packet=t}),"packet"),pie:(0,r.K2)((async()=>{const{createPieServices:e}=await n.e(7723).then(n.bind(n,7723)),t=e().Pie.parser.LangiumParser;i.pie=t}),"pie"),architecture:(0,r.K2)((async()=>{const{createArchitectureServices:e}=await n.e(9720).then(n.bind(n,9720)),t=e().Architecture.parser.LangiumParser;i.architecture=t}),"architecture"),gitGraph:(0,r.K2)((async()=>{const{createGitGraphServices:e}=await n.e(2387).then(n.bind(n,2387)),t=e().GitGraph.parser.LangiumParser;i.gitGraph=t}),"gitGraph")};async function o(e,t){const n=s[e];if(!n)throw new Error(`Unknown diagram type: ${e}`);i[e]||await n();const r=i[e].parse(t);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new a(r);return r.value}(0,r.K2)(o,"parse");var a=class extends Error{constructor(e){super(`Parsing failed: ${e.lexerErrors.map((e=>e.message)).join("\n")} ${e.parserErrors.map((e=>e.message)).join("\n")}`),this.result=e}static{(0,r.K2)(this,"MermaidParseError")}}},3394:(e,t,n)=>{function r(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function i(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText}function s(e){return"object"==typeof e&&null!==e&&r(e.container)&&i(e.reference)&&"string"==typeof e.message}n.d(t,{kD:()=>o,QU:()=>nl,dM:()=>rl,DD:()=>Bu,tG:()=>bu,uM:()=>_u,WQ:()=>Pu,y0:()=>Hu});class o{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return r(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let n=this.subtypes[e];n||(n=this.subtypes[e]={});const r=n[t];if(void 0!==r)return r;{const r=this.computeIsSubtype(e,t);return n[t]=r,r}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const t=this.getAllTypes(),n=[];for(const r of t)this.isSubtype(r,e)&&n.push(r);return this.allSubtypes[e]=n,n}}}function a(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function c(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function l(e){return a(e)&&"string"==typeof e.fullText}class u{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){const e=this.iterator();return Boolean(e.next().done)}count(){const e=this.iterator();let t=0,n=e.next();for(;!n.done;)t++,n=e.next();return t}toArray(){const e=[],t=this.iterator();let n;do{n=t.next(),void 0!==n.value&&e.push(n.value)}while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){const n=this.map((n=>[e?e(n):n,t?t(n):n]));return new Map(n)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new u((()=>({first:this.startFn(),firstDone:!1})),(e=>{let n;if(!e.firstDone){do{if(n=this.nextFn(e.first),!n.done)return n}while(!n.done);e.firstDone=!0}do{if(n=t.next(),!n.done)return n}while(!n.done);return p}))}join(e=","){const t=this.iterator();let n,r="",i=!1;do{n=t.next(),n.done||(i&&(r+=e),r+=d(n.value)),i=!0}while(!n.done);return r}indexOf(e,t=0){const n=this.iterator();let r=0,i=n.next();for(;!i.done;){if(r>=t&&i.value===e)return r;i=n.next(),r++}return-1}every(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(!e(n.value))return!1;n=t.next()}return!0}some(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(e(n.value))return!0;n=t.next()}return!1}forEach(e){const t=this.iterator();let n=0,r=t.next();for(;!r.done;)e(r.value,n),r=t.next(),n++}map(e){return new u(this.startFn,(t=>{const{done:n,value:r}=this.nextFn(t);return n?p:{done:!1,value:e(r)}}))}filter(e){return new u(this.startFn,(t=>{let n;do{if(n=this.nextFn(t),!n.done&&e(n.value))return n}while(!n.done);return p}))}nonNullable(){return this.filter((e=>null!=e))}reduce(e,t){const n=this.iterator();let r=t,i=n.next();for(;!i.done;)r=void 0===r?i.value:e(r,i.value),i=n.next();return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){const r=e.next();if(r.done)return n;const i=this.recursiveReduce(e,t,n);return void 0===i?r.value:t(i,r.value)}find(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(e(n.value))return n.value;n=t.next()}}findIndex(e){const t=this.iterator();let n=0,r=t.next();for(;!r.done;){if(e(r.value))return n;r=t.next(),n++}return-1}includes(e){const t=this.iterator();let n=t.next();for(;!n.done;){if(n.value===e)return!0;n=t.next()}return!1}flatMap(e){return new u((()=>({this:this.startFn()})),(t=>{do{if(t.iterator){const e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}const{done:n,value:r}=this.nextFn(t.this);if(!n){const n=e(r);if(!h(n))return{done:!1,value:n};t.iterator=n[Symbol.iterator]()}}while(t.iterator);return p}))}flat(e){if(void 0===e&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new u((()=>({this:t.startFn()})),(e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}const{done:n,value:r}=t.nextFn(e.this);if(!n){if(!h(r))return{done:!1,value:r};e.iterator=r[Symbol.iterator]()}}while(e.iterator);return p}))}head(){const e=this.iterator().next();if(!e.done)return e.value}tail(e=1){return new u((()=>{const t=this.startFn();for(let n=0;n<e;n++){if(this.nextFn(t).done)return t}return t}),this.nextFn)}limit(e){return new u((()=>({size:0,state:this.startFn()})),(t=>(t.size++,t.size>e?p:this.nextFn(t.state))))}distinct(e){const t=new Set;return this.filter((n=>{const r=e?e(n):n;return!t.has(r)&&(t.add(r),!0)}))}exclude(e,t){const n=new Set;for(const r of e){const e=t?t(r):r;n.add(e)}return this.filter((e=>{const r=t?t(e):e;return!n.has(r)}))}}function d(e){return"string"==typeof e?e:void 0===e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function h(e){return!!e&&"function"==typeof e[Symbol.iterator]}const f=new u((()=>{}),(()=>p)),p=Object.freeze({done:!0,value:void 0});function m(...e){if(1===e.length){const t=e[0];if(t instanceof u)return t;if(h(t))return new u((()=>t[Symbol.iterator]()),(e=>e.next()));if("number"==typeof t.length)return new u((()=>({index:0})),(e=>e.index<t.length?{done:!1,value:t[e.index++]}:p))}return e.length>1?new u((()=>({collIndex:0,arrIndex:0})),(t=>{do{if(t.iterator){const e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){const n=e[t.collIndex++];h(n)?t.iterator=n[Symbol.iterator]():n&&"number"==typeof n.length&&(t.array=n)}}while(t.iterator||t.array||t.collIndex<e.length);return p})):f}class g extends u{constructor(e,t,n){super((()=>({iterators:(null==n?void 0:n.includeRoot)?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1})),(e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);e.iterators.length>0;){const n=e.iterators[e.iterators.length-1].next();if(!n.done)return e.iterators.push(t(n.value)[Symbol.iterator]()),n;e.iterators.pop()}return p}))}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var y,A;function T(e){return new g(e,(e=>a(e)?e.content:[]),{includeRoot:!0})}function v(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function R(e){if(!e)return;const{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}function E(e,t){const n=function(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<e.start.character)return A.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>t.end.character)return A.After;const n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,r=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return n&&r?A.Inside:n?A.OverlapBack:A.OverlapFront}(e,t);return n>A.After}!function(e){e.sum=function(e){return e.reduce(((e,t)=>e+t),0)},e.product=function(e){return e.reduce(((e,t)=>e*t),0)},e.min=function(e){return e.reduce(((e,t)=>Math.min(e,t)))},e.max=function(e){return e.reduce(((e,t)=>Math.max(e,t)))}}(y||(y={})),function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside"}(A||(A={}));const k=/^[\w\p{L}]$/u;function x(e,t){if(e){const n=function(e,t=!0){for(;e.container;){const n=e.container;let r=n.content.indexOf(e);for(;r>0;){r--;const e=n.content[r];if(t||!e.hidden)return e}e=n}return}(e,!0);if(n&&I(n,t))return n;if(l(e)){for(let n=e.content.findIndex((e=>!e.hidden))-1;n>=0;n--){const r=e.content[n];if(I(r,t))return r}}}}function I(e,t){return c(e)&&t.includes(e.tokenType.name)}class S extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function N(e){throw new Error("Error! The input value was not handled.")}const C="AbstractRule";const $="AbstractType";const w="Condition";const L="TypeDefinition";const O="ValueLiteral";const b="AbstractElement";const _="ArrayLiteral";const P="ArrayType";const M="BooleanLiteral";const D="Conjunction";const U="Disjunction";const F="Grammar";const G="InferredType";function K(e){return Oe.isInstance(e,G)}const B="Interface";function j(e){return Oe.isInstance(e,B)}const V="Negation";const H="NumberLiteral";const W="Parameter";const z="ParameterReference";const Y="ParserRule";function X(e){return Oe.isInstance(e,Y)}const q="ReferenceType";const Q="ReturnType";const J="SimpleType";const Z="StringLiteral";const ee="TerminalRule";function te(e){return Oe.isInstance(e,ee)}const ne="Type";function re(e){return Oe.isInstance(e,ne)}const ie="UnionType";const se="Action";function oe(e){return Oe.isInstance(e,se)}const ae="Alternatives";function ce(e){return Oe.isInstance(e,ae)}const le="Assignment";function ue(e){return Oe.isInstance(e,le)}const de="CharacterRange";const he="CrossReference";function fe(e){return Oe.isInstance(e,he)}const pe="EndOfFile";const me="Group";function ge(e){return Oe.isInstance(e,me)}const ye="Keyword";function Ae(e){return Oe.isInstance(e,ye)}const Te="NegatedToken";const ve="RegexToken";const Re="RuleCall";function Ee(e){return Oe.isInstance(e,Re)}const ke="TerminalAlternatives";const xe="TerminalGroup";const Ie="TerminalRuleCall";function Se(e){return Oe.isInstance(e,Ie)}const Ne="UnorderedGroup";function Ce(e){return Oe.isInstance(e,Ne)}const $e="UntilToken";const we="Wildcard";class Le extends o{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case se:case ae:case le:case de:case he:case pe:case me:case ye:case Te:case ve:case Re:case ke:case xe:case Ie:case Ne:case $e:case we:return this.isSubtype(b,t);case _:case H:case Z:return this.isSubtype(O,t);case P:case q:case J:case ie:return this.isSubtype(L,t);case M:return this.isSubtype(w,t)||this.isSubtype(O,t);case D:case U:case V:case z:return this.isSubtype(w,t);case G:case B:case ne:return this.isSubtype($,t);case Y:return this.isSubtype(C,t)||this.isSubtype($,t);case ee:return this.isSubtype(C,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return $;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return C;case"Grammar:usedGrammars":return F;case"NamedArgument:parameter":case"ParameterReference:parameter":return W;case"TerminalRuleCall:rule":return ee;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const Oe=new Le;function be(e){for(const[t,n]of Object.entries(e))t.startsWith("$")||(Array.isArray(n)?n.forEach(((n,i)=>{r(n)&&(n.$container=e,n.$containerProperty=t,n.$containerIndex=i)})):r(n)&&(n.$container=e,n.$containerProperty=t))}function _e(e,t){let n=e;for(;n;){if(t(n))return n;n=n.$container}}function Pe(e){const t=function(e){for(;e.$container;)e=e.$container;return e}(e),n=t.$document;if(!n)throw new Error("AST node has no document.");return n}function Me(e,t){if(!e)throw new Error("Node must be an AstNode.");const n=null==t?void 0:t.range;return new u((()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0})),(t=>{for(;t.keyIndex<t.keys.length;){const i=t.keys[t.keyIndex];if(!i.startsWith("$")){const s=e[i];if(r(s)){if(t.keyIndex++,Fe(s,n))return{done:!1,value:s}}else if(Array.isArray(s)){for(;t.arrayIndex<s.length;){const e=s[t.arrayIndex++];if(r(e)&&Fe(e,n))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return p}))}function De(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new g(e,(e=>Me(e,t)))}function Ue(e,t){if(!e)throw new Error("Root node must be an AstNode.");return(null==t?void 0:t.range)&&!Fe(e,t.range)?new g(e,(()=>[])):new g(e,(e=>Me(e,t)),{includeRoot:!0})}function Fe(e,t){var n;if(!t)return!0;const r=null===(n=e.$cstNode)||void 0===n?void 0:n.range;return!!r&&E(r,t)}function Ge(e){return new u((()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0})),(t=>{for(;t.keyIndex<t.keys.length;){const n=t.keys[t.keyIndex];if(!n.startsWith("$")){const r=e[n];if(i(r))return t.keyIndex++,{done:!1,value:{reference:r,container:e,property:n}};if(Array.isArray(r)){for(;t.arrayIndex<r.length;){const s=t.arrayIndex++,o=r[s];if(i(o))return{done:!1,value:{reference:o,container:e,property:n,index:s}}}t.arrayIndex=0}}t.keyIndex++}return p}))}function Ke(e){return Array.isArray(e)?[...e.map(Ke)]:e}function Be(e){return e.charCodeAt(0)}function je(e,t){Array.isArray(e)?e.forEach((function(e){t.push(e)})):t.push(e)}function Ve(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t];e[t]=!0}function He(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function We(){throw Error("Internal Error - Should never get here!")}function ze(e){return"Character"===e.type}const Ye=[];for(let Wu=Be("0");Wu<=Be("9");Wu++)Ye.push(Wu);const Xe=[Be("_")].concat(Ye);for(let Wu=Be("a");Wu<=Be("z");Wu++)Xe.push(Wu);for(let Wu=Be("A");Wu<=Be("Z");Wu++)Xe.push(Wu);const qe=[Be(" "),Be("\f"),Be("\n"),Be("\r"),Be("\t"),Be("\v"),Be("\t"),Be("\xa0"),Be("\u1680"),Be("\u2000"),Be("\u2001"),Be("\u2002"),Be("\u2003"),Be("\u2004"),Be("\u2005"),Be("\u2006"),Be("\u2007"),Be("\u2008"),Be("\u2009"),Be("\u200a"),Be("\u2028"),Be("\u2029"),Be("\u202f"),Be("\u205f"),Be("\u3000"),Be("\ufeff")],Qe=/[0-9a-fA-F]/,Je=/[0-9]/,Ze=/[1-9]/;class et{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Ve(n,"global");break;case"i":Ve(n,"ignoreCase");break;case"m":Ve(n,"multiLine");break;case"u":Ve(n,"unicode");break;case"y":Ve(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}He(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return We()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;He(t)}if(!0!==e||void 0!==t)return He(t)?("?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t):void 0}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),He(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):We()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Be("\n"),Be("\r"),Be("\u2028"),Be("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=Ye;break;case"D":e=Ye,t=!0;break;case"s":e=qe;break;case"S":e=qe,t=!0;break;case"w":e=Xe;break;case"W":e=Xe,t=!0}return He(e)?{type:"Set",value:e,complement:t}:We()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Be("\f");break;case"n":e=Be("\n");break;case"r":e=Be("\r");break;case"t":e=Be("\t");break;case"v":e=Be("\v")}return He(e)?{type:"Character",value:e}:We()}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Be("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:Be(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:Be(this.popChar())}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const t=this.classAtom();t.type;if(ze(t)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();n.type;if(ze(n)){if(n.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:n.value})}else je(t.value,e),e.push(Be("-")),je(n.value,e)}else je(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:Be("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;if(this.consumeChar("("),"?"===this.peekChar(0))this.consumeChar("?"),this.consumeChar(":"),e=!1;else this.groupIdx++;const t=this.disjunction();this.consumeChar(")");const n={type:"Group",capturing:e,value:t};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(!1===Ze.test(e))throw Error("Expecting a positive integer");for(;Je.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===Je.test(e))throw Error("Expecting an integer");for(;Je.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:Be(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return Je.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}}isQuantifier(){const e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(t){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let n=0;n<e;n++){const e=this.popChar();if(!1===Qe.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}class tt{visitChildren(e){for(const t in e){const n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach((e=>{this.visit(e)}),this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}const nt=/\r?\n/gm,rt=new et;const it=new class extends tt{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const e=at(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end),n=new RegExp(t);this.multiline=Boolean("\n".match(n))}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){if("Group"===e.type){if(e.quantifier)return}super.visitChildren(e)}};function st(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),it.reset(e),it.visit(rt.pattern(e)),it.multiline}catch(t){return!1}}function ot(e){return("string"==typeof e?new RegExp(e):e).test(" ")}function at(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ct(e,t){const n=function(e){"string"==typeof e&&(e=new RegExp(e));const t=e,n=e.source;let r=0;function i(){let e,s="";function o(e){s+=n.substr(r,e),r+=e}function a(e){s+="(?:"+n.substr(r,e)+"|$)",r+=e}for(;r<n.length;)switch(n[r]){case"\\":switch(n[r+1]){case"c":a(3);break;case"x":a(4);break;case"u":t.unicode?"{"===n[r+2]?a(n.indexOf("}",r)-r+1):a(6):a(2);break;case"p":case"P":t.unicode?a(n.indexOf("}",r)-r+1):a(2);break;case"k":a(n.indexOf(">",r)-r+1);break;default:a(2)}break;case"[":e=/\[(?:\\.|.)*?\]/g,e.lastIndex=r,e=e.exec(n)||[],a(e[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":o(1);break;case"{":e=/\{\d+,?\d*\}/g,e.lastIndex=r,e=e.exec(n),e?o(e[0].length):a(1);break;case"(":if("?"===n[r+1])switch(n[r+2]){case":":s+="(?:",r+=3,s+=i()+"|$)";break;case"=":s+="(?=",r+=3,s+=i()+")";break;case"!":e=r,r+=3,i(),s+=n.substr(e,r-e);break;case"<":switch(n[r+3]){case"=":case"!":e=r,r+=4,i(),s+=n.substr(e,r-e);break;default:o(n.indexOf(">",r)-r+1),s+=i()+"|$)"}}else o(1),s+=i()+"|$)";break;case")":return++r,s;default:a(1)}return s}return new RegExp(i(),e.flags)}(e),r=t.match(n);return!!r&&r[0].length>0}function lt(e,t){const n=new Set,r=function(e){return e.rules.find((e=>X(e)&&e.entry))}(e);if(!r)return new Set(e.rules);const i=[r].concat(function(e){return e.rules.filter((e=>te(e)&&e.hidden))}(e));for(const o of i)ut(o,n,t);const s=new Set;for(const o of e.rules)(n.has(o.name)||te(o)&&o.hidden)&&s.add(o);return s}function ut(e,t,n){t.add(e.name),De(e).forEach((e=>{if(Ee(e)||n&&Se(e)){const r=e.rule.ref;r&&!t.has(r.name)&&ut(r,t,n)}}))}function dt(e,t,n){if(!e||!t)return;const r=ht(e,t,e.astNode,!0);return 0!==r.length?r[n=void 0!==n?Math.max(0,Math.min(n,r.length-1)):0]:void 0}function ht(e,t,n,r){if(!r){const n=_e(e.grammarSource,ue);if(n&&n.feature===t)return[e]}return a(e)&&e.astNode===n?e.content.flatMap((e=>ht(e,t,n,!1))):[]}function ft(e,t,n){if(e.astNode!==n)return[];if(Ae(e.grammarSource)&&e.grammarSource.value===t)return[e];const r=T(e).iterator();let i;const s=[];do{if(i=r.next(),!i.done){const e=i.value;e.astNode===n?Ae(e.grammarSource)&&e.grammarSource.value===t&&s.push(e):r.prune()}}while(!i.done);return s}function pt(e){let t=e;return K(t)&&(oe(t.$container)?t=t.$container.$container:X(t.$container)?t=t.$container:N(t.$container)),mt(e,t,new Map)}function mt(e,t,n){var r,i;function s(t,r){let i;return _e(t,ue)||(i=mt(r,r,n)),n.set(e,i),i}if(n.has(e))return n.get(e);n.set(e,void 0);for(const o of De(t)){if(ue(o)&&"name"===o.feature.toLowerCase())return n.set(e,o),o;if(Ee(o)&&X(o.rule.ref))return s(o,o.rule.ref);if(i=o,Oe.isInstance(i,J)&&(null===(r=o.typeRef)||void 0===r?void 0:r.ref))return s(o,o.typeRef.ref)}}function gt(e){return yt(e,new Set)}function yt(e,t){if(t.has(e))return!0;t.add(e);for(const n of De(e))if(Ee(n)){if(!n.rule.ref)return!1;if(X(n.rule.ref)&&!yt(n.rule.ref,t))return!1}else{if(ue(n))return!1;if(oe(n))return!1}return Boolean(e.definition)}function At(e){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t){if(X(t))return t.name;if(j(t)||re(t))return t.name}}}function Tt(e){var t,n;if(X(e))return gt(e)?e.name:null!==(t=At(e))&&void 0!==t?t:e.name;if(j(e)||re(e)||(n=e,Oe.isInstance(n,Q)))return e.name;if(oe(e)){const t=function(e){var t;if(e.inferredType)return e.inferredType.name;if(null===(t=e.type)||void 0===t?void 0:t.ref)return Tt(e.type.ref);return}(e);if(t)return t}else if(K(e))return e.name;throw new Error("Cannot get name of Unknown Type")}function vt(e){const t={s:!1,i:!1,u:!1},n=Et(e.definition,t),r=Object.entries(t).filter((([,e])=>e)).map((([e])=>e)).join("");return new RegExp(n,r)}const Rt=/[\s\S]/.source;function Et(e,t){if(s=e,Oe.isInstance(s,ke))return xt((i=e).elements.map((e=>Et(e))).join("|"),{cardinality:i.cardinality,lookahead:i.lookahead});if(function(e){return Oe.isInstance(e,xe)}(e))return xt((r=e).elements.map((e=>Et(e))).join(""),{cardinality:r.cardinality,lookahead:r.lookahead});if(function(e){return Oe.isInstance(e,de)}(e))return function(e){if(e.right)return xt(`[${kt(e.left)}-${kt(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1});return xt(kt(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}(e);if(Se(e)){const t=e.rule.ref;if(!t)throw new Error("Missing rule reference.");return xt(Et(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}if(function(e){return Oe.isInstance(e,Te)}(e))return function(e){return xt(`(?!${Et(e.terminal)})${Rt}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}(e);if(function(e){return Oe.isInstance(e,$e)}(e))return xt(`${Rt}*?${Et((n=e).terminal)}`,{cardinality:n.cardinality,lookahead:n.lookahead});if(function(e){return Oe.isInstance(e,ve)}(e)){const n=e.regex.lastIndexOf("/"),r=e.regex.substring(1,n),i=e.regex.substring(n+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),xt(r,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:!1})}if(function(e){return Oe.isInstance(e,we)}(e))return xt(Rt,{cardinality:e.cardinality,lookahead:e.lookahead});throw new Error(`Invalid terminal element: ${null==e?void 0:e.$type}`);var n,r,i,s}function kt(e){return at(e.value)}function xt(e,t){var n;return(!1!==t.wrap||t.lookahead)&&(e=`(${null!==(n=t.lookahead)&&void 0!==n?n:""}${e})`),t.cardinality?`${e}${t.cardinality}`:e}var It=n(8058),St=n(8207),Nt=n(6401),Ct=n(4722),$t=n(8585),wt=n(53);function Lt(e){function t(){}t.prototype=e;const n=new t;function r(){return typeof n.bar}return r(),r(),e}const Ot=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s};var bt=n(8593);const _t=function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:(0,bt.A)(t),Ot(e,t<0?0:t,r)):[]};var Pt=n(9703),Mt=n(2851),Dt=n(2031),Ut=n(3767),Ft=n(8446),Gt=n(7271),Kt=n(7422),Bt=Object.prototype.hasOwnProperty;const jt=(0,Ut.A)((function(e,t){if((0,Gt.A)(t)||(0,Ft.A)(t))(0,Dt.A)(t,(0,Kt.A)(t),e);else for(var n in t)Bt.call(t,n)&&(0,Mt.A)(e,n,t[n])}));var Vt=n(5572),Ht=n(3958),Wt=n(9354),zt=n(3973);const Yt=function(e,t){if(null==e)return{};var n=(0,Vt.A)((0,zt.A)(e),(function(e){return[e]}));return t=(0,Ht.A)(t),(0,Wt.A)(e,n,(function(e,n){return t(e,n[0])}))};var Xt=n(8496),qt=n(3098);const Qt=function(e){return(0,qt.A)(e)&&"[object RegExp]"==(0,Xt.A)(e)};var Jt=n(2789),Zt=n(4841),en=Zt.A&&Zt.A.isRegExp;const tn=en?(0,Jt.A)(en):Qt;function nn(e){return t=e,(0,Pt.A)(t.LABEL)&&""!==t.LABEL?e.LABEL:e.name;var t}class rn{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),(0,It.A)(this.definition,(t=>{t.accept(e)}))}}class sn extends rn{constructor(e){super([]),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class on extends rn{constructor(e){super(e.definition),this.orgText="",jt(this,Yt(e,(e=>void 0!==e)))}}class an extends rn{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,jt(this,Yt(e,(e=>void 0!==e)))}}class cn extends rn{constructor(e){super(e.definition),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}}class ln extends rn{constructor(e){super(e.definition),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}}class un extends rn{constructor(e){super(e.definition),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}}class dn extends rn{constructor(e){super(e.definition),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}}class hn extends rn{constructor(e){super(e.definition),this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}}class fn extends rn{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,jt(this,Yt(e,(e=>void 0!==e)))}}class pn{constructor(e){this.idx=1,jt(this,Yt(e,(e=>void 0!==e)))}accept(e){e.visit(this)}}function mn(e){function t(e){return(0,Ct.A)(e,mn)}if(e instanceof sn){const t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return(0,Pt.A)(e.label)&&(t.label=e.label),t}if(e instanceof an)return{type:"Alternative",definition:t(e.definition)};if(e instanceof cn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof ln)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof un)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:mn(new pn({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof hn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:mn(new pn({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof dn)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof fn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof pn){const t={type:"Terminal",name:e.terminalType.name,label:nn(e.terminalType),idx:e.idx};(0,Pt.A)(e.label)&&(t.terminalLabel=e.label);const n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=tn(n)?n.source:n),t}if(e instanceof on)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}class gn{visit(e){const t=e;switch(t.constructor){case sn:return this.visitNonTerminal(t);case an:return this.visitAlternative(t);case cn:return this.visitOption(t);case ln:return this.visitRepetitionMandatory(t);case un:return this.visitRepetitionMandatoryWithSeparator(t);case hn:return this.visitRepetitionWithSeparator(t);case dn:return this.visitRepetition(t);case fn:return this.visitAlternation(t);case pn:return this.visitTerminal(t);case on:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}var yn=n(3736),An=n(6240);const Tn=function(e,t){var n;return(0,An.A)(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n};var vn=n(2049),Rn=n(6832);const En=function(e,t,n){var r=(0,vn.A)(e)?yn.A:Tn;return n&&(0,Rn.A)(e,t,n)&&(t=void 0),r(e,(0,Ht.A)(t,3))};var kn=n(818),xn=Math.max;const In=function(e,t,n,r){e=(0,Ft.A)(e)?e:(0,St.A)(e),n=n&&!r?(0,bt.A)(n):0;var i=e.length;return n<0&&(n=xn(i+n,0)),(0,Pt.A)(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&(0,kn.A)(e,t,n)>-1};const Sn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0};const Nn=function(e,t){var n=!0;return(0,An.A)(e,(function(e,r,i){return n=!!t(e,r,i)})),n};const Cn=function(e,t,n){var r=(0,vn.A)(e)?Sn:Nn;return n&&(0,Rn.A)(e,t,n)&&(t=void 0),r(e,(0,Ht.A)(t,3))};function $n(e,t=[]){return!!(e instanceof cn||e instanceof dn||e instanceof hn)||(e instanceof fn?En(e.definition,(e=>$n(e,t))):!(e instanceof sn&&In(t,e))&&(e instanceof rn&&(e instanceof sn&&t.push(e),Cn(e.definition,(e=>$n(e,t))))))}function wn(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof fn)return"OR";if(e instanceof ln)return"AT_LEAST_ONE";if(e instanceof un)return"AT_LEAST_ONE_SEP";if(e instanceof hn)return"MANY_SEP";if(e instanceof dn)return"MANY";if(e instanceof pn)return"CONSUME";throw Error("non exhaustive match")}class Ln{walk(e,t=[]){(0,It.A)(e.definition,((n,r)=>{const i=_t(e.definition,r+1);if(n instanceof sn)this.walkProdRef(n,i,t);else if(n instanceof pn)this.walkTerminal(n,i,t);else if(n instanceof an)this.walkFlat(n,i,t);else if(n instanceof cn)this.walkOption(n,i,t);else if(n instanceof ln)this.walkAtLeastOne(n,i,t);else if(n instanceof un)this.walkAtLeastOneSep(n,i,t);else if(n instanceof hn)this.walkManySep(n,i,t);else if(n instanceof dn)this.walkMany(n,i,t);else{if(!(n instanceof fn))throw Error("non exhaustive match");this.walkOr(n,i,t)}}))}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){const r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){const r=[new cn({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){const r=On(e,t,n);this.walk(e,r)}walkMany(e,t,n){const r=[new cn({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){const r=On(e,t,n);this.walk(e,r)}walkOr(e,t,n){const r=t.concat(n);(0,It.A)(e.definition,(e=>{const t=new an({definition:[e]});this.walk(t,r)}))}}function On(e,t,n){return[new cn({definition:[new pn({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}var bn=n(9902);const _n=function(e){return e&&e.length?(0,bn.A)(e):[]};var Pn=n(4098);function Mn(e){if(e instanceof sn)return Mn(e.referencedRule);if(e instanceof pn)return[e.terminalType];if(function(e){return e instanceof an||e instanceof cn||e instanceof dn||e instanceof ln||e instanceof un||e instanceof hn||e instanceof pn||e instanceof on}(e))return function(e){let t=[];const n=e.definition;let r,i=0,s=n.length>i,o=!0;for(;s&&o;)r=n[i],o=$n(r),t=t.concat(Mn(r)),i+=1,s=n.length>i;return _n(t)}(e);if(function(e){return e instanceof fn}(e))return function(e){const t=(0,Ct.A)(e.definition,(e=>Mn(e)));return _n((0,Pn.A)(t))}(e);throw Error("non exhaustive match")}const Dn="_~IN~_";class Un extends Ln{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const r=(i=e.referencedRule,s=e.idx,i.name+s+Dn+this.topProd.name);var i,s;const o=t.concat(n),a=Mn(new an({definition:o}));this.follows[r]=a}}var Fn=n(9592),Gn=n(3068),Kn=n(2634),Bn=n(1790);const jn=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};const Vn=function(e,t){return((0,vn.A)(e)?Kn.A:Bn.A)(e,jn((0,Ht.A)(t,3)))};var Hn=n(9610),Wn=Math.max;const zn=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:(0,bt.A)(n);return i<0&&(i=Wn(r+i,0)),(0,kn.A)(e,t,i)};var Yn=n(9463),Xn=n(4092),qn=n(2062),Qn=n(5530),Jn=n(7809),Zn=n(4099);const er=function(e,t,n,r){var i=-1,s=Qn.A,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=(0,Vt.A)(t,(0,Jt.A)(n))),r?(s=Jn.A,o=!1):t.length>=200&&(s=Zn.A,o=!1,t=new qn.A(t));e:for(;++i<a;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var h=l;h--;)if(t[h]===d)continue e;c.push(u)}else s(t,d,r)||c.push(u)}return c};var tr=n(3588),nr=n(4326),rr=n(3533);const ir=(0,nr.A)((function(e,t){return(0,rr.A)(e)?er(e,(0,tr.A)(t,1,rr.A,!0)):[]}));const sr=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i};const or=function(e){return e&&e.length?e[0]:void 0};var ar=n(6145);function cr(e){console&&console.error&&console.error(`Error: ${e}`)}function lr(e){console&&console.warn&&console.warn(`Warning: ${e}`)}let ur={};const dr=new et;function hr(e){const t=e.toString();if(ur.hasOwnProperty(t))return ur[t];{const e=dr.pattern(t);return ur[t]=e,e}}const fr="Complement Sets are not supported for first char optimization",pr='Unable to use "first char" lexer optimizations:\n';function mr(e,t=!1){try{const t=hr(e);return gr(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===fr)t&&lr(`${pr}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),cr(`${pr}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function gr(e,t,n){switch(e.type){case"Disjunction":for(let i=0;i<e.value.length;i++)gr(e.value[i],t,n);break;case"Alternative":const r=e.value;for(let e=0;e<r.length;e++){const i=r[e];switch(i.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const s=i;switch(s.type){case"Character":yr(s.value,t,n);break;case"Set":if(!0===s.complement)throw Error(fr);(0,It.A)(s.value,(e=>{if("number"==typeof e)yr(e,t,n);else{const r=e;if(!0===n)for(let e=r.from;e<=r.to;e++)yr(e,t,n);else{for(let e=r.from;e<=r.to&&e<Fr;e++)yr(e,t,n);if(r.to>=Fr){const e=r.from>=Fr?r.from:Fr,n=r.to,i=Kr(e),s=Kr(n);for(let r=i;r<=s;r++)t[r]=r}}}}));break;case"Group":gr(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}const o=void 0!==s.quantifier&&0===s.quantifier.atLeast;if("Group"===s.type&&!1===Tr(s)||"Group"!==s.type&&!1===o)break}break;default:throw Error("non exhaustive match!")}return(0,St.A)(t)}function yr(e,t,n){const r=Kr(e);t[r]=r,!0===n&&function(e,t){const n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){const e=Kr(r.charCodeAt(0));t[e]=e}else{const e=n.toLowerCase();if(e!==n){const n=Kr(e.charCodeAt(0));t[n]=n}}}(e,t)}function Ar(e,t){return(0,ar.A)(e.value,(e=>{if("number"==typeof e)return In(t,e);{const n=e;return void 0!==(0,ar.A)(t,(e=>n.from<=e&&e<=n.to))}}))}function Tr(e){const t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&((0,vn.A)(e.value)?Cn(e.value,Tr):Tr(e.value))}class vr extends tt{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}super.visitChildren(e)}}visitCharacter(e){In(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===Ar(e,this.targetCharCodes)&&(this.found=!0):void 0!==Ar(e,this.targetCharCodes)&&(this.found=!0)}}function Rr(e,t){if(t instanceof RegExp){const n=hr(t),r=new vr(e);return r.visit(n),r.found}return void 0!==(0,ar.A)(t,(t=>In(e,t.charCodeAt(0))))}const Er="PATTERN",kr="defaultMode",xr="modes";let Ir="boolean"==typeof new RegExp("(?:)").sticky;function Sr(e,t){const n=(t=(0,Gn.A)(t,{useSticky:Ir,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()})).tracer;let r;n("initCharCodeToOptimizedIndexMap",(()=>{!function(){if((0,Nt.A)(Gr)){Gr=new Array(65536);for(let e=0;e<65536;e++)Gr[e]=e>255?255+~~(e/255):e}}()})),n("Reject Lexer.NA",(()=>{r=Vn(e,(e=>e[Er]===ii.NA))}));let i,s,o,a,c,l,u,d,h,f,p,m=!1;n("Transform Patterns",(()=>{m=!1,i=(0,Ct.A)(r,(e=>{const n=e[Er];if(tn(n)){const e=n.source;return 1!==e.length||"^"===e||"$"===e||"."===e||n.ignoreCase?2!==e.length||"\\"!==e[0]||In(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?t.useSticky?Lr(n):wr(n):e[1]:e}if((0,Hn.A)(n))return m=!0,{exec:n};if("object"==typeof n)return m=!0,n;if("string"==typeof n){if(1===n.length)return n;{const e=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),r=new RegExp(e);return t.useSticky?Lr(r):wr(r)}}throw Error("non exhaustive match")}))})),n("misc mapping",(()=>{s=(0,Ct.A)(r,(e=>e.tokenTypeIdx)),o=(0,Ct.A)(r,(e=>{const t=e.GROUP;if(t!==ii.SKIPPED){if((0,Pt.A)(t))return t;if((0,Fn.A)(t))return!1;throw Error("non exhaustive match")}})),a=(0,Ct.A)(r,(e=>{const t=e.LONGER_ALT;if(t){return(0,vn.A)(t)?(0,Ct.A)(t,(e=>zn(r,e))):[zn(r,t)]}})),c=(0,Ct.A)(r,(e=>e.PUSH_MODE)),l=(0,Ct.A)(r,(e=>(0,$t.A)(e,"POP_MODE")))})),n("Line Terminator Handling",(()=>{const e=Dr(t.lineTerminatorCharacters);u=(0,Ct.A)(r,(e=>!1)),"onlyOffset"!==t.positionTracking&&(u=(0,Ct.A)(r,(t=>(0,$t.A)(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===Mr(t,e)&&Rr(e,t.PATTERN))))})),n("Misc Mapping #2",(()=>{d=(0,Ct.A)(r,br),h=(0,Ct.A)(i,_r),f=(0,Yn.A)(r,((e,t)=>{const n=t.GROUP;return(0,Pt.A)(n)&&n!==ii.SKIPPED&&(e[n]=[]),e}),{}),p=(0,Ct.A)(i,((e,t)=>({pattern:i[t],longerAlt:a[t],canLineTerminator:u[t],isCustom:d[t],short:h[t],group:o[t],push:c[t],pop:l[t],tokenTypeIdx:s[t],tokenType:r[t]})))}));let g=!0,y=[];return t.safeMode||n("First Char Optimization",(()=>{y=(0,Yn.A)(r,((e,n,r)=>{if("string"==typeof n.PATTERN){const t=Kr(n.PATTERN.charCodeAt(0));Ur(e,t,p[r])}else if((0,vn.A)(n.START_CHARS_HINT)){let t;(0,It.A)(n.START_CHARS_HINT,(n=>{const i=Kr("string"==typeof n?n.charCodeAt(0):n);t!==i&&(t=i,Ur(e,i,p[r]))}))}else if(tn(n.PATTERN))if(n.PATTERN.unicode)g=!1,t.ensureOptimizations&&cr(`${pr}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const i=mr(n.PATTERN,t.ensureOptimizations);(0,Nt.A)(i)&&(g=!1),(0,It.A)(i,(t=>{Ur(e,t,p[r])}))}else t.ensureOptimizations&&cr(`${pr}\tTokenType: <${n.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),g=!1;return e}),[])})),{emptyGroups:f,patternIdxToConfig:p,charCodeToPatternIdxToConfig:y,hasCustom:m,canBeOptimized:g}}function Nr(e,t){let n=[];const r=function(e){const t=(0,Xn.A)(e,(e=>!(0,$t.A)(e,Er))),n=(0,Ct.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:ni.MISSING_PATTERN,tokenTypes:[e]}))),r=ir(e,t);return{errors:n,valid:r}}(e);n=n.concat(r.errors);const i=function(e){const t=(0,Xn.A)(e,(e=>{const t=e[Er];return!(tn(t)||(0,Hn.A)(t)||(0,$t.A)(t,"exec")||(0,Pt.A)(t))})),n=(0,Ct.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ni.INVALID_PATTERN,tokenTypes:[e]}))),r=ir(e,t);return{errors:n,valid:r}}(r.valid),s=i.valid;return n=n.concat(i.errors),n=n.concat(function(e){let t=[];const n=(0,Xn.A)(e,(e=>tn(e[Er])));return t=t.concat(function(e){class t extends tt{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}const n=(0,Xn.A)(e,(e=>{const n=e.PATTERN;try{const e=hr(n),r=new t;return r.visit(e),r.found}catch(r){return Cr.test(n.source)}})),r=(0,Ct.A)(n,(e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ni.EOI_ANCHOR_FOUND,tokenTypes:[e]})));return r}(n)),t=t.concat(function(e){class t extends tt{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}const n=(0,Xn.A)(e,(e=>{const n=e.PATTERN;try{const e=hr(n),r=new t;return r.visit(e),r.found}catch(r){return $r.test(n.source)}})),r=(0,Ct.A)(n,(e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ni.SOI_ANCHOR_FOUND,tokenTypes:[e]})));return r}(n)),t=t.concat(function(e){const t=(0,Xn.A)(e,(e=>{const t=e[Er];return t instanceof RegExp&&(t.multiline||t.global)})),n=(0,Ct.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ni.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]})));return n}(n)),t=t.concat(function(e){const t=[];let n=(0,Ct.A)(e,(n=>(0,Yn.A)(e,((e,r)=>(n.PATTERN.source!==r.PATTERN.source||In(t,r)||r.PATTERN===ii.NA||(t.push(r),e.push(r)),e)),[])));n=sr(n);const r=(0,Xn.A)(n,(e=>e.length>1)),i=(0,Ct.A)(r,(e=>{const t=(0,Ct.A)(e,(e=>e.name));return{message:`The same RegExp pattern ->${or(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:ni.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}}));return i}(n)),t=t.concat(function(e){const t=(0,Xn.A)(e,(e=>e.PATTERN.test(""))),n=(0,Ct.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:ni.EMPTY_MATCH_PATTERN,tokenTypes:[e]})));return n}(n)),t}(s)),n=n.concat(function(e){const t=(0,Xn.A)(e,(e=>{if(!(0,$t.A)(e,"GROUP"))return!1;const t=e.GROUP;return t!==ii.SKIPPED&&t!==ii.NA&&!(0,Pt.A)(t)})),n=(0,Ct.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ni.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]})));return n}(s)),n=n.concat(function(e,t){const n=(0,Xn.A)(e,(e=>void 0!==e.PUSH_MODE&&!In(t,e.PUSH_MODE))),r=(0,Ct.A)(n,(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:ni.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]})));return r}(s,t)),n=n.concat(function(e){const t=[],n=(0,Yn.A)(e,((e,t,n)=>{const r=t.PATTERN;return r===ii.NA||((0,Pt.A)(r)?e.push({str:r,idx:n,tokenType:t}):tn(r)&&function(e){const t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return void 0===(0,ar.A)(t,(t=>-1!==e.source.indexOf(t)))}(r)&&e.push({str:r.source,idx:n,tokenType:t})),e}),[]);return(0,It.A)(e,((e,r)=>{(0,It.A)(n,(({str:n,idx:i,tokenType:s})=>{if(r<i&&function(e,t){if(tn(t)){const n=t.exec(e);return null!==n&&0===n.index}if((0,Hn.A)(t))return t(e,0,[],{});if((0,$t.A)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(n,e.PATTERN)){const n=`Token: ->${s.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:ni.UNREACHABLE_PATTERN,tokenTypes:[e,s]})}}))})),t}(s)),n}const Cr=/[^\\][$]/;const $r=/[^\\[][\^]|^\^/;function wr(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function Lr(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function Or(e,t,n){const r=[];let i=!1;const s=sr((0,Pn.A)((0,St.A)(e.modes))),o=Vn(s,(e=>e[Er]===ii.NA)),a=Dr(n);return t&&(0,It.A)(o,(e=>{const t=Mr(e,a);if(!1!==t){const n=function(e,t){if(t.issue===ni.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===ni.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}(e,t),i={message:n,type:t.issue,tokenType:e};r.push(i)}else(0,$t.A)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):Rr(a,e.PATTERN)&&(i=!0)})),t&&!i&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ni.NO_LINE_BREAKS_FLAGS}),r}function br(e){const t=e.PATTERN;if(tn(t))return!1;if((0,Hn.A)(t))return!0;if((0,$t.A)(t,"exec"))return!0;if((0,Pt.A)(t))return!1;throw Error("non exhaustive match")}function _r(e){return!(!(0,Pt.A)(e)||1!==e.length)&&e.charCodeAt(0)}const Pr={test:function(e){const t=e.length;for(let n=this.lastIndex;n<t;n++){const t=e.charCodeAt(n);if(10===t)return this.lastIndex=n+1,!0;if(13===t)return 10===e.charCodeAt(n+1)?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},lastIndex:0};function Mr(e,t){if((0,$t.A)(e,"LINE_BREAKS"))return!1;if(tn(e.PATTERN)){try{Rr(t,e.PATTERN)}catch(n){return{issue:ni.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}if((0,Pt.A)(e.PATTERN))return!1;if(br(e))return{issue:ni.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function Dr(e){return(0,Ct.A)(e,(e=>(0,Pt.A)(e)?e.charCodeAt(0):e))}function Ur(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}const Fr=256;let Gr=[];function Kr(e){return e<Fr?e:Gr[e]}var Br=n(9008),jr=n(2302),Vr=n(6666);function Hr(e){const t=(new Date).getTime(),n=e();return{time:(new Date).getTime()-t,value:n}}function Wr(e,t){const n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function zr(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let Yr=1;const Xr={};function qr(e){const t=function(e){let t=(0,wt.A)(e),n=e,r=!0;for(;r;){n=sr((0,Pn.A)((0,Ct.A)(n,(e=>e.CATEGORIES))));const e=ir(n,t);t=t.concat(e),(0,Nt.A)(e)?r=!1:n=e}return t}(e);!function(e){(0,It.A)(e,(e=>{var t;Jr(e)||(Xr[Yr]=e,e.tokenTypeIdx=Yr++),Zr(e)&&!(0,vn.A)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),Zr(e)||(e.CATEGORIES=[]),t=e,(0,$t.A)(t,"categoryMatches")||(e.categoryMatches=[]),function(e){return(0,$t.A)(e,"categoryMatchesMap")}(e)||(e.categoryMatchesMap={})}))}(t),function(e){(0,It.A)(e,(e=>{Qr([],e)}))}(t),function(e){(0,It.A)(e,(e=>{e.categoryMatches=[],(0,It.A)(e.categoryMatchesMap,((t,n)=>{e.categoryMatches.push(Xr[n].tokenTypeIdx)}))}))}(t),(0,It.A)(t,(e=>{e.isParent=e.categoryMatches.length>0}))}function Qr(e,t){(0,It.A)(e,(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0})),(0,It.A)(t.CATEGORIES,(n=>{const r=e.concat(t);In(r,n)||Qr(r,n)}))}function Jr(e){return(0,$t.A)(e,"tokenTypeIdx")}function Zr(e){return(0,$t.A)(e,"CATEGORIES")}function ei(e){return(0,$t.A)(e,"tokenTypeIdx")}const ti={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,n,r,i)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`};var ni;!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"}(ni||(ni={}));const ri={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ti,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(ri);class ii{constructor(e,t=ri){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--\x3e <${e}>`);const{time:r,value:i}=Hr(t),s=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=jt({},ri,t);const n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(()=>{let n,r=!0;this.TRACE_INIT("Lexer Config handling",(()=>{if(this.config.lineTerminatorsPattern===ri.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Pr;else if(this.config.lineTerminatorCharacters===ri.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),(0,vn.A)(e)?n={modes:{defaultMode:(0,wt.A)(e)},defaultMode:kr}:(r=!1,n=(0,wt.A)(e))})),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",(()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e,t,n){const r=[];return(0,$t.A)(e,kr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+kr+"> property in its definition\n",type:ni.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,$t.A)(e,xr)||r.push({message:"A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",type:ni.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,$t.A)(e,xr)&&(0,$t.A)(e,kr)&&!(0,$t.A)(e.modes,e.defaultMode)&&r.push({message:`A MultiMode Lexer cannot be initialized with a ${kr}: <${e.defaultMode}>which does not exist\n`,type:ni.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,$t.A)(e,xr)&&(0,It.A)(e.modes,((e,t)=>{(0,It.A)(e,((n,i)=>{if((0,Fn.A)(n))r.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>\n`,type:ni.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if((0,$t.A)(n,"LONGER_ALT")){const i=(0,vn.A)(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT];(0,It.A)(i,(i=>{(0,Fn.A)(i)||In(e,i)||r.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${t}>\n`,type:ni.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}))}}))})),r}(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),this.TRACE_INIT("performWarningRuntimeChecks",(()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Or(n,this.trackStartLines,this.config.lineTerminatorCharacters))}))),n.modes=n.modes?n.modes:{},(0,It.A)(n.modes,((e,t)=>{n.modes[t]=Vn(e,(e=>(0,Fn.A)(e)))}));const i=(0,Kt.A)(n.modes);if((0,It.A)(n.modes,((e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,(()=>{if(this.modes.push(n),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",(()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Nr(e,i))})),(0,Nt.A)(this.lexerDefinitionErrors)){let r;qr(e),this.TRACE_INIT("analyzeTokenTypes",(()=>{r=Sr(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})})),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=jt({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}}))})),this.defaultMode=n.defaultMode,!(0,Nt.A)(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const e=(0,Ct.A)(this.lexerDefinitionErrors,(e=>e.message)).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+e)}(0,It.A)(this.lexerDefinitionWarning,(e=>{lr(e.message)})),this.TRACE_INIT("Choosing sub-methods implementations",(()=>{if(Ir?(this.chopInput=Br.A,this.match=this.matchWithTest):(this.updateLastIndex=jr.A,this.match=this.matchWithExec),r&&(this.handleModes=jr.A),!1===this.trackStartLines&&(this.computeNewColumn=Br.A),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=jr.A),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)})),this.TRACE_INIT("Failed Optimization Warnings",(()=>{const e=(0,Yn.A)(this.canModeBeOptimized,((e,t,n)=>(!1===t&&e.push(n),e)),[]);if(t.ensureOptimizations&&!(0,Nt.A)(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.`)})),this.TRACE_INIT("clearRegExpParserCache",(()=>{ur={}})),this.TRACE_INIT("toFastProperties",(()=>{Lt(this)}))}))}tokenize(e,t=this.defaultMode){if(!(0,Nt.A)(this.lexerDefinitionErrors)){const e=(0,Ct.A)(this.lexerDefinitionErrors,(e=>e.message)).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,s,o,a,c,l,u,d,h,f,p,m,g;const y=e,A=y.length;let T=0,v=0;const R=this.hasCustom?0:Math.floor(e.length/10),E=new Array(R),k=[];let x=this.trackStartLines?1:void 0,I=this.trackStartLines?1:void 0;const S=function(e){const t={},n=(0,Kt.A)(e);return(0,It.A)(n,(n=>{const r=e[n];if(!(0,vn.A)(r))throw Error("non exhaustive match");t[n]=[]})),t}(this.emptyGroups),N=this.trackStartLines,C=this.config.lineTerminatorsPattern;let $=0,w=[],L=[];const O=[],b=[];let _;function P(){return w}function M(e){const t=Kr(e),n=L[t];return void 0===n?b:n}Object.freeze(b);const D=e=>{if(1===O.length&&void 0===e.tokenType.PUSH_MODE){const t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);k.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{O.pop();const e=(0,Vr.A)(O);w=this.patternIdxToConfig[e],L=this.charCodeToPatternIdxToConfig[e],$=w.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;_=L&&t?M:P}};function U(e){O.push(e),L=this.charCodeToPatternIdxToConfig[e],w=this.patternIdxToConfig[e],$=w.length,$=w.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;_=L&&t?M:P}let F;U.call(this,t);const G=this.config.recoveryEnabled;for(;T<A;){a=null;const t=y.charCodeAt(T),R=_(t),L=R.length;for(n=0;n<L;n++){F=R[n];const r=F.pattern;c=null;const u=F.short;if(!1!==u?t===u&&(a=r):!0===F.isCustom?(g=r.exec(y,T,E,S),null!==g?(a=g[0],void 0!==g.payload&&(c=g.payload)):a=null):(this.updateLastIndex(r,T),a=this.match(r,e,T)),null!==a){if(o=F.longerAlt,void 0!==o){const t=o.length;for(i=0;i<t;i++){const t=w[o[i]],n=t.pattern;if(l=null,!0===t.isCustom?(g=n.exec(y,T,E,S),null!==g?(s=g[0],void 0!==g.payload&&(l=g.payload)):s=null):(this.updateLastIndex(n,T),s=this.match(n,e,T)),s&&s.length>a.length){a=s,c=l,F=t;break}}}break}}if(null!==a){if(u=a.length,d=F.group,void 0!==d&&(h=F.tokenTypeIdx,f=this.createTokenInstance(a,T,h,F.tokenType,x,I,u),this.handlePayload(f,c),!1===d?v=this.addToken(E,v,f):S[d].push(f)),e=this.chopInput(e,u),T+=u,I=this.computeNewColumn(I,u),!0===N&&!0===F.canLineTerminator){let e,t,n=0;C.lastIndex=0;do{e=C.test(a),!0===e&&(t=C.lastIndex-1,n++)}while(!0===e);0!==n&&(x+=n,I=u-t,this.updateTokenEndLineColumnLocation(f,d,t,n,x,I,u))}this.handleModes(F,D,U,f)}else{const t=T,n=x,i=I;let s=!1===G;for(;!1===s&&T<A;)for(e=this.chopInput(e,1),T++,r=0;r<$;r++){const t=w[r],n=t.pattern,i=t.short;if(!1!==i?y.charCodeAt(T)===i&&(s=!0):!0===t.isCustom?s=null!==n.exec(y,T,E,S):(this.updateLastIndex(n,T),s=null!==n.exec(e)),!0===s)break}if(p=T-t,I=this.computeNewColumn(I,p),m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(y,t,p,n,i),k.push({offset:t,line:n,column:i,length:p,message:m}),!1===G)break}}return this.hasCustom||(E.length=v),{tokens:E,groups:S,errors:k}}handleModes(e,t,n,r){if(!0===e.pop){const i=e.push;t(r),void 0!==i&&n.call(this,i)}else void 0!==e.push&&n.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,n,r,i,s,o){let a,c;void 0!==t&&(a=n===o-1,c=a?-1:0,1===r&&!0===a||(e.endLine=i+c,e.endColumn=s-1-c))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,n,r){return{image:e,startOffset:t,tokenTypeIdx:n,tokenType:r}}createStartOnlyToken(e,t,n,r,i,s){return{image:e,startOffset:t,startLine:i,startColumn:s,tokenTypeIdx:n,tokenType:r}}createFullToken(e,t,n,r,i,s,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:i,endLine:i,startColumn:s,endColumn:s+o-1,tokenTypeIdx:n,tokenType:r}}addTokenUsingPush(e,t,n){return e.push(n),t}addTokenUsingMemberAccess(e,t,n){return e[t]=n,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}matchWithTest(e,t,n){return!0===e.test(t)?t.substring(n,e.lastIndex):null}matchWithExec(e,t){const n=e.exec(t);return null!==n?n[0]:null}}function si(e){return oi(e)?e.LABEL:e.name}function oi(e){return(0,Pt.A)(e.LABEL)&&""!==e.LABEL}ii.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",ii.NA=/NOT_APPLICABLE/;const ai="parent",ci="categories",li="label",ui="group",di="push_mode",hi="pop_mode",fi="longer_alt",pi="line_breaks",mi="start_chars_hint";function gi(e){return function(e){const t=e.pattern,n={};n.name=e.name,(0,Fn.A)(t)||(n.PATTERN=t);if((0,$t.A)(e,ai))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";(0,$t.A)(e,ci)&&(n.CATEGORIES=e[ci]);qr([n]),(0,$t.A)(e,li)&&(n.LABEL=e[li]);(0,$t.A)(e,ui)&&(n.GROUP=e[ui]);(0,$t.A)(e,hi)&&(n.POP_MODE=e[hi]);(0,$t.A)(e,di)&&(n.PUSH_MODE=e[di]);(0,$t.A)(e,fi)&&(n.LONGER_ALT=e[fi]);(0,$t.A)(e,pi)&&(n.LINE_BREAKS=e[pi]);(0,$t.A)(e,mi)&&(n.START_CHARS_HINT=e[mi]);return n}(e)}const yi=gi({name:"EOF",pattern:ii.NA});function Ai(e,t,n,r,i,s,o,a){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:s,startColumn:o,endColumn:a,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Ti(e,t){return Wr(e,t)}qr([yi]);const vi={buildMismatchTokenMessage:({expected:e,actual:t,previous:n,ruleName:r})=>`Expecting ${oi(e)?`--\x3e ${si(e)} <--`:`token of type --\x3e ${e.name} <--`} but found --\x3e '${t.image}' <--`,buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){const s="Expecting: ",o="\nbut found: '"+or(t).image+"'";if(r)return s+r+o;{const t=(0,Yn.A)(e,((e,t)=>e.concat(t)),[]),n=(0,Ct.A)(t,(e=>`[${(0,Ct.A)(e,(e=>si(e))).join(", ")}]`));return s+`one of these possible Token sequences:\n${(0,Ct.A)(n,((e,t)=>` ${t+1}. ${e}`)).join("\n")}`+o}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){const i="Expecting: ",s="\nbut found: '"+or(t).image+"'";if(n)return i+n+s;return i+`expecting at least one iteration which starts with one of these possible Token sequences::\n <${(0,Ct.A)(e,(e=>`[${(0,Ct.A)(e,(e=>si(e))).join(",")}]`)).join(" ,")}>`+s}};Object.freeze(vi);const Ri={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},Ei={buildDuplicateFoundError(e,t){const n=e.name,r=or(t),i=r.idx,s=wn(r),o=(a=r)instanceof pn?a.terminalType.name:a instanceof sn?a.nonTerminalName:"";var a;let c=`->${s}${i>0?i:""}<- ${o?`with argument: ->${o}<-`:""}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;return c=c.replace(/[ \t]+/g," "),c=c.replace(/\s\s+/g,"\n"),c},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){const t=(0,Ct.A)(e.prefixPath,(e=>si(e))).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\nin <OR${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){const t=(0,Ct.A)(e.prefixPath,(e=>si(e))).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return r+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",r},buildEmptyRepetitionError(e){let t=wn(e.repetition);0!==e.repetition.idx&&(t+=e.repetition.idx);return`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:\n<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){const t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${`${t} --\x3e ${(0,Ct.A)(e.leftRecursionPath,(e=>e.name)).concat([t]).join(" --\x3e ")}`}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;t=e.topLevelRule instanceof on?e.topLevelRule.name:e.topLevelRule;return`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};class ki extends gn{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){(0,It.A)((0,St.A)(this.nameToTopRule),(e=>{this.currTopLevel=e,e.accept(this)}))}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:to.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}const xi=function(e,t){return(0,tr.A)((0,Ct.A)(e,t),1)};var Ii=n(2528);const Si=function(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r};const Ni=function(e,t,n,r){return(0,An.A)(e,(function(e,i,s){t(r,e,n(e),s)})),r};const Ci=function(e,t){return function(n,r){var i=(0,vn.A)(n)?Si:Ni,s=t?t():{};return i(n,e,(0,Ht.A)(r,2),s)}};var $i=Object.prototype.hasOwnProperty;const wi=Ci((function(e,t,n){$i.call(e,n)?e[n].push(t):(0,Ii.A)(e,n,[t])}));const Li=function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:(0,bt.A)(t),Ot(e,0,(t=r-t)<0?0:t)):[]};class Oi extends Ln{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,wt.A)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,wt.A)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){(0,Nt.A)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class bi extends Oi{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const e=t.concat(n),r=new an({definition:e});this.possibleTokTypes=Mn(r),this.found=!0}}}class _i extends Ln{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class Pi extends _i{walkMany(e,t,n){if(e.idx===this.occurrence){const e=or(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof pn&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}}class Mi extends _i{walkManySep(e,t,n){if(e.idx===this.occurrence){const e=or(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof pn&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}}class Di extends _i{walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){const e=or(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof pn&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}}class Ui extends _i{walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){const e=or(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof pn&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}}function Fi(e,t,n=[]){n=(0,wt.A)(n);let r=[],i=0;function s(s){const o=Fi(s.concat(_t(e,i+1)),t,n);return r.concat(o)}for(;n.length<t&&i<e.length;){const t=e[i];if(t instanceof an)return s(t.definition);if(t instanceof sn)return s(t.definition);if(t instanceof cn)r=s(t.definition);else{if(t instanceof ln){return s(t.definition.concat([new dn({definition:t.definition})]))}if(t instanceof un){return s([new an({definition:t.definition}),new dn({definition:[new pn({terminalType:t.separator})].concat(t.definition)})])}if(t instanceof hn){const e=t.definition.concat([new dn({definition:[new pn({terminalType:t.separator})].concat(t.definition)})]);r=s(e)}else if(t instanceof dn){const e=t.definition.concat([new dn({definition:t.definition})]);r=s(e)}else{if(t instanceof fn)return(0,It.A)(t.definition,(e=>{!1===(0,Nt.A)(e.definition)&&(r=s(e.definition))})),r;if(!(t instanceof pn))throw Error("non exhaustive match");n.push(t.terminalType)}}i++}return r.push({partialPath:n,suffixDef:_t(e,i)}),r}function Gi(e,t,n,r){const i="EXIT_NONE_TERMINAL",s=[i],o="EXIT_ALTERNATIVE";let a=!1;const c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!(0,Nt.A)(d);){const e=d.pop();if(e===o){a&&(0,Vr.A)(d).idx<=l&&d.pop();continue}const r=e.def,h=e.idx,f=e.ruleStack,p=e.occurrenceStack;if((0,Nt.A)(r))continue;const m=r[0];if(m===i){const e={idx:h,def:_t(r),ruleStack:Li(f),occurrenceStack:Li(p)};d.push(e)}else if(m instanceof pn)if(h<c-1){const e=h+1;if(n(t[e],m.terminalType)){const t={idx:e,def:_t(r),ruleStack:f,occurrenceStack:p};d.push(t)}}else{if(h!==c-1)throw Error("non exhaustive match");u.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:f,occurrenceStack:p}),a=!0}else if(m instanceof sn){const e=(0,wt.A)(f);e.push(m.nonTerminalName);const t=(0,wt.A)(p);t.push(m.idx);const n={idx:h,def:m.definition.concat(s,_t(r)),ruleStack:e,occurrenceStack:t};d.push(n)}else if(m instanceof cn){const e={idx:h,def:_t(r),ruleStack:f,occurrenceStack:p};d.push(e),d.push(o);const t={idx:h,def:m.definition.concat(_t(r)),ruleStack:f,occurrenceStack:p};d.push(t)}else if(m instanceof ln){const e=new dn({definition:m.definition,idx:m.idx}),t={idx:h,def:m.definition.concat([e],_t(r)),ruleStack:f,occurrenceStack:p};d.push(t)}else if(m instanceof un){const e=new pn({terminalType:m.separator}),t=new dn({definition:[e].concat(m.definition),idx:m.idx}),n={idx:h,def:m.definition.concat([t],_t(r)),ruleStack:f,occurrenceStack:p};d.push(n)}else if(m instanceof hn){const e={idx:h,def:_t(r),ruleStack:f,occurrenceStack:p};d.push(e),d.push(o);const t=new pn({terminalType:m.separator}),n=new dn({definition:[t].concat(m.definition),idx:m.idx}),i={idx:h,def:m.definition.concat([n],_t(r)),ruleStack:f,occurrenceStack:p};d.push(i)}else if(m instanceof dn){const e={idx:h,def:_t(r),ruleStack:f,occurrenceStack:p};d.push(e),d.push(o);const t=new dn({definition:m.definition,idx:m.idx}),n={idx:h,def:m.definition.concat([t],_t(r)),ruleStack:f,occurrenceStack:p};d.push(n)}else if(m instanceof fn)for(let t=m.definition.length-1;t>=0;t--){const e={idx:h,def:m.definition[t].definition.concat(_t(r)),ruleStack:f,occurrenceStack:p};d.push(e),d.push(o)}else if(m instanceof an)d.push({idx:h,def:m.definition.concat(_t(r)),ruleStack:f,occurrenceStack:p});else{if(!(m instanceof on))throw Error("non exhaustive match");d.push(Ki(m,h,f,p))}}return u}function Ki(e,t,n,r){const i=(0,wt.A)(n);i.push(e.name);const s=(0,wt.A)(r);return s.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:s}}var Bi;function ji(e){if(e instanceof cn||"Option"===e)return Bi.OPTION;if(e instanceof dn||"Repetition"===e)return Bi.REPETITION;if(e instanceof ln||"RepetitionMandatory"===e)return Bi.REPETITION_MANDATORY;if(e instanceof un||"RepetitionMandatoryWithSeparator"===e)return Bi.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof hn||"RepetitionWithSeparator"===e)return Bi.REPETITION_WITH_SEPARATOR;if(e instanceof fn||"Alternation"===e)return Bi.ALTERNATION;throw Error("non exhaustive match")}function Vi(e){const{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e,s=ji(r);return s===Bi.ALTERNATION?Zi(t,n,i):es(t,n,s,i)}function Hi(e,t,n,r){const i=e.length,s=Cn(e,(e=>Cn(e,(e=>1===e.length))));if(t)return function(t){const r=(0,Ct.A)(t,(e=>e.GATE));for(let s=0;s<i;s++){const t=e[s],i=t.length,o=r[s];if(void 0===o||!1!==o.call(this))e:for(let e=0;e<i;e++){const r=t[e],i=r.length;for(let e=0;e<i;e++){const t=this.LA(e+1);if(!1===n(t,r[e]))continue e}return s}}};if(s&&!r){const t=(0,Ct.A)(e,(e=>(0,Pn.A)(e))),n=(0,Yn.A)(t,((e,t,n)=>((0,It.A)(t,(t=>{(0,$t.A)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),(0,It.A)(t.categoryMatches,(t=>{(0,$t.A)(e,t)||(e[t]=n)}))})),e)),{});return function(){const e=this.LA(1);return n[e.tokenTypeIdx]}}return function(){for(let t=0;t<i;t++){const r=e[t],i=r.length;e:for(let e=0;e<i;e++){const i=r[e],s=i.length;for(let e=0;e<s;e++){const t=this.LA(e+1);if(!1===n(t,i[e]))continue e}return t}}}}function Wi(e,t,n){const r=Cn(e,(e=>1===e.length)),i=e.length;if(r&&!n){const t=(0,Pn.A)(e);if(1===t.length&&(0,Nt.A)(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=(0,Yn.A)(t,((e,t,n)=>(e[t.tokenTypeIdx]=!0,(0,It.A)(t.categoryMatches,(t=>{e[t]=!0})),e)),[]);return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){e:for(let n=0;n<i;n++){const r=e[n],i=r.length;for(let e=0;e<i;e++){const n=this.LA(e+1);if(!1===t(n,r[e]))continue e}return!0}return!1}}!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(Bi||(Bi={}));class zi extends Ln{constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,Bi.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,Bi.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,Bi.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,Bi.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,Bi.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}}class Yi extends gn{constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,this.result=[]}checkIsTarget(e,t){e.idx!==this.targetOccurrence||this.targetProdType!==t||void 0!==this.targetRef&&e!==this.targetRef||(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,Bi.OPTION)}visitRepetition(e){this.checkIsTarget(e,Bi.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Bi.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Bi.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Bi.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Bi.ALTERNATION)}}function Xi(e){const t=new Array(e);for(let n=0;n<e;n++)t[n]=[];return t}function qi(e){let t=[""];for(let n=0;n<e.length;n++){const r=e[n],i=[];for(let e=0;e<t.length;e++){const n=t[e];i.push(n+"_"+r.tokenTypeIdx);for(let e=0;e<r.categoryMatches.length;e++){const t="_"+r.categoryMatches[e];i.push(n+t)}}t=i}return t}function Qi(e,t,n){for(let r=0;r<e.length;r++){if(r===n)continue;const i=e[r];for(let e=0;e<t.length;e++){if(!0===i[t[e]])return!1}}return!0}function Ji(e,t){const n=(0,Ct.A)(e,(e=>Fi([e],1))),r=Xi(n.length),i=(0,Ct.A)(n,(e=>{const t={};return(0,It.A)(e,(e=>{const n=qi(e.partialPath);(0,It.A)(n,(e=>{t[e]=!0}))})),t}));let s=n;for(let o=1;o<=t;o++){const e=s;s=Xi(e.length);for(let n=0;n<e.length;n++){const a=e[n];for(let e=0;e<a.length;e++){const c=a[e].partialPath,l=a[e].suffixDef,u=qi(c);if(Qi(i,u,n)||(0,Nt.A)(l)||c.length===t){const e=r[n];if(!1===ts(e,c)){e.push(c);for(let e=0;e<u.length;e++){const t=u[e];i[n][t]=!0}}}else{const e=Fi(l,o+1,c);s[n]=s[n].concat(e),(0,It.A)(e,(e=>{const t=qi(e.partialPath);(0,It.A)(t,(e=>{i[n][e]=!0}))}))}}}}return r}function Zi(e,t,n,r){const i=new Yi(e,Bi.ALTERNATION,r);return t.accept(i),Ji(i.result,n)}function es(e,t,n,r){const i=new Yi(e,n);t.accept(i);const s=i.result,o=new zi(t,e,n).startWalking();return Ji([new an({definition:s}),new an({definition:o})],r)}function ts(e,t){e:for(let n=0;n<e.length;n++){const r=e[n];if(r.length===t.length){for(let e=0;e<r.length;e++){const n=t[e],i=r[e];if(!1===(n===i||void 0!==i.categoryMatchesMap[n.tokenTypeIdx]))continue e}return!0}}return!1}function ns(e){return Cn(e,(e=>Cn(e,(e=>Cn(e,(e=>(0,Nt.A)(e.categoryMatches)))))))}function rs(e,t,n,r){const i=xi(e,(e=>function(e,t){const n=new os;e.accept(n);const r=n.allProductions,i=wi(r,is),s=Yt(i,(e=>e.length>1)),o=(0,Ct.A)((0,St.A)(s),(n=>{const r=or(n),i=t.buildDuplicateFoundError(e,n),s=wn(r),o={message:i,type:to.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:s,occurrence:r.idx},a=ss(r);return a&&(o.parameter=a),o}));return o}(e,n))),s=function(e,t,n){const r=[],i=(0,Ct.A)(t,(e=>e.name));return(0,It.A)(e,(e=>{const t=e.name;if(In(i,t)){const i=n.buildNamespaceConflictError(e);r.push({message:i,type:to.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}})),r}(e,t,n),o=xi(e,(e=>function(e,t){const n=new ls;e.accept(n);const r=n.alternations,i=xi(r,(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:to.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[]));return i}(e,n))),a=xi(e,(t=>function(e,t,n,r){const i=[],s=(0,Yn.A)(t,((t,n)=>n.name===e.name?t+1:t),0);if(s>1){const t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:to.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}(t,e,r,n)));return i.concat(s,o,a)}function is(e){return`${wn(e)}_#_${e.idx}_#_${ss(e)}`}function ss(e){return e instanceof pn?e.terminalType.name:e instanceof sn?e.nonTerminalName:""}class os extends gn{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}function as(e,t,n,r=[]){const i=[],s=cs(t.definition);if((0,Nt.A)(s))return[];{const t=e.name;In(s,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:to.LEFT_RECURSION,ruleName:t});const o=ir(s,r.concat([e])),a=xi(o,(t=>{const i=(0,wt.A)(r);return i.push(t),as(e,t,n,i)}));return i.concat(a)}}function cs(e){let t=[];if((0,Nt.A)(e))return t;const n=or(e);if(n instanceof sn)t.push(n.referencedRule);else if(n instanceof an||n instanceof cn||n instanceof ln||n instanceof un||n instanceof hn||n instanceof dn)t=t.concat(cs(n.definition));else if(n instanceof fn)t=(0,Pn.A)((0,Ct.A)(n.definition,(e=>cs(e.definition))));else if(!(n instanceof pn))throw Error("non exhaustive match");const r=$n(n),i=e.length>1;if(r&&i){const n=_t(e);return t.concat(cs(n))}return t}class ls extends gn{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}function us(e,t,n){const r=new ls;e.accept(r);let i=r.alternations;i=Vn(i,(e=>!0===e.ignoreAmbiguities));const s=xi(i,(r=>{const i=r.idx,s=r.maxLookahead||t,o=Zi(i,e,s,r),a=function(e,t,n,r){const i=[],s=(0,Yn.A)(e,((n,r,s)=>(!0===t.definition[s].ignoreAmbiguities||(0,It.A)(r,(r=>{const o=[s];(0,It.A)(e,((e,n)=>{s!==n&&ts(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&o.push(n)})),o.length>1&&!ts(i,r)&&(i.push(r),n.push({alts:o,path:r}))})),n)),[]),o=(0,Ct.A)(s,(e=>{const i=(0,Ct.A)(e.alts,(e=>e+1));return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:to.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}}));return o}(o,r,e,n),c=function(e,t,n,r){const i=(0,Yn.A)(e,((e,t,n)=>{const r=(0,Ct.A)(t,(e=>({idx:n,path:e})));return e.concat(r)}),[]),s=sr(xi(i,(e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];const s=e.idx,o=e.path,a=(0,Xn.A)(i,(e=>{return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<s&&(n=e.path,r=o,n.length<r.length&&Cn(n,((e,t)=>{const n=r[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]})));var n,r}));return(0,Ct.A)(a,(e=>{const i=[e.idx+1,s+1],o=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:to.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}}))})));return s}(o,r,e,n);return a.concat(c)}));return s}class ds extends gn{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}function hs(e){const t=(0,Gn.A)(e,{errMsgProvider:Ri}),n={};return(0,It.A)(e.rules,(e=>{n[e.name]=e})),function(e,t){const n=new ki(e,t);return n.resolveRefs(),n.errors}(n,t.errMsgProvider)}const fs="MismatchedTokenException",ps="NoViableAltException",ms="EarlyExitException",gs="NotAllInputParsedException",ys=[fs,ps,ms,gs];function As(e){return In(ys,e.name)}Object.freeze(ys);class Ts extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class vs extends Ts{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=fs}}class Rs extends Ts{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ps}}class Es extends Ts{constructor(e,t){super(e,t),this.name=gs}}class ks extends Ts{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=ms}}const xs={},Is="InRuleRecoveryException";class Ss extends Error{constructor(e){super(e),this.name=Is}}function Ns(e,t,n,r,i,s,o){const a=this.getKeyForAutomaticLookahead(r,i);let c=this.firstAfterRepMap[a];if(void 0===c){const e=this.getCurrRuleFullName();c=new s(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[a]=c}let l=c.token,u=c.occurrence;const d=c.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===l&&(l=yi,u=1),void 0!==l&&void 0!==u&&this.shouldInRepetitionRecoveryBeTried(l,u,o)&&this.tryInRepetitionRecovery(e,t,n,l)}const Cs=1024,$s=1280,ws=1536;function Ls(e,t,n){return n|t|e}class Os{constructor(e){var t;this.maxLookahead=null!==(t=null==e?void 0:e.maxLookahead)&&void 0!==t?t:Zs.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if((0,Nt.A)(t)){const n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return xi(e,(e=>as(e,e,Ei)))}validateEmptyOrAlternatives(e){return xi(e,(e=>function(e,t){const n=new ls;e.accept(n);const r=n.alternations;return xi(r,(n=>{const r=Li(n.definition);return xi(r,((r,i)=>{const s=Gi([r],[],Wr,1);return(0,Nt.A)(s)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:to.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]}))}))}(e,Ei)))}validateAmbiguousAlternationAlternatives(e,t){return xi(e,(e=>us(e,t,Ei)))}validateSomeNonEmptyLookaheadPath(e,t){return function(e,t,n){const r=[];return(0,It.A)(e,(e=>{const i=new ds;e.accept(i);const s=i.allProductions;(0,It.A)(s,(i=>{const s=ji(i),o=i.maxLookahead||t,a=es(i.idx,e,s,o)[0];if((0,Nt.A)((0,Pn.A)(a))){const t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:to.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}}))})),r}(e,t,Ei)}buildLookaheadForAlternation(e){return function(e,t,n,r,i,s){const o=Zi(e,t,n);return s(o,r,ns(o)?zr:Wr,i)}(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Hi)}buildLookaheadForOptional(e){return function(e,t,n,r,i,s){const o=es(e,t,i,n),a=ns(o)?zr:Wr;return s(o[0],a,r)}(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,ji(e.prodType),Wi)}}const bs=new class extends gn{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function _s(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function Ps(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}const Ms="name";function Ds(e,t){Object.defineProperty(e,Ms,{enumerable:!1,configurable:!0,writable:!1,value:t})}function Us(e,t){const n=(0,Kt.A)(e),r=n.length;for(let i=0;i<r;i++){const r=e[n[i]],s=r.length;for(let e=0;e<s;e++){const n=r[e];void 0===n.tokenTypeIdx&&this[n.name](n.children,t)}}}function Fs(e,t){const n=function(){};Ds(n,e+"BaseSemantics");const r={visit:function(e,t){if((0,vn.A)(e)&&(e=e[0]),!(0,Fn.A)(e))return this[e.name](e.children,t)},validateVisitor:function(){const e=function(e,t){const n=function(e,t){const n=(0,Xn.A)(t,(t=>!1===(0,Hn.A)(e[t]))),r=(0,Ct.A)(n,(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Gs.MISSING_METHOD,methodName:t})));return sr(r)}(e,t);return n}(this,t);if(!(0,Nt.A)(e)){const t=(0,Ct.A)(e,(e=>e.msg));throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join("\n\n").replace(/\n/g,"\n\t")}`)}}};return(n.prototype=r).constructor=n,n._RULE_NAMES=t,n}var Gs;!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(Gs||(Gs={}));var Ks=n(3149);const Bs={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Bs);const js=!0,Vs=Math.pow(2,8)-1,Hs=gi({name:"RECORDING_PHASE_TOKEN",pattern:ii.NA});qr([Hs]);const Ws=Ai(Hs,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(Ws);const zs={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}};function Ys(e,t,n,r=!1){Qs(n);const i=(0,Vr.A)(this.recordingProdStack),s=(0,Hn.A)(t)?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),(0,$t.A)(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),i.definition.push(o),this.recordingProdStack.pop(),Bs}function Xs(e,t){Qs(t);const n=(0,Vr.A)(this.recordingProdStack),r=!1===(0,vn.A)(e),i=!1===r?e:e.DEF,s=new fn({definition:[],idx:t,ignoreAmbiguities:r&&!0===e.IGNORE_AMBIGUITIES});(0,$t.A)(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);const o=En(i,(e=>(0,Hn.A)(e.GATE)));return s.hasPredicates=o,n.definition.push(s),(0,It.A)(i,(e=>{const t=new an({definition:[]});s.definition.push(t),(0,$t.A)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:(0,$t.A)(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()})),Bs}function qs(e){return 0===e?"":`${e}`}function Qs(e){if(e<0||e>Vs){const t=new Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${Vs+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}const Js=Ai(yi,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Js);const Zs=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:vi,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),eo=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var to,no,ro;function io(e=void 0){return function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"}(to||(to={}));class so{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",(()=>{let e;this.selfAnalysisDone=!0;const t=this.className;this.TRACE_INIT("toFastProps",(()=>{Lt(this)})),this.TRACE_INIT("Grammar Recording",(()=>{try{this.enableRecording(),(0,It.A)(this.definedRulesNames,(e=>{const t=this[e].originalGrammarAction;let n;this.TRACE_INIT(`${e} Rule`,(()=>{n=this.topLevelRuleRecord(e,t)})),this.gastProductionsCache[e]=n}))}finally{this.disableRecording()}}));let n=[];if(this.TRACE_INIT("Grammar Resolving",(()=>{n=hs({rules:(0,St.A)(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)})),this.TRACE_INIT("Grammar Validations",(()=>{if((0,Nt.A)(n)&&!1===this.skipValidations){const n=(e={rules:(0,St.A)(this.gastProductionsCache),tokenTypes:(0,St.A)(this.tokensMap),errMsgProvider:Ei,grammarName:t},rs((e=(0,Gn.A)(e,{errMsgProvider:Ei})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)),r=function(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return(0,Ct.A)(t,(e=>Object.assign({type:to.CUSTOM_LOOKAHEAD_VALIDATION},e)))}({lookaheadStrategy:this.lookaheadStrategy,rules:(0,St.A)(this.gastProductionsCache),tokenTypes:(0,St.A)(this.tokensMap),grammarName:t});this.definitionErrors=this.definitionErrors.concat(n,r)}var e})),(0,Nt.A)(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",(()=>{const e=function(e){const t={};return(0,It.A)(e,(e=>{const n=new Un(e).startWalking();jt(t,n)})),t}((0,St.A)(this.gastProductionsCache));this.resyncFollows=e})),this.TRACE_INIT("ComputeLookaheadFunctions",(()=>{var e,t;null===(t=(e=this.lookaheadStrategy).initialize)||void 0===t||t.call(e,{rules:(0,St.A)(this.gastProductionsCache)}),this.preComputeLookaheadFunctions((0,St.A)(this.gastProductionsCache))}))),!so.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,Nt.A)(this.definitionErrors))throw e=(0,Ct.A)(this.definitionErrors,(e=>e.message)),new Error(`Parser Definition Errors detected:\n ${e.join("\n-------------------------------\n")}`)}))}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),(0,$t.A)(t,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,$t.A)(t,"skipValidations")?t.skipValidations:Zs.skipValidations}}so.DEFER_DEFINITION_ERRORS_HANDLING=!1,no=so,ro=[class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,$t.A)(e,"recoveryEnabled")?e.recoveryEnabled:Zs.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Ns)}getTokenToInsert(e){const t=Ai(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){const i=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let a=!1;const c=this.LA(1);let l=this.LA(1);const u=()=>{const e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:c,previous:e,ruleName:this.getCurrRuleFullName()}),n=new vs(t,c,this.LA(0));n.resyncedTokens=Li(o),this.SAVE_ERROR(n)};for(;!a;){if(this.tokenMatcher(l,r))return void u();if(n.call(this))return u(),void e.apply(this,t);this.tokenMatcher(l,i)?a=!0:(l=this.SKIP_TOKEN(),this.addToResyncTokens(l,o))}this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,n){return!1!==n&&!this.tokenMatcher(this.LA(1),e)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t))}getFollowsForInRuleRecovery(e,t){const n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Ss("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if((0,Nt.A)(t))return!1;const n=this.LA(1);return void 0!==(0,ar.A)(t,(e=>this.tokenMatcher(n,e)))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey(),n=this.getFollowSetFromFollowKey(t);return In(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),n=2;for(;;){const r=(0,ar.A)(e,(e=>Ti(t,e)));if(void 0!==r)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return xs;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return(0,Ct.A)(e,((n,r)=>0===r?xs:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])}))}flattenFollowSet(){const e=(0,Ct.A)(this.buildFullFollowKeyStack(),(e=>this.getFollowSetFromFollowKey(e)));return(0,Pn.A)(e)}getFollowSetFromFollowKey(e){if(e===xs)return[yi];const t=e.ruleName+e.idxInCallingRule+Dn+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,yi)||t.push(e),t}reSyncTo(e){const t=[];let n=this.LA(1);for(;!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return Li(t)}attemptInRepetitionRecovery(e,t,n,r,i,s,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,wt.A)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return(0,Ct.A)(this.RULE_STACK,(e=>this.shortRuleNameToFullName(e)))}},class{initLooksAhead(e){this.dynamicTokensEnabled=(0,$t.A)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Zs.dynamicTokensEnabled,this.maxLookahead=(0,$t.A)(e,"maxLookahead")?e.maxLookahead:Zs.maxLookahead,this.lookaheadStrategy=(0,$t.A)(e,"lookaheadStrategy")?e.lookaheadStrategy:new Os({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){(0,It.A)(e,(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,(()=>{const{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:s,repetitionWithSeparator:o}=function(e){bs.reset(),e.accept(bs);const t=bs.dslMethods;return bs.reset(),t}(e);(0,It.A)(t,(t=>{const n=0===t.idx?"":t.idx;this.TRACE_INIT(`${wn(t)}${n}`,(()=>{const n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Ls(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(r,n)}))})),(0,It.A)(n,(t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,wn(t))})),(0,It.A)(r,(t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,wn(t))})),(0,It.A)(i,(t=>{this.computeLookaheadFunc(e,t.idx,Cs,"RepetitionMandatory",t.maxLookahead,wn(t))})),(0,It.A)(s,(t=>{this.computeLookaheadFunc(e,t.idx,ws,"RepetitionMandatoryWithSeparator",t.maxLookahead,wn(t))})),(0,It.A)(o,(t=>{this.computeLookaheadFunc(e,t.idx,$s,"RepetitionWithSeparator",t.maxLookahead,wn(t))}))}))}))}computeLookaheadFunc(e,t,n,r,i,s){this.TRACE_INIT(`${s}${0===t?"":t}`,(()=>{const s=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),o=Ls(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(o,s)}))}getKeyForAutomaticLookahead(e,t){return Ls(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(0,$t.A)(e,"nodeLocationTracking")?e.nodeLocationTracking:Zs.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ps,this.setNodeLocationFromNode=Ps,this.cstPostRule=jr.A,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=jr.A,this.setNodeLocationFromNode=jr.A,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=_s,this.setNodeLocationFromNode=_s,this.cstPostRule=jr.A,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=jr.A,this.setNodeLocationFromNode=jr.A,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=jr.A,this.setNodeLocationFromNode=jr.A,this.cstPostRule=jr.A,this.setInitialNodeLocation=jr.A}else this.cstInvocationStateUpdate=jr.A,this.cstFinallyStateUpdate=jr.A,this.cstPostTerminal=jr.A,this.cstPostNonTerminal=jr.A,this.cstPostRule=jr.A}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==1?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==1?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];var r,i,s;i=t,s=e,void 0===(r=n).children[s]?r.children[s]=[i]:r.children[s].push(i),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];!function(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if((0,Fn.A)(this.baseCstVisitorConstructor)){const e=Fs(this.className,(0,Kt.A)(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if((0,Fn.A)(this.baseCstVisitorWithDefaultsConstructor)){const e=function(e,t,n){const r=function(){};Ds(r,e+"BaseSemanticsWithDefaults");const i=Object.create(n.prototype);return(0,It.A)(t,(e=>{i[e]=Us})),(r.prototype=i).constructor=r,r}(this.className,(0,Kt.A)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Js}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Js:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=zr,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,$t.A)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,vn.A)(e)){if((0,Nt.A)(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,vn.A)(e))this.tokensMap=(0,Yn.A)(e,((e,t)=>(e[t.name]=t,e)),{});else if((0,$t.A)(e,"modes")&&Cn((0,Pn.A)((0,St.A)(e.modes)),ei)){const t=(0,Pn.A)((0,St.A)(e.modes)),n=_n(t);this.tokensMap=(0,Yn.A)(n,((e,t)=>(e[t.name]=t,e)),{})}else{if(!(0,Ks.A)(e))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,wt.A)(e)}this.tokensMap.EOF=yi;const n=(0,$t.A)(e,"modes")?(0,Pn.A)((0,St.A)(e.modes)):(0,St.A)(e),r=Cn(n,(e=>(0,Nt.A)(e.categoryMatches)));this.tokenMatcher=r?zr:Wr,qr((0,St.A)(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const r=(0,$t.A)(n,"resyncEnabled")?n.resyncEnabled:eo.resyncEnabled,i=(0,$t.A)(n,"recoveryValueFunc")?n.recoveryValueFunc:eo.recoveryValueFunc,s=this.ruleShortNameIdx<<12;let o;return this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s,o=!0===this.outputCst?function(...n){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,n);const r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(o){return this.invokeRuleCatch(o,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,n)}catch(o){return this.invokeRuleCatch(o,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(o,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,n){const r=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(As(e)){const t=e;if(i){const r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){const n=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof e){r=e.DEF;const t=e.GATE;if(void 0!==t){const e=i;i=()=>t.call(this)&&e.call(this)}}else r=e;if(!0===i.call(this))return r.call(this)}atLeastOneInternal(e,t){const n=this.getKeyForAutomaticLookahead(Cs,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;if(!0!==i.call(this))throw this.raiseEarlyExitException(e,Bi.REPETITION_MANDATORY,t.ERR_MSG);{let e=this.doSingleRepetition(r);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(r)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,Cs,e,Di)}atLeastOneSepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(ws,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,Bi.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);{r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Ui],t,ws,e,Ui)}}manyInternal(e,t){const n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;let s=!0;for(;!0===i.call(this)&&!0===s;)s=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,Pi,s)}manySepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead($s,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Mi],t,$s,e,Mi)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,ws,e,i)}doSingleRepetition(e){const t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){const n=this.getKeyForAutomaticLookahead(256,t),r=(0,vn.A)(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(void 0!==i)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Es(t,e))}}subruleInternal(e,t,n){let r;try{const i=void 0!==n?n.ARGS:void 0;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(i){throw this.subruleInternalError(i,n,e.ruleName)}}subruleInternalError(e,t,n){throw As(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{const t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(i){r=this.consumeInternalRecovery(e,t,i)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r;const i=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new vs(r,t,i))}consumeInternalRecovery(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;{const i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(r){throw r.name===Is?n:r}}}saveRecogState(){const e=this.errors,t=(0,wt.A)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),yi)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=eo){if(In(this.definedRulesNames,e)){const t={message:Ei.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:to.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);const r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=eo){const r=function(e,t,n){const r=[];let i;return In(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:to.INVALID_RULE_OVERRIDE,ruleName:e})),r}(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);const i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,t),!0}catch(r){if(As(r))return!1;throw r}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return e=(0,St.A)(this.gastProductionsCache),(0,Ct.A)(e,mn);var e}},class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=(0,$t.A)(e,"errorMessageProvider")?e.errorMessageProvider:Zs.errorMessageProvider}SAVE_ERROR(e){if(As(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,wt.A)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return(0,wt.A)(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){const r=this.getCurrRuleFullName(),i=es(e,this.getGAstProductions()[r],t,this.maxLookahead)[0],s=[];for(let a=1;a<=this.maxLookahead;a++)s.push(this.LA(a));const o=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:s,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new ks(o,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const n=this.getCurrRuleFullName(),r=Zi(e,this.getGAstProductions()[n],this.maxLookahead),i=[];for(let a=1;a<=this.maxLookahead;a++)i.push(this.LA(a));const s=this.LA(0),o=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:i,previous:s,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Rs(o,this.LA(1),s))}},class{initContentAssist(){}computeContentAssist(e,t){const n=this.gastProductionsCache[e];if((0,Fn.A)(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Gi([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=or(e.ruleStack),n=this.getGAstProductions()[t];return new bi(n,e).startWalking()}},class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD}))}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(()=>{const e=this;for(let t=0;t<10;t++){const n=t>0?t:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA}))}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return Js}topLevelRuleRecord(e,t){try{const n=new on({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(n){if(!0!==n.KNOWN_RECORDER_ERROR)try{n.message=n.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(r){throw n}throw n}}optionInternalRecord(e,t){return Ys.call(this,cn,e,t)}atLeastOneInternalRecord(e,t){Ys.call(this,ln,t,e)}atLeastOneSepFirstInternalRecord(e,t){Ys.call(this,un,t,e,js)}manyInternalRecord(e,t){Ys.call(this,dn,t,e)}manySepFirstInternalRecord(e,t){Ys.call(this,hn,t,e,js)}orInternalRecord(e,t){return Xs.call(this,e,t)}subruleInternalRecord(e,t,n){if(Qs(t),!e||!1===(0,$t.A)(e,"ruleName")){const n=new Error(`<SUBRULE${qs(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=(0,Vr.A)(this.recordingProdStack),i=e.ruleName,s=new sn({idx:t,nonTerminalName:i,label:null==n?void 0:n.LABEL,referencedRule:void 0});return r.definition.push(s),this.outputCst?zs:Bs}consumeInternalRecord(e,t,n){if(Qs(t),!Jr(e)){const n=new Error(`<CONSUME${qs(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=(0,Vr.A)(this.recordingProdStack),i=new pn({idx:t,terminalType:e,label:null==n?void 0:n.LABEL});return r.definition.push(i),Ws}},class{initPerformanceTracer(e){if((0,$t.A)(e,"traceInitPerf")){const t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=Zs.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--\x3e <${e}>`);const{time:r,value:i}=Hr(t),s=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()}}],ro.forEach((e=>{const t=e.prototype;Object.getOwnPropertyNames(t).forEach((n=>{if("constructor"===n)return;const r=Object.getOwnPropertyDescriptor(t,n);r&&(r.get||r.set)?Object.defineProperty(no.prototype,n,r):no.prototype[n]=e.prototype[n]}))}));class oo extends so{constructor(e,t=Zs){const n=(0,wt.A)(t);n.outputCst=!1,super(e,n)}}function ao(e,t,n){return`${e.name}_${t}_${n}`}const co=1,lo=2,uo=4,ho=5,fo=7,po=8,mo=9,go=10,yo=11,Ao=12;class To{constructor(e){this.target=e}isEpsilon(){return!1}}class vo extends To{constructor(e,t){super(e),this.tokenType=t}}class Ro extends To{constructor(e){super(e)}isEpsilon(){return!0}}class Eo extends To{constructor(e,t,n){super(e),this.rule=t,this.followState=n}isEpsilon(){return!0}}function ko(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};!function(e,t){const n=t.length;for(let r=0;r<n;r++){const n=t[r],i=bo(e,n,void 0,{type:lo}),s=bo(e,n,void 0,{type:fo});i.stop=s,e.ruleToStartState.set(n,i),e.ruleToStopState.set(n,s)}}(t,e);const n=e.length;for(let r=0;r<n;r++){const n=e[r],i=Io(t,n,n);void 0!==i&&Lo(t,n,i)}return t}function xo(e,t,n){return n instanceof pn?wo(e,t,n.terminalType,n):n instanceof sn?function(e,t,n){const r=n.referencedRule,i=e.ruleToStartState.get(r),s=bo(e,t,n,{type:co}),o=bo(e,t,n,{type:co}),a=new Eo(i,r,o);return _o(s,a),{left:s,right:o}}(e,t,n):n instanceof fn?function(e,t,n){const r=bo(e,t,n,{type:co});Co(e,r);const i=(0,Ct.A)(n.definition,(n=>xo(e,t,n))),s=$o(e,t,r,n,...i);return s}(e,t,n):n instanceof cn?function(e,t,n){const r=bo(e,t,n,{type:co});Co(e,r);const i=$o(e,t,r,n,Io(e,t,n));return function(e,t,n,r){const i=r.left,s=r.right;return Oo(i,s),e.decisionMap[ao(t,"Option",n.idx)]=i,r}(e,t,n,i)}(e,t,n):n instanceof dn?function(e,t,n){const r=bo(e,t,n,{type:ho});Co(e,r);const i=$o(e,t,r,n,Io(e,t,n));return No(e,t,n,i)}(e,t,n):n instanceof hn?function(e,t,n){const r=bo(e,t,n,{type:ho});Co(e,r);const i=$o(e,t,r,n,Io(e,t,n)),s=wo(e,t,n.separator,n);return No(e,t,n,i,s)}(e,t,n):n instanceof ln?function(e,t,n){const r=bo(e,t,n,{type:uo});Co(e,r);const i=$o(e,t,r,n,Io(e,t,n));return So(e,t,n,i)}(e,t,n):n instanceof un?function(e,t,n){const r=bo(e,t,n,{type:uo});Co(e,r);const i=$o(e,t,r,n,Io(e,t,n)),s=wo(e,t,n.separator,n);return So(e,t,n,i,s)}(e,t,n):Io(e,t,n)}function Io(e,t,n){const r=(0,Xn.A)((0,Ct.A)(n.definition,(n=>xo(e,t,n))),(e=>void 0!==e));return 1===r.length?r[0]:0===r.length?void 0:function(e,t){const n=t.length;for(let s=0;s<n-1;s++){const n=t[s];let r;1===n.left.transitions.length&&(r=n.left.transitions[0]);const i=r instanceof Eo,o=r,a=t[s+1].left;n.left.type===co&&n.right.type===co&&void 0!==r&&(i&&o.followState===n.right||r.target===n.right)?(i?o.followState=a:r.target=a,Po(e,n.right)):Oo(n.right,a)}const r=t[0],i=t[n-1];return{left:r.left,right:i.right}}(e,r)}function So(e,t,n,r,i){const s=r.left,o=r.right,a=bo(e,t,n,{type:yo});Co(e,a);const c=bo(e,t,n,{type:Ao});return s.loopback=a,c.loopback=a,e.decisionMap[ao(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",n.idx)]=a,Oo(o,a),void 0===i?(Oo(a,s),Oo(a,c)):(Oo(a,c),Oo(a,i.left),Oo(i.right,s)),{left:s,right:c}}function No(e,t,n,r,i){const s=r.left,o=r.right,a=bo(e,t,n,{type:go});Co(e,a);const c=bo(e,t,n,{type:Ao}),l=bo(e,t,n,{type:mo});return a.loopback=l,c.loopback=l,Oo(a,s),Oo(a,c),Oo(o,l),void 0!==i?(Oo(l,c),Oo(l,i.left),Oo(i.right,s)):Oo(l,a),e.decisionMap[ao(t,i?"RepetitionWithSeparator":"Repetition",n.idx)]=a,{left:a,right:c}}function Co(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function $o(e,t,n,r,...i){const s=bo(e,t,r,{type:po,start:n});n.end=s;for(const a of i)void 0!==a?(Oo(n,a.left),Oo(a.right,s)):Oo(n,s);const o={left:n,right:s};return e.decisionMap[ao(t,function(e){if(e instanceof fn)return"Alternation";if(e instanceof cn)return"Option";if(e instanceof dn)return"Repetition";if(e instanceof hn)return"RepetitionWithSeparator";if(e instanceof ln)return"RepetitionMandatory";if(e instanceof un)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}(r),r.idx)]=n,o}function wo(e,t,n,r){const i=bo(e,t,r,{type:co}),s=bo(e,t,r,{type:co});return _o(i,new vo(s,n)),{left:i,right:s}}function Lo(e,t,n){const r=e.ruleToStartState.get(t);Oo(r,n.left);const i=e.ruleToStopState.get(t);Oo(n.right,i);return{left:r,right:i}}function Oo(e,t){_o(e,new Ro(t))}function bo(e,t,n,r){const i=Object.assign({atn:e,production:n,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},r);return e.states.push(i),i}function _o(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}function Po(e,t){e.states.splice(e.states.indexOf(t),1)}const Mo={};class Do{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const t=Uo(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return(0,Ct.A)(this.configs,(e=>e.alt))}get key(){let e="";for(const t in this.map)e+=t+":";return e}}function Uo(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map((e=>e.stateNumber.toString())).join("_")}`}var Fo=n(6452);const Go=function(e,t){return e&&e.length?(0,bn.A)(e,(0,Ht.A)(t,2)):[]};function Ko(e,t){const n={};return r=>{const i=r.toString();let s=n[i];return void 0!==s||(s={atnStartState:e,decision:t,states:{}},n[i]=s),s}}class Bo{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="";const t=this.predicates.length;for(let n=0;n<t;n++)e+=!0===this.predicates[n]?"1":"0";return e}}const jo=new Bo;class Vo extends Os{constructor(e){var t;super(),this.logging=null!==(t=null==e?void 0:e.logging)&&void 0!==t?t:e=>console.log(e)}initialize(e){this.atn=ko(e.rules),this.dfas=function(e){const t=e.decisionStates.length,n=Array(t);for(let r=0;r<t;r++)n[r]=Ko(e.decisionStates[r],r);return n}(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e,s=this.dfas,o=this.logging,a=ao(n,"Alternation",t),c=this.atn.decisionMap[a].decision,l=(0,Ct.A)(Vi({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:n}),(e=>(0,Ct.A)(e,(e=>e[0]))));if(Ho(l,!1)&&!i){const e=(0,Yn.A)(l,((e,t,n)=>((0,It.A)(t,(t=>{t&&(e[t.tokenTypeIdx]=n,(0,It.A)(t.categoryMatches,(t=>{e[t]=n})))})),e)),{});return r?function(t){var n;const r=this.LA(1),i=e[r.tokenTypeIdx];if(void 0!==t&&void 0!==i){const e=null===(n=t[i])||void 0===n?void 0:n.GATE;if(void 0!==e&&!1===e.call(this))return}return i}:function(){const t=this.LA(1);return e[t.tokenTypeIdx]}}return r?function(e){const t=new Bo,n=void 0===e?0:e.length;for(let i=0;i<n;i++){const n=null==e?void 0:e[i].GATE;t.set(i,void 0===n||n.call(this))}const r=Wo.call(this,s,c,t,o);return"number"==typeof r?r:void 0}:function(){const e=Wo.call(this,s,c,jo,o);return"number"==typeof e?e:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:t,rule:n,prodType:r,dynamicTokensEnabled:i}=e,s=this.dfas,o=this.logging,a=ao(n,r,t),c=this.atn.decisionMap[a].decision,l=(0,Ct.A)(Vi({maxLookahead:1,occurrence:t,prodType:r,rule:n}),(e=>(0,Ct.A)(e,(e=>e[0]))));if(Ho(l)&&l[0][0]&&!i){const e=l[0],t=(0,Pn.A)(e);if(1===t.length&&(0,Nt.A)(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=(0,Yn.A)(t,((e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,(0,It.A)(t.categoryMatches,(t=>{e[t]=!0}))),e)),{});return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){const e=Wo.call(this,s,c,jo,o);return"object"!=typeof e&&0===e}}}function Ho(e,t=!0){const n=new Set;for(const r of e){const e=new Set;for(const i of r){if(void 0===i){if(t)break;return!1}const r=[i.tokenTypeIdx].concat(i.categoryMatches);for(const t of r)if(n.has(t)){if(!e.has(t))return!1}else n.add(t),e.add(t)}}return!0}function Wo(e,t,n,r){const i=e[t](n);let s=i.start;if(void 0===s){s=ea(i,Jo(ta(i.atnStartState))),i.start=s}return zo.apply(this,[i,s,n,r])}function zo(e,t,n,r){let i=t,s=1;const o=[];let a=this.LA(s++);for(;;){let t=(c=a,i.edges[c.tokenTypeIdx]);if(void 0===t&&(t=Yo.apply(this,[e,i,a,s,n,r])),t===Mo)return qo(o,i,a);if(!0===t.isAcceptState)return t.prediction;i=t,o.push(a),a=this.LA(s++)}var c}function Yo(e,t,n,r,i,s){const o=function(e,t,n){const r=new Do,i=[];for(const o of e.elements){if(!1===n.is(o.alt))continue;if(o.state.type===fo){i.push(o);continue}const e=o.state.transitions.length;for(let n=0;n<e;n++){const e=Qo(o.state.transitions[n],t);void 0!==e&&r.add({state:e,alt:o.alt,stack:o.stack})}}let s;0===i.length&&1===r.size&&(s=r);if(void 0===s){s=new Do;for(const e of r.elements)na(e,s)}if(i.length>0&&!function(e){for(const t of e.elements)if(t.state.type===fo)return!0;return!1}(s))for(const o of i)s.add(o);return s}(t.configs,n,i);if(0===o.size)return Zo(e,t,n,Mo),Mo;let a=Jo(o);const c=function(e,t){let n;for(const r of e.elements)if(!0===t.is(r.alt))if(void 0===n)n=r.alt;else if(n!==r.alt)return;return n}(o,i);if(void 0!==c)a.isAcceptState=!0,a.prediction=c,a.configs.uniqueAlt=c;else if(function(e){if(function(e){for(const t of e.elements)if(t.state.type!==fo)return!1;return!0}(e))return!0;const t=function(e){const t=new Map;for(const n of e){const e=Uo(n,!1);let r=t.get(e);void 0===r&&(r={},t.set(e,r)),r[n.alt]=!0}return t}(e.elements);return function(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}(t)&&!function(e){for(const t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}(t)}(o)){const t=(0,Fo.A)(o.alts);a.isAcceptState=!0,a.prediction=t,a.configs.uniqueAlt=t,Xo.apply(this,[e,r,o.alts,s])}return a=Zo(e,t,n,a),a}function Xo(e,t,n,r){const i=[];for(let o=1;o<=t;o++)i.push(this.LA(o).tokenType);const s=e.atnStartState;r(function(e){const t=(0,Ct.A)(e.prefixPath,(e=>si(e))).join(", "),n=0===e.production.idx?"":e.production.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${function(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof fn)return"OR";if(e instanceof ln)return"AT_LEAST_ONE";if(e instanceof un)return"AT_LEAST_ONE_SEP";if(e instanceof hn)return"MANY_SEP";if(e instanceof dn)return"MANY";if(e instanceof pn)return"CONSUME";throw Error("non exhaustive match")}(e.production)}${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return r+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",r}({topLevelRule:s.rule,ambiguityIndices:n,production:s.production,prefixPath:i}))}function qo(e,t,n){const r=xi(t.configs.elements,(e=>e.state.transitions));return{actualToken:n,possibleTokenTypes:Go(r.filter((e=>e instanceof vo)).map((e=>e.tokenType)),(e=>e.tokenTypeIdx)),tokenPath:e}}function Qo(e,t){if(e instanceof vo&&Ti(t,e.tokenType))return e.target}function Jo(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Zo(e,t,n,r){return r=ea(e,r),t.edges[n.tokenTypeIdx]=r,r}function ea(e,t){if(t===Mo)return t;const n=t.configs.key,r=e.states[n];return void 0!==r?r:(t.configs.finalize(),e.states[n]=t,t)}function ta(e){const t=new Do,n=e.transitions.length;for(let r=0;r<n;r++){na({state:e.transitions[r].target,alt:r,stack:[]},t)}return t}function na(e,t){const n=e.state;if(n.type===fo){if(e.stack.length>0){const n=[...e.stack];na({state:n.pop(),alt:e.alt,stack:n},t)}else t.add(e);return}n.epsilonOnlyTransitions||t.add(e);const r=n.transitions.length;for(let i=0;i<r;i++){const r=ra(e,n.transitions[i]);void 0!==r&&na(r,t)}}function ra(e,t){if(t instanceof Ro)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof Eo){const n=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:n}}}var ia,sa,oa,aa,ca,la,ua,da,ha,fa,pa,ma,ga,ya,Aa,Ta,va,Ra,Ea,ka,xa,Ia,Sa,Na,Ca,$a,wa,La,Oa,ba,_a,Pa,Ma,Da,Ua,Fa,Ga,Ka,Ba,ja,Va,Ha,Wa,za,Ya,Xa,qa,Qa,Ja,Za,ec,tc,nc,rc,ic,sc,oc,ac,cc,lc,uc,dc,hc,fc,pc,mc,gc,yc,Ac,Tc,vc,Rc,Ec,kc,xc,Ic,Sc,Nc;!function(e){e.is=function(e){return"string"==typeof e}}(ia||(ia={})),function(e){e.is=function(e){return"string"==typeof e}}(sa||(sa={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(oa||(oa={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(aa||(aa={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=aa.MAX_VALUE),t===Number.MAX_VALUE&&(t=aa.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return $c.objectLiteral(t)&&$c.uinteger(t.line)&&$c.uinteger(t.character)}}(ca||(ca={})),function(e){e.create=function(e,t,n,r){if($c.uinteger(e)&&$c.uinteger(t)&&$c.uinteger(n)&&$c.uinteger(r))return{start:ca.create(e,t),end:ca.create(n,r)};if(ca.is(e)&&ca.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return $c.objectLiteral(t)&&ca.is(t.start)&&ca.is(t.end)}}(la||(la={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return $c.objectLiteral(t)&&la.is(t.range)&&($c.string(t.uri)||$c.undefined(t.uri))}}(ua||(ua={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return $c.objectLiteral(t)&&la.is(t.targetRange)&&$c.string(t.targetUri)&&la.is(t.targetSelectionRange)&&(la.is(t.originSelectionRange)||$c.undefined(t.originSelectionRange))}}(da||(da={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.numberRange(t.red,0,1)&&$c.numberRange(t.green,0,1)&&$c.numberRange(t.blue,0,1)&&$c.numberRange(t.alpha,0,1)}}(ha||(ha={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return $c.objectLiteral(t)&&la.is(t.range)&&ha.is(t.color)}}(fa||(fa={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.string(t.label)&&($c.undefined(t.textEdit)||ka.is(t))&&($c.undefined(t.additionalTextEdits)||$c.typedArray(t.additionalTextEdits,ka.is))}}(pa||(pa={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(ma||(ma={})),function(e){e.create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return $c.defined(n)&&(o.startCharacter=n),$c.defined(r)&&(o.endCharacter=r),$c.defined(i)&&(o.kind=i),$c.defined(s)&&(o.collapsedText=s),o},e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.uinteger(t.startLine)&&$c.uinteger(t.startLine)&&($c.undefined(t.startCharacter)||$c.uinteger(t.startCharacter))&&($c.undefined(t.endCharacter)||$c.uinteger(t.endCharacter))&&($c.undefined(t.kind)||$c.string(t.kind))}}(ga||(ga={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return $c.defined(t)&&ua.is(t.location)&&$c.string(t.message)}}(ya||(ya={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Aa||(Aa={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Ta||(Ta={})),function(e){e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.string(t.href)}}(va||(va={})),function(e){e.create=function(e,t,n,r,i,s){let o={range:e,message:t};return $c.defined(n)&&(o.severity=n),$c.defined(r)&&(o.code=r),$c.defined(i)&&(o.source=i),$c.defined(s)&&(o.relatedInformation=s),o},e.is=function(e){var t;let n=e;return $c.defined(n)&&la.is(n.range)&&$c.string(n.message)&&($c.number(n.severity)||$c.undefined(n.severity))&&($c.integer(n.code)||$c.string(n.code)||$c.undefined(n.code))&&($c.undefined(n.codeDescription)||$c.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&($c.string(n.source)||$c.undefined(n.source))&&($c.undefined(n.relatedInformation)||$c.typedArray(n.relatedInformation,ya.is))}}(Ra||(Ra={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return $c.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return $c.defined(t)&&$c.string(t.title)&&$c.string(t.command)}}(Ea||(Ea={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.string(t.newText)&&la.is(t.range)}}(ka||(ka={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return $c.objectLiteral(t)&&$c.string(t.label)&&($c.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&($c.string(t.description)||void 0===t.description)}}(xa||(xa={})),function(e){e.is=function(e){const t=e;return $c.string(t)}}(Ia||(Ia={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return ka.is(t)&&(xa.is(t.annotationId)||Ia.is(t.annotationId))}}(Sa||(Sa={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return $c.defined(t)&&_a.is(t.textDocument)&&Array.isArray(t.edits)}}(Na||(Na={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&$c.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||$c.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$c.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Ia.is(t.annotationId))}}(Ca||(Ca={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&$c.string(t.oldUri)&&$c.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||$c.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||$c.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Ia.is(t.annotationId))}}($a||($a={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&$c.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||$c.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||$c.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Ia.is(t.annotationId))}}(wa||(wa={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>$c.string(e.kind)?Ca.is(e)||$a.is(e)||wa.is(e):Na.is(e))))}}(La||(La={}));!function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return $c.defined(t)&&$c.string(t.uri)}}(Oa||(Oa={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $c.defined(t)&&$c.string(t.uri)&&$c.integer(t.version)}}(ba||(ba={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return $c.defined(t)&&$c.string(t.uri)&&(null===t.version||$c.integer(t.version))}}(_a||(_a={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return $c.defined(t)&&$c.string(t.uri)&&$c.string(t.languageId)&&$c.integer(t.version)&&$c.string(t.text)}}(Pa||(Pa={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(Ma||(Ma={})),function(e){e.is=function(e){const t=e;return $c.objectLiteral(e)&&Ma.is(t.kind)&&$c.string(t.value)}}(Da||(Da={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Ua||(Ua={})),function(e){e.PlainText=1,e.Snippet=2}(Fa||(Fa={})),function(e){e.Deprecated=1}(Ga||(Ga={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&$c.string(t.newText)&&la.is(t.insert)&&la.is(t.replace)}}(Ka||(Ka={})),function(e){e.asIs=1,e.adjustIndentation=2}(Ba||(Ba={})),function(e){e.is=function(e){const t=e;return t&&($c.string(t.detail)||void 0===t.detail)&&($c.string(t.description)||void 0===t.description)}}(ja||(ja={})),function(e){e.create=function(e){return{label:e}}}(Va||(Va={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Ha||(Ha={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return $c.string(t)||$c.objectLiteral(t)&&$c.string(t.language)&&$c.string(t.value)}}(Wa||(Wa={})),function(e){e.is=function(e){let t=e;return!!t&&$c.objectLiteral(t)&&(Da.is(t.contents)||Wa.is(t.contents)||$c.typedArray(t.contents,Wa.is))&&(void 0===e.range||la.is(e.range))}}(za||(za={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Ya||(Ya={})),function(e){e.create=function(e,t,...n){let r={label:e};return $c.defined(t)&&(r.documentation=t),$c.defined(n)?r.parameters=n:r.parameters=[],r}}(Xa||(Xa={})),function(e){e.Text=1,e.Read=2,e.Write=3}(qa||(qa={})),function(e){e.create=function(e,t){let n={range:e};return $c.number(t)&&(n.kind=t),n}}(Qa||(Qa={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Ja||(Ja={})),function(e){e.Deprecated=1}(Za||(Za={})),function(e){e.create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s}}(ec||(ec={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(tc||(tc={})),function(e){e.create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},e.is=function(e){let t=e;return t&&$c.string(t.name)&&$c.number(t.kind)&&la.is(t.range)&&la.is(t.selectionRange)&&(void 0===t.detail||$c.string(t.detail))&&(void 0===t.deprecated||$c.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(nc||(nc={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(rc||(rc={})),function(e){e.Invoked=1,e.Automatic=2}(ic||(ic={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return $c.defined(t)&&$c.typedArray(t.diagnostics,Ra.is)&&(void 0===t.only||$c.typedArray(t.only,$c.string))&&(void 0===t.triggerKind||t.triggerKind===ic.Invoked||t.triggerKind===ic.Automatic)}}(sc||(sc={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):Ea.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&$c.string(t.title)&&(void 0===t.diagnostics||$c.typedArray(t.diagnostics,Ra.is))&&(void 0===t.kind||$c.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||Ea.is(t.command))&&(void 0===t.isPreferred||$c.boolean(t.isPreferred))&&(void 0===t.edit||La.is(t.edit))}}(oc||(oc={})),function(e){e.create=function(e,t){let n={range:e};return $c.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return $c.defined(t)&&la.is(t.range)&&($c.undefined(t.command)||Ea.is(t.command))}}(ac||(ac={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return $c.defined(t)&&$c.uinteger(t.tabSize)&&$c.boolean(t.insertSpaces)}}(cc||(cc={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return $c.defined(t)&&la.is(t.range)&&($c.undefined(t.target)||$c.string(t.target))}}(lc||(lc={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return $c.objectLiteral(n)&&la.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(uc||(uc={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(dc||(dc={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(hc||(hc={})),function(e){e.is=function(e){const t=e;return $c.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(fc||(fc={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&la.is(t.range)&&$c.string(t.text)}}(pc||(pc={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&la.is(t.range)&&$c.boolean(t.caseSensitiveLookup)&&($c.string(t.variableName)||void 0===t.variableName)}}(mc||(mc={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&la.is(t.range)&&($c.string(t.expression)||void 0===t.expression)}}(gc||(gc={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return $c.defined(t)&&la.is(e.stoppedLocation)}}(yc||(yc={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ac||(Ac={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return $c.objectLiteral(t)&&(void 0===t.tooltip||$c.string(t.tooltip)||Da.is(t.tooltip))&&(void 0===t.location||ua.is(t.location))&&(void 0===t.command||Ea.is(t.command))}}(Tc||(Tc={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return $c.objectLiteral(t)&&ca.is(t.position)&&($c.string(t.label)||$c.typedArray(t.label,Tc.is))&&(void 0===t.kind||Ac.is(t.kind))&&void 0===t.textEdits||$c.typedArray(t.textEdits,ka.is)&&(void 0===t.tooltip||$c.string(t.tooltip)||Da.is(t.tooltip))&&(void 0===t.paddingLeft||$c.boolean(t.paddingLeft))&&(void 0===t.paddingRight||$c.boolean(t.paddingRight))}}(vc||(vc={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Rc||(Rc={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Ec||(Ec={})),function(e){e.create=function(e){return{items:e}}}(kc||(kc={})),function(e){e.Invoked=0,e.Automatic=1}(xc||(xc={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ic||(Ic={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Sc||(Sc={})),function(e){e.is=function(e){const t=e;return $c.objectLiteral(t)&&sa.is(t.uri)&&$c.string(t.name)}}(Nc||(Nc={}));var Cc,$c;!function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,c=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[c++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[c++]=i[o++];for(;a<s.length;)e[c++]=s[a++];return e}e.create=function(e,t,n,r){return new wc(e,t,n,r)},e.is=function(e){let t=e;return!!($c.defined(t)&&$c.string(t.uri)&&($c.undefined(t.languageId)||$c.string(t.languageId))&&$c.uinteger(t.lineCount)&&$c.func(t.getText)&&$c.func(t.positionAt)&&$c.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Cc||(Cc={}));class wc{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return ca.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return ca.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}($c||($c={}));class Lc{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new Mc(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new _c;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const n=new bc(e.startOffset,e.image.length,v(e),e.tokenType,!1);return n.grammarSource=t,n.root=this.rootNode,this.current.content.push(n),n}removeNode(e){const t=e.container;if(t){const n=t.content.indexOf(e);n>=0&&t.content.splice(n,1)}}construct(e){const t=this.current;"string"==typeof e.$type&&(this.current.astNode=e),e.$cstNode=t;const n=this.nodeStack.pop();0===(null==n?void 0:n.content.length)&&this.removeNode(n)}addHiddenTokens(e){for(const t of e){const e=new bc(t.startOffset,t.image.length,v(t),t.tokenType,!0);e.root=this.rootNode,this.addHiddenToken(this.rootNode,e)}}addHiddenToken(e,t){const{offset:n,end:r}=t;for(let i=0;i<e.content.length;i++){const s=e.content[i],{offset:o,end:c}=s;if(a(s)&&n>o&&r<c)return void this.addHiddenToken(s,t);if(r<=o)return void e.content.splice(i,0,t)}e.content.push(t)}}class Oc{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return!1}get astNode(){var e,t;const n="string"==typeof(null===(e=this._astNode)||void 0===e?void 0:e.$type)?this._astNode:null===(t=this.container)||void 0===t?void 0:t.astNode;if(!n)throw new Error("This node has no associated AST element");return n}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}}class bc extends Oc{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=r,this._length=t,this._range=n}}class _c extends Oc{constructor(){super(...arguments),this.content=new Pc(this)}get children(){return this.content}get offset(){var e,t;return null!==(t=null===(e=this.firstNonHiddenNode)||void 0===e?void 0:e.offset)&&void 0!==t?t:0}get length(){return this.end-this.offset}get end(){var e,t;return null!==(t=null===(e=this.lastNonHiddenNode)||void 0===e?void 0:e.end)&&void 0!==t?t:0}get range(){const e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(void 0===this._rangeCache){const{range:n}=e,{range:r}=t;this._rangeCache={start:n.start,end:r.end.line<n.start.line?n.start:r.end}}return this._rangeCache}return{start:ca.create(0,0),end:ca.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}}class Pc extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Pc.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...n){return this.addParents(n),super.splice(e,t,...n)}addParents(e){for(const t of e)t.container=this.parent}}class Mc extends _c{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=null!=e?e:""}}const Dc=Symbol("Datatype");function Uc(e){return e.$type===Dc}const Fc=e=>e.endsWith("\u200b")?e:e+"\u200b";class Gc{constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition;this.wrapper=new Wc(t,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class Kc extends Gc{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Lc,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const n=e.fragment?void 0:gt(e)?Dc:Tt(e),r=this.wrapper.DEFINE_RULE(Fc(e.name),this.startImplementation(n,t).bind(this));return e.entry&&(this.mainRule=r),r}parse(e){this.nodeBuilder.buildRootNode(e);const t=this.lexer.tokenize(e);this.wrapper.input=t.tokens;const n=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(t.hidden),this.unorderedGroups.clear(),{value:n,lexerErrors:t.errors,parserErrors:this.wrapper.errors}}startImplementation(e,t){return n=>{if(!this.isRecording()){const t={$type:e};this.stack.push(t),e===Dc&&(t.value="")}let r;try{r=t(n)}catch(i){r=void 0}return this.isRecording()||void 0!==r||(r=this.construct()),r}}consume(e,t,n){const r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){const e=this.nodeBuilder.buildLeafNode(r,n),{assignment:t,isCrossRef:i}=this.getAssignment(n),s=this.current;if(t){const s=Ae(n)?r.image:this.converter.convert(r.image,e);this.assign(t.operator,t.feature,s,e,i)}else if(Uc(s)){let t=r.image;Ae(n)||(t=this.converter.convert(t,e).toString()),s.value+=t}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,n,r){let i;this.isRecording()||(i=this.nodeBuilder.buildCompositeNode(n));const s=this.wrapper.wrapSubrule(e,t,r);!this.isRecording()&&i&&i.length>0&&this.performSubruleAssignment(s,n,i)}performSubruleAssignment(e,t,n){const{assignment:r,isCrossRef:i}=this.getAssignment(t);if(r)this.assign(r.operator,r.feature,e,n,i);else if(!r){const t=this.current;if(Uc(t))t.value+=e.toString();else if("object"==typeof e&&e){const n=e.$type,r=this.assignWithoutOverride(e,t);n&&(r.$type=n);const i=r;this.stack.pop(),this.stack.push(i)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(!n.$cstNode&&t.feature&&t.operator){n=this.construct(!1);const e=n.$cstNode.feature;this.nodeBuilder.buildCompositeNode(e)}const r={$type:e};this.stack.pop(),this.stack.push(r),t.feature&&t.operator&&this.assign(t.operator,t.feature,n,n.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;const t=this.current;return be(t),this.nodeBuilder.construct(t),e&&this.stack.pop(),Uc(t)?this.converter.convert(t.value,t.$cstNode):(function(e,t){const n=e.getTypeMetaData(t.$type),r=t;for(const i of n.properties)void 0!==i.defaultValue&&void 0===r[i.name]&&(r[i.name]=Ke(i.defaultValue))}(this.astReflection,t),t)}getAssignment(e){if(!this.assignmentMap.has(e)){const t=_e(e,ue);this.assignmentMap.set(e,{assignment:t,isCrossRef:!!t&&fe(t.terminal)})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){const s=this.current;let o;switch(o=i&&"string"==typeof n?this.linker.buildReference(s,t,r,n):n,e){case"=":s[t]=o;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(o)}}assignWithoutOverride(e,t){for(const[n,r]of Object.entries(t)){const t=e[n];void 0===t?e[n]=r:Array.isArray(t)&&Array.isArray(r)&&(r.push(...t),e[n]=r)}return e}get definitionErrors(){return this.wrapper.definitionErrors}}class Bc{buildMismatchTokenMessage(e){return vi.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return vi.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return vi.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return vi.buildEarlyExitMessage(e)}}class jc extends Bc{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class Vc extends Gc{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e);return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const n=this.wrapper.DEFINE_RULE(Fc(e.name),this.startImplementation(t).bind(this));return e.entry&&(this.mainRule=n),n}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,n],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,n,r){this.before(n),this.wrapper.wrapSubrule(e,t,r),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}}const Hc={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new jc};class Wc extends oo{constructor(e,t){const n=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},Hc),{lookaheadStrategy:n?new Os({maxLookahead:t.maxLookahead}):new Vo}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}function zc(e,t,n){return function(e,t){const n=lt(t,!1),r=m(t.rules).filter(X).filter((e=>n.has(e)));for(const i of r){const t=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});t.rules.set(i.name,e.parser.rule(i,Yc(t,i.definition)))}}({parser:t,tokens:n,rules:new Map,ruleNames:new Map},e),t}function Yc(e,t,n=!1){let r;if(Ae(t))r=function(e,t){const n=e.consume++,r=e.tokens[t.value];if(!r)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(n,r,t)}(e,t);else if(oe(t))r=function(e,t){const n=Tt(t);return()=>e.parser.action(n,t)}(e,t);else if(ue(t))r=Yc(e,t.terminal);else if(fe(t))r=Qc(e,t);else if(Ee(t))r=function(e,t){const n=t.rule.ref;if(X(n)){const r=e.subrule++,i=t.arguments.length>0?function(e,t){const n=t.map((e=>Xc(e.value)));return t=>{const r={};for(let i=0;i<n.length;i++){const s=e.parameters[i],o=n[i];r[s.name]=o(t)}return r}}(n,t.arguments):()=>({});return s=>e.parser.subrule(r,Zc(e,n),t,i(s))}if(te(n)){const r=e.consume++,i=el(e,n.name);return()=>e.parser.consume(r,i,t)}if(!n)throw new S(t.$cstNode,`Undefined rule type: ${t.$type}`);N()}(e,t);else if(ce(t))r=function(e,t){if(1===t.elements.length)return Yc(e,t.elements[0]);{const n=[];for(const i of t.elements){const t={ALT:Yc(e,i,!0)},r=qc(i);r&&(t.GATE=Xc(r)),n.push(t)}const r=e.or++;return t=>e.parser.alternatives(r,n.map((e=>{const n={ALT:()=>e.ALT(t)},r=e.GATE;return r&&(n.GATE=()=>r(t)),n})))}}(e,t);else if(Ce(t))r=function(e,t){if(1===t.elements.length)return Yc(e,t.elements[0]);const n=[];for(const a of t.elements){const t={ALT:Yc(e,a,!0)},r=qc(a);r&&(t.GATE=Xc(r)),n.push(t)}const r=e.or++,i=(e,t)=>`uGroup_${e}_${t.getRuleStack().join("-")}`,s=t=>e.parser.alternatives(r,n.map(((n,s)=>{const o={ALT:()=>!0},a=e.parser;o.ALT=()=>{if(n.ALT(t),!a.isRecording()){const e=i(r,a);a.unorderedGroups.get(e)||a.unorderedGroups.set(e,[]);const t=a.unorderedGroups.get(e);void 0===(null==t?void 0:t[s])&&(t[s]=!0)}};const c=n.GATE;return o.GATE=c?()=>c(t):()=>{const e=a.unorderedGroups.get(i(r,a));return!(null==e?void 0:e[s])},o}))),o=Jc(e,qc(t),s,"*");return t=>{o(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(r,e.parser))}}(e,t);else if(ge(t))r=function(e,t){const n=t.elements.map((t=>Yc(e,t)));return e=>n.forEach((t=>t(e)))}(e,t);else{if(i=t,!Oe.isInstance(i,pe))throw new S(t.$cstNode,`Unexpected element type: ${t.$type}`);{const n=e.consume++;r=()=>e.parser.consume(n,yi,t)}}var i;return Jc(e,n?void 0:qc(t),r,t.cardinality)}function Xc(e){if(t=e,Oe.isInstance(t,U)){const t=Xc(e.left),n=Xc(e.right);return e=>t(e)||n(e)}if(function(e){return Oe.isInstance(e,D)}(e)){const t=Xc(e.left),n=Xc(e.right);return e=>t(e)&&n(e)}if(function(e){return Oe.isInstance(e,V)}(e)){const t=Xc(e.value);return e=>!t(e)}if(function(e){return Oe.isInstance(e,z)}(e)){const t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(function(e){return Oe.isInstance(e,M)}(e)){const t=Boolean(e.true);return()=>t}var t;N()}function qc(e){if(ge(e))return e.guardCondition}function Qc(e,t,n=t.terminal){if(n){if(Ee(n)&&X(n.rule.ref)){const r=e.subrule++;return i=>e.parser.subrule(r,Zc(e,n.rule.ref),t,i)}if(Ee(n)&&te(n.rule.ref)){const r=e.consume++,i=el(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}if(Ae(n)){const r=e.consume++,i=el(e,n.value);return()=>e.parser.consume(r,i,t)}throw new Error("Could not build cross reference parser")}{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const n=pt(t.type.ref),r=null==n?void 0:n.terminal;if(!r)throw new Error("Could not find name assignment for type: "+Tt(t.type.ref));return Qc(e,t,r)}}function Jc(e,t,n,r){const i=t&&Xc(t);if(!r){if(i){const t=e.or++;return r=>e.parser.alternatives(t,[{ALT:()=>n(r),GATE:()=>i(r)},{ALT:io(),GATE:()=>!i(r)}])}return n}if("*"===r){const t=e.many++;return r=>e.parser.many(t,{DEF:()=>n(r),GATE:i?()=>i(r):void 0})}if("+"===r){const t=e.many++;if(i){const r=e.or++;return s=>e.parser.alternatives(r,[{ALT:()=>e.parser.atLeastOne(t,{DEF:()=>n(s)}),GATE:()=>i(s)},{ALT:io(),GATE:()=>!i(s)}])}return r=>e.parser.atLeastOne(t,{DEF:()=>n(r)})}if("?"===r){const t=e.optional++;return r=>e.parser.optional(t,{DEF:()=>n(r),GATE:i?()=>i(r):void 0})}N()}function Zc(e,t){const n=function(e,t){if(X(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let n=t,r=n.$container,i=t.$type;for(;!X(r);){if(ge(r)||ce(r)||Ce(r)){i=r.elements.indexOf(n).toString()+":"+i}n=r,r=r.$container}return i=r.name+":"+i,e.ruleNames.set(t,i),i}}(e,t),r=e.rules.get(n);if(!r)throw new Error(`Rule "${n}" not found."`);return r}function el(e,t){const n=e.tokens[t];if(!n)throw new Error(`Token "${t}" not found."`);return n}function tl(e){const t=function(e){const t=e.Grammar,n=e.parser.Lexer,r=new Kc(e);return zc(t,r,n.definition)}(e);return t.finalize(),t}class nl{buildTokens(e,t){const n=m(lt(e,!1)),r=this.buildTerminalTokens(n),i=this.buildKeywordTokens(n,r,t);return r.forEach((e=>{const t=e.PATTERN;"object"==typeof t&&t&&"test"in t&&ot(t)?i.unshift(e):i.push(e)})),i}buildTerminalTokens(e){return e.filter(te).filter((e=>!e.fragment)).map((e=>this.buildTerminalToken(e))).toArray()}buildTerminalToken(e){const t=vt(e),n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,r={name:e.name,PATTERN:n,LINE_BREAKS:!0};return e.hidden&&(r.GROUP=ot(t)?ii.SKIPPED:"hidden"),r}requiresCustomPattern(e){return!!e.flags.includes("u")||!(!e.source.includes("?<=")&&!e.source.includes("?<!"))}regexPatternFunction(e){const t=new RegExp(e,e.flags+"y");return(e,n)=>{t.lastIndex=n;return t.exec(e)}}buildKeywordTokens(e,t,n){return e.filter(X).flatMap((e=>De(e).filter(Ae))).distinct((e=>e.value)).toArray().sort(((e,t)=>t.value.length-e.value.length)).map((e=>this.buildKeywordToken(e,t,Boolean(null==n?void 0:n.caseInsensitive))))}buildKeywordToken(e,t,n){return{name:e.value,PATTERN:this.buildKeywordPattern(e,n),LONGER_ALT:this.findLongerAlt(e,t)}}buildKeywordPattern(e,t){return t?new RegExp(function(e){return Array.prototype.map.call(e,(e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:at(e))).join("")}(e.value)):e.value}findLongerAlt(e,t){return t.reduce(((t,n)=>{const r=null==n?void 0:n.PATTERN;return(null==r?void 0:r.source)&&ct("^"+r.source+"$",e.value)&&t.push(n),t}),[])}}class rl{convert(e,t){let n=t.grammarSource;if(fe(n)&&(n=function(e){if(e.terminal)return e.terminal;if(e.type.ref){const t=pt(e.type.ref);return null==t?void 0:t.terminal}}(n)),Ee(n)){const r=n.rule.ref;if(!r)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(r,e,t)}return e}runConverter(e,t,n){var r;switch(e.name.toUpperCase()){case"INT":return il.convertInt(t);case"STRING":return il.convertString(t);case"ID":return il.convertID(t)}switch(null===(r=function(e){var t,n,r;return te(e)?null!==(n=null===(t=e.type)||void 0===t?void 0:t.name)&&void 0!==n?n:"string":gt(e)?e.name:null!==(r=At(e))&&void 0!==r?r:e.name}(e))||void 0===r?void 0:r.toLowerCase()){case"number":return il.convertNumber(t);case"boolean":return il.convertBoolean(t);case"bigint":return il.convertBigint(t);case"date":return il.convertDate(t);default:return t}}}var il;!function(e){function t(e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";case"0":return"\0";default:return e}}e.convertString=function(e){let n="";for(let r=1;r<e.length-1;r++){const i=e.charAt(r);if("\\"===i){n+=t(e.charAt(++r))}else n+=i}return n},e.convertID=function(e){return"^"===e.charAt(0)?e.substring(1):e},e.convertInt=function(e){return parseInt(e)},e.convertBigint=function(e){return BigInt(e)},e.convertDate=function(e){return new Date(e)},e.convertNumber=function(e){return Number(e)},e.convertBoolean=function(e){return"true"===e.toLowerCase()}}(il||(il={}));var sl=n(9850);let ol=0,al=10;const cl=Symbol("OperationCancelled");function ll(e){return e===cl}async function ul(e){if(e===sl.XO.None)return;const t=Date.now();if(t-ol>=al&&(ol=t,await new Promise((e=>{"undefined"==typeof setImmediate?setTimeout(e,0):setImmediate(e)}))),e.isCancellationRequested)throw cl}class dl{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)}))}}class hl{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const n of e)if(hl.isIncremental(n)){const e=Al(n.range),t=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const a=gl(n.text,!1,t);if(s-i===a.length)for(let n=0,l=a.length;n<l;n++)o[n+i+1]=a[n];else a.length<1e4?o.splice(i+1,s-i,...a):this._lineOffsets=o=o.slice(0,i+1).concat(a,o.slice(s+1));const c=n.text.length-(r-t);if(0!==c)for(let n=i+1+a.length,l=o.length;n<l;n++)o[n]=o[n]+c}else{if(!hl.isFull(n))throw new Error("Unknown change event received");this._content=n.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=gl(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){const i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}const i=n-1;return{line:i,character:(e=this.ensureBeforeEOL(e,t[i]))-t[i]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const r=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(n+e.character,r);return this.ensureBeforeEOL(i,n)}ensureBeforeEOL(e,t){for(;e>t&&yl(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var fl,pl;function ml(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ml(r,t),ml(i,t);let s=0,o=0,a=0;for(;s<r.length&&o<i.length;){const n=t(r[s],i[o]);e[a++]=n<=0?r[s++]:i[o++]}for(;s<r.length;)e[a++]=r[s++];for(;o<i.length;)e[a++]=i[o++];return e}function gl(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){const t=e.charCodeAt(i);yl(t)&&(13===t&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function yl(e){return 13===e||10===e}function Al(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Tl(e){const t=Al(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,r){return new hl(e,t,n,r)},e.update=function(e,t,n){if(e instanceof hl)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){const n=e.getText(),r=ml(t.map(Tl),((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let i=0;const s=[];for(const o of r){const t=e.offsetAt(o.range.start);if(t<i)throw new Error("Overlapping edit");t>i&&s.push(n.substring(i,t)),o.newText.length&&s.push(o.newText),i=e.offsetAt(o.range.end)}return s.push(n.substr(i)),s.join("")}}(fl||(fl={})),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>l&&(47===e.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var h=e.charCodeAt(i+d);if(h!==n.charCodeAt(a+d))break;47===h&&(u=d)}var f="";for(d=i+u+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+u):(a+=u,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===c&&(o=!1,c=r+1),a>=0&&(l===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=c))}return i===s?s=c:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(s=!1,i=a+1),46===c?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){a=u+1;break}return-1===o||-1===c||0===d||1===d&&o===c-1&&o===a+1?-1!==c&&(n.base=n.name=0===a&&s?e.slice(1,c):e.slice(a,c)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,c)):(n.name=e.slice(a,o),n.base=e.slice(a,c)),n.ext=e.slice(o,c)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>u,Utils:()=>x}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",c="/",l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{static isUri(e){return e instanceof u||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new h(t,n,r,i,s)}static parse(e,t=!1){const n=l.exec(e);return n?new h(n[2]||a,v(n[4]||a),v(n[5]||a),v(n[7]||a),v(n[9]||a),t):new h(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,c)),t[0]===c&&t[1]===c){const e=t.indexOf(c,2);-1===e?(n=t.substring(2),t=c):(n=t.substring(2,e),t=t.substring(e)||c)}return new h("file",n,t,a,a)}static from(e){const t=new h(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new h(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class h extends u{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const f={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function p(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=f[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function m(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=f[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function y(e,t){const n=t?m:p;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=c,r+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:p(l,!1,!1)),r}function A(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+A(e.substr(3)):e}}const T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(T)?e.replace(T,(e=>A(e))):e}var R=n(470);const E=R.posix||R,k="/";var x;!function(e){e.joinPath=function(e,...t){return e.with({path:E.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==k&&(n=k+n,r=!0);let i=E.resolve(n,...t);return r&&i[0]===k&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||e.path===k)return e;let t=E.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return E.basename(e.path)},e.extname=function(e){return E.extname(e.path)}}(x||(x={}))})(),pl=r})();const{URI:vl,Utils:Rl}=pl;var El,kl;!function(e){e.basename=Rl.basename,e.dirname=Rl.dirname,e.extname=Rl.extname,e.joinPath=Rl.joinPath,e.resolvePath=Rl.resolvePath,e.equals=function(e,t){return(null==e?void 0:e.toString())===(null==t?void 0:t.toString())},e.relative=function(e,t){const n="string"==typeof e?e:e.path,r="string"==typeof t?t:t.path,i=n.split("/").filter((e=>e.length>0)),s=r.split("/").filter((e=>e.length>0));let o=0;for(;o<i.length&&i[o]===s[o];o++);return"../".repeat(i.length-o)+s.slice(o).join("/")}}(El||(El={})),function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"}(kl||(kl={}));class xl{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=sl.XO.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){return t=null!=t?t:vl.parse(e.uri),n?this.createAsync(t,e,n):this.create(t,e)}fromString(e,t,n){return n?this.createAsync(t,e,n):this.create(t,e)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t){if("string"==typeof t){const n=this.parse(e,t);return this.createLangiumDocument(n,e,void 0,t)}if("$model"in t){const n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}{const n=this.parse(e,t.getText());return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,n){if("string"==typeof t){const r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,void 0,t)}{const r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n)i={parseResult:e,uri:t,state:kl.Parsed,references:[],textDocument:n};else{const n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:kl.Parsed,references:[],get textDocument(){return n()}}}return e.value.$document=i,i}async update(e,t){var n,r;const i=null===(n=e.parseResult.value.$cstNode)||void 0===n?void 0:n.root.fullText,s=null===(r=this.textDocuments)||void 0===r?void 0:r.get(e.uri.toString()),o=s?s.getText():await this.fileSystemProvider.readFile(e.uri);if(s)Object.defineProperty(e,"textDocument",{value:s});else{const t=this.createTextDocumentGetter(e.uri,o);Object.defineProperty(e,"textDocument",{get:t})}return i!==o&&(e.parseResult=await this.parseAsync(e.uri,o,t),e.parseResult.value.$document=e),e.state=kl.Parsed,e}parse(e,t){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t)}parseAsync(e,t,n){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){const n=this.serviceRegistry;let r;return()=>null!=r?r:r=fl.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,null!=t?t:"")}}class Il{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return m(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);return n||(n=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(n),n)}createDocument(e,t,n){if(n)return this.langiumDocumentFactory.fromString(t,e,n).then((e=>(this.addDocument(e),e)));{const n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),n=this.documentMap.get(t);return n&&(n.state=kl.Changed,n.precomputedScopes=void 0,n.references=[],n.diagnostics=void 0),n}deleteDocument(e){const t=e.toString(),n=this.documentMap.get(t);return n&&(n.state=kl.Changed,this.documentMap.delete(t)),n}}class Sl{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=sl.XO.None){for(const n of Ue(e.parseResult.value))await ul(t),Ge(n).forEach((t=>this.doLink(t,e)))}doLink(e,t){const n=e.reference;if(void 0===n._ref)try{const t=this.getCandidate(e);if(s(t))n._ref=t;else if(n._nodeDescription=t,this.langiumDocuments().hasDocument(t.documentUri)){const r=this.loadAstNode(t);n._ref=null!=r?r:this.createLinkingError(e,t)}}catch(r){n._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${n.$refText}': ${r}`})}t.references.push(n)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const t=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return null!=t?t:this.createLinkingError(e)}buildReference(e,t,n,i){const o=this,a={$refNode:n,$refText:i,get ref(){var n,i;if(r(this._ref))return this._ref;if("object"==typeof(i=this._nodeDescription)&&null!==i&&"string"==typeof i.name&&"string"==typeof i.type&&"string"==typeof i.path){const n=o.loadAstNode(this._nodeDescription);this._ref=null!=n?n:o.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){const r=o.getLinkedNode({reference:a,container:e,property:t});if(r.error&&Pe(e).state<kl.ComputedScopes)return;this._ref=null!==(n=r.node)&&void 0!==n?n:r.error,this._nodeDescription=r.descr}return r(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return s(this._ref)?this._ref:void 0}};return a}getLinkedNode(e){try{const t=this.getCandidate(e);if(s(t))return{error:t};const n=this.loadAstNode(t);return n?{node:n,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){return{error:Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${e.reference.$refText}': ${t}`})}}}loadAstNode(e){if(e.node)return e.node;const t=this.langiumDocuments().getDocument(e.documentUri);return t?this.astNodeLocator.getAstNode(t.parseResult.value,e.path):void 0}createLinkingError(e,t){const n=Pe(e.container);n.state<kl.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${n.uri}).`);const r=this.reflection.getReferenceType(e);return Object.assign(Object.assign({},e),{message:`Could not resolve reference to ${r} named '${e.reference.$refText}'.`,targetDescription:t})}}class Nl{getName(e){if(function(e){return"string"==typeof e.name}(e))return e.name}getNameNode(e){return dt(e.$cstNode,"name")}}class Cl{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator}findDeclaration(e){if(e){const t=function(e){var t;const n=e.astNode;for(;n===(null===(t=e.container)||void 0===t?void 0:t.astNode);){const t=_e(e.grammarSource,ue);if(t)return t;e=e.container}}(e),n=e.astNode;if(t&&n){const r=n[t.feature];if(i(r))return r.ref;if(Array.isArray(r))for(const t of r)if(i(t)&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return t.ref}if(n){const t=this.nameProvider.getNameNode(n);if(t&&(t===e||function(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}(e,t)))return n}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(null==t?void 0:t.$cstNode){const e=this.nameProvider.getNameNode(t);return null!=e?e:t.$cstNode}}findReferences(e,t){const n=[];if(t.includeDeclaration){const t=this.getReferenceToSelf(e);t&&n.push(t)}let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(r=r.filter((e=>El.equals(e.sourceUri,t.documentUri)))),n.push(...r),m(n)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const n=Pe(e),r=this.nodeLocator.getAstNodePath(e);return{sourceUri:n.uri,sourcePath:r,targetUri:n.uri,targetPath:r,segment:R(t),local:!0}}}}class $l{constructor(e){if(this.map=new Map,e)for(const[t,n]of e)this.add(t,n)}get size(){return y.sum(m(this.map.values()).map((e=>e.length)))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{const n=this.map.get(e);if(n){const r=n.indexOf(t);if(r>=0)return 1===n.length?this.map.delete(e):n.splice(r,1),!0}return!1}}get(e){var t;return null!==(t=this.map.get(e))&&void 0!==t?t:[]}has(e,t){if(void 0===t)return this.map.has(e);{const n=this.map.get(e);return!!n&&n.indexOf(t)>=0}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach(((t,n)=>t.forEach((t=>e(t,n,this)))))}[Symbol.iterator](){return this.entries().iterator()}entries(){return m(this.map.entries()).flatMap((([e,t])=>t.map((t=>[e,t]))))}keys(){return m(this.map.keys())}values(){return m(this.map.values()).flat()}entriesGroupedByKey(){return m(this.map.entries())}}class wl{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}}class Ll{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=sl.XO.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,n=Me,r=sl.XO.None){const i=[];this.exportNode(e,i,t);for(const s of n(e))await ul(r),this.exportNode(s,i,t);return i}exportNode(e,t,n){const r=this.nameProvider.getName(e);r&&t.push(this.descriptions.createDescription(e,r,n))}async computeLocalScopes(e,t=sl.XO.None){const n=e.parseResult.value,r=new $l;for(const i of De(n))await ul(t),this.processNode(i,e,r);return r}processNode(e,t,n){const r=e.$container;if(r){const i=this.nameProvider.getName(e);i&&n.add(r,this.descriptions.createDescription(e,i,t))}}}class Ol{constructor(e,t,n){var r;this.elements=e,this.outerScope=t,this.caseInsensitive=null!==(r=null==n?void 0:n.caseInsensitive)&&void 0!==r&&r}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find((t=>t.name.toLowerCase()===e.toLowerCase())):this.elements.find((t=>t.name===e));return t||(this.outerScope?this.outerScope.getElement(e):void 0)}}class bl{constructor(e,t,n){var r;this.elements=new Map,this.caseInsensitive=null!==(r=null==n?void 0:n.caseInsensitive)&&void 0!==r&&r;for(const i of e){const e=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(e,i)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,n=this.elements.get(t);return n||(this.outerScope?this.outerScope.getElement(e):void 0)}getAllElements(){let e=m(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class _l{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach((e=>e.dispose()))}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class Pl extends _l{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const n=t();return this.cache.set(e,n),n}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class Ml extends _l{constructor(e){super(),this.cache=new Map,this.converter=null!=e?e:e=>e}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed(),this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();const r=this.cacheForContext(e);if(r.has(t))return r.get(t);if(n){const e=n();return r.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let n=this.cache.get(t);return n||(n=new Map,this.cache.set(t,n)),n}}class Dl extends Pl{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate((()=>{this.clear()})))}}class Ul{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Dl(e.shared)}getScope(e){const t=[],n=this.reflection.getReferenceType(e),r=Pe(e.container).precomputedScopes;if(r){let i=e.container;do{const e=r.get(i);e.length>0&&t.push(m(e).filter((e=>this.reflection.isSubtype(e.type,n)))),i=i.$container}while(i)}let i=this.getGlobalScope(n,e);for(let s=t.length-1;s>=0;s--)i=this.createScope(t[s],i);return i}createScope(e,t,n){return new Ol(m(e),t,n)}createScopeForNodes(e,t,n){const r=m(e).map((e=>{const t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)})).nonNullable();return new Ol(r,t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,(()=>new bl(this.indexManager.allElements(e))))}}function Fl(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}class Gl{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const n=null==t?void 0:t.replacer,r=(e,n)=>this.replacer(e,n,t),i=n?(e,t)=>n(e,t,r):r;try{return this.currentDocument=Pe(e),JSON.stringify(e,i,null==t?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const n=JSON.parse(e);return this.linkNode(n,n,t),n}replacer(e,t,{refText:n,sourceText:s,textRegions:o,comments:a,uriConverter:c}){var l,u,d,h;if(!this.ignoreProperties.has(e)){if(i(t)){const e=t.ref,r=n?t.$refText:void 0;if(e){const n=Pe(e);let i="";this.currentDocument&&this.currentDocument!==n&&(i=c?c(n.uri,t):n.uri.toString());return{$ref:`${i}#${this.astNodeLocator.getAstNodePath(e)}`,$refText:r}}return{$error:null!==(u=null===(l=t.error)||void 0===l?void 0:l.message)&&void 0!==u?u:"Could not resolve reference",$refText:r}}if(r(t)){let n;if(o&&(n=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),e&&!t.$document||!(null==n?void 0:n.$textRegion)||(n.$textRegion.documentURI=null===(d=this.currentDocument)||void 0===d?void 0:d.uri.toString())),s&&!e&&(null!=n||(n=Object.assign({},t)),n.$sourceText=null===(h=t.$cstNode)||void 0===h?void 0:h.text),a){null!=n||(n=Object.assign({},t));const e=this.commentProvider.getComment(t);e&&(n.$comment=e.replace(/\r/g,""))}return null!=n?n:t}return t}}addAstNodeRegionWithAssignmentsTo(e){const t=e=>({offset:e.offset,end:e.end,length:e.length,range:e.range});if(e.$cstNode){const n=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter((e=>!e.startsWith("$"))).forEach((r=>{const i=function(e,t){return e&&t?ht(e,t,e.astNode,!0):[]}(e.$cstNode,r).map(t);0!==i.length&&(n[r]=i)})),e}}linkNode(e,t,n,i,s,o){for(const[c,l]of Object.entries(e))if(Array.isArray(l))for(let i=0;i<l.length;i++){const s=l[i];Fl(s)?l[i]=this.reviveReference(e,c,t,s,n):r(s)&&this.linkNode(s,t,n,e,c,i)}else Fl(l)?e[c]=this.reviveReference(e,c,t,l,n):r(l)&&this.linkNode(l,t,n,e,c);const a=e;a.$container=i,a.$containerProperty=s,a.$containerIndex=o}reviveReference(e,t,n,i,s){let o=i.$refText,a=i.$error;if(i.$ref){const e=this.getRefNode(n,i.$ref,s.uriConverter);if(r(e))return o||(o=this.nameProvider.getName(e)),{$refText:null!=o?o:"",ref:e};a=e}if(a){const n={$refText:null!=o?o:""};return n.error={container:e,property:t,message:a,reference:n},n}}getRefNode(e,t,n){try{const r=t.indexOf("#");if(0===r){const n=this.astNodeLocator.getAstNode(e,t.substring(1));return n||"Could not resolve path: "+t}if(r<0){const e=n?n(t):vl.parse(t),r=this.langiumDocuments.getDocument(e);return r?r.parseResult.value:"Could not find document for URI: "+t}const i=n?n(t.substring(0,r)):vl.parse(t.substring(0,r)),s=this.langiumDocuments.getDocument(i);if(!s)return"Could not find document for URI: "+t;if(r===t.length-1)return s.parseResult.value;const o=this.astNodeLocator.getAstNode(s.parseResult.value,t.substring(r+1));return o||"Could not resolve URI: "+t}catch(r){return String(r)}}}class Kl{register(e){if(this.singleton||this.map){if(!this.map&&(this.map={},this.singleton)){for(const e of this.singleton.LanguageMetaData.fileExtensions)this.map[e]=this.singleton;this.singleton=void 0}for(const t of e.LanguageMetaData.fileExtensions)void 0!==this.map[t]&&this.map[t]!==e&&console.warn(`The file extension ${t} is used by multiple languages. It is now assigned to '${e.LanguageMetaData.languageId}'.`),this.map[t]=e}else this.singleton=e}getServices(e){if(void 0!==this.singleton)return this.singleton;if(void 0===this.map)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const t=El.extname(e),n=this.map[t];if(!n)throw new Error(`The service registry contains no services for the extension '${t}'.`);return n}get all(){return void 0!==this.singleton?[this.singleton]:void 0!==this.map?Object.values(this.map):[]}}function Bl(e){return{code:e}}var jl,Vl,Hl;!function(e){e.all=["fast","slow","built-in"]}(jl||(jl={}));class Wl{constructor(e){this.entries=new $l,this.reflection=e.shared.AstReflection}register(e,t=this,n="fast"){if("built-in"===n)throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(const[r,i]of Object.entries(e)){const e=i;if(Array.isArray(e))for(const i of e){const e={check:this.wrapValidationException(i,t),category:n};this.addEntry(r,e)}else if("function"==typeof e){const i={check:this.wrapValidationException(e,t),category:n};this.addEntry(r,i)}}}wrapValidationException(e,t){return async(n,r,i)=>{try{await e.call(t,n,r,i)}catch(s){if(ll(s))throw s;console.error("An error occurred during validation:",s);const e=s instanceof Error?s.message:String(s);s instanceof Error&&s.stack&&console.error(s.stack),r("error","An error occurred during validation: "+e,{node:n})}}}addEntry(e,t){if("AstNode"!==e)for(const n of this.reflection.getAllSubTypes(e))this.entries.add(n,t);else this.entries.add("AstNode",t)}getChecks(e,t){let n=m(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(n=n.filter((e=>t.includes(e.category)))),n.map((e=>e.check))}}class zl{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},n=sl.XO.None){const r=e.parseResult,i=[];if(await ul(n),!t.categories||t.categories.includes("built-in")){if(this.processLexingErrors(r,i,t),t.stopAfterLexingErrors&&i.some((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.code)===Vl.LexingError})))return i;if(this.processParsingErrors(r,i,t),t.stopAfterParsingErrors&&i.some((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.code)===Vl.ParsingError})))return i;if(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some((e=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.code)===Vl.LinkingError})))return i}try{i.push(...await this.validateAst(r.value,t,n))}catch(s){if(ll(s))throw s;console.error("An error occurred during validation:",s)}return await ul(n),i}processLexingErrors(e,t,n){for(const r of e.lexerErrors){const e={severity:Xl("error"),range:{start:{line:r.line-1,character:r.column-1},end:{line:r.line-1,character:r.column+r.length-1}},message:r.message,data:Bl(Vl.LexingError),source:this.getSource()};t.push(e)}}processParsingErrors(e,t,n){for(const r of e.parserErrors){let e;if(isNaN(r.token.startOffset)){if("previousToken"in r){const t=r.previousToken;if(isNaN(t.startOffset)){const t={line:0,character:0};e={start:t,end:t}}else{const n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}}}else e=v(r.token);if(e){const n={severity:Xl("error"),range:e,message:r.message,data:Bl(Vl.ParsingError),source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,n){for(const r of e.references){const e=r.error;if(e){const n={node:e.container,property:e.property,index:e.index,data:{code:Vl.LinkingError,containerType:e.container.$type,property:e.property,refText:e.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,n=sl.XO.None){const r=[],i=(e,t,n)=>{r.push(this.toDiagnostic(e,t,n))};return await Promise.all(Ue(e).map((async e=>{await ul(n);const r=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of r)await t(e,i,n)}))),r}toDiagnostic(e,t,n){return{message:t,range:Yl(n),severity:Xl(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Yl(e){if(e.range)return e.range;let t;return"string"==typeof e.property?t=dt(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=function(e,t,n){if(!e)return;const r=ft(e,t,null==e?void 0:e.astNode);return 0!==r.length?r[n=void 0!==n?Math.max(0,Math.min(n,r.length-1)):0]:void 0}(e.node.$cstNode,e.keyword,e.index)),null!=t||(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Xl(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}!function(e){e.LexingError="lexing-error",e.ParsingError="parsing-error",e.LinkingError="linking-error"}(Vl||(Vl={}));class ql{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,n=Pe(e)){null!=t||(t=this.nameProvider.getName(e));const r=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${r} has no name.`);let i;const s=()=>{var t;return null!=i?i:i=R(null!==(t=this.nameProvider.getNameNode(e))&&void 0!==t?t:e.$cstNode)};return{node:e,name:t,get nameSegment(){return s()},selectionSegment:R(e.$cstNode),type:e.$type,documentUri:n.uri,path:r}}}class Ql{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=sl.XO.None){const n=[],r=e.parseResult.value;for(const i of Ue(r))await ul(t),Ge(i).filter((e=>!s(e))).forEach((e=>{const t=this.createDescription(e);t&&n.push(t)}));return n}createDescription(e){const t=e.reference.$nodeDescription,n=e.reference.$refNode;if(!t||!n)return;const r=Pe(e.container).uri;return{sourceUri:r,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:R(n),local:El.equals(t.documentUri,r)}}}class Jl{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),n=this.getPathSegment(e);return t+this.segmentSeparator+n}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return void 0!==t?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce(((e,t)=>{if(!e||0===t.length)return e;const n=t.indexOf(this.indexSeparator);if(n>0){const r=t.substring(0,n),i=parseInt(t.substring(n+1)),s=e[r];return null==s?void 0:s[i]}return e[t]}),e)}}class Zl{constructor(e){this._ready=new dl,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,n;this.workspaceConfig=null!==(n=null===(t=e.capabilities.workspace)||void 0===t?void 0:t.configuration)&&void 0!==n&&n}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map((e=>this.toSectionName(e.LanguageMetaData.languageId)))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map((e=>({section:this.toSectionName(e.LanguageMetaData.languageId)}))),n=await e.fetchConfiguration(t);t.forEach(((e,t)=>{this.updateSectionConfiguration(e.section,n[t])}))}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach((t=>{this.updateSectionConfiguration(t,e.settings[t])}))}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const n=this.toSectionName(e);if(this.settings[n])return this.settings[n][t]}toSectionName(e){return`${e}`}}!function(e){e.create=function(e){return{dispose:async()=>await e()}}}(Hl||(Hl={}));class eu{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $l,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=kl.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=sl.XO.None){var r,i;for(const s of e){const e=s.uri.toString();if(s.state===kl.Validated){if("boolean"==typeof t.validation&&t.validation)s.state=kl.IndexedReferences,s.diagnostics=void 0,this.buildState.delete(e);else if("object"==typeof t.validation){const n=this.buildState.get(e),o=null===(r=null==n?void 0:n.result)||void 0===r?void 0:r.validationChecks;if(o){const r=(null!==(i=t.validation.categories)&&void 0!==i?i:jl.all).filter((e=>!o.includes(e)));r.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:r})},result:n.result}),s.state=kl.IndexedReferences)}}}else this.buildState.delete(e)}this.currentState=kl.Changed,await this.emitUpdate(e.map((e=>e.uri)),[]),await this.buildDocuments(e,t,n)}async update(e,t,n=sl.XO.None){this.currentState=kl.Changed;for(const s of t)this.langiumDocuments.deleteDocument(s),this.buildState.delete(s.toString()),this.indexManager.remove(s);for(const s of e){if(!this.langiumDocuments.invalidateDocument(s)){const e=this.langiumDocumentFactory.fromModel({$type:"INVALID"},s);e.state=kl.Changed,this.langiumDocuments.addDocument(e)}this.buildState.delete(s.toString())}const r=m(e).concat(t).map((e=>e.toString())).toSet();this.langiumDocuments.all.filter((e=>!r.has(e.uri.toString())&&this.shouldRelink(e,r))).forEach((e=>{this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e),e.state=Math.min(e.state,kl.ComputedScopes),e.diagnostics=void 0})),await this.emitUpdate(e,t),await ul(n);const i=this.langiumDocuments.all.filter((e=>{var t;return e.state<kl.Linked||!(null===(t=this.buildState.get(e.uri.toString()))||void 0===t?void 0:t.completed)})).toArray();await this.buildDocuments(i,this.updateBuildOptions,n)}async emitUpdate(e,t){await Promise.all(this.updateListeners.map((n=>n(e,t))))}shouldRelink(e,t){return!!e.references.some((e=>void 0!==e.error))||this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Hl.create((()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)}))}async buildDocuments(e,t,n){this.prepareBuild(e,t),await this.runCancelable(e,kl.Parsed,n,(e=>this.langiumDocumentFactory.update(e,n))),await this.runCancelable(e,kl.IndexedContent,n,(e=>this.indexManager.updateContent(e,n))),await this.runCancelable(e,kl.ComputedScopes,n,(async e=>{const t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.precomputedScopes=await t.computeLocalScopes(e,n)})),await this.runCancelable(e,kl.Linked,n,(e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,n))),await this.runCancelable(e,kl.IndexedReferences,n,(e=>this.indexManager.updateReferences(e,n)));const r=e.filter((e=>this.shouldValidate(e)));await this.runCancelable(r,kl.Validated,n,(e=>this.validate(e,n)));for(const i of e){const e=this.buildState.get(i.uri.toString());e&&(e.completed=!0)}}prepareBuild(e,t){for(const n of e){const e=n.uri.toString(),r=this.buildState.get(e);r&&!r.completed||this.buildState.set(e,{completed:!1,options:t,result:null==r?void 0:r.result})}}async runCancelable(e,t,n,r){const i=e.filter((e=>e.state<t));for(const s of i)await ul(n),await r(s),s.state=t;await this.notifyBuildPhase(i,t,n),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Hl.create((()=>{this.buildPhaseListeners.delete(e,t)}))}waitUntil(e,t,n){let r;if(t&&"path"in t?r=t:n=t,null!=n||(n=sl.XO.None),r){const t=this.langiumDocuments.getDocument(r);if(t&&t.state>e)return Promise.resolve(r)}return this.currentState>=e?Promise.resolve(void 0):n.isCancellationRequested?Promise.reject(cl):new Promise(((t,i)=>{const s=this.onBuildPhase(e,(()=>{if(s.dispose(),o.dispose(),r){const e=this.langiumDocuments.getDocument(r);t(null==e?void 0:e.uri)}else t(void 0)})),o=n.onCancellationRequested((()=>{s.dispose(),o.dispose(),i(cl)}))}))}async notifyBuildPhase(e,t,n){if(0===e.length)return;const r=this.buildPhaseListeners.get(t);for(const i of r)await ul(n),await i(e,n)}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,t){var n,r;const i=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,s=this.getBuildOptions(e).validation,o="object"==typeof s?s:void 0,a=await i.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;const c=this.buildState.get(e.uri.toString());if(c){null!==(n=c.result)&&void 0!==n||(c.result={});const e=null!==(r=null==o?void 0:o.categories)&&void 0!==r?r:jl.all;c.result.validationChecks?c.result.validationChecks.push(...e):c.result.validationChecks=[...e]}}getBuildOptions(e){var t,n;return null!==(n=null===(t=this.buildState.get(e.uri.toString()))||void 0===t?void 0:t.options)&&void 0!==n?n:{}}}class tu{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Ml,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const n=Pe(e).uri,r=[];return this.referenceIndex.forEach((e=>{e.forEach((e=>{El.equals(e.targetUri,n)&&e.targetPath===t&&r.push(e)}))})),m(r)}allElements(e,t){let n=m(this.symbolIndex.keys());return t&&(n=n.filter((e=>!t||t.has(e)))),n.map((t=>this.getFileDescriptions(t,e))).flat()}getFileDescriptions(e,t){var n;if(!t)return null!==(n=this.symbolIndex.get(e))&&void 0!==n?n:[];const r=this.symbolByTypeIndex.get(e,t,(()=>{var n;return(null!==(n=this.symbolIndex.get(e))&&void 0!==n?n:[]).filter((e=>this.astReflection.isSubtype(e.type,t)))}));return r}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=sl.XO.None){const n=this.serviceRegistry.getServices(e.uri),r=await n.references.ScopeComputation.computeExports(e,t),i=e.uri.toString();this.symbolIndex.set(i,r),this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=sl.XO.None){const n=this.serviceRegistry.getServices(e.uri),r=await n.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),r)}isAffected(e,t){const n=this.referenceIndex.get(e.uri.toString());return!!n&&n.some((e=>!e.local&&t.has(e.targetUri.toString())))}}class nu{constructor(e){this.initialBuildOptions={},this._ready=new dl,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=null!==(t=e.workspaceFolders)&&void 0!==t?t:void 0}initialized(e){return this.mutex.write((e=>{var t;return this.initializeWorkspace(null!==(t=this.folders)&&void 0!==t?t:[],e)}))}async initializeWorkspace(e,t=sl.XO.None){const n=await this.performStartup(e);await ul(t),await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap((e=>e.LanguageMetaData.fileExtensions)),n=[],r=e=>{n.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)};return await this.loadAdditionalDocuments(e,r),await Promise.all(e.map((e=>[e,this.getRootFolder(e)])).map((async e=>this.traverseFolder(...e,t,r)))),this._ready.resolve(),n}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return vl.parse(e.uri)}async traverseFolder(e,t,n,r){const i=await this.fileSystemProvider.readDirectory(t);await Promise.all(i.map((async t=>{if(this.includeEntry(e,t,n))if(t.isDirectory)await this.traverseFolder(e,t.uri,n,r);else if(t.isFile){const e=await this.langiumDocuments.getOrCreateDocument(t.uri);r(e)}})))}includeEntry(e,t,n){const r=El.basename(t.uri);if(r.startsWith("."))return!1;if(t.isDirectory)return"node_modules"!==r&&"out"!==r;if(t.isFile){const e=El.extname(t.uri);return n.includes(e)}return!1}}class ru{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const n=su(t)?Object.values(t):t;this.chevrotainLexer=new ii(n,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const n=this.chevrotainLexer.tokenize(e);return{tokens:n.tokens,errors:n.errors,hidden:null!==(t=n.groups.hidden)&&void 0!==t?t:[]}}toTokenTypeDictionary(e){if(su(e))return e;const t=iu(e)?Object.values(e.modes).flat():e,n={};return t.forEach((e=>n[e.name]=e)),n}}function iu(e){return e&&"modes"in e&&"defaultMode"in e}function su(e){return!function(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}(e)&&!iu(e)}function ou(e,t,n){let r,i;"string"==typeof e?(i=t,r=n):(i=e.range.start,r=t),i||(i=ca.create(0,0));const s=function(e){var t,n,r;const i=[];let s=e.position.line,o=e.position.character;for(let a=0;a<e.lines.length;a++){const c=0===a,l=a===e.lines.length-1;let u=e.lines[a],d=0;if(c&&e.options.start){const n=null===(t=e.options.start)||void 0===t?void 0:t.exec(u);n&&(d=n.index+n[0].length)}else{const t=null===(n=e.options.line)||void 0===n?void 0:n.exec(u);t&&(d=t.index+t[0].length)}if(l){const t=null===(r=e.options.end)||void 0===r?void 0:r.exec(u);t&&(u=u.substring(0,t.index))}u=u.substring(0,pu(u));if(fu(u,d)>=u.length){if(i.length>0){const e=ca.create(s,o);i.push({type:"break",content:"",range:la.create(e,e)})}}else{cu.lastIndex=d;const e=cu.exec(u);if(e){const t=e[0],n=e[1],r=ca.create(s,o+d),a=ca.create(s,o+d+t.length);i.push({type:"tag",content:n,range:la.create(r,a)}),d+=t.length,d=fu(u,d)}if(d<u.length){const e=u.substring(d),t=Array.from(e.matchAll(lu));i.push(...uu(t,e,s,o+d))}}s++,o=0}if(i.length>0&&"break"===i[i.length-1].type)return i.slice(0,-1);return i}({lines:au(e),position:i,options:vu(r)});return function(e){var t,n,r,i;const s=ca.create(e.position.line,e.position.character);if(0===e.tokens.length)return new Eu([],la.create(s,s));const o=[];for(;e.index<e.tokens.length;){const t=mu(e,o[o.length-1]);t&&o.push(t)}const a=null!==(n=null===(t=o[0])||void 0===t?void 0:t.range.start)&&void 0!==n?n:s,c=null!==(i=null===(r=o[o.length-1])||void 0===r?void 0:r.range.end)&&void 0!==i?i:s;return new Eu(o,la.create(a,c))}({index:0,tokens:s,position:i})}function au(e){let t="";t="string"==typeof e?e:e.text;return t.split(nt)}const cu=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,lu=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function uu(e,t,n,r){const i=[];if(0===e.length){const e=ca.create(n,r),s=ca.create(n,r+t.length);i.push({type:"text",content:t,range:la.create(e,s)})}else{let s=0;for(const a of e){const e=a.index,o=t.substring(s,e);o.length>0&&i.push({type:"text",content:t.substring(s,e),range:la.create(ca.create(n,s+r),ca.create(n,e+r))});let c=o.length+1;const l=a[1];if(i.push({type:"inline-tag",content:l,range:la.create(ca.create(n,s+c+r),ca.create(n,s+c+l.length+r))}),c+=l.length,4===a.length){c+=a[2].length;const e=a[3];i.push({type:"text",content:e,range:la.create(ca.create(n,s+c+r),ca.create(n,s+c+e.length+r))})}else i.push({type:"text",content:"",range:la.create(ca.create(n,s+c+r),ca.create(n,s+c+r))});s=e+a[0].length}const o=t.substring(s);o.length>0&&i.push({type:"text",content:o,range:la.create(ca.create(n,s+r),ca.create(n,s+r+o.length))})}return i}const du=/\S/,hu=/\s*$/;function fu(e,t){const n=e.substring(t).match(du);return n?t+n.index:e.length}function pu(e){const t=e.match(hu);if(t&&"number"==typeof t.index)return t.index}function mu(e,t){const n=e.tokens[e.index];return"tag"===n.type?Au(e,!1):"text"===n.type||"inline-tag"===n.type?gu(e):(function(e,t){if(t){const n=new Iu("",e.range);"inlines"in t?t.inlines.push(n):t.content.inlines.push(n)}}(n,t),void e.index++)}function gu(e){let t=e.tokens[e.index];const n=t;let r=t;const i=[];for(;t&&"break"!==t.type&&"tag"!==t.type;)i.push(yu(e)),r=t,t=e.tokens[e.index];return new xu(i,la.create(n.range.start,r.range.end))}function yu(e){return"inline-tag"===e.tokens[e.index].type?Au(e,!0):Tu(e)}function Au(e,t){const n=e.tokens[e.index++],r=n.content.substring(1),i=e.tokens[e.index];if("text"===(null==i?void 0:i.type)){if(t){const i=Tu(e);return new ku(r,new xu([i],i.range),t,la.create(n.range.start,i.range.end))}{const i=gu(e);return new ku(r,i,t,la.create(n.range.start,i.range.end))}}{const e=n.range;return new ku(r,new xu([],e),t,e)}}function Tu(e){const t=e.tokens[e.index++];return new Iu(t.content,t.range)}function vu(e){if(!e)return vu({start:"/**",end:"*/",line:"*"});const{start:t,end:n,line:r}=e;return{start:Ru(t,!0),end:Ru(n,!1),line:Ru(r,!0)}}function Ru(e,t){if("string"==typeof e||"object"==typeof e){const n="string"==typeof e?at(e):e.source;return t?new RegExp(`^\\s*${n}`):new RegExp(`\\s*${n}\\s*$`)}return e}class Eu{constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find((t=>t.name===e))}getTags(e){return this.getAllTags().filter((t=>t.name===e))}getAllTags(){return this.elements.filter((e=>"name"in e))}toString(){let e="";for(const t of this.elements)if(0===e.length)e=t.toString();else{const n=t.toString();e+=Su(e)+n}return e.trim()}toMarkdown(e){let t="";for(const n of this.elements)if(0===t.length)t=n.toMarkdown(e);else{const r=n.toMarkdown(e);t+=Su(t)+r}return t.trim()}}class ku{constructor(e,t,n,r){this.name=e,this.content=t,this.inline=n,this.range=r}toString(){let e=`@${this.name}`;const t=this.content.toString();return 1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}\n${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t,n;return null!==(n=null===(t=null==e?void 0:e.renderTag)||void 0===t?void 0:t.call(e,this))&&void 0!==n?n:this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const n=function(e,t,n){var r,i;if("linkplain"===e||"linkcode"===e||"link"===e){const s=t.indexOf(" ");let o=t;if(s>0){const e=fu(t,s);o=t.substring(e),t=t.substring(0,s)}("linkcode"===e||"link"===e&&"code"===n.link)&&(o=`\`${o}\``);const a=null!==(i=null===(r=n.renderLink)||void 0===r?void 0:r.call(n,t,o))&&void 0!==i?i:function(e,t){try{return vl.parse(e,!0),`[${t}](${e})`}catch(r){return e}}(t,o);return a}return}(this.name,t,null!=e?e:{});if("string"==typeof n)return n}let n="";"italic"===(null==e?void 0:e.tag)||void 0===(null==e?void 0:e.tag)?n="*":"bold"===(null==e?void 0:e.tag)?n="**":"bold-italic"===(null==e?void 0:e.tag)&&(n="***");let r=`${n}@${this.name}${n}`;return 1===this.content.inlines.length?r=`${r} \u2014 ${t}`:this.content.inlines.length>1&&(r=`${r}\n${t}`),this.inline?`{${r}}`:r}}class xu{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){const n=this.inlines[t],r=this.inlines[t+1];e+=n.toString(),r&&r.range.start.line>n.range.start.line&&(e+="\n")}return e}toMarkdown(e){let t="";for(let n=0;n<this.inlines.length;n++){const r=this.inlines[n],i=this.inlines[n+1];t+=r.toMarkdown(e),i&&i.range.start.line>r.range.start.line&&(t+="\n")}return t}}class Iu{constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}}function Su(e){return e.endsWith("\n")?"\n":"\n\n"}class Nu{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&function(e,t){const n=vu(t),r=au(e);if(0===r.length)return!1;const i=r[0],s=r[r.length-1],o=n.start,a=n.end;return Boolean(null==o?void 0:o.exec(i))&&Boolean(null==a?void 0:a.exec(s))}(t)){return ou(t).toMarkdown({renderLink:(t,n)=>this.documentationLinkRenderer(e,t,n),renderTag:t=>this.documentationTagRenderer(e,t)})}}documentationLinkRenderer(e,t,n){var r;const i=null!==(r=this.findNameInPrecomputedScopes(e,t))&&void 0!==r?r:this.findNameInGlobalScope(e,t);if(i&&i.nameSegment){const e=i.nameSegment.range.start.line+1,t=i.nameSegment.range.start.character+1;return`[${n}](${i.documentUri.with({fragment:`L${e},${t}`}).toString()})`}}documentationTagRenderer(e,t){}findNameInPrecomputedScopes(e,t){const n=Pe(e).precomputedScopes;if(!n)return;let r=e;do{const e=n.get(r).find((e=>e.name===t));if(e)return e;r=r.$container}while(r)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find((e=>e.name===t))}}class Cu{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var t;return function(e){return"string"==typeof e.$comment}(e)?e.$comment:null===(t=x(e.$cstNode,this.grammarConfig().multilineCommentRules))||void 0===t?void 0:t.text}}var $u;n(2676);class wu{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e){return Promise.resolve(this.syncParser.parse(e))}}class Lu{constructor(){this.previousTokenSource=new sl.Qi,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=new sl.Qi;return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n){const r=new dl,i={action:t,deferred:r,cancellationToken:null!=n?n:sl.XO.None};return e.push(i),this.performNextOperation(),r.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else{if(!(this.readQueue.length>0))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map((async({action:e,deferred:t,cancellationToken:n})=>{try{const r=await Promise.resolve().then((()=>e(n)));t.resolve(r)}catch(r){ll(r)?t.resolve(void 0):t.reject(r)}}))),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class Ou{constructor(e){this.grammarElementIdMap=new wl,this.tokenTypeIdMap=new wl,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors.map((e=>Object.assign({},e))),parserErrors:e.parserErrors.map((e=>Object.assign({},e))),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}createDehyrationContext(e){const t=new Map,n=new Map;for(const r of Ue(e))t.set(r,{});if(e.$cstNode)for(const r of T(e.$cstNode))n.set(r,{});return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(n.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[s,o]of Object.entries(e))if(!s.startsWith("$"))if(Array.isArray(o)){const e=[];n[s]=e;for(const n of o)r(n)?e.push(this.dehydrateAstNode(n,t)):i(n)?e.push(this.dehydrateReference(n,t)):e.push(n)}else r(o)?n[s]=this.dehydrateAstNode(o,t):i(o)?n[s]=this.dehydrateReference(o,t):void 0!==o&&(n[s]=o);return n}dehydrateReference(e,t){const n={};return n.$refText=e.$refText,e.$refNode&&(n.$refNode=t.cstNodes.get(e.$refNode)),n}dehydrateCstNode(e,t){const n=t.cstNodes.get(e);return l(e)?n.fullText=e.fullText:n.grammarSource=this.getGrammarElementId(e.grammarSource),n.hidden=e.hidden,n.astNode=t.astNodes.get(e.astNode),a(e)?n.content=e.content.map((e=>this.dehydrateCstNode(e,t))):c(e)&&(n.tokenType=e.tokenType.name,n.offset=e.offset,n.length=e.length,n.startLine=e.range.start.line,n.startColumn=e.range.start.character,n.endLine=e.range.end.line,n.endColumn=e.range.end.character),n}hydrate(e){const t=e.value,n=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,n),{lexerErrors:e.lexerErrors,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){const t=new Map,n=new Map;for(const i of Ue(e))t.set(i,{});let r;if(e.$cstNode)for(const i of T(e.$cstNode)){let e;"fullText"in i?(e=new Mc(i.fullText),r=e):"content"in i?e=new _c:"tokenType"in i&&(e=this.hydrateCstLeafNode(i)),e&&(n.set(i,e),e.root=r)}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type,n.$containerIndex=e.$containerIndex,n.$containerProperty=e.$containerProperty,e.$cstNode&&(n.$cstNode=t.cstNodes.get(e.$cstNode));for(const[s,o]of Object.entries(e))if(!s.startsWith("$"))if(Array.isArray(o)){const e=[];n[s]=e;for(const a of o)r(a)?e.push(this.setParent(this.hydrateAstNode(a,t),n)):i(a)?e.push(this.hydrateReference(a,n,s,t)):e.push(a)}else r(o)?n[s]=this.setParent(this.hydrateAstNode(o,t),n):i(o)?n[s]=this.hydrateReference(o,n,s,t):void 0!==o&&(n[s]=o);return n}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){const r=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(r.grammarSource=this.getGrammarElement(e.grammarSource)),r.astNode=t.astNodes.get(e.astNode),a(r))for(const i of e.content){const e=this.hydrateCstNode(i,t,n++);r.content.push(e)}return r}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),n=e.offset,r=e.length,i=e.startLine,s=e.startColumn,o=e.endLine,a=e.endColumn,c=e.hidden;return new bc(n,r,{start:{line:i,character:s},end:{line:o,character:a}},t,c)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap();const t=this.grammarElementIdMap.getKey(e);if(t)return t;throw new Error("Invalid grammar element id: "+e)}createGrammarElementIdMap(){let e=0;for(const n of Ue(this.grammar))t=n,Oe.isInstance(t,b)&&this.grammarElementIdMap.set(n,e++);var t}}function bu(e){return{documentation:{CommentProvider:e=>new Cu(e),DocumentationProvider:e=>new Nu(e)},parser:{AsyncParser:e=>new wu(e),GrammarConfig:e=>function(e){const t=[],n=e.Grammar;for(const i of n.rules)te(i)&&(r=i).hidden&&!vt(r).test(" ")&&st(vt(i))&&t.push(i.name);var r;return{multilineCommentRules:t,nameRegexp:k}}(e),LangiumParser:e=>tl(e),CompletionParser:e=>function(e){const t=e.Grammar,n=e.parser.Lexer,r=new Vc(e);return zc(t,r,n.definition),r.finalize(),r}(e),ValueConverter:()=>new rl,TokenBuilder:()=>new nl,Lexer:e=>new ru(e),ParserErrorMessageProvider:()=>new jc},workspace:{AstNodeLocator:()=>new Jl,AstNodeDescriptionProvider:e=>new ql(e),ReferenceDescriptionProvider:e=>new Ql(e)},references:{Linker:e=>new Sl(e),NameProvider:()=>new Nl,ScopeProvider:e=>new Ul(e),ScopeComputation:e=>new Ll(e),References:e=>new Cl(e)},serializer:{Hydrator:e=>new Ou(e),JsonSerializer:e=>new Gl(e)},validation:{DocumentValidator:e=>new zl(e),ValidationRegistry:e=>new Wl(e)},shared:()=>e.shared}}function _u(e){return{ServiceRegistry:()=>new Kl,workspace:{LangiumDocuments:e=>new Il(e),LangiumDocumentFactory:e=>new xl(e),DocumentBuilder:e=>new eu(e),IndexManager:e=>new tu(e),WorkspaceManager:e=>new nu(e),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new Lu,ConfigurationProvider:e=>new Zl(e)}}}function Pu(e,t,n,r,i,s,o,a,c){return Du([e,t,n,r,i,s,o,a,c].reduce(Gu,{}))}!function(e){e.merge=(e,t)=>Gu(Gu({},e),t)}($u||($u={}));const Mu=Symbol("isProxy");function Du(e,t){const n=new Proxy({},{deleteProperty:()=>!1,get:(r,i)=>Fu(r,i,e,t||n),getOwnPropertyDescriptor:(r,i)=>(Fu(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),has:(t,n)=>n in e,ownKeys:()=>[...Reflect.ownKeys(e),Mu]});return n[Mu]=!0,n}const Uu=Symbol();function Fu(e,t,n,r){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]});if(e[t]===Uu)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. See https://langium.org/docs/configuration-services/#resolving-cyclic-dependencies');return e[t]}if(t in n){const s=n[t];e[t]=Uu;try{e[t]="function"==typeof s?s(r):Du(s,r)}catch(i){throw e[t]=i instanceof Error?i:void 0,i}return e[t]}}function Gu(e,t){if(t)for(const[n,r]of Object.entries(t))if(void 0!==r){const t=e[n];e[n]=null!==t&&null!==r&&"object"==typeof t&&"object"==typeof r?Gu(t,r):r}return e}class Ku{readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}}const Bu={fileSystemProvider:()=>new Ku},ju={Grammar:()=>{},LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},Vu={AstReflection:()=>new Le};function Hu(e){var t;const n=function(){const e=Pu(_u(Bu),Vu),t=Pu(bu({shared:e}),ju);return e.ServiceRegistry.register(t),t}(),r=n.serializer.JsonSerializer.deserialize(e);return n.shared.workspace.LangiumDocumentFactory.fromModel(r,vl.parse(`memory://${null!==(t=r.name)&&void 0!==t?t:"grammar"}.langium`)),r}},2559:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1882);const i=function(e,t,n){for(var i=-1,s=e.length;++i<s;){var o=e[i],a=t(o);if(null!=a&&(void 0===c?a==a&&!(0,r.A)(a):n(a,c)))var c=a,l=o}return l}},6224:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return e<t}},2568:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6240),i=n(8446);const s=function(e,t){var n=-1,s=(0,i.A)(e)?Array(e.length):[];return(0,r.A)(e,(function(e,r,i){s[++n]=t(e,r,i)})),s}},9354:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(6318),i=n(2851),s=n(7819),o=n(5353),a=n(3149),c=n(901);const l=function(e,t,n,r){if(!(0,a.A)(e))return e;for(var l=-1,u=(t=(0,s.A)(t,e)).length,d=u-1,h=e;null!=h&&++l<u;){var f=(0,c.A)(t[l]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(l!=d){var m=h[f];void 0===(p=r?r(m,f,h):void 0)&&(p=(0,a.A)(m)?m:(0,o.A)(t[l+1])?[]:{})}(0,i.A)(h,f,p),h=h[f]}return e};const u=function(e,t,n){for(var i=-1,o=t.length,a={};++i<o;){var c=t[i],u=(0,r.A)(e,c);n(u,c)&&l(a,(0,s.A)(c,e),u)}return a}},53:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8675);const i=function(e){return(0,r.A)(e,4)}},3068:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(4326),i=n(6984),s=n(6832),o=n(5615),a=Object.prototype,c=a.hasOwnProperty;const l=(0,r.A)((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&(0,s.A)(t[0],t[1],l)&&(r=1);++n<r;)for(var u=t[n],d=(0,o.A)(u),h=-1,f=d.length;++h<f;){var p=d[h],m=e[p];(void 0===m||(0,i.A)(m,a[p])&&!c.call(e,p))&&(e[p]=u[p])}return e}))},6145:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(3958),i=n(8446),s=n(7422);const o=function(e){return function(t,n,o){var a=Object(t);if(!(0,i.A)(t)){var c=(0,r.A)(n,3);t=(0,s.A)(t),n=function(e){return c(a[e],e,a)}}var l=e(t,n,o);return l>-1?a[c?t[l]:l]:void 0}};var a=n(5707),c=n(8593),l=Math.max;const u=o((function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:(0,c.A)(n);return s<0&&(s=l(i+s,0)),(0,a.A)(e,(0,r.A)(t,3),s)}))},4098:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(3588);const i=function(e){return(null==e?0:e.length)?(0,r.A)(e,1):[]}},8585:(e,t,n)=>{n.d(t,{A:()=>o});var r=Object.prototype.hasOwnProperty;const i=function(e,t){return null!=e&&r.call(e,t)};var s=n(2673);const o=function(e,t){return null!=e&&(0,s.A)(e,t,i)}},9703:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8496),i=n(2049),s=n(3098);const o=function(e){return"string"==typeof e||!(0,i.A)(e)&&(0,s.A)(e)&&"[object String]"==(0,r.A)(e)}},6666:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},4722:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(5572),i=n(3958),s=n(2568),o=n(2049);const a=function(e,t){return((0,o.A)(e)?r.A:s.A)(e,(0,i.A)(t,3))}},6452:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2559),i=n(6224),s=n(9008);const o=function(e){return e&&e.length?(0,r.A)(e,s.A,i.A):void 0}},4342:(e,t,n)=>{n.d(t,{A:()=>m});var r=/\s/;const i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var s=/^\s+/;const o=function(e){return e?e.slice(0,i(e)+1).replace(s,""):e};var a=n(3149),c=n(1882),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;const f=function(e){if("number"==typeof e)return e;if((0,c.A)(e))return NaN;if((0,a.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=u.test(e);return n||d.test(e)?h(e.slice(2),n?2:8):l.test(e)?NaN:+e};var p=1/0;const m=function(e){return e?(e=f(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8593:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4342);const i=function(e){var t=(0,r.A)(e),n=t%1;return t==t?n?t-n:t:0}}}]); \ No newline at end of file diff --git a/website/assets/js/890.5ffb00ff.js b/website/assets/js/890.5ffb00ff.js new file mode 100644 index 000000000..22c53ade7 --- /dev/null +++ b/website/assets/js/890.5ffb00ff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[890],{890:(e,s,c)=>{c.d(s,{createInfoServices:()=>a.v});var a=c(9402);c(9369)}}]); \ No newline at end of file diff --git a/website/assets/js/897040e0.2775e63b.js b/website/assets/js/897040e0.2775e63b.js new file mode 100644 index 000000000..ea9597b0a --- /dev/null +++ b/website/assets/js/897040e0.2775e63b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1812],{2941:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"hook/return","title":"Retour","description":"Le hook useLunatic retourne un objet de type LunaticState","source":"@site/docs/hook/return.mdx","sourceDirName":"hook","slug":"/hook/return","permalink":"/Lunatic/docs/hook/return","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/hook/return.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Param\xe8tres","permalink":"/Lunatic/docs/hook/parameters"},"next":{"title":"Navigation","permalink":"/Lunatic/docs/hook/navigation"}}');var r=t(4848),a=t(8453);const o={},i="Retour",c={},l=[{value:"Les param\xe8tres",id:"les-param\xe8tres",level:3},{value:"Les m\xe9thodes",id:"les-m\xe9thodes",level:3},{value:"Le composant",id:"le-composant",level:3}];function d(e){const n={a:"a",code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"retour",children:"Retour"})}),"\n",(0,r.jsxs)(n.p,{children:["Le hook ",(0,r.jsx)(n.code,{children:"useLunatic"})," retourne un objet de type ",(0,r.jsx)(n.code,{children:"LunaticState"})]}),"\n",(0,r.jsx)(n.p,{children:"Cet objet contient des param\xe8tres, m\xe9thodes et composants"}),"\n",(0,r.jsx)(n.h3,{id:"les-param\xe8tres",children:"Les param\xe8tres"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["pageTag : string, correspondant \xe0 la num\xe9rotation de la page courrante (cf ",(0,r.jsx)(n.a,{href:"./navigation#pagetag",children:"section PageTag"}),")"]}),"\n",(0,r.jsx)(n.li,{children:"isFirstPage : boolean,"}),"\n",(0,r.jsx)(n.li,{children:"isLastPage : boolean,"}),"\n",(0,r.jsx)(n.li,{children:"updatedAt : number, correspondant \xe0 la date du dernier appel \xe0 la fonction handleChange"}),"\n",(0,r.jsx)(n.li,{children:"pager : `LunaticPage contenant toutes les informations concernant les pages (derni\xe8re page atteinte, nombre de page, de sous page etc..)"}),"\n",(0,r.jsx)(n.li,{children:"isInLoop : boolean"}),"\n",(0,r.jsxs)(n.li,{children:["overview cf ",(0,r.jsx)(n.a,{href:"./parameters#vue-densemble",children:"section vue d'ensemble"})]}),"\n",(0,r.jsx)(n.li,{children:"loopVariables : liste des variables de la boucle courrante"}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"les-m\xe9thodes",children:"Les m\xe9thodes"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["getComponents permet de r\xe9cup\xe9rer les composants \xe0 afficher (cf ",(0,r.jsx)(n.a,{href:"../components/lunatic-components",children:"section affichage"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:["goPreviousPage, permet de naviguer \xe0 la page pr\xe9c\xe9dente (cf ",(0,r.jsx)(n.a,{href:"./navigation",children:"section navigation"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:["goNextPage, permet de naviguer \xe0 la page suivante (cf ",(0,r.jsx)(n.a,{href:"./navigation",children:"section navigation"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:["goToPage, permet de naviguer directement \xe0 une page (cf ",(0,r.jsx)(n.a,{href:"./navigation",children:"section navigation"}),")"]}),"\n",(0,r.jsx)(n.li,{children:"compileControls, permet de r\xe9cup\xe9rer les contr\xf4les"}),"\n",(0,r.jsx)(n.li,{children:"getData, permet de r\xe9cup\xe9rer les donn\xe9es du questionnaire"}),"\n",(0,r.jsxs)(n.li,{children:["getChangedData, permet de r\xe9cup\xe9rer les donn\xe9es qui ont chang\xe9es (cf ",(0,r.jsx)(n.a,{href:"./parameters#vue-densemble",children:'section "suivi des changements"'}),")"]}),"\n",(0,r.jsxs)(n.li,{children:["resetChangedData, vide le dictionnaire des variables chang\xe9e (cf ",(0,r.jsx)(n.a,{href:"./parameters#vue-densemble",children:'section "suivi des changements"'}),")"]}),"\n",(0,r.jsx)(n.li,{children:"hasPageResponse, methode renvoyant true d\xe8s que la page courante contient au moins une r\xe9ponse."}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"le-composant",children:"Le composant"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Provider, composant n\xe9c\xe9ssaire au fonctionnement de la librarie devant entourer ",(0,r.jsx)(n.code,{children:"LunaticComponents"})]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>i});var s=t(6540);const r={},a=s.createContext(r);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/8c14e59c.de232d4f.js b/website/assets/js/8c14e59c.de232d4f.js new file mode 100644 index 000000000..61d6b84e2 --- /dev/null +++ b/website/assets/js/8c14e59c.de232d4f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4069],{808:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>c,metadata:()=>r,toc:()=>a});const r=JSON.parse('{"id":"api/type-aliases/LunaticState","title":"Type Alias: LunaticState","description":"LunaticState: object","source":"@site/docs/api/type-aliases/LunaticState.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticState","permalink":"/Lunatic/docs/api/type-aliases/LunaticState","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticState.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticSource","permalink":"/Lunatic/docs/api/type-aliases/LunaticSource"},"next":{"title":"LunaticStateVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticStateVariable"}}');var i=s(4848),t=s(8453);const c={},d="Type Alias: LunaticState",l={},a=[{value:"Type declaration",id:"type-declaration",level:2},{value:"compileControls()",id:"compilecontrols",level:3},{value:"Returns",id:"returns",level:4},{value:"currentErrors",id:"currenterrors",level:5},{value:"isCritical",id:"iscritical",level:5},{value:"currentErrors?",id:"currenterrors-1",level:3},{value:"Index Signature",id:"index-signature",level:4},{value:"errors?",id:"errors",level:3},{value:"Index Signature",id:"index-signature-1",level:4},{value:"getChangedData()",id:"getchangeddata",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"getComponents()",id:"getcomponents",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Examples",id:"examples",level:4},{value:"See",id:"see",level:4},{value:"getData()",id:"getdata",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-3",level:4},{value:"goNextPage()",id:"gonextpage",level:3},{value:"Returns",id:"returns-4",level:4},{value:"goPreviousPage()",id:"gopreviouspage",level:3},{value:"Returns",id:"returns-5",level:4},{value:"goToPage()",id:"gotopage",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-6",level:4},{value:"hasPageResponse()",id:"haspageresponse",level:3},{value:"Returns",id:"returns-7",level:4},{value:"isFirstPage",id:"isfirstpage",level:3},{value:"isInLoop",id:"isinloop",level:3},{value:"isLastPage",id:"islastpage",level:3},{value:"loopVariables",id:"loopvariables",level:3},{value:"modalErrors?",id:"modalerrors",level:3},{value:"overview",id:"overview",level:3},{value:"pager",id:"pager",level:3},{value:"pageTag",id:"pagetag",level:3},{value:"Provider",id:"provider",level:3},{value:"resetChangedData()",id:"resetchangeddata",level:3},{value:"Returns",id:"returns-8",level:4},{value:"testing",id:"testing",level:3},{value:"testing.handleChanges",id:"testinghandlechanges",level:3},{value:"updatedAt",id:"updatedat",level:3},{value:"Defined in",id:"defined-in",level:2}];function o(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",header:"header",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"type-alias-lunaticstate",children:"Type Alias: LunaticState"})}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"LunaticState"}),": ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Return type of ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/functions/useLunatic",children:"useLunatic"}),"."]}),"\n",(0,i.jsx)(n.p,{children:"Allow to operate the survey."}),"\n",(0,i.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,i.jsx)(n.h3,{id:"compilecontrols",children:"compileControls()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"compileControls"}),": () => ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Allow to fetch controls."}),"\n",(0,i.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"object"})}),"\n",(0,i.jsx)(n.h5,{id:"currenterrors",children:"currentErrors"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"currentErrors"}),": ",(0,i.jsx)(n.code,{children:"Record"}),"<",(0,i.jsx)(n.code,{children:"string"}),", ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticError",children:(0,i.jsx)(n.code,{children:"LunaticError"})}),"[]> | ",(0,i.jsx)(n.code,{children:"undefined"})]}),"\n"]}),"\n",(0,i.jsx)(n.h5,{id:"iscritical",children:"isCritical"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"isCritical"}),": ",(0,i.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"currenterrors-1",children:"currentErrors?"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"optional"})," ",(0,i.jsx)(n.strong,{children:"currentErrors"}),": ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Errors in the current page / iteration."}),"\n",(0,i.jsx)(n.h4,{id:"index-signature",children:"Index Signature"}),"\n",(0,i.jsxs)(n.p,{children:["[",(0,i.jsx)(n.code,{children:"id"}),": ",(0,i.jsx)(n.code,{children:"string"}),"]: ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticError",children:(0,i.jsx)(n.code,{children:"LunaticError"})}),"[]"]}),"\n",(0,i.jsx)(n.h3,{id:"errors",children:"errors?"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"optional"})," ",(0,i.jsx)(n.strong,{children:"errors"}),": ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Errors in the survey."}),"\n",(0,i.jsx)(n.h4,{id:"index-signature-1",children:"Index Signature"}),"\n",(0,i.jsxs)(n.p,{children:["[",(0,i.jsx)(n.code,{children:"page"}),": ",(0,i.jsx)(n.code,{children:"string"}),"]: ",(0,i.jsx)(n.code,{children:"object"})]}),"\n",(0,i.jsx)(n.h3,{id:"getchangeddata",children:"getChangedData()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"getChangedData"}),": (",(0,i.jsx)(n.code,{children:"reset"}),"?) => ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticData",children:(0,i.jsx)(n.code,{children:"LunaticData"})})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Get data that have changed since last reset. Returns the same thing as ",(0,i.jsx)(n.code,{children:"getData()"}),"."]}),"\n",(0,i.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Parameter"}),(0,i.jsx)(n.th,{children:"Type"})]})}),(0,i.jsx)(n.tbody,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"reset"}),"?"]}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"boolean"})})]})})]}),"\n",(0,i.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticData",children:(0,i.jsx)(n.code,{children:"LunaticData"})})}),"\n",(0,i.jsx)(n.h3,{id:"getcomponents",children:"getComponents()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"getComponents"}),": () => ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticComponentProps",children:(0,i.jsx)(n.code,{children:"LunaticComponentProps"})}),"[]"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Components to display in the current page."}),"\n",(0,i.jsxs)(n.p,{children:["Return an array with the various components' properties. The orchestrator\nhas to handle how they are displayed, using the ",(0,i.jsx)(n.code,{children:"componentType"})," property to\nselect the appropriate component."]}),"\n",(0,i.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticComponentProps",children:(0,i.jsx)(n.code,{children:"LunaticComponentProps"})}),"[]"]}),"\n",(0,i.jsx)(n.h4,{id:"examples",children:"Examples"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"// using `LunaticComponents`\nimport { useLunatic, LunaticComponents } from '@inseefr/lunatic';\n\nfunction App({ source, data }) {\n const { getComponents, Provider } = useLunatic(source, data, {});\n const components = getComponents();\n\n return (\n <Provider>\n <LunaticComponents components={components} />\n </Provider>\n );\n}\n"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"// using custom components\nimport { useLunatic, LunaticComponents } from '@inseefr/lunatic';\n\nconst customCompoonents = {\n Input: MyCustomInput,\n InputNumber: MyCustomInputNumber,\n};\n\nfunction App({ source, data }) {\n const { getComponents, Provider } = useLunatic(source, data, {});\n const components = getComponents();\n\n return (\n <Provider>\n <LunaticComponents components={components} slots={customComponents} />\n </Provider>\n );\n}\n"})}),"\n",(0,i.jsx)(n.h4,{id:"see",children:"See"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/functions/LunaticComponents",children:"LunaticComponents"})}),"\n",(0,i.jsx)(n.h3,{id:"getdata",children:"getData()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"getData"}),": (",(0,i.jsx)(n.code,{children:"withRefreshedCalculated"}),", ",(0,i.jsx)(n.code,{children:"variableNames"}),"?) => ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticData",children:(0,i.jsx)(n.code,{children:"LunaticData"})})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Get data collected by the survey."}),"\n",(0,i.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Parameter"}),(0,i.jsx)(n.th,{children:"Type"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"withRefreshedCalculated"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"boolean"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"variableNames"}),"?"]}),(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,i.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticData",children:(0,i.jsx)(n.code,{children:"LunaticData"})})}),"\n",(0,i.jsx)(n.h3,{id:"gonextpage",children:"goNextPage()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"goNextPage"}),": () => ",(0,i.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Navigate to the next page."}),"\n",(0,i.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"void"})}),"\n",(0,i.jsx)(n.h3,{id:"gopreviouspage",children:"goPreviousPage()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"goPreviousPage"}),": () => ",(0,i.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Navigate to the previous page."}),"\n",(0,i.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"void"})}),"\n",(0,i.jsx)(n.h3,{id:"gotopage",children:"goToPage()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"goToPage"}),": (",(0,i.jsx)(n.code,{children:"page"}),") => ",(0,i.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Navigate to a specific page."}),"\n",(0,i.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:"Parameter"}),(0,i.jsx)(n.th,{children:"Type"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"page"})}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"object"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"page.iteration"}),"?"]}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"number"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"page.nbIterations"}),"?"]}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"number"})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"page.page"})}),(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"PageTag"})," | ",(0,i.jsx)(n.code,{children:"number"})]})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsxs)(n.td,{children:[(0,i.jsx)(n.code,{children:"page.subPage"}),"?"]}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"number"})})]})]})]}),"\n",(0,i.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"void"})}),"\n",(0,i.jsx)(n.h3,{id:"haspageresponse",children:"hasPageResponse()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"hasPageResponse"}),": () => ",(0,i.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Return ",(0,i.jsx)(n.code,{children:"true"})," as soon as the current page has at least one answer."]}),"\n",(0,i.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"boolean"})}),"\n",(0,i.jsx)(n.h3,{id:"isfirstpage",children:"isFirstPage"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"isFirstPage"}),": ",(0,i.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Whether or not we're on the survey first page."}),"\n",(0,i.jsx)(n.h3,{id:"isinloop",children:"isInLoop"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"isInLoop"}),": ",(0,i.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Whether or not we're in a loop."}),"\n",(0,i.jsx)(n.h3,{id:"islastpage",children:"isLastPage"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"isLastPage"}),": ",(0,i.jsx)(n.code,{children:"boolean"})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Whether or not we're on the survey last page (we reached ",(0,i.jsx)(n.code,{children:"maxPage"}),")."]}),"\n",(0,i.jsx)(n.h3,{id:"loopvariables",children:"loopVariables"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"loopVariables"}),": ",(0,i.jsx)(n.code,{children:"string"}),"[]"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Current loop's variables."}),"\n",(0,i.jsx)(n.h3,{id:"modalerrors",children:"modalErrors?"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"optional"})," ",(0,i.jsx)(n.strong,{children:"modalErrors"}),": ",(0,i.jsx)(n.code,{children:"Record"}),"<",(0,i.jsx)(n.code,{children:"string"}),", ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticError",children:(0,i.jsx)(n.code,{children:"LunaticError"})}),"[]>"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Errors in modal."}),"\n",(0,i.jsx)(n.h3,{id:"overview",children:"overview"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"overview"}),": ",(0,i.jsx)(n.code,{children:"InterpretedLunaticOverviewItem"}),"[]"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"pager",children:"pager"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"pager"}),": ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticPager",children:(0,i.jsx)(n.code,{children:"LunaticPager"})})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Current pager."}),"\n",(0,i.jsx)(n.h3,{id:"pagetag",children:"pageTag"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"pageTag"}),": ",(0,i.jsx)(n.code,{children:"PageTag"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Current page numerotation."}),"\n",(0,i.jsx)(n.h3,{id:"provider",children:"Provider"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Provider"}),": ",(0,i.jsx)(n.code,{children:"FunctionComponent"}),"<",(0,i.jsx)(n.code,{children:"PropsWithChildren"}),">"]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Necessary component that must wraps ",(0,i.jsx)(n.code,{children:"LunaticComponents"})," to make the library works."]}),"\n",(0,i.jsx)(n.h3,{id:"resetchangeddata",children:"resetChangedData()"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"resetChangedData"}),": () => ",(0,i.jsx)(n.code,{children:"void"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Empty the store of changed variables."}),"\n",(0,i.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"void"})}),"\n",(0,i.jsx)(n.h3,{id:"testing",children:"testing"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"testing"}),": ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Used for testing purpose only."}),"\n",(0,i.jsx)(n.h3,{id:"testinghandlechanges",children:"testing.handleChanges"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"handleChanges"}),": ",(0,i.jsx)(n.a,{href:"/Lunatic/docs/api/type-aliases/LunaticChangesHandler",children:(0,i.jsx)(n.code,{children:"LunaticChangesHandler"})})]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"updatedat",children:"updatedAt"}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"updatedAt"}),": ",(0,i.jsx)(n.code,{children:"number"})]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Date of the last ",(0,i.jsx)(n.code,{children:"handleChange"})," function call."]}),"\n",(0,i.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L244",children:"src/use-lunatic/type.ts:244"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>d});var r=s(6540);const i={},t=r.createContext(i);function c(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/8fcf01ba.3d05031c.js b/website/assets/js/8fcf01ba.3d05031c.js new file mode 100644 index 000000000..9d8bcb4d1 --- /dev/null +++ b/website/assets/js/8fcf01ba.3d05031c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6532],{5239:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>c,metadata:()=>i,toc:()=>o});const i=JSON.parse('{"id":"api/type-aliases/LunaticStateVariable","title":"Type Alias: LunaticStateVariable","description":"LunaticStateVariable Object }\\\\[[LunaticVariable\\\\[\\"variableType\\"\\\\]\\\\]","source":"@site/docs/api/type-aliases/LunaticStateVariable.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticStateVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticStateVariable","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticStateVariable.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticState","permalink":"/Lunatic/docs/api/type-aliases/LunaticState"},"next":{"title":"LunaticValues","permalink":"/Lunatic/docs/api/type-aliases/LunaticValues"}}');var n=a(4848),s=a(8453);const c={},r="Type Alias: LunaticStateVariable",l={},o=[{value:"Defined in",id:"defined-in",level:2}];function u(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"type-alias-lunaticstatevariable",children:"Type Alias: LunaticStateVariable"})}),"\n",(0,n.jsxs)(t.blockquote,{children:["\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"LunaticStateVariable"}),": ",(0,n.jsx)(t.code,{children:'{ [key in LunaticVariable["variableType"]]: Object }'}),"[",(0,n.jsx)(t.a,{href:"/Lunatic/docs/api/type-aliases/LunaticVariable",children:(0,n.jsx)(t.code,{children:"LunaticVariable"})}),"[",(0,n.jsx)(t.code,{children:'"variableType"'}),"]]"]}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L84",children:"src/use-lunatic/type.ts:84"})})]})}function d(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,a)=>{a.d(t,{R:()=>c,x:()=>r});var i=a(6540);const n={},s=i.createContext(n);function c(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:c(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/94c6a771.6ab9ec9c.js b/website/assets/js/94c6a771.6ab9ec9c.js new file mode 100644 index 000000000..6ae0c7a7f --- /dev/null +++ b/website/assets/js/94c6a771.6ab9ec9c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3107],{1205:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>l,contentTitle:()=>t,default:()=>x,frontMatter:()=>i,metadata:()=>d,toc:()=>o});const d=JSON.parse('{"id":"api/classes/VTLExpressionError","title":"Class: VTLExpressionError","description":"Extends","source":"@site/docs/api/classes/VTLExpressionError.md","sourceDirName":"api/classes","slug":"/api/classes/VTLExpressionError","permalink":"/Lunatic/docs/api/classes/VTLExpressionError","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/classes/VTLExpressionError.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"@inseefr/lunatic","permalink":"/Lunatic/docs/api/"},"next":{"title":"VTLInterpretationError","permalink":"/Lunatic/docs/api/classes/VTLInterpretationError"}}');var n=s(4848),c=s(8453);const i={},t="Class: VTLExpressionError",l={},o=[{value:"Extends",id:"extends",level:2},{value:"Extended by",id:"extended-by",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new VTLExpressionError()",id:"new-vtlexpressionerror",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2},{value:"captureStackTrace()",id:"capturestacktrace",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,c.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.header,{children:(0,n.jsx)(r.h1,{id:"class-vtlexpressionerror",children:"Class: VTLExpressionError"})}),"\n",(0,n.jsx)(r.h2,{id:"extends",children:"Extends"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsx)(r.li,{children:(0,n.jsx)(r.code,{children:"Error"})}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"extended-by",children:"Extended by"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsx)(r.li,{children:(0,n.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependencies",children:(0,n.jsx)(r.code,{children:"VTLMissingDependencies"})})}),"\n",(0,n.jsx)(r.li,{children:(0,n.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependency",children:(0,n.jsx)(r.code,{children:"VTLMissingDependency"})})}),"\n",(0,n.jsx)(r.li,{children:(0,n.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLInterpretationError",children:(0,n.jsx)(r.code,{children:"VTLInterpretationError"})})}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"constructors",children:"Constructors"}),"\n",(0,n.jsx)(r.h3,{id:"new-vtlexpressionerror",children:"new VTLExpressionError()"}),"\n",(0,n.jsxs)(r.blockquote,{children:["\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.strong,{children:"new VTLExpressionError"}),"(",(0,n.jsx)(r.code,{children:"expression"}),", ",(0,n.jsx)(r.code,{children:"message"}),"): ",(0,n.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,n.jsx)(r.code,{children:"VTLExpressionError"})})]}),"\n"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{children:"Parameter"}),(0,n.jsx)(r.th,{children:"Type"})]})}),(0,n.jsxs)(r.tbody,{children:[(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"expression"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"message"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})})]})]})]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,n.jsx)(r.code,{children:"VTLExpressionError"})})}),"\n",(0,n.jsx)(r.h4,{id:"overrides",children:"Overrides"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"Error.constructor"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L2",children:"src/use-lunatic/commons/variables/errors.ts:2"})}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{children:"Property"}),(0,n.jsx)(r.th,{children:"Modifier"}),(0,n.jsx)(r.th,{children:"Type"}),(0,n.jsx)(r.th,{children:"Description"}),(0,n.jsx)(r.th,{children:"Inherited from"}),(0,n.jsx)(r.th,{children:"Defined in"})]})}),(0,n.jsxs)(r.tbody,{children:[(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"cause?"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"public"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"unknown"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.cause"})}),(0,n.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es2022.error.d.ts:24"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"expression"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"readonly"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L3",children:"src/use-lunatic/commons/variables/errors.ts:3"})})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"message"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"public"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.message"})}),(0,n.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1077"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"name"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"public"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.name"})}),(0,n.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1076"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"stack?"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"public"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"string"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.stack"})}),(0,n.jsx)(r.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1078"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"prepareStackTrace?"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"static"})}),(0,n.jsxs)(r.td,{children:["(",(0,n.jsx)(r.code,{children:"err"}),": ",(0,n.jsx)(r.code,{children:"Error"}),", ",(0,n.jsx)(r.code,{children:"stackTraces"}),": ",(0,n.jsx)(r.code,{children:"CallSite"}),"[]) => ",(0,n.jsx)(r.code,{children:"any"})]}),(0,n.jsxs)(r.td,{children:["Optional override for formatting stack traces ",(0,n.jsx)(r.strong,{children:"See"})," ",(0,n.jsx)(r.a,{href:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces",children:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces"})]}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.prepareStackTrace"})}),(0,n.jsx)(r.td,{children:"node_modules/@types/node/globals.d.ts:143"})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"stackTraceLimit"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"static"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"number"})}),(0,n.jsx)(r.td,{children:"-"}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Error.stackTraceLimit"})}),(0,n.jsx)(r.td,{children:"node_modules/@types/node/globals.d.ts:145"})]})]})]}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"capturestacktrace",children:"captureStackTrace()"}),"\n",(0,n.jsxs)(r.blockquote,{children:["\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"static"})," ",(0,n.jsx)(r.strong,{children:"captureStackTrace"}),"(",(0,n.jsx)(r.code,{children:"targetObject"}),", ",(0,n.jsx)(r.code,{children:"constructorOpt"}),"?): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n"]}),"\n",(0,n.jsx)(r.p,{children:"Create .stack property on a target object"}),"\n",(0,n.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{children:"Parameter"}),(0,n.jsx)(r.th,{children:"Type"})]})}),(0,n.jsxs)(r.tbody,{children:[(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"targetObject"})}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"object"})})]}),(0,n.jsxs)(r.tr,{children:[(0,n.jsxs)(r.td,{children:[(0,n.jsx)(r.code,{children:"constructorOpt"}),"?"]}),(0,n.jsx)(r.td,{children:(0,n.jsx)(r.code,{children:"Function"})})]})]})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"Error.captureStackTrace"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:"node_modules/@types/node/globals.d.ts:136"})]})}function x(e={}){const{wrapper:r}={...(0,c.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8453:(e,r,s)=>{s.d(r,{R:()=>i,x:()=>t});var d=s(6540);const n={},c=d.createContext(n);function i(e){const r=d.useContext(c);return d.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function t(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),d.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/94f53d34.d08df3d3.js b/website/assets/js/94f53d34.d08df3d3.js new file mode 100644 index 000000000..9ce7a7f17 --- /dev/null +++ b/website/assets/js/94f53d34.d08df3d3.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5791],{4264:(e,n,o)=>{"use strict";o.d(n,{L:()=>d});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=o(7119),s=o(6487),a=o(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var c=o(7020),u=o(4848);const p={};function d(e){let{source:n,data:d=p,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(d,null,2)})})]}),(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:g?l:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(c.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?o(5152).g:o(3314).S;return(0,u.jsx)(e,{source:n,data:d,options:m})}})})})]})]})}},3314:(e,n,o)=>{"use strict";o.d(n,{S:()=>s});var t=o(1999),r=o(4848);function s(e){let{source:n,data:o}=e;const{getComponents:s,Provider:a}=(0,t.O1)(n,o,{initialPage:"1"});return(0,r.jsx)(a,{children:(0,r.jsx)(t.R2,{components:s()})})}},5152:(e,n,o)=>{"use strict";o.d(n,{g:()=>a});var t=o(1999),r=o(6540),s=o(4848);function a(e){let{source:n,data:o,options:a}=e;const{getComponents:i,isLastPage:l,isFirstPage:c,goPreviousPage:u,goNextPage:p,Provider:d,compileControls:m}=(0,t.O1)(n,o,{initialPage:"1",...a}),[g,x]=(0,r.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(d,{children:(0,s.jsx)(t.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?x(e):p()},children:"Suivant"})]}),g&&(0,s.jsx)(t.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),p()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},3267:(e,n,o)=>{"use strict";o.d(n,{e:()=>r});var t=o(4848);function r(e){let{type:n}=e;const o=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,t.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:o,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,t.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,t.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},5437:(e,n,o)=>{"use strict";o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>c,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"components/aggregators/rosterForLoop","title":"RosterForLoop","description":"Le composant RosterForLoop fonctionne comme une boucle non pagin\xe9e mais pr\xe9sente les diff\xe9rents champs dans un tableau.","source":"@site/docs/components/aggregators/rosterForLoop.mdx","sourceDirName":"components/aggregators","slug":"/components/aggregators/rosterForLoop","permalink":"/Lunatic/docs/components/aggregators/rosterForLoop","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/aggregators/rosterForLoop.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Loop","permalink":"/Lunatic/docs/components/aggregators/loop"},"next":{"title":"Roundabout","permalink":"/Lunatic/docs/components/aggregators/roundabout"}}');var r=o(4848),s=o(8453),a=o(4264),i=o(3267);const l=JSON.parse('{"$schema":"../../../lunatic-schema.json","maxPage":"3","components":[{"id":"seq","componentType":"Sequence","label":{"value":"\\"Description des individus de votre logement\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"1"},{"id":"loop-prenom","componentType":"RosterForLoop","header":[{"headerCell":true,"label":{"value":"","type":"TXT"}},{"headerCell":true,"label":{"value":"Pr\xe9nom","type":"TXT"}},{"headerCell":true,"label":{"value":"Age","type":"TXT"}}],"label":{"value":"\\"Ajouter un individu\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"bindingDependencies":["PRENOM","AGE"],"lines":{"min":{"value":"1","type":"VTL"},"max":{"value":"10","type":"VTL"}},"page":"1","components":[{"componentType":"Text","label":{"value":"\\"Individu \\" || cast(GLOBAL_ITERATION_INDEX, string)","type":"VTL"}},{"componentType":"Input","conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["PRENOM"],"id":"prenom","response":{"name":"PRENOM"}},{"componentType":"Input","conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"bindingDependencies":["AGE"],"id":"age","response":{"name":"AGE"}}]},{"id":"loop","componentType":"Loop","loopDependencies":["PRENOM"],"iterations":{"value":"count(PRENOM)","type":"VTL"},"page":"2","maxPage":"1","depth":1,"paginatedLoop":true,"conditionFilter":{"value":"true","type":"VTL"},"components":[{"id":"age","label":{"value":"PRENOM || \\", quel est v\xf4tre \xe2ge ?\\"","type":"VTL"},"conditionFilter":{"value":"true","type":"VTL"},"page":"2.1","componentType":"InputNumber","min":0,"max":120,"decimals":0,"response":{"name":"AGE"}}]},{"id":"seq-end","componentType":"Sequence","label":{"value":"\\"End\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"3"}],"resizing":{"PRENOM":{"size":"count(PRENOM)","variables":["AGE"]}},"variables":[{"variableType":"COLLECTED","name":"PRENOM","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}},{"variableType":"COLLECTED","name":"AGE","values":{"PREVIOUS":[null],"COLLECTED":[null],"FORCED":[null],"EDITED":[null],"INPUTTED":[null]}}]}'),c={},u="RosterForLoop",p={},d=[];function m(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"rosterforloop",children:"RosterForLoop"})}),"\n",(0,r.jsxs)(n.p,{children:["Le composant ",(0,r.jsx)(n.strong,{children:"RosterForLoop"})," fonctionne comme une boucle non pagin\xe9e mais pr\xe9sente les diff\xe9rents champs dans un tableau."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"components"}),", tableau contenant les composants enfant \xe0 cette boucle"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"lines"}),", permet le contr\xf4le sur le nombre de lignes (ajouter / supprimer)","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"min"}),", nombre minimal de lignes"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"max"}),", nombre maximal de lignes"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"headers"}),", d\xe9finit l'en-t\xeate du tableau (optionel)"]}),"\n"]}),"\n","\n",(0,r.jsx)(i.e,{type:"ComponentRosterForLoopType"}),"\n","\n",(0,r.jsx)(a.L,{source:l})]})}function g(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/9720.a5758708.js b/website/assets/js/9720.a5758708.js new file mode 100644 index 000000000..6c6fd7c60 --- /dev/null +++ b/website/assets/js/9720.a5758708.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9720],{9720:(e,c,s)=>{s.d(c,{createArchitectureServices:()=>r.S});var r=s(9936);s(9369)}}]); \ No newline at end of file diff --git a/website/assets/js/9732.61cd1730.js b/website/assets/js/9732.61cd1730.js new file mode 100644 index 000000000..1bf896bb4 --- /dev/null +++ b/website/assets/js/9732.61cd1730.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9732],{9732:(t,e,a)=>{a.d(e,{diagram:()=>L});var i,n=a(758),r=(a(6474),a(7308),a(7938),a(1282),a(4532),a(7588),a(3115),a(483),a(540)),d=a(9),s=a(7),o=a(2334),g=a(697),c={},p=(0,d.K2)(((t,e)=>{c[t]=e}),"set"),h=(0,d.K2)((t=>c[t]),"get"),l=(0,d.K2)((()=>Object.keys(c)),"keys"),x=(0,d.K2)((()=>l().length),"size"),D={get:h,set:p,keys:l,size:x},u=(0,d.K2)((t=>t.append("circle").attr("class","start-state").attr("r",(0,d.D7)().state.sizeUnit).attr("cx",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit).attr("cy",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit)),"drawStartState"),f=(0,d.K2)((t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,d.D7)().state.textHeight).attr("class","divider").attr("x2",2*(0,d.D7)().state.textHeight).attr("y1",0).attr("y2",0)),"drawDivider"),y=(0,d.K2)(((t,e)=>{const a=t.append("text").attr("x",2*(0,d.D7)().state.padding).attr("y",(0,d.D7)().state.textHeight+2*(0,d.D7)().state.padding).attr("font-size",(0,d.D7)().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,d.D7)().state.padding).attr("y",(0,d.D7)().state.padding).attr("width",i.width+2*(0,d.D7)().state.padding).attr("height",i.height+2*(0,d.D7)().state.padding).attr("rx",(0,d.D7)().state.radius),a}),"drawSimpleState"),w=(0,d.K2)(((t,e)=>{const a=(0,d.K2)((function(t,e,a){const i=t.append("tspan").attr("x",2*(0,d.D7)().state.padding).text(e);a||i.attr("dy",(0,d.D7)().state.textHeight)}),"addTspan"),i=t.append("text").attr("x",2*(0,d.D7)().state.padding).attr("y",(0,d.D7)().state.textHeight+1.3*(0,d.D7)().state.padding).attr("font-size",(0,d.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),n=i.height,r=t.append("text").attr("x",(0,d.D7)().state.padding).attr("y",n+.4*(0,d.D7)().state.padding+(0,d.D7)().state.dividerMargin+(0,d.D7)().state.textHeight).attr("class","state-description");let s=!0,o=!0;e.descriptions.forEach((function(t){s||(a(r,t,o),o=!1),s=!1}));const g=t.append("line").attr("x1",(0,d.D7)().state.padding).attr("y1",(0,d.D7)().state.padding+n+(0,d.D7)().state.dividerMargin/2).attr("y2",(0,d.D7)().state.padding+n+(0,d.D7)().state.dividerMargin/2).attr("class","descr-divider"),c=r.node().getBBox(),p=Math.max(c.width,i.width);return g.attr("x2",p+3*(0,d.D7)().state.padding),t.insert("rect",":first-child").attr("x",(0,d.D7)().state.padding).attr("y",(0,d.D7)().state.padding).attr("width",p+2*(0,d.D7)().state.padding).attr("height",c.height+n+2*(0,d.D7)().state.padding).attr("rx",(0,d.D7)().state.radius),t}),"drawDescrState"),m=(0,d.K2)(((t,e,a)=>{const i=(0,d.D7)().state.padding,n=2*(0,d.D7)().state.padding,r=t.node().getBBox(),s=r.width,o=r.x,g=t.append("text").attr("x",0).attr("y",(0,d.D7)().state.titleShift).attr("font-size",(0,d.D7)().state.fontSize).attr("class","state-title").text(e.id),c=g.node().getBBox().width+n;let p,h=Math.max(c,s);h===s&&(h+=n);const l=t.node().getBBox();e.doc,p=o-i,c>s&&(p=(s-h)/2+i),Math.abs(o-l.x)<i&&c>s&&(p=o-(c-s)/2);const x=1-(0,d.D7)().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+(0,d.D7)().state.textHeight+(0,d.D7)().state.titleShift+1).attr("rx","0"),g.attr("x",p+i),c<=s&&g.attr("x",o+(h-n)/2-c/2+i),t.insert("rect",":first-child").attr("x",p).attr("y",(0,d.D7)().state.titleShift-(0,d.D7)().state.textHeight-(0,d.D7)().state.padding).attr("width",h).attr("height",3*(0,d.D7)().state.textHeight).attr("rx",(0,d.D7)().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",(0,d.D7)().state.titleShift-(0,d.D7)().state.textHeight-(0,d.D7)().state.padding).attr("width",h).attr("height",l.height+3+2*(0,d.D7)().state.textHeight).attr("rx",(0,d.D7)().state.radius),t}),"addTitleAndBox"),b=(0,d.K2)((t=>(t.append("circle").attr("class","end-state-outer").attr("r",(0,d.D7)().state.sizeUnit+(0,d.D7)().state.miniPadding).attr("cx",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit+(0,d.D7)().state.miniPadding).attr("cy",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit+(0,d.D7)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,d.D7)().state.sizeUnit).attr("cx",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit+2).attr("cy",(0,d.D7)().state.padding+(0,d.D7)().state.sizeUnit+2))),"drawEndState"),B=(0,d.K2)(((t,e)=>{let a=(0,d.D7)().state.forkWidth,i=(0,d.D7)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,d.D7)().state.padding).attr("y",(0,d.D7)().state.padding)}),"drawForkJoinState"),k=(0,d.K2)(((t,e,a,i)=>{let n=0;const r=i.append("text");r.style("text-anchor","start"),r.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>");s=s.replace(/\n/g,"<br/>");const o=s.split(d.Y2.lineBreakRegex);let g=1.25*(0,d.D7)().state.noteMargin;for(const c of o){const t=c.trim();if(t.length>0){const i=r.append("tspan");if(i.text(t),0===g){g+=i.node().getBBox().height}n+=g,i.attr("x",e+(0,d.D7)().state.noteMargin),i.attr("y",a+n+1.25*(0,d.D7)().state.noteMargin)}}return{textWidth:r.node().getBBox().width,textHeight:n}}),"_drawLongText"),S=(0,d.K2)(((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",(0,d.D7)().state.padding),i=e.append("g"),{textWidth:n,textHeight:r}=k(t,0,0,i);return a.attr("height",r+2*(0,d.D7)().state.noteMargin),a.attr("width",n+2*(0,d.D7)().state.noteMargin),a}),"drawNote"),N=(0,d.K2)((function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&u(n),"end"===e.type&&b(n),"fork"!==e.type&&"join"!==e.type||B(n,e),"note"===e.type&&S(e.note.text,n),"divider"===e.type&&f(n),"default"===e.type&&0===e.descriptions.length&&y(n,e),"default"===e.type&&e.descriptions.length>0&&w(n,e);const r=n.node().getBBox();return i.width=r.width+2*(0,d.D7)().state.padding,i.height=r.height+2*(0,d.D7)().state.padding,D.set(a,i),i}),"drawState"),E=0,K=(0,d.K2)((function(t,e,a){const i=(0,d.K2)((function(t){switch(t){case n.iP.relationType.AGGREGATION:return"aggregation";case n.iP.relationType.EXTENSION:return"extension";case n.iP.relationType.COMPOSITION:return"composition";case n.iP.relationType.DEPENDENCY:return"dependency"}}),"getRelationType");e.points=e.points.filter((t=>!Number.isNaN(t.y)));const o=e.points,g=(0,s.n8j)().x((function(t){return t.x})).y((function(t){return t.y})).curve(s.qrM),c=t.append("path").attr("d",g(o)).attr("id","edge"+E).attr("class","transition");let p="";if((0,d.D7)().state.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),c.attr("marker-end","url("+p+"#"+i(n.iP.relationType.DEPENDENCY)+"End)"),void 0!==a.title){const i=t.append("g").attr("class","stateLabel"),{x:n,y:s}=r._K.calcLabelPosition(e.points),o=d.Y2.getRows(a.title);let g=0;const c=[];let p=0,h=0;for(let t=0;t<=o.length;t++){const e=i.append("text").attr("text-anchor","middle").text(o[t]).attr("x",n).attr("y",s+g),a=e.node().getBBox();if(p=Math.max(p,a.width),h=Math.min(h,a.x),d.Rm.info(a.x,n,s+g),0===g){const t=e.node().getBBox();g=t.height,d.Rm.info("Title height",g,s)}c.push(e)}let l=g*o.length;if(o.length>1){const t=(o.length-1)*g*.5;c.forEach(((e,a)=>e.attr("y",s+a*g-t))),l=g*o.length}const x=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",n-p/2-(0,d.D7)().state.padding/2).attr("y",s-l/2-(0,d.D7)().state.padding/2-3.5).attr("width",p+(0,d.D7)().state.padding).attr("height",l+(0,d.D7)().state.padding),d.Rm.info(x)}E++}),"drawEdge"),M={},v=(0,d.K2)((function(){}),"setConf"),R=(0,d.K2)((function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"insertMarkers"),z=(0,d.K2)((function(t,e,a,n){i=(0,d.D7)().state;const r=(0,d.D7)().securityLevel;let o;"sandbox"===r&&(o=(0,s.Ltv)("#i"+e));const g="sandbox"===r?(0,s.Ltv)(o.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),c="sandbox"===r?o.nodes()[0].contentDocument:document;d.Rm.debug("Rendering diagram "+t);const p=g.select(`[id='${e}']`);R(p);const h=n.db.getRootDoc();T(h,p,void 0,!1,g,c,n);const l=i.padding,x=p.node().getBBox(),D=x.width+2*l,u=x.height+2*l,f=1.75*D;(0,d.a$)(p,u,f,i.useMaxWidth),p.attr("viewBox",`${x.x-i.padding} ${x.y-i.padding} `+D+" "+u)}),"draw"),H=(0,d.K2)((t=>t?t.length*i.fontSizeFactor:1),"getLabelWidth"),T=(0,d.K2)(((t,e,a,n,r,s,c)=>{const p=new g.T({compound:!0,multigraph:!0});let h,l=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){l=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:i.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:i.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel((function(){return{}})),c.db.extract(t);const x=c.db.getStates(),D=c.db.getRelations(),u=Object.keys(x);for(const d of u){const t=x[d];let o;if(a&&(t.parentId=a),t.doc){let a=e.append("g").attr("id",t.id).attr("class","stateGroup");o=T(t.doc,a,t.id,!n,r,s,c);{a=m(a,t,n);let e=a.node().getBBox();o.width=e.width,o.height=e.height+i.padding/2,M[t.id]={y:i.compositTitleSize}}}else o=N(e,t,p);if(t.note){const a={descriptions:[],id:t.id+"-note",note:t.note,type:"note"},i=N(e,a,p);"left of"===t.note.position?(p.setNode(o.id+"-note",i),p.setNode(o.id,o)):(p.setNode(o.id,o),p.setNode(o.id+"-note",i)),p.setParent(o.id,o.id+"-group"),p.setParent(o.id+"-note",o.id+"-group")}else p.setNode(o.id,o)}d.Rm.debug("Count=",p.nodeCount(),p);let f=0;D.forEach((function(t){f++,d.Rm.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:H(t.title),height:i.labelHeight*d.Y2.getRows(t.title).length,labelpos:"c"},"id"+f)})),(0,o.Zp)(p),d.Rm.debug("Graph after layout",p.nodes());const y=e.node();p.nodes().forEach((function(t){if(void 0!==t&&void 0!==p.node(t)){d.Rm.warn("Node "+t+": "+JSON.stringify(p.node(t))),r.select("#"+y.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(M[t]?M[t].y:0)-p.node(t).height/2)+" )"),r.select("#"+y.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2);s.querySelectorAll("#"+y.id+" #"+t+" .divider").forEach((t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)}))}else d.Rm.debug("No Node "+t+": "+JSON.stringify(p.node(t)))}));let w=y.getBBox();p.edges().forEach((function(t){void 0!==t&&void 0!==p.edge(t)&&(d.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),K(e,p.edge(t),p.edge(t).relation))})),w=y.getBBox();const b={id:a||"root",label:a||"root",width:0,height:0};return b.width=w.width+2*i.padding,b.height=w.height+2*i.padding,d.Rm.debug("Doc rendered",b,p),b}),"renderDoc"),P={setConf:v,draw:z},L={parser:n.Zk,db:n.iP,renderer:P,styles:n.tM,init:(0,d.K2)((t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,n.iP.clear()}),"init")}}}]); \ No newline at end of file diff --git a/website/assets/js/9cb90f50.dda795db.js b/website/assets/js/9cb90f50.dda795db.js new file mode 100644 index 000000000..43917106a --- /dev/null +++ b/website/assets/js/9cb90f50.dda795db.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8937],{4264:(n,e,r)=>{"use strict";r.d(e,{L:()=>m});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var s=r(7119),o=r(6487),a=r(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=r(7020),u=r(4848);const d={};function m(n){let{source:e,data:m=d,options:p}=n;const g=e.maxPage&&"1"!==e.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(e,null,2)})}),(0,u.jsx)(o.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(m,null,2)})})]}),(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:g?c:i})}),(0,u.jsx)(o.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const n=g?r(5152).g:r(3314).S;return(0,u.jsx)(n,{source:e,data:m,options:p})}})})})]})]})}},3314:(n,e,r)=>{"use strict";r.d(e,{S:()=>o});var t=r(1999),s=r(4848);function o(n){let{source:e,data:r}=n;const{getComponents:o,Provider:a}=(0,t.O1)(e,r,{initialPage:"1"});return(0,s.jsx)(a,{children:(0,s.jsx)(t.R2,{components:o()})})}},5152:(n,e,r)=>{"use strict";r.d(e,{g:()=>a});var t=r(1999),s=r(6540),o=r(4848);function a(n){let{source:e,data:r,options:a}=n;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:m,compileControls:p}=(0,t.O1)(e,r,{initialPage:"1",...a}),[g,x]=(0,s.useState)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(m,{children:(0,o.jsx)(t.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,o.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,o.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,o.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const n=p();n.currentErrors?x(n):d()},children:"Suivant"})]}),g&&(0,o.jsx)(t.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),d()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},9501:(n,e,r)=>{"use strict";r.r(e),r.d(e,{assets:()=>u,contentTitle:()=>l,default:()=>p,frontMatter:()=>c,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"components/fields/input-number","title":"InputNumber","description":"Le composant InputNumber permet d\'afficher un champ num\xe9rique.","source":"@site/docs/components/fields/input-number.mdx","sourceDirName":"components/fields","slug":"/components/fields/input-number","permalink":"/Lunatic/docs/components/fields/input-number","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/input-number.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Input","permalink":"/Lunatic/docs/components/fields/input"},"next":{"title":"Textarea","permalink":"/Lunatic/docs/components/fields/textarea"}}');var s=r(4848),o=r(8453);const a=JSON.parse('{"$schema":"../../../lunatic-schema.json","components":[{"id":"kze792d8","componentType":"InputNumber","page":"1","min":0,"max":100000,"decimals":2,"label":{"value":"\\"\u27a1 1. \\" || \\"Input number (between 0 and 100 000)\\"","type":"VTL|MD"},"description":{"value":"\\"Description\\"","type":"VTL|MD"},"response":{"name":"NB"}}],"variables":[{"variableType":"COLLECTED","name":"NB","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=r(4264);const c={},l="InputNumber",u={},d=[];function m(n){const e={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...n.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"inputnumber",children:"InputNumber"})}),"\n",(0,s.jsxs)(e.p,{children:["Le composant ",(0,s.jsx)(e.strong,{children:"InputNumber"})," permet d'afficher un champ num\xe9rique."]}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.strong,{children:"min"}),", valeur minimale (au niveau HTML seulement, un contr\xf4le est n\xe9cessaire si on souhaite valider la longueur)"]}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.strong,{children:"max"}),", valeur maximale (au niveau HTML seulement, un contr\xf4le est n\xe9cessaire si on souhaite valider la longueur)"]}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.strong,{children:"decimals"}),", nombre de d\xe9cimales autoris\xe9es (au niveau HTML seulement, un contr\xf4le est n\xe9cessaire si on souhaite valider la longueur)"]}),"\n"]}),"\n","\n",(0,s.jsx)(i.L,{source:a})]})}function p(n={}){const{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,s.jsx)(e,{...n,children:(0,s.jsx)(m,{...n})}):m(n)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/a538f389.1458ef2d.js b/website/assets/js/a538f389.1458ef2d.js new file mode 100644 index 000000000..0c1135555 --- /dev/null +++ b/website/assets/js/a538f389.1458ef2d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7480],{2147:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"components/decorations/filter-description","title":"FilterDescription","description":"Le composant FilterDescription permet de d\'ajouter du contexte \xe0 un filtre. Cet \xe9l\xe9ment n\'a pas vocation \xe0 \xeatre utilis\xe9 dans la version web des formulaires et ne sera donc jamais retourn\xe9 dans la liste des composants.","source":"@site/docs/components/decorations/filter-description.mdx","sourceDirName":"components/decorations","slug":"/components/decorations/filter-description","permalink":"/Lunatic/docs/components/decorations/filter-description","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/decorations/filter-description.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Question","permalink":"/Lunatic/docs/components/decorations/question"},"next":{"title":"Champs","permalink":"/Lunatic/docs/category/champs"}}');var s=n(4848),r=n(8453);const i={},c="FilterDescription",a={},d=[{value:"Pourquoi ?",id:"pourquoi-",level:2}];function l(e){const t={blockquote:"blockquote",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"filterdescription",children:"FilterDescription"})}),"\n",(0,s.jsxs)(t.p,{children:["Le composant ",(0,s.jsx)(t.strong,{children:"FilterDescription"})," permet de d'ajouter du contexte \xe0 un filtre. Cet \xe9l\xe9ment n'a pas vocation \xe0 \xeatre utilis\xe9 dans la version web des formulaires et ne sera donc jamais retourn\xe9 dans la liste des composants."]}),"\n",(0,s.jsx)(t.h2,{id:"pourquoi-",children:"Pourquoi ?"}),"\n",(0,s.jsxs)(t.p,{children:["Dans le contexte d'une ",(0,s.jsx)(t.strong,{children:"enqu\xeate papier"})," ce champ permet d'indiquer \xe0 l'utilisateur la marche \xe0 suivre en fonction de sa r\xe9ponse \xe0 une question pr\xe9c\xe9dente. Par exemple :"]}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Si vous avez plus de 18 ans, passez \xe0 la page 3"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Mais dans le cas d'une version interactive cette pr\xe9cision n'a pas lieu d'\xeatre, car le syst\xe8me va automatiquement faire la redirection."})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>i,x:()=>c});var o=n(6540);const s={},r=o.createContext(s);function i(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/a66aaf29.19a4ff77.js b/website/assets/js/a66aaf29.19a4ff77.js new file mode 100644 index 000000000..5ea42469f --- /dev/null +++ b/website/assets/js/a66aaf29.19a4ff77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5711],{7472:s=>{s.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"Composants","slug":"/category/composants","permalink":"/Lunatic/docs/category/composants","sidebar":"docs","navigation":{"previous":{"title":"Personnalisation","permalink":"/Lunatic/docs/components/personnalisation"},"next":{"title":"Propri\xe9t\xe9s de base","permalink":"/Lunatic/docs/components/base"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/a7456010.5f9bbb01.js b/website/assets/js/a7456010.5f9bbb01.js new file mode 100644 index 000000000..4e5dd1229 --- /dev/null +++ b/website/assets/js/a7456010.5f9bbb01.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1235],{8552:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/website/assets/js/a7bd4aaa.4a47c66d.js b/website/assets/js/a7bd4aaa.4a47c66d.js new file mode 100644 index 000000000..83b68c67f --- /dev/null +++ b/website/assets/js/a7bd4aaa.4a47c66d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7098],{298:(n,e,s)=>{s.r(e),s.d(e,{default:()=>d});s(6540);var r=s(3523),o=s(8328),t=s(8875),c=s(2831),i=s(886),u=s(4848);function a(n){const{version:e}=n;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.A,{version:e.version,tag:(0,o.k)(e.pluginId,e.version)}),(0,u.jsx)(r.be,{children:e.noIndex&&(0,u.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})]})}function l(n){const{version:e,route:s}=n;return(0,u.jsx)(r.e3,{className:e.className,children:(0,u.jsx)(t.n,{version:e,children:(0,c.v)(s.routes)})})}function d(n){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a,{...n}),(0,u.jsx)(l,{...n})]})}}}]); \ No newline at end of file diff --git a/website/assets/js/a94703ab.5bad7cad.js b/website/assets/js/a94703ab.5bad7cad.js new file mode 100644 index 000000000..88b249601 --- /dev/null +++ b/website/assets/js/a94703ab.5bad7cad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9048],{350:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var a=n(6540),o=n(8215),i=n(3523),s=n(4717),l=n(5246),r=n(5779),c=n(2032),d=n(3622),u=n(4232);const m={backToTopButton:"backToTopButton_sjWU",backToTopButtonShow:"backToTopButtonShow_xfvO"};var b=n(4848);function h(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,o]=(0,a.useState)(!1),i=(0,a.useRef)(!1),{startScroll:s,cancelScroll:l}=(0,d.gk)();return(0,d.Mq)(((e,n)=>{let{scrollY:a}=e;const s=n?.scrollY;s&&(i.current?i.current=!1:a>=s?(l(),o(!1)):a<t?o(!1):a+window.innerHeight<document.documentElement.scrollHeight&&o(!0))})),(0,u.$)((e=>{e.location.hash&&(i.current=!0,o(!1))})),{shown:n,scrollToTop:()=>s(0)}}({threshold:300});return(0,b.jsx)("button",{"aria-label":(0,c.T)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,o.A)("clean-btn",s.G.common.backToTopButton,m.backToTopButton,e&&m.backToTopButtonShow),type:"button",onClick:t})}var p=n(4459),x=n(6347),f=n(9607),j=n(1436),v=n(3360);function _(e){return(0,b.jsx)("svg",{width:"20",height:"20","aria-hidden":"true",...e,children:(0,b.jsxs)("g",{fill:"#7a7a7a",children:[(0,b.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,b.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})})}const A={collapseSidebarButton:"collapseSidebarButton_PEFL",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_kv0_"};function g(e){let{onClick:t}=e;return(0,b.jsx)("button",{type:"button",title:(0,c.T)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,c.T)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,o.A)("button button--secondary button--outline",A.collapseSidebarButton),onClick:t,children:(0,b.jsx)(_,{className:A.collapseSidebarButtonIcon})})}var k=n(2459),C=n(5302);const S=Symbol("EmptyContext"),T=a.createContext(S);function N(e){let{children:t}=e;const[n,o]=(0,a.useState)(null),i=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:o})),[n]);return(0,b.jsx)(T.Provider,{value:i,children:t})}var I=n(936),B=n(6707),y=n(7880),w=n(4753);function L(e){let{collapsed:t,categoryLabel:n,onClick:a}=e;return(0,b.jsx)("button",{"aria-label":t?(0,c.T)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:n}):(0,c.T)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:n}),"aria-expanded":!t,type:"button",className:"clean-btn menu__caret",onClick:a})}function E(e){let{item:t,onItemClick:n,activePath:i,level:r,index:c,...d}=e;const{items:u,label:m,collapsible:h,className:p,href:x}=t,{docs:{sidebar:{autoCollapseCategories:f}}}=(0,j.p)(),v=function(e){const t=(0,w.A)();return(0,a.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.Nr)(e):void 0),[e,t])}(t),_=(0,l.w8)(t,i),A=(0,B.ys)(x,i),{collapsed:g,setCollapsed:k}=(0,I.u)({initialState:()=>!!h&&(!_&&t.collapsed)}),{expandedItem:N,setExpandedItem:E}=function(){const e=(0,a.useContext)(T);if(e===S)throw new C.dV("DocSidebarItemsExpandedStateProvider");return e}(),M=function(e){void 0===e&&(e=!g),E(e?null:c),k(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:o}=e;const i=(0,C.ZC)(t);(0,a.useEffect)((()=>{t&&!i&&n&&o(!1)}),[t,i,n,o])}({isActive:_,collapsed:g,updateCollapsed:M}),(0,a.useEffect)((()=>{h&&null!=N&&N!==c&&f&&k(!0)}),[h,N,c,k,f]),(0,b.jsxs)("li",{className:(0,o.A)(s.G.docs.docSidebarItemCategory,s.G.docs.docSidebarItemCategoryLevel(r),"menu__list-item",{"menu__list-item--collapsed":g},p),children:[(0,b.jsxs)("div",{className:(0,o.A)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":A}),children:[(0,b.jsx)(y.A,{className:(0,o.A)("menu__link",{"menu__link--sublist":h,"menu__link--sublist-caret":!x&&h,"menu__link--active":_}),onClick:h?e=>{n?.(t),x?M(!1):(e.preventDefault(),M())}:()=>{n?.(t)},"aria-current":A?"page":void 0,role:h&&!x?"button":void 0,"aria-expanded":h&&!x?!g:void 0,href:h?v??"#":v,...d,children:m}),x&&h&&(0,b.jsx)(L,{collapsed:g,categoryLabel:m,onClick:e=>{e.preventDefault(),M()}})]}),(0,b.jsx)(I.N,{lazy:!0,as:"ul",className:"menu__list",collapsed:g,children:(0,b.jsx)(U,{items:u,tabIndex:g?-1:0,onItemClick:n,activePath:i,level:r+1})})]})}var M=n(7056),H=n(8584);const G={menuExternalLink:"menuExternalLink_NmtK"};function W(e){let{item:t,onItemClick:n,activePath:a,level:i,index:r,...c}=e;const{href:d,label:u,className:m,autoAddBaseUrl:h}=t,p=(0,l.w8)(t,a),x=(0,M.A)(d);return(0,b.jsx)("li",{className:(0,o.A)(s.G.docs.docSidebarItemLink,s.G.docs.docSidebarItemLinkLevel(i),"menu__list-item",m),children:(0,b.jsxs)(y.A,{className:(0,o.A)("menu__link",!x&&G.menuExternalLink,{"menu__link--active":p}),autoAddBaseUrl:h,"aria-current":p?"page":void 0,to:d,...x&&{onClick:n?()=>n(t):void 0},...c,children:[u,!x&&(0,b.jsx)(H.A,{})]})},u)}const P={menuHtmlItem:"menuHtmlItem_M9Kj"};function R(e){let{item:t,level:n,index:a}=e;const{value:i,defaultStyle:l,className:r}=t;return(0,b.jsx)("li",{className:(0,o.A)(s.G.docs.docSidebarItemLink,s.G.docs.docSidebarItemLinkLevel(n),l&&[P.menuHtmlItem,"menu__list-item"],r),dangerouslySetInnerHTML:{__html:i}},a)}function D(e){let{item:t,...n}=e;switch(t.type){case"category":return(0,b.jsx)(E,{item:t,...n});case"html":return(0,b.jsx)(R,{item:t,...n});default:return(0,b.jsx)(W,{item:t,...n})}}function F(e){let{items:t,...n}=e;const a=(0,l.Y)(t,n.activePath);return(0,b.jsx)(N,{children:a.map(((e,t)=>(0,b.jsx)(D,{item:e,index:t,...n},t)))})}const U=(0,a.memo)(F),V={menu:"menu_SIkG",menuWithAnnouncementBar:"menuWithAnnouncementBar_GW3s"};function Y(e){let{path:t,sidebar:n,className:i}=e;const l=function(){const{isActive:e}=(0,k.M)(),[t,n]=(0,a.useState)(e);return(0,d.Mq)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return(0,b.jsx)("nav",{"aria-label":(0,c.T)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,o.A)("menu thin-scrollbar",V.menu,l&&V.menuWithAnnouncementBar,i),children:(0,b.jsx)("ul",{className:(0,o.A)(s.G.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(U,{items:n,activePath:t,level:1})})})}const K="sidebar_njMd",z="sidebarWithHideableNavbar_wUlq",q="sidebarHidden_VK0M",O="sidebarLogo_isFc";function J(e){let{path:t,sidebar:n,onCollapse:a,isHidden:i}=e;const{navbar:{hideOnScroll:s},docs:{sidebar:{hideable:l}}}=(0,j.p)();return(0,b.jsxs)("div",{className:(0,o.A)(K,s&&z,i&&q),children:[s&&(0,b.jsx)(v.A,{tabIndex:-1,className:O}),(0,b.jsx)(Y,{path:t,sidebar:n}),l&&(0,b.jsx)(g,{onClick:a})]})}const Q=a.memo(J);var X=n(7078),Z=n(1227);const $=e=>{let{sidebar:t,path:n}=e;const a=(0,Z.M)();return(0,b.jsx)("ul",{className:(0,o.A)(s.G.docs.docSidebarMenu,"menu__list"),children:(0,b.jsx)(U,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&a.toggle(),"link"===e.type&&a.toggle()},level:1})})};function ee(e){return(0,b.jsx)(X.GX,{component:$,props:e})}const te=a.memo(ee);function ne(e){const t=(0,f.l)(),n="desktop"===t||"ssr"===t,a="mobile"===t;return(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(Q,{...e}),a&&(0,b.jsx)(te,{...e})]})}const ae={expandButton:"expandButton_TmdG",expandButtonIcon:"expandButtonIcon_i1dp"};function oe(e){let{toggleSidebar:t}=e;return(0,b.jsx)("div",{className:ae.expandButton,title:(0,c.T)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,c.T)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t,children:(0,b.jsx)(_,{className:ae.expandButtonIcon})})}const ie={docSidebarContainer:"docSidebarContainer_YfHR",docSidebarContainerHidden:"docSidebarContainerHidden_DPk8",sidebarViewport:"sidebarViewport_aRkj"};function se(e){let{children:t}=e;const n=(0,r.t)();return(0,b.jsx)(a.Fragment,{children:t},n?.name??"noSidebar")}function le(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}=e;const{pathname:l}=(0,x.zy)(),[r,c]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{r&&c(!1),!r&&(0,p.O)()&&c(!0),i((e=>!e))}),[i,r]);return(0,b.jsx)("aside",{className:(0,o.A)(s.G.docs.docSidebarContainer,ie.docSidebarContainer,n&&ie.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(ie.docSidebarContainer)&&n&&c(!0)},children:(0,b.jsx)(se,{children:(0,b.jsxs)("div",{className:(0,o.A)(ie.sidebarViewport,r&&ie.sidebarViewportHidden),children:[(0,b.jsx)(ne,{sidebar:t,path:l,onCollapse:d,isHidden:r}),r&&(0,b.jsx)(oe,{toggleSidebar:d})]})})})}const re={docMainContainer:"docMainContainer_TBSr",docMainContainerEnhanced:"docMainContainerEnhanced_lQrH",docItemWrapperEnhanced:"docItemWrapperEnhanced_JWYK"};function ce(e){let{hiddenSidebarContainer:t,children:n}=e;const a=(0,r.t)();return(0,b.jsx)("main",{className:(0,o.A)(re.docMainContainer,(t||!a)&&re.docMainContainerEnhanced),children:(0,b.jsx)("div",{className:(0,o.A)("container padding-top--md padding-bottom--lg",re.docItemWrapper,t&&re.docItemWrapperEnhanced),children:n})})}const de={docRoot:"docRoot_UBD9",docsWrapper:"docsWrapper_hBAB"};function ue(e){let{children:t}=e;const n=(0,r.t)(),[o,i]=(0,a.useState)(!1);return(0,b.jsxs)("div",{className:de.docsWrapper,children:[(0,b.jsx)(h,{}),(0,b.jsxs)("div",{className:de.docRoot,children:[n&&(0,b.jsx)(le,{sidebar:n.items,hiddenSidebarContainer:o,setHiddenSidebarContainer:i}),(0,b.jsx)(ce,{hiddenSidebarContainer:o,children:t})]})]})}var me=n(9825);function be(e){const t=(0,l.B5)(e);if(!t)return(0,b.jsx)(me.A,{});const{docElement:n,sidebarName:a,sidebarItems:c}=t;return(0,b.jsx)(i.e3,{className:(0,o.A)(s.G.page.docsDocPage),children:(0,b.jsx)(r.V,{name:a,items:c,children:(0,b.jsx)(ue,{children:n})})})}},9825:(e,t,n)=>{n.d(t,{A:()=>l});n(6540);var a=n(8215),o=n(2032),i=n(8445),s=n(4848);function l(e){let{className:t}=e;return(0,s.jsx)("main",{className:(0,a.A)("container margin-vert--xl",t),children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,s.jsx)(i.A,{as:"h1",className:"hero__title",children:(0,s.jsx)(o.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,s.jsx)("p",{children:(0,s.jsx)(o.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]); \ No newline at end of file diff --git a/website/assets/js/a976e8d8.4a0dab01.js b/website/assets/js/a976e8d8.4a0dab01.js new file mode 100644 index 000000000..ab3d41d0c --- /dev/null +++ b/website/assets/js/a976e8d8.4a0dab01.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2929],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>d});const o={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=t(7119),a=t(6487),s=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=t(7020),c=t(4848);const p={};function d(e){let{source:n,data:d=p,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,c.jsxs)("div",{className:o.FormExample,children:[(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.A,{value:"source",label:"Source",default:!0,children:(0,c.jsx)(s.A,{language:"json",className:o.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,c.jsx)(a.A,{value:"data",label:"Data",children:(0,c.jsx)(s.A,{language:"json",className:o.FormExampleCode,children:JSON.stringify(d,null,2)})})]}),(0,c.jsxs)(r.A,{children:[(0,c.jsx)(a.A,{value:"code",label:"Code",children:(0,c.jsx)(s.A,{language:"tsx",className:o.FormExampleCode,children:g?l:i})}),(0,c.jsx)(a.A,{value:"render",label:"Rendu",default:!0,children:(0,c.jsx)("div",{className:o.FormExampleRender,children:(0,c.jsx)(u.A,{fallback:(0,c.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?t(5152).g:t(3314).S;return(0,c.jsx)(e,{source:n,data:d,options:m})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>a});var o=t(1999),r=t(4848);function a(e){let{source:n,data:t}=e;const{getComponents:a,Provider:s}=(0,o.O1)(n,t,{initialPage:"1"});return(0,r.jsx)(s,{children:(0,r.jsx)(o.R2,{components:a()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>s});var o=t(1999),r=t(6540),a=t(4848);function s(e){let{source:n,data:t,options:s}=e;const{getComponents:i,isLastPage:l,isFirstPage:u,goPreviousPage:c,goNextPage:p,Provider:d,compileControls:m}=(0,o.O1)(n,t,{initialPage:"1",...s}),[g,E]=(0,r.useState)();return(0,a.jsxs)("div",{children:[(0,a.jsx)(d,{children:(0,a.jsx)(o.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,a.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,a.jsx)("button",{className:"button button--primary",disabled:u,onClick:c,children:"Pr\xe9c\xe9dent"}),(0,a.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?E(e):p()},children:"Suivant"})]}),g&&(0,a.jsx)(o.I1,{errors:g.currentErrors,goNext:()=>{E(void 0),p()},onClose:()=>{E(void 0)},isCritical:g.isCritical})]})}},3267:(e,n,t)=>{"use strict";t.d(n,{e:()=>r});var o=t(4848);function r(e){let{type:n}=e;const t=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,o.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:t,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,o.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},4603:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>c,default:()=>g,frontMatter:()=>u,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"components/aggregators/roundabout","title":"Roundabout","description":"Ce composant se comporte comme une boucle avec une page carrefour qui permet de sauter \xe0 n\'importe quelle it\xe9ration.","source":"@site/docs/components/aggregators/roundabout.mdx","sourceDirName":"components/aggregators","slug":"/components/aggregators/roundabout","permalink":"/Lunatic/docs/components/aggregators/roundabout","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/aggregators/roundabout.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"RosterForLoop","permalink":"/Lunatic/docs/components/aggregators/rosterForLoop"},"next":{"title":"PairwiseLinks","permalink":"/Lunatic/docs/components/aggregators/pairwise"}}');var r=t(4848),a=t(8453),s=t(4264),i=t(3267);const l=JSON.parse('{"maxPage":"4","components":[{"id":"how","componentType":"InputNumber","mandatory":false,"page":"1","min":1,"max":10,"decimals":0,"label":{"value":"\\"Combien de personnes vivent habituellement \xe0 votre adresse ?\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"NB_HAB"}},{"id":"loop","componentType":"Loop","page":"2","depth":1,"paginatedLoop":false,"conditionFilter":{"value":"true","type":"VTL"},"loopDependencies":["NHAB"],"lines":{"min":{"value":"NB_HAB","type":"VTL"},"max":{"value":"NB_HAB","type":"VTL"}},"components":[{"id":"prenom","componentType":"Input","mandatory":false,"maxLength":20,"label":{"value":"\\"Pr\xe9nom\\"))","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"PRENOMS"}},{"id":"age","componentType":"InputNumber","maxLength":3,"label":{"value":"\\"Age\\"))","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"AGE"}}]},{"id":"roundabout","componentType":"Roundabout","page":"3","conditionFilter":{"value":"true","type":"VTL"},"iterations":{"value":"NB_HAB","type":"VTL"},"label":{"value":"\\"Libell\xe9 du rondpoint\\"","type":"VTL"},"locked":true,"progressVariable":"PROGRESS","item":{"label":{"value":"\\"Questions de \\" || PRENOMS","type":"VTL"},"description":{"value":"if AGE > 18 then \\"Aller aux question destin\xe9es \xe0 \\" || PRENOMS else PRENOMS || \\" n\'est pas majeur, il/elle n\'a pas \xe0 r\xe9pondre aux questions\\"","type":"VTL"},"disabled":{"value":"AGE < 18","type":"VTL"}},"controls":[],"components":[{"id":"radio","componentType":"Radio","mandatory":false,"page":"3.1","label":{"value":"\\"Connaissez-vous le recensement de la population ?\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"options":[{"value":"1","label":{"value":"\\"oui\\"","type":"VTL|MD"}},{"value":"2","label":{"value":"\\"non\\"","type":"VTL|MD"}}],"response":{"name":"KNOWREC"}},{"id":"jsygk7m7","componentType":"Subsequence","page":"3.2","label":{"value":"\\"Deuxi\xe8me page de questions pour \\"|| PRENOMS","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"}},{"id":"sexe","componentType":"Radio","page":"3.2","label":{"value":"\\"Sexe\\"","type":"VTL"},"conditionFilter":{"value":"true","type":"VTL"},"options":[{"value":"1","label":{"value":"\\"Homme\\"","type":"VTL|MD"}},{"value":"2","label":{"value":"\\"Femme\\"","type":"VTL|MD"}}],"response":{"name":"SEXE"}},{"id":"jsygk7m7","componentType":"Subsequence","page":"3.3","label":{"value":"\\"Troisi\xe8me page de questions \\" || PRENOMS","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"}},{"id":"kmno1n7m","componentType":"Input","maxLength":30,"page":"3.3","label":{"value":"\\"Dites quelque chose.\\"))","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"SOMETHING"}}]},{"id":"seq","componentType":"Sequence","label":{"value":"\\"Merci !\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"page":"4"}],"variables":[{"variableType":"COLLECTED","name":"NB_HAB","values":{"PREVIOUS":null,"COLLECTED":2,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"SOMETHING","values":{"PREVIOUS":[],"COLLECTED":[],"FORCED":[],"EDITED":[],"INPUTTED":[]}},{"variableType":"COLLECTED","name":"AGE","values":{"PREVIOUS":null,"COLLECTED":[15,15],"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"SEXE","values":{"PREVIOUS":[],"COLLECTED":[],"FORCED":[],"EDITED":[],"INPUTTED":[]}},{"variableType":"COLLECTED","name":"PRENOMS","values":{"PREVIOUS":null,"COLLECTED":["Fanny","Ines"],"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"KNOWREC","values":{"PREVIOUS":[],"COLLECTED":[],"FORCED":[],"EDITED":[],"INPUTTED":[]}},{"variableType":"COLLECTED","name":"PROGRESS","values":{"PREVIOUS":[],"COLLECTED":[],"FORCED":[],"EDITED":[],"INPUTTED":[]}},{"variableType":"CALCULATED","name":"PRENOMREF","expression":{"value":"first_value(PRENOMS over())","type":"VTL"},"bindingDependencies":["PRENOMS"],"inFilter":"true"},{"variableType":"CALCULATED","name":"COMPLETE","expression":{"value":"not(isnull(KNOWREC)) and not(isnull(SEXE)) and not(isnull(SOMETHING))","type":"VTL"},"bindingDependencies":["KNOWREC","SEXE","SOMETHING"],"shapeFrom":"PRENOMS","inFilter":"true"},{"variableType":"CALCULATED","name":"PARTIAL","expression":{"value":"not(isnull(KNOWREC)) or not(isnull(SEXE)) or not(isnull(SOMETHING))","type":"VTL"},"bindingDependencies":["KNOWREC","SEXE","SOMETHING"],"shapeFrom":"PRENOMS","inFilter":"true"}],"resizing":{"NB_HAB":{"size":"NB_HAB","variables":["PRENOMS","AGE","SEXE","SOMETHING","DATNAIS"]}}}'),u={},c="Roundabout",p={},d=[{value:"Navigation",id:"navigation",level:2}];function m(e){const n={h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"roundabout",children:"Roundabout"})}),"\n",(0,r.jsx)(n.p,{children:"Ce composant se comporte comme une boucle avec une page carrefour qui permet de sauter \xe0 n'importe quelle it\xe9ration."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"components"}),", tableau contenant les composants enfant \xe0 cette boucle"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"iterations"}),", expression VTL permettant de calculer le nombre d'it\xe9rations"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"expressions"}),", un objet contenant les diff\xe9rents libell\xe9s \xe0 afficher pour chaque \xe9l\xe9ment du rond point","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"unnecessary"}),', condition d\'affichage du libell\xe9 "Non concern\xe9" sur le bouton (expression VTL)']}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"complete"}),', condition d\'affichage du libell\xe9 "Compl\xe9t\xe9" sur le bouton (expression VTL)']}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"partial"}),', condition d\'affichage du libell\xe9 "Modifier" sur le bouton (expression VTL)']}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"label"}),", libell\xe9 \xe0 afficher au dessus du bouton (expression VTL)"]}),"\n"]}),"\n"]}),"\n"]}),"\n","\n",(0,r.jsx)(i.e,{type:"ComponentRoundaboutType"}),"\n","\n",(0,r.jsx)(s.L,{source:l,options:{initialPage:"3"}}),"\n",(0,r.jsx)(n.h2,{id:"navigation",children:"Navigation"}),"\n",(0,r.jsx)(n.p,{children:"Si le rond-point ne contient qu'un seul \xe9l\xe9ment, il se comporte alors comme une boucle pagin\xe9e. En revanche s'il a plus d'un \xe9l\xe9ment certains comportement changent par rapport \xe0 une boucle pagin\xe9e."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Lors de l'arriv\xe9e sur le rond-point, on n'est pas redirig\xe9 automatiquement sur la premi\xe8re it\xe9ration. On propose \xe0 l'utilisateur de choisir l'it\xe9ration sur laquelle il souhaite aller."}),"\n",(0,r.jsx)(n.li,{children:"\xc0 la fin d'une s\xe9quence, on n'est pas amen\xe9 \xe0 l'it\xe9ration suivante, on revient \xe0 la page d'accueil du rond-point."}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Ce comportement fonctionne dans les 2 sens de navigation."})]})}function g(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/aba21aa0.ed09cce9.js b/website/assets/js/aba21aa0.ed09cce9.js new file mode 100644 index 000000000..8a8754959 --- /dev/null +++ b/website/assets/js/aba21aa0.ed09cce9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5742],{7093:s=>{s.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/website/assets/js/af8b7c6f.347fcdef.js b/website/assets/js/af8b7c6f.347fcdef.js new file mode 100644 index 000000000..10488405b --- /dev/null +++ b/website/assets/js/af8b7c6f.347fcdef.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4762],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>p});const r={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=t(7119),s=t(6487),a=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=t(7020),l=t(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,l.jsxs)("div",{className:r.FormExample,children:[(0,l.jsxs)(o.A,{children:[(0,l.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,l.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,l.jsx)(s.A,{value:"data",label:"Data",children:(0,l.jsx)(a.A,{language:"json",className:r.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,l.jsxs)(o.A,{children:[(0,l.jsx)(s.A,{value:"code",label:"Code",children:(0,l.jsx)(a.A,{language:"tsx",className:r.FormExampleCode,children:g?c:i})}),(0,l.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,l.jsx)("div",{className:r.FormExampleRender,children:(0,l.jsx)(u.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?t(5152).g:t(3314).S;return(0,l.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>s});var r=t(1999),o=t(4848);function s(e){let{source:n,data:t}=e;const{getComponents:s,Provider:a}=(0,r.O1)(n,t,{initialPage:"1"});return(0,o.jsx)(a,{children:(0,o.jsx)(r.R2,{components:s()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>a});var r=t(1999),o=t(6540),s=t(4848);function a(e){let{source:n,data:t,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:u,goPreviousPage:l,goNextPage:d,Provider:p,compileControls:m}=(0,r.O1)(n,t,{initialPage:"1",...a}),[g,x]=(0,o.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(r.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:u,onClick:l,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=m();e.currentErrors?x(e):d()},children:"Suivant"})]}),g&&(0,s.jsx)(r.I1,{errors:g.currentErrors,goNext:()=>{x(void 0),d()},onClose:()=>{x(void 0)},isCritical:g.isCritical})]})}},6463:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>u,default:()=>m,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"components/decorations/sequence","title":"Sequence & SubSequence","description":"Les composants Sequence et SubSequence permettent de d\xe9marrer une s\xe9quence de question et n\'ont pour but de n\'afficher que des informations textuelles \xe0 l\'utilisateur (\xe9quivalent s\xe9mantique \xe0 des titres de premiers et second niveau).","source":"@site/docs/components/decorations/sequence.mdx","sourceDirName":"components/decorations","slug":"/components/decorations/sequence","permalink":"/Lunatic/docs/components/decorations/sequence","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/decorations/sequence.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Balisage","permalink":"/Lunatic/docs/category/balisage"},"next":{"title":"Question","permalink":"/Lunatic/docs/components/decorations/question"}}');var o=t(4848),s=t(8453);const a=JSON.parse('{"$schema":"../../../lunatic-schema.json","maxPage":"1","components":[{"id":"c1","componentType":"Sequence","page":"1","conditionFilter":{"value":"true","type":"VTL"},"label":{"value":"\\"Sequence example\\"","type":"VTL|MD"}},{"id":"c2","componentType":"Subsequence","page":"1","conditionFilter":{"value":"true","type":"VTL"},"label":{"value":"\\"Subsequence example\\"","type":"VTL|MD"}}],"variables":[]}');var i=t(4264);const c={},u="Sequence & SubSequence",l={},d=[];function p(e){const n={h1:"h1",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"sequence--subsequence",children:"Sequence & SubSequence"})}),"\n",(0,o.jsxs)(n.p,{children:["Les composants ",(0,o.jsx)(n.strong,{children:"Sequence"})," et ",(0,o.jsx)(n.strong,{children:"SubSequence"})," permettent de d\xe9marrer une s\xe9quence de question et n'ont pour but de n'afficher que des informations textuelles \xe0 l'utilisateur (\xe9quivalent s\xe9mantique \xe0 des titres de premiers et second niveau)."]}),"\n","\n",(0,o.jsx)(i.L,{source:a})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/b6ce7557.eebc1147.js b/website/assets/js/b6ce7557.eebc1147.js new file mode 100644 index 000000000..76919dbfc --- /dev/null +++ b/website/assets/js/b6ce7557.eebc1147.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1215],{5623:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>l,contentTitle:()=>t,default:()=>a,frontMatter:()=>i,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"api/classes/VTLMissingDependency","title":"Class: VTLMissingDependency","description":"Extends","source":"@site/docs/api/classes/VTLMissingDependency.md","sourceDirName":"api/classes","slug":"/api/classes/VTLMissingDependency","permalink":"/Lunatic/docs/api/classes/VTLMissingDependency","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/classes/VTLMissingDependency.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"VTLMissingDependencies","permalink":"/Lunatic/docs/api/classes/VTLMissingDependencies"},"next":{"title":"LunaticExtraProps","permalink":"/Lunatic/docs/api/interfaces/LunaticExtraProps"}}');var c=r(4848),d=r(8453);const i={},t="Class: VTLMissingDependency",l={},o=[{value:"Extends",id:"extends",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new VTLMissingDependency()",id:"new-vtlmissingdependency",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2},{value:"captureStackTrace()",id:"capturestacktrace",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.header,{children:(0,c.jsx)(s.h1,{id:"class-vtlmissingdependency",children:"Class: VTLMissingDependency"})}),"\n",(0,c.jsx)(s.h2,{id:"extends",children:"Extends"}),"\n",(0,c.jsxs)(s.ul,{children:["\n",(0,c.jsx)(s.li,{children:(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})})}),"\n"]}),"\n",(0,c.jsx)(s.h2,{id:"constructors",children:"Constructors"}),"\n",(0,c.jsx)(s.h3,{id:"new-vtlmissingdependency",children:"new VTLMissingDependency()"}),"\n",(0,c.jsxs)(s.blockquote,{children:["\n",(0,c.jsxs)(s.p,{children:[(0,c.jsx)(s.strong,{children:"new VTLMissingDependency"}),"(",(0,c.jsx)(s.code,{children:"expression"}),", ",(0,c.jsx)(s.code,{children:"variableName"}),"): ",(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependency",children:(0,c.jsx)(s.code,{children:"VTLMissingDependency"})})]}),"\n"]}),"\n",(0,c.jsx)(s.h4,{id:"parameters",children:"Parameters"}),"\n",(0,c.jsxs)(s.table,{children:[(0,c.jsx)(s.thead,{children:(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.th,{children:"Parameter"}),(0,c.jsx)(s.th,{children:"Type"})]})}),(0,c.jsxs)(s.tbody,{children:[(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"expression"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"variableName"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})})]})]})]}),"\n",(0,c.jsx)(s.h4,{id:"returns",children:"Returns"}),"\n",(0,c.jsx)(s.p,{children:(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependency",children:(0,c.jsx)(s.code,{children:"VTLMissingDependency"})})}),"\n",(0,c.jsx)(s.h4,{id:"overrides",children:"Overrides"}),"\n",(0,c.jsxs)(s.p,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#constructors",children:(0,c.jsx)(s.code,{children:"constructor"})})]}),"\n",(0,c.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,c.jsx)(s.p,{children:(0,c.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L20",children:"src/use-lunatic/commons/variables/errors.ts:20"})}),"\n",(0,c.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,c.jsxs)(s.table,{children:[(0,c.jsx)(s.thead,{children:(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.th,{children:"Property"}),(0,c.jsx)(s.th,{children:"Modifier"}),(0,c.jsx)(s.th,{children:"Type"}),(0,c.jsx)(s.th,{children:"Description"}),(0,c.jsx)(s.th,{children:"Inherited from"}),(0,c.jsx)(s.th,{children:"Defined in"})]})}),(0,c.jsxs)(s.tbody,{children:[(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"cause?"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"public"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"unknown"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"cause"})]}),(0,c.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es2022.error.d.ts:24"})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"expression"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"readonly"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"expression"})]}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L21",children:"src/use-lunatic/commons/variables/errors.ts:21"})})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"message"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"public"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"message"})]}),(0,c.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1077"})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"name"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"public"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"name"})]}),(0,c.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1076"})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"stack?"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"public"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"stack"})]}),(0,c.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1078"})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"variableName"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"readonly"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"string"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L22",children:"src/use-lunatic/commons/variables/errors.ts:22"})})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"prepareStackTrace?"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"static"})}),(0,c.jsxs)(s.td,{children:["(",(0,c.jsx)(s.code,{children:"err"}),": ",(0,c.jsx)(s.code,{children:"Error"}),", ",(0,c.jsx)(s.code,{children:"stackTraces"}),": ",(0,c.jsx)(s.code,{children:"CallSite"}),"[]) => ",(0,c.jsx)(s.code,{children:"any"})]}),(0,c.jsxs)(s.td,{children:["Optional override for formatting stack traces ",(0,c.jsx)(s.strong,{children:"See"})," ",(0,c.jsx)(s.a,{href:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces",children:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces"})]}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"prepareStackTrace"})]}),(0,c.jsx)(s.td,{children:"node_modules/@types/node/globals.d.ts:143"})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"stackTraceLimit"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"static"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"number"})}),(0,c.jsx)(s.td,{children:"-"}),(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.code,{children:"stackTraceLimit"})]}),(0,c.jsx)(s.td,{children:"node_modules/@types/node/globals.d.ts:145"})]})]})]}),"\n",(0,c.jsx)(s.h2,{id:"methods",children:"Methods"}),"\n",(0,c.jsx)(s.h3,{id:"capturestacktrace",children:"captureStackTrace()"}),"\n",(0,c.jsxs)(s.blockquote,{children:["\n",(0,c.jsxs)(s.p,{children:[(0,c.jsx)(s.code,{children:"static"})," ",(0,c.jsx)(s.strong,{children:"captureStackTrace"}),"(",(0,c.jsx)(s.code,{children:"targetObject"}),", ",(0,c.jsx)(s.code,{children:"constructorOpt"}),"?): ",(0,c.jsx)(s.code,{children:"void"})]}),"\n"]}),"\n",(0,c.jsx)(s.p,{children:"Create .stack property on a target object"}),"\n",(0,c.jsx)(s.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,c.jsxs)(s.table,{children:[(0,c.jsx)(s.thead,{children:(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.th,{children:"Parameter"}),(0,c.jsx)(s.th,{children:"Type"})]})}),(0,c.jsxs)(s.tbody,{children:[(0,c.jsxs)(s.tr,{children:[(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"targetObject"})}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"object"})})]}),(0,c.jsxs)(s.tr,{children:[(0,c.jsxs)(s.td,{children:[(0,c.jsx)(s.code,{children:"constructorOpt"}),"?"]}),(0,c.jsx)(s.td,{children:(0,c.jsx)(s.code,{children:"Function"})})]})]})]}),"\n",(0,c.jsx)(s.h4,{id:"returns-1",children:"Returns"}),"\n",(0,c.jsx)(s.p,{children:(0,c.jsx)(s.code,{children:"void"})}),"\n",(0,c.jsx)(s.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,c.jsxs)(s.p,{children:[(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,c.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,c.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#capturestacktrace",children:(0,c.jsx)(s.code,{children:"captureStackTrace"})})]}),"\n",(0,c.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,c.jsx)(s.p,{children:"node_modules/@types/node/globals.d.ts:136"})]})}function a(e={}){const{wrapper:s}={...(0,d.R)(),...e.components};return s?(0,c.jsx)(s,{...e,children:(0,c.jsx)(h,{...e})}):h(e)}},8453:(e,s,r)=>{r.d(s,{R:()=>i,x:()=>t});var n=r(6540);const c={},d=n.createContext(c);function i(e){const s=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),n.createElement(d.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/b968f49b.34074d0c.js b/website/assets/js/b968f49b.34074d0c.js new file mode 100644 index 000000000..ef134871e --- /dev/null +++ b/website/assets/js/b968f49b.34074d0c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1777],{5149:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>r,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"api/type-aliases/LunaticVariable","title":"Type Alias: LunaticVariable","description":"LunaticVariable: Variable","source":"@site/docs/api/type-aliases/LunaticVariable.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticVariable","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticVariable.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticValues","permalink":"/Lunatic/docs/api/type-aliases/LunaticValues"},"next":{"title":"Button","permalink":"/Lunatic/docs/api/variables/Button"}}');var i=a(4848),s=a(8453);const r={},c="Type Alias: LunaticVariable",l={},o=[{value:"Defined in",id:"defined-in",level:2}];function u(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"type-alias-lunaticvariable",children:"Type Alias: LunaticVariable"})}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"LunaticVariable"}),": ",(0,i.jsx)(t.code,{children:"Variable"})]}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Variables provided to Lunatic through the source and used internally in a store."}),"\n",(0,i.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L74",children:"src/use-lunatic/type.ts:74"})})]})}function d(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,a)=>{a.d(t,{R:()=>r,x:()=>c});var n=a(6540);const i={},s=n.createContext(i);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/ba2f5f01.e830acf3.js b/website/assets/js/ba2f5f01.e830acf3.js new file mode 100644 index 000000000..814f7e0e5 --- /dev/null +++ b/website/assets/js/ba2f5f01.e830acf3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4796],{9414:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"vtl","title":"VTL","description":"Il est possible \xe0 plusieurs endroits dans la d\xe9finition des composants d\'utiliser la syntaxe VTL.","source":"@site/docs/vtl.mdx","sourceDirName":".","slug":"/vtl","permalink":"/Lunatic/docs/vtl","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/vtl.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"PairwiseLinks","permalink":"/Lunatic/docs/components/aggregators/pairwise"},"next":{"title":"Fonctionnement interne","permalink":"/Lunatic/docs/category/fonctionnement-interne"}}');var r=s(4848),t=s(8453);const o={},a="VTL",l={},c=[{value:"Markdown",id:"markdown",level:2},{value:"Variable sp\xe9ciale",id:"variable-sp\xe9ciale",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"vtl",children:"VTL"})}),"\n",(0,r.jsx)(n.p,{children:"Il est possible \xe0 plusieurs endroits dans la d\xe9finition des composants d'utiliser la syntaxe VTL."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{ "value": "count(PRENOM)", "type": "VTL" }\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Pour l'interpr\xe9tation de ces expressions ",(0,r.jsx)(n.code,{children:"@inseefr/lunatic"})," se repose sur la librairie ",(0,r.jsx)(n.a,{href:"https://github.com/InseeFr/Trevas",children:"@inseefr/trevas"}),"."]}),"\n",(0,r.jsxs)(n.admonition,{type:"info",children:[(0,r.jsx)(n.p,{children:"En cas d'expression invalide, Lunatic se contentera d'afficher l'expression non interpr\xe9t\xe9e. Par exemple si un formulaire \xe0 une expression sans guillements"}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{ "value": "Bonjour les gens", "type": "VTL" }\n'})}),(0,r.jsxs)(n.p,{children:["Lunatic affichera ",(0,r.jsx)(n.code,{children:"Bonjour les gens"})," au lieu de crasher (il est tout de m\xeame conseill\xe9 de ne pas se reposer sur ce comportement et de plut\xf4t corriger le JSON)"]})]}),"\n",(0,r.jsx)(n.h2,{id:"markdown",children:"Markdown"}),"\n",(0,r.jsxs)(n.p,{children:["Lunatic fournit en plus un mode markdown qui permet, une fois l'expression ex\xe9cut\xe9e d'interpr\xe9ter le format markdown. Dans ce cas-l\xe0, il faudra utiliser un type ",(0,r.jsx)(n.code,{children:"VTL|MD"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{ "value": "\\"Je suis du **markdown**\\"", "type": "VTL|MD" }\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Dans le markdown il est possible d'ajouter des \xe9mojis. Les diff\xe9rents emoji support\xe9s sont disponible ",(0,r.jsx)(n.a,{href:"https://unpkg.com/emojilib@3.0.12/dist/emoji-en-US.json",children:"ici"})," et ",(0,r.jsx)(n.a,{href:"https://github.com/wooorm/emoticon/blob/main/support.md",children:"ici"})]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{ "value": "\\"Emoji :grinning_face: ou \\"", "type": "VTL|MD" }\n'})}),"\n",(0,r.jsx)(n.h2,{id:"variable-sp\xe9ciale",children:"Variable sp\xe9ciale"}),"\n",(0,r.jsx)(n.p,{children:"Certaines variables sont inject\xe9 dynamiquement lors de l'interpr\xe9tation d'une expression."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"GLOBAL_ITERATION_INDEX"})," (entier), permet de faire r\xe9f\xe9rence \xe0 l'it\xe9ration courante dans le cas d'une boucle"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>a});var i=s(6540);const r={},t=i.createContext(r);function o(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/c1574f21.c75960f5.js b/website/assets/js/c1574f21.c75960f5.js new file mode 100644 index 000000000..43804c13a --- /dev/null +++ b/website/assets/js/c1574f21.c75960f5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8818],{447:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>a});const s=JSON.parse('{"id":"api/functions/LunaticComponents","title":"Function: LunaticComponents()","description":"LunaticComponents\\\\(namedParameters): Element","source":"@site/docs/api/functions/LunaticComponents.md","sourceDirName":"api/functions","slug":"/api/functions/LunaticComponents","permalink":"/Lunatic/docs/api/functions/LunaticComponents","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/functions/LunaticComponents.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"components","permalink":"/Lunatic/docs/api/variables/components"},"next":{"title":"ModalControls","permalink":"/Lunatic/docs/api/functions/ModalControls"}}');var r=t(4848),c=t(8453);const o={},i="Function: LunaticComponents()",d={},a=[{value:"Type Parameters",id:"type-parameters",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Defined in",id:"defined-in",level:2}];function l(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,c.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"function-lunaticcomponents",children:"Function: LunaticComponents()"})}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"LunaticComponents"}),"<",(0,r.jsx)(n.code,{children:"V"}),">(",(0,r.jsx)(n.code,{children:"__namedParameters"}),"): ",(0,r.jsx)(n.code,{children:"Element"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Entry point for orchestrators, this component display the list of fields."}),"\n",(0,r.jsxs)(n.p,{children:["Components offered by Lunatic can be seen at ",(0,r.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/tree/3.0/src/components",children:"https://github.com/InseeFr/Lunatic/tree/3.0/src/components"})]}),"\n",(0,r.jsx)(n.h2,{id:"type-parameters",children:"Type Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Type Parameter"}),(0,r.jsx)(n.th,{children:"Default type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"V"})}),(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,r.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Parameter"}),(0,r.jsx)(n.th,{children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"__namedParameters"})}),(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"Props"}),"<",(0,r.jsx)(n.code,{children:"V"}),">"]})]})})]}),"\n",(0,r.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"Element"})}),"\n",(0,r.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/LunaticComponents.tsx#L52",children:"src/components/LunaticComponents.tsx:52"})})]})}function h(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>i});var s=t(6540);const r={},c=s.createContext(r);function o(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/c3356e06.3879aa85.js b/website/assets/js/c3356e06.3879aa85.js new file mode 100644 index 000000000..fd62e8a77 --- /dev/null +++ b/website/assets/js/c3356e06.3879aa85.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6392],{2153:e=>{e.exports=JSON.parse('{"categoryGeneratedIndex":{"title":"hook useLunatic()","slug":"/category/hook-uselunatic","permalink":"/Lunatic/docs/category/hook-uselunatic","sidebar":"docs","navigation":{"previous":{"title":"D\xe9marrage","permalink":"/Lunatic/docs/"},"next":{"title":"Param\xe8tres","permalink":"/Lunatic/docs/hook/parameters"}}}}')}}]); \ No newline at end of file diff --git a/website/assets/js/c901544c.f235d413.js b/website/assets/js/c901544c.f235d413.js new file mode 100644 index 000000000..398c02579 --- /dev/null +++ b/website/assets/js/c901544c.f235d413.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[554],{8241:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"api/variables/Button","title":"Variable: Button","description":"const Button: ComponentType\\\\","source":"@site/docs/api/variables/Button.md","sourceDirName":"api/variables","slug":"/api/variables/Button","permalink":"/Lunatic/docs/api/variables/Button","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/variables/Button.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticVariable"},"next":{"title":"components","permalink":"/Lunatic/docs/api/variables/components"}}');var s=n(4848),i=n(8453);const r={},a="Variable: Button",c={},d=[{value:"Defined in",id:"defined-in",level:2}];function l(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"variable-button",children:"Variable: Button"})}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"const"})," ",(0,s.jsx)(t.strong,{children:"Button"}),": ",(0,s.jsx)(t.code,{children:"ComponentType"}),"<",(0,s.jsx)(t.code,{children:"Props"}),">"]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/shared/Button/Button.tsx#L61",children:"src/components/shared/Button/Button.tsx:61"})})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>r,x:()=>a});var o=n(6540);const s={},i=o.createContext(s);function r(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/ccd161e0.4c8cc62c.js b/website/assets/js/ccd161e0.4c8cc62c.js new file mode 100644 index 000000000..e5c2042ea --- /dev/null +++ b/website/assets/js/ccd161e0.4c8cc62c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4024],{84:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>r,contentTitle:()=>c,default:()=>p,frontMatter:()=>a,metadata:()=>i,toc:()=>l});const i=JSON.parse('{"id":"api/type-aliases/LunaticControl","title":"Type Alias: LunaticControl","description":"LunaticControl: ControlDefinition","source":"@site/docs/api/type-aliases/LunaticControl.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticControl","permalink":"/Lunatic/docs/api/type-aliases/LunaticControl","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticControl.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticComponentProps","permalink":"/Lunatic/docs/api/type-aliases/LunaticComponentProps"},"next":{"title":"LunaticData","permalink":"/Lunatic/docs/api/type-aliases/LunaticData"}}');var o=n(4848),s=n(8453);const a={},c="Type Alias: LunaticControl",r={},l=[{value:"Defined in",id:"defined-in",level:2}];function u(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"type-alias-lunaticcontrol",children:"Type Alias: LunaticControl"})}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"LunaticControl"}),": ",(0,o.jsx)(t.code,{children:"ControlDefinition"})]}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L23",children:"src/use-lunatic/type.ts:23"})})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>c});var i=n(6540);const o={},s=i.createContext(o);function a(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/d1a1dfaa.0f89d2fc.js b/website/assets/js/d1a1dfaa.0f89d2fc.js new file mode 100644 index 000000000..6b2e34c6a --- /dev/null +++ b/website/assets/js/d1a1dfaa.0f89d2fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7984],{6340:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>c,metadata:()=>a,toc:()=>u});const a=JSON.parse('{"id":"api/type-aliases/LunaticValues","title":"Type Alias: LunaticValues","description":"LunaticValues: object","source":"@site/docs/api/type-aliases/LunaticValues.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticValues","permalink":"/Lunatic/docs/api/type-aliases/LunaticValues","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticValues.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticStateVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticStateVariable"},"next":{"title":"LunaticVariable","permalink":"/Lunatic/docs/api/type-aliases/LunaticVariable"}}');var i=t(4848),s=t(8453);const c={},r="Type Alias: LunaticValues",l={},u=[{value:"Index Signature",id:"index-signature",level:2},{value:"Defined in",id:"defined-in",level:2}];function o(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"type-alias-lunaticvalues",children:"Type Alias: LunaticValues"})}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"LunaticValues"}),": ",(0,i.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"index-signature",children:"Index Signature"}),"\n",(0,i.jsxs)(n.p,{children:["[",(0,i.jsx)(n.code,{children:"variableName"}),": ",(0,i.jsx)(n.code,{children:"string"}),"]: ",(0,i.jsx)(n.code,{children:"unknown"})]}),"\n",(0,i.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L45",children:"src/use-lunatic/type.ts:45"})})]})}function d(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(o,{...e})}):o(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>c,x:()=>r});var a=t(6540);const i={},s=a.createContext(i);function c(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/d209f454.989e2f98.js b/website/assets/js/d209f454.989e2f98.js new file mode 100644 index 000000000..358d4ad9c --- /dev/null +++ b/website/assets/js/d209f454.989e2f98.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7945],{7726:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>d});const a=JSON.parse('{"id":"hook/navigation","title":"Navigation","description":"Par d\xe9faut le formulaire est d\xe9compos\xe9 en plusieurs pages qui peuvent \xeatre atteinte par le biais d\'une navigation. L\'interface visuelle de la navigation n\'est pas incluse dans @inseefr/lunatic et c\'est \xe0 l\'orchestrateur d\'ajouter les \xe9l\xe9ments de navigations. Le hook fournit plusieurs m\xe9thodes pour simplifier le travail.","source":"@site/docs/hook/navigation.mdx","sourceDirName":"hook","slug":"/hook/navigation","permalink":"/Lunatic/docs/hook/navigation","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/hook/navigation.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Retour","permalink":"/Lunatic/docs/hook/return"},"next":{"title":"Gestion des contr\xf4les","permalink":"/Lunatic/docs/hook/controls"}}');var t=i(4848),r=i(8453);const s={},o="Navigation",l={},d=[{value:"PageTag",id:"pagetag",level:2},{value:"Pager",id:"pager",level:2},{value:"Navigation",id:"navigation-1",level:2}];function c(e){const n={admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",mermaid:"mermaid",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"navigation",children:"Navigation"})}),"\n",(0,t.jsxs)(n.p,{children:["Par d\xe9faut le formulaire est d\xe9compos\xe9 en plusieurs pages qui peuvent \xeatre atteinte par le biais d'une navigation. L'interface visuelle de la navigation n'est pas incluse dans ",(0,t.jsx)(n.code,{children:"@inseefr/lunatic"})," et c'est \xe0 l'orchestrateur d'ajouter les \xe9l\xe9ments de navigations. Le hook fournit plusieurs m\xe9thodes pour simplifier le travail."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"goPreviousPage()"}),", permet de revenir en arri\xe8re d'une page"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"goNextPage()"}),", permet d'aller \xe0 la page suivante"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"goToPage(params: {page: string; iteration?: number; nbIterations?: number; subPage?: number;})"}),", permet d'aller \xe0 une page sp\xe9cifique"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"isFirstPage"}),", indique si on est \xe0 la premi\xe8re page"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"isLastPage"}),", indique si on est \xe0 la derni\xe8re page du formulaire (on a atteind ",(0,t.jsx)(n.code,{children:"maxPage"}),")"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"pageTag"}),", chaine de caract\xe8re repr\xe9sentant la page courante"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"pager"}),", objet contenant l'\xe9tat de la navigation"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"pagetag",children:"PageTag"}),"\n",(0,t.jsx)(n.p,{children:"Le page tag est une chaine de caract\xe8re permettant de repr\xe9senter la position de l'utilisateur dans le formulaire et se pr\xe9sente de la mani\xe8re suivante."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"[page].[sous-page]#[iteration]"}),", quand on est dans une boucle / rond-point"]}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.strong,{children:"[page]"})}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["Les num\xe9ros de ",(0,t.jsx)(n.strong,{children:"page"}),", de ",(0,t.jsx)(n.strong,{children:"sous-page"})," et d'",(0,t.jsx)(n.strong,{children:"it\xe9rations"})," commencent \xe0 ",(0,t.jsx)(n.strong,{children:"1"})," dans le pageTag"]})}),"\n",(0,t.jsx)(n.h2,{id:"pager",children:"Pager"}),"\n",(0,t.jsx)(n.p,{children:"Le pager est un objet qui contient les informations concernant la navigation. C'est cet objet qui est utilis\xe9 en interne pour d\xe9terminer o\xf9 on se trouve dans la navigation."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"lastReachedPage"})," : Derni\xe8re page atteinte (optionnelle, cha\xeene de caract\xe8res, m\xeame format que pageTag)"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"maxPage"})," : Derni\xe8re page du formulaire (chaine de caract\xe8re)"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"page"})," : Page courante (obligatoire, cha\xeene de caract\xe8res)"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Quand on est dans une boucle le pager aura des propri\xe9t\xe9s suppl\xe9mentaires"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"subPage"}),", Sous-page courante"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"iteration"}),", Index d'it\xe9ration (nombre, commen\xe7ant \xe0 0)"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"nbSubPages"}),", Nombre de pages dans la boucle"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"nbIterations"}),", Nombre d'it\xe9rations (ex: nbre de personnes)"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"shallowIteration"}),", TODO"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"linksIterations"}),", TODO"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"navigation-1",children:"Navigation"}),"\n",(0,t.jsx)(n.p,{children:"Afin de mieux comprendre la navigation voici un flow chart permettant de d\xe9tailler l'arbre de d\xe9cision lors d'une navigation vers l'avant."}),"\n",(0,t.jsx)(n.mermaid,{value:"flowchart TD\n A[goNextPage] --\x3e Loop{On est dans une boucle pagin\xe9e ?}\n Loop -- Non --\x3e IncrPage[Incr\xe9mente la page]\n Loop -- Oui --\x3e EndSequence{A la fin de la s\xe9quence ?}\n EndSequence -- Oui --\x3e RoundAbout{Je suis dans un rond point de taille 2+ ?}\n RoundAbout -- Non --\x3e LoopEnd{A la derni\xe8re it\xe9ration ?}\n RoundAbout -- Oui --\x3e BackToPage[Retour \xe0 la page racine]\n LoopEnd -- Oui --\x3e IncrPage\n LoopEnd -- Non --\x3e IncrIteration[Incr\xe9mente it\xe9ration]\n EndSequence -- Non --\x3e IncrSubPage[Incr\xe9mente sous-page]\n IncrIteration --\x3e Empty{La page est vide ?}\n IncrSubPage --\x3e Empty{La page est vide ?}\n IncrPage --\x3e Empty\n Empty -- Oui --\x3e A\n Empty -- Non --\x3e B[Fin]"})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>o});var a=i(6540);const t={},r=a.createContext(t);function s(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/d48ac471.c25153df.js b/website/assets/js/d48ac471.c25153df.js new file mode 100644 index 000000000..c1d71929b --- /dev/null +++ b/website/assets/js/d48ac471.c25153df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7871],{9522:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>d});const a=JSON.parse('{"id":"api/type-aliases/LunaticData","title":"Type Alias: LunaticData","description":"LunaticData: Partial\\\\, Record\\\\\\\\> & object\\\\>","source":"@site/docs/api/type-aliases/LunaticData.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticData","permalink":"/Lunatic/docs/api/type-aliases/LunaticData","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticData.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticControl","permalink":"/Lunatic/docs/api/type-aliases/LunaticControl"},"next":{"title":"LunaticError","permalink":"/Lunatic/docs/api/type-aliases/LunaticError"}}');var i=n(4848),c=n(8453);const s={},r="Type Alias: LunaticData",o={},d=[{value:"Defined in",id:"defined-in",level:2}];function l(e){const t={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,c.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"type-alias-lunaticdata",children:"Type Alias: LunaticData"})}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"LunaticData"}),": ",(0,i.jsx)(t.code,{children:"Partial"}),"<",(0,i.jsx)(t.code,{children:"Record"}),"<",(0,i.jsx)(t.code,{children:"Exclude"}),"<",(0,i.jsx)(t.code,{children:"VariableType"}),", ",(0,i.jsx)(t.code,{children:'"COLLECTED"'}),">, ",(0,i.jsx)(t.code,{children:"Record"}),"<",(0,i.jsx)(t.code,{children:"string"}),", ",(0,i.jsx)(t.code,{children:"unknown"}),">> & ",(0,i.jsx)(t.code,{children:"object"}),">"]}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Survey data."}),"\n",(0,i.jsx)(t.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/type.ts#L39",children:"src/use-lunatic/type.ts:39"})})]})}function u(e={}){const{wrapper:t}={...(0,c.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>r});var a=n(6540);const i={},c=a.createContext(i);function s(e){const t=a.useContext(c);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),a.createElement(c.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/d48c2e32.9ff27447.js b/website/assets/js/d48c2e32.9ff27447.js new file mode 100644 index 000000000..b8ad9619a --- /dev/null +++ b/website/assets/js/d48c2e32.9ff27447.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[856],{4264:(e,n,o)=>{"use strict";o.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=o(7119),s=o(6487),a=o(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=o(7020),u=o(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const x=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:x?c:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=x?o(5152).g:o(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,o)=>{"use strict";o.d(n,{S:()=>s});var t=o(1999),r=o(4848);function s(e){let{source:n,data:o}=e;const{getComponents:s,Provider:a}=(0,t.O1)(n,o,{initialPage:"1"});return(0,r.jsx)(a,{children:(0,r.jsx)(t.R2,{components:s()})})}},5152:(e,n,o)=>{"use strict";o.d(n,{g:()=>a});var t=o(1999),r=o(6540),s=o(4848);function a(e){let{source:n,data:o,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,t.O1)(n,o,{initialPage:"1",...a}),[x,g]=(0,r.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(t.R2,{components:i(),componentProps:()=>({errors:x?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=m();e.currentErrors?g(e):d()},children:"Suivant"})]}),x&&(0,s.jsx)(t.I1,{errors:x.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:x.isCritical})]})}},6458:(e,n,o)=>{"use strict";o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"components/fields/checkboxOne","title":"CheckboxOne","description":"Permet de s\xe9lectionner une valeur parmi une liste d\'option. Le fonctionnement est similaire \xe0 celui des radios si ce n\'est que la case peut \xeatre d\xe9cochable.","source":"@site/docs/components/fields/checkboxOne.mdx","sourceDirName":"components/fields","slug":"/components/fields/checkboxOne","permalink":"/Lunatic/docs/components/fields/checkboxOne","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/checkboxOne.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Radio","permalink":"/Lunatic/docs/components/fields/radio"},"next":{"title":"CheckboxBoolean","permalink":"/Lunatic/docs/components/fields/checkboxBoolean"}}');var r=o(4848),s=o(8453);const a=JSON.parse('{"$schema":"../../../lunatic-schema.json","maxPage":"1","components":[{"id":"checkboxone","componentType":"CheckboxOne","mandatory":false,"page":"1","label":{"value":"\\"checkboxone ONE component\\"","type":"VTL|MD"},"description":{"value":"\\"true or false\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"options":[{"value":"1","description":{"value":"\\"D\xe9claration oui\\"","type":"VTL|MD"},"label":{"value":"\\"oui\\"","type":"VTL|MD"}},{"value":"2","description":{"value":"\\"D\xe9claration non\\"","type":"VTL|MD"},"label":{"value":"\\"non\\"","type":"VTL|MD"}}],"response":{"name":"Q2"}}],"variables":[{"variableType":"COLLECTED","name":"Q2","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=o(4264);const c={},l="CheckboxOne",u={},d=[];function p(e){const n={a:"a",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"checkboxone",children:"CheckboxOne"})}),"\n",(0,r.jsxs)(n.p,{children:["Permet de s\xe9lectionner une valeur parmi une liste d'option. Le fonctionnement est similaire \xe0 celui ",(0,r.jsx)(n.a,{href:"./radio",children:"des radios"})," si ce n'est que la case peut \xeatre d\xe9cochable."]}),"\n","\n",(0,r.jsx)(i.L,{source:a})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/d8e663aa.dc7c1146.js b/website/assets/js/d8e663aa.dc7c1146.js new file mode 100644 index 000000000..383cd611b --- /dev/null +++ b/website/assets/js/d8e663aa.dc7c1146.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8969],{4264:(e,n,o)=>{"use strict";o.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=o(7119),s=o(6487),a=o(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=o(7020),u=o(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const x=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(s.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(r.A,{children:[(0,u.jsx)(s.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:x?c:i})}),(0,u.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=x?o(5152).g:o(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,o)=>{"use strict";o.d(n,{S:()=>s});var t=o(1999),r=o(4848);function s(e){let{source:n,data:o}=e;const{getComponents:s,Provider:a}=(0,t.O1)(n,o,{initialPage:"1"});return(0,r.jsx)(a,{children:(0,r.jsx)(t.R2,{components:s()})})}},5152:(e,n,o)=>{"use strict";o.d(n,{g:()=>a});var t=o(1999),r=o(6540),s=o(4848);function a(e){let{source:n,data:o,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,t.O1)(n,o,{initialPage:"1",...a}),[x,g]=(0,r.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(t.R2,{components:i(),componentProps:()=>({errors:x?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=m();e.currentErrors?g(e):d()},children:"Suivant"})]}),x&&(0,s.jsx)(t.I1,{errors:x.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:x.isCritical})]})}},9219:(e,n,o)=>{"use strict";o.r(n),o.d(n,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"components/fields/checkboxBoolean","title":"CheckboxBoolean","description":"Affiche une case \xe0 cocher \\"Oui\\" / \\"Non\\"","source":"@site/docs/components/fields/checkboxBoolean.mdx","sourceDirName":"components/fields","slug":"/components/fields/checkboxBoolean","permalink":"/Lunatic/docs/components/fields/checkboxBoolean","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/checkboxBoolean.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"CheckboxOne","permalink":"/Lunatic/docs/components/fields/checkboxOne"},"next":{"title":"CheckboxGroup","permalink":"/Lunatic/docs/components/fields/checkboxGroup"}}');var r=o(4848),s=o(8453);const a=JSON.parse('{"components":[{"id":"checkboxboolean","componentType":"CheckboxBoolean","mandatory":false,"page":"1","label":{"value":"\\"checkboxBoolean component (checked: true, unchecked: false)\\"","type":"VTL|MD"},"description":{"value":"\\"Description for label\\"","type":"VTL|MD"},"declarations":[{"id":"kb9hi4j0-krnoclfe","declarationType":"INSTRUCTION","position":"BEFORE_QUESTION_TEXT","label":{"value":"\\"D\xe9calration Before\\"","type":"VTL|MD"}},{"id":"kb9hi4j0-krnoclfe","declarationType":"HELP","position":"AFTER_QUESTION_TEXT","label":{"value":"\\"Description from DECLARATION.\\"","type":"VTL|MD"}}],"conditionFilter":{"value":"true","type":"VTL"},"options":[{"value":"1","label":{"value":"\\"oui\\"","type":"VTL|MD"}},{"value":"2","label":{"value":"\\"non\\"","type":"VTL|MD"}}],"response":{"name":"Q2"}}],"variables":[{"variableType":"COLLECTED","name":"Q2","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=o(4264);const c={},l="CheckboxBoolean",u={},d=[];function p(e){const n={h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"checkboxboolean",children:"CheckboxBoolean"})}),"\n",(0,r.jsx)(n.p,{children:'Affiche une case \xe0 cocher "Oui" / "Non"'}),"\n","\n",(0,r.jsx)(i.L,{source:a})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/e2699ac7.1417b042.js b/website/assets/js/e2699ac7.1417b042.js new file mode 100644 index 000000000..301e9fac2 --- /dev/null +++ b/website/assets/js/e2699ac7.1417b042.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7149],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>m});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var l=t(7119),o=t(6487),r=t(3007);const s="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",i="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var u=t(7020),p=t(4848);const c={};function m(e){let{source:n,data:m=c,options:d}=e;const E=n.maxPage&&"1"!==n.maxPage;return(0,p.jsxs)("div",{className:a.FormExample,children:[(0,p.jsxs)(l.A,{children:[(0,p.jsx)(o.A,{value:"source",label:"Source",default:!0,children:(0,p.jsx)(r.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,p.jsx)(o.A,{value:"data",label:"Data",children:(0,p.jsx)(r.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(m,null,2)})})]}),(0,p.jsxs)(l.A,{children:[(0,p.jsx)(o.A,{value:"code",label:"Code",children:(0,p.jsx)(r.A,{language:"tsx",className:a.FormExampleCode,children:E?i:s})}),(0,p.jsx)(o.A,{value:"render",label:"Rendu",default:!0,children:(0,p.jsx)("div",{className:a.FormExampleRender,children:(0,p.jsx)(u.A,{fallback:(0,p.jsx)("div",{children:"Loading..."}),children:()=>{const e=E?t(5152).g:t(3314).S;return(0,p.jsx)(e,{source:n,data:m,options:d})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>o});var a=t(1999),l=t(4848);function o(e){let{source:n,data:t}=e;const{getComponents:o,Provider:r}=(0,a.O1)(n,t,{initialPage:"1"});return(0,l.jsx)(r,{children:(0,l.jsx)(a.R2,{components:o()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>r});var a=t(1999),l=t(6540),o=t(4848);function r(e){let{source:n,data:t,options:r}=e;const{getComponents:s,isLastPage:i,isFirstPage:u,goPreviousPage:p,goNextPage:c,Provider:m,compileControls:d}=(0,a.O1)(n,t,{initialPage:"1",...r}),[E,T]=(0,l.useState)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(m,{children:(0,o.jsx)(a.R2,{components:s(),componentProps:()=>({errors:E?.currentErrors})})}),(0,o.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,o.jsx)("button",{className:"button button--primary",disabled:u,onClick:p,children:"Pr\xe9c\xe9dent"}),(0,o.jsx)("button",{className:"button button--primary",disabled:i,onClick:()=>{const e=d();e.currentErrors?T(e):c()},children:"Suivant"})]}),E&&(0,o.jsx)(a.I1,{errors:E.currentErrors,goNext:()=>{T(void 0),c()},onClose:()=>{T(void 0)},isCritical:E.isCritical})]})}},2584:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>m,default:()=>L,frontMatter:()=>c,metadata:()=>a,toc:()=>E});const a=JSON.parse('{"id":"components/fields/text","title":"Text","description":"Le composant Text permet d\'afficher du texte. L\'objectif de ce composant est d\'\xeatre r\xe9utilis\xe9 en tant qu\'enfant d\'autres composants.","source":"@site/docs/components/fields/text.mdx","sourceDirName":"components/fields","slug":"/components/fields/text","permalink":"/Lunatic/docs/components/fields/text","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/text.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Table","permalink":"/Lunatic/docs/components/fields/table"},"next":{"title":"Agr\xe9gateurs","permalink":"/Lunatic/docs/category/agr\xe9gateurs"}}');var l=t(4848),o=t(8453);const r=JSON.parse('{"components":[{"componentType":"Text","label":{"value":"Mon texte","type":"TXT"},"conditionFilter":{"value":"true","type":"VTL"},"id":"id"}],"variables":[]}');var s=t(4264);const i=JSON.parse('{"componentType":"Questionnaire","variables":[{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA11"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA21"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA31"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA12"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA22"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA32"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA13"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA23"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"FORCED":null,"INPUTTED":null,"PREVIOUS":null},"name":"TABLEAUCLA33"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_LIBELLEDUT"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TABLEAUCLA"}],"components":[{"componentType":"Table","header":[{"label":{"type":"VTL|MD","value":""}},{"label":{"type":"VTL|MD","value":"\\"Domaines\\""}},{"label":{"type":"VTL|MD","value":"\\"Activit\xe9\\""}},{"label":{"type":"VTL|MD","value":"\\"Chiffre d\'affaire\\""}}],"conditionFilter":{"type":"VTL","value":"true"},"id":"luwhnbxk","page":"1","label":{"type":"VTL|MD","value":"\\"Tableau classique\\""},"body":[[{"componentType":"Text","conditionFilter":{"value":"true","type":"VTL"},"id":"id-text-1","label":{"type":"TXT","value":"Libelle 1"}},{"componentType":"Input","response":{"name":"TABLEAUCLA11"},"id":"luwhnbxk-RDOP-luwhcrpg","maxLength":249,"controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL","value":"\\"Le domaine ne doit pas \xeatre vide\\""},"typeOfControl":"","control":{"type":"VTL","value":"not(isnull(TABLEAUCLA11))"}}]},{"componentType":"Input","response":{"name":"TABLEAUCLA12"},"id":"luwhnbxk-RDOP-luwhnkls","maxLength":249},{"componentType":"InputNumber","unit":"\u20ac","min":0,"max":9999,"response":{"name":"TABLEAUCLA13"},"decimals":0,"id":"luwhnbxk-RDOP-luwh7btb"}],[{"componentType":"Text","conditionFilter":{"value":"true","type":"VTL"},"id":"id-text-2","label":{"type":"TXT","value":"Libelle 2"}},{"componentType":"Input","response":{"name":"TABLEAUCLA21"},"id":"luwhnbxk-RDOP-luwhmbp1","maxLength":249},{"componentType":"Input","response":{"name":"TABLEAUCLA22"},"id":"luwhnbxk-RDOP-luwhlejc","maxLength":249},{"componentType":"InputNumber","unit":"\u20ac","min":0,"max":9999,"response":{"name":"TABLEAUCLA23"},"decimals":0,"id":"luwhnbxk-RDOP-luwh4tva"}],[{"componentType":"Text","conditionFilter":{"value":"true","type":"VTL"},"id":"id-text-3","label":{"type":"TXT","value":"Libelle 3"}},{"componentType":"Input","response":{"name":"TABLEAUCLA31"},"id":"luwhnbxk-RDOP-luwhalhn","maxLength":249},{"componentType":"Input","response":{"name":"TABLEAUCLA32"},"id":"luwhnbxk-RDOP-luwhd3mk","maxLength":249},{"componentType":"InputNumber","unit":"\u20ac","min":0,"max":9999,"response":{"name":"TABLEAUCLA33"},"decimals":0,"id":"luwhnbxk-RDOP-luwhcilc"}]],"mandatory":false}],"maxPage":"1"}'),u=JSON.parse('{"variables":[{"variableType":"EXTERNAL","name":"VARIABLE_EXT"},{"variableType":"COLLECTED","values":{"COLLECTED":[],"EDITED":[],"FORCED":[],"INPUTTED":[],"PREVIOUS":[]},"name":"PREMIERTAB2"},{"variableType":"COLLECTED","values":{"COLLECTED":[],"EDITED":[],"FORCED":[],"INPUTTED":[],"PREVIOUS":[]},"name":"PREMIERTAB3"},{"variableType":"COLLECTED","values":{"COLLECTED":[],"EDITED":[],"FORCED":[],"INPUTTED":[],"PREVIOUS":[]},"name":"PREMIERTAB4"}],"components":[{"componentType":"RosterForLoop","components":[{"componentType":"Text","label":{"type":"VTL","value":"VARIABLE_EXT"},"id":"lvp6l8rw-RDOP-lvp7mld9","maxLength":249},{"componentType":"Input","response":{"name":"PREMIERTAB2"},"id":"lvp6l8rw-RDOP-lvp75ug8","maxLength":5},{"componentType":"InputNumber","min":0,"max":10000,"response":{"name":"PREMIERTAB3"},"decimals":0,"id":"lvp6l8rw-RDOP-lvp7i2ub"},{"componentType":"InputNumber","min":0,"max":10000,"response":{"name":"PREMIERTAB4"},"decimals":0,"id":"lvp6l8rw-RDOP-lvp74mc4"}],"controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\" La valeur doit \xeatre comprise entre 0 et 10000.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(PREMIERTAB3)) and (0>PREMIERTAB3 or 10000<PREMIERTAB3))"},"id":"lvp6l8rw-RDOP-lvp7i2ub-format-borne-inf-sup"},{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"Le nombre doit comporter au maximum 0 chiffre(s) apr\xe8s la virgule.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(PREMIERTAB3)) and round(PREMIERTAB3,0)<>PREMIERTAB3)"},"id":"lvp6l8rw-RDOP-lvp7i2ub-format-decimal"},{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\" La valeur doit \xeatre comprise entre 0 et 10000.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(PREMIERTAB4)) and (0>PREMIERTAB4 or 10000<PREMIERTAB4))"},"id":"lvp6l8rw-RDOP-lvp74mc4-format-borne-inf-sup"},{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"Le nombre doit comporter au maximum 0 chiffre(s) apr\xe8s la virgule.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(PREMIERTAB4)) and round(PREMIERTAB4,0)<>PREMIERTAB4)"},"id":"lvp6l8rw-RDOP-lvp74mc4-format-decimal"}],"header":[{"label":{"type":"VTL|MD","value":"\\"Nom (LS)\\""}},{"label":{"type":"VTL|MD","value":"\\"Code postal (LS)\\""}},{"label":{"type":"VTL|MD","value":"\\"Capacit\xe9 2023 (LS)\\""}},{"label":{"type":"VTL|MD","value":"\\"Capacit\xe9 2024\\""}}],"conditionFilter":{"type":"VTL","value":"true"},"id":"lvp6l8rw","page":"1","lines":{"min":{"type":"VTL","value":"2"},"max":{"type":"VTL","value":"5"}},"mandatory":false}],"pagination":"question","lunaticModelVersion":"3.8.0","enoCoreVersion":"3.21.0-SNAPSHOT","resizing":{},"maxPage":"1"}'),p=JSON.parse('{"EXTERNAL":{"VARIABLE_EXT":["TRUC","BIDULE","CHOSE"]}}'),c={},m="Text",d={},E=[{value:"Composant seul",id:"composant-seul",level:2},{value:"Dans un tableau",id:"dans-un-tableau",level:2},{value:"Dans une tableau dynamique",id:"dans-une-tableau-dynamique",level:2}];function T(e){const n={h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.header,{children:(0,l.jsx)(n.h1,{id:"text",children:"Text"})}),"\n",(0,l.jsxs)(n.p,{children:["Le composant ",(0,l.jsx)(n.strong,{children:"Text"})," permet d'afficher du texte. L'objectif de ce composant est d'\xeatre r\xe9utilis\xe9 en tant qu'enfant d'autres composants."]}),"\n",(0,l.jsx)(n.p,{children:"Il a \xe9tait cr\xe9\xe9 pour \xeatre utilis\xe9 dans des tableaux, mais peut tr\xe8s bien s'utiliser seul ou comme enfant d'autre composants."}),"\n",(0,l.jsx)(n.h2,{id:"composant-seul",children:"Composant seul"}),"\n","\n",(0,l.jsx)(s.L,{source:r}),"\n",(0,l.jsx)(n.h2,{id:"dans-un-tableau",children:"Dans un tableau"}),"\n","\n",(0,l.jsx)(s.L,{source:i}),"\n",(0,l.jsx)(n.h2,{id:"dans-une-tableau-dynamique",children:"Dans une tableau dynamique"}),"\n","\n",(0,l.jsx)(s.L,{source:u,data:p})]})}function L(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(T,{...e})}):T(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/ea9b137c.eae46100.js b/website/assets/js/ea9b137c.eae46100.js new file mode 100644 index 000000000..88236b8b0 --- /dev/null +++ b/website/assets/js/ea9b137c.eae46100.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8346],{4264:(e,n,t)=>{"use strict";t.d(n,{L:()=>d});const a={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var r=t(7119),l=t(6487),o=t(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",s="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var c=t(7020),T=t(4848);const u={};function d(e){let{source:n,data:d=u,options:p}=e;const E=n.maxPage&&"1"!==n.maxPage;return(0,T.jsxs)("div",{className:a.FormExample,children:[(0,T.jsxs)(r.A,{children:[(0,T.jsx)(l.A,{value:"source",label:"Source",default:!0,children:(0,T.jsx)(o.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,T.jsx)(l.A,{value:"data",label:"Data",children:(0,T.jsx)(o.A,{language:"json",className:a.FormExampleCode,children:JSON.stringify(d,null,2)})})]}),(0,T.jsxs)(r.A,{children:[(0,T.jsx)(l.A,{value:"code",label:"Code",children:(0,T.jsx)(o.A,{language:"tsx",className:a.FormExampleCode,children:E?s:i})}),(0,T.jsx)(l.A,{value:"render",label:"Rendu",default:!0,children:(0,T.jsx)("div",{className:a.FormExampleRender,children:(0,T.jsx)(c.A,{fallback:(0,T.jsx)("div",{children:"Loading..."}),children:()=>{const e=E?t(5152).g:t(3314).S;return(0,T.jsx)(e,{source:n,data:d,options:p})}})})})]})]})}},3314:(e,n,t)=>{"use strict";t.d(n,{S:()=>l});var a=t(1999),r=t(4848);function l(e){let{source:n,data:t}=e;const{getComponents:l,Provider:o}=(0,a.O1)(n,t,{initialPage:"1"});return(0,r.jsx)(o,{children:(0,r.jsx)(a.R2,{components:l()})})}},5152:(e,n,t)=>{"use strict";t.d(n,{g:()=>o});var a=t(1999),r=t(6540),l=t(4848);function o(e){let{source:n,data:t,options:o}=e;const{getComponents:i,isLastPage:s,isFirstPage:c,goPreviousPage:T,goNextPage:u,Provider:d,compileControls:p}=(0,a.O1)(n,t,{initialPage:"1",...o}),[E,m]=(0,r.useState)();return(0,l.jsxs)("div",{children:[(0,l.jsx)(d,{children:(0,l.jsx)(a.R2,{components:i(),componentProps:()=>({errors:E?.currentErrors})})}),(0,l.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,l.jsx)("button",{className:"button button--primary",disabled:c,onClick:T,children:"Pr\xe9c\xe9dent"}),(0,l.jsx)("button",{className:"button button--primary",disabled:s,onClick:()=>{const e=p();e.currentErrors?m(e):u()},children:"Suivant"})]}),E&&(0,l.jsx)(a.I1,{errors:E.currentErrors,goNext:()=>{m(void 0),u()},onClose:()=>{m(void 0)},isCritical:E.isCritical})]})}},3267:(e,n,t)=>{"use strict";t.d(n,{e:()=>r});var a=t(4848);function r(e){let{type:n}=e;const t=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,a.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:t,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,a.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},335:(e,n,t)=>{"use strict";t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>u,default:()=>m,frontMatter:()=>T,metadata:()=>a,toc:()=>p});const a=JSON.parse('{"id":"components/base","title":"Propri\xe9t\xe9s de base","description":"Les champs qui composent un formulaire Lunatic sont d\xe9finis dans la propri\xe9t\xe9 components du fichier source JSON. Certaines propri\xe9t\xe9s sont communes \xe0 tous les composants :","source":"@site/docs/components/base.mdx","sourceDirName":"components","slug":"/components/base","permalink":"/Lunatic/docs/components/base","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/base.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Composants","permalink":"/Lunatic/docs/category/composants"},"next":{"title":"Balisage","permalink":"/Lunatic/docs/category/balisage"}}');var r=t(4848),l=t(8453),o=t(3267);const i=JSON.parse('{"$schema":"../../../lunatic-schema.json","components":[{"componentType":"Input","label":{"value":"\\"Pr\xe9nom de l\'occupant principal.\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"maxLength":30,"page":"1","id":"name","response":{"name":"PRENOM"},"declarations":[{"id":"kb9hi4j0-krnoclfe","declarationType":"INSTRUCTION","position":"BEFORE_QUESTION_TEXT","label":{"value":"\\"BEFORE_QUESTION_TEXT\\"","type":"VTL|MD"}},{"id":"jruq5os5-kqhuxnyt","declarationType":"COMMENT","position":"AFTER_QUESTION_TEXT","label":{"value":"\\"AFTER_QUESTION_TEXT\\"","type":"VTL|MD"}},{"id":"jruq5os5-kqhuxnyt","declarationType":"HELP","position":"AFTER_RESPONSE","label":{"value":"\\"AFTER_RESPONSE\\"","type":"VTL|MD"}},{"id":"jruq5os5-kqhuxnyt","declarationType":"CODECARD","position":"DETACHABLE","label":{"value":"\\"DETACHABLE\\"","type":"VTL|MD"}}]}],"variables":[{"variableType":"COLLECTED","name":"NOM","componentRef":"name","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}},{"variableType":"COLLECTED","name":"PRENOM","componentRef":"name","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var s=t(4264);const c=JSON.parse('{"$schema":"../../../../lunatic-schema.json","variables":[{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"COMMENT_QE"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTSURBOO"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTTEXTE"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTCODE"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTDATEA"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTDATEB"},{"variableType":"COLLECTED","values":{"COLLECTED":null,"EDITED":null,"INPUTTED":null,"FORCED":null,"PREVIOUS":null},"name":"TESTDATEC"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTSURBOO","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTTEXTE","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTCODE","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTDATEA","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTDATEB","inFilter":"false"},{"variableType":"CALCULATED","expression":{"type":"VTL","value":"true"},"name":"FILTER_RESULT_TESTDATEC","inFilter":"false"}],"components":[{"componentType":"Sequence","hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}},{"componentType":"CheckboxBoolean","bindingDependencies":["TESTSURBOO"],"controls":[{"bindingDependencies":["TESTSURBOO"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"booleen pas coch\xe9 et on affiche un message un peu long histoire de tester le truc \\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTSURBOO,false) = false)"},"id":"kfxmjupm-CI-0"},{"bindingDependencies":["TESTSURBOO"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"On a coch\xe9 le booleen et on met une phrase un peu longue car on veut tester ce qui s\u2019affiche\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTSURBOO,false) = true)"},"id":"kfxmjupm-CI-1"}],"response":{"name":"TESTSURBOO"},"hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"kfxmjupm","page":"2","label":{"type":"VTL|MD","value":"\\"\u27a1 1. \\" || \\"Controle sur booleen\\""},"mandatory":false},{"componentType":"Input","bindingDependencies":["TESTTEXTE"],"controls":[{"bindingDependencies":["TESTTEXTE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"a ne peut pas valoir BLABLA\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTTEXTE,\\"\\") = \\"BLABLA\\")"},"id":"kfxn6f16-CI-0"},{"bindingDependencies":["TESTTEXTE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"Cette phrase un peu longue s\u2019affiche si on a du vide pour la variable sur le texte inf\xe9rieur \xe0 255 caract\xe8res et voil\xe0\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(isnull(TESTTEXTE))"},"id":"kfxn6f16-CI-1"}],"response":{"name":"TESTTEXTE"},"hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"kfxn6f16","page":"3","label":{"type":"VTL|MD","value":"\\"\u27a1 2. \\" || \\"Controle sur du texte < 255\\""},"mandatory":false,"maxLength":15,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxn6f16-kfxn36ru","label":{"type":"VTL|MD","value":"\\"Tester la saisie de BLABLA\\""},"position":"AFTER_QUESTION_TEXT"}]},{"componentType":"CheckboxOne","bindingDependencies":["TESTCODE"],"controls":[{"bindingDependencies":["TESTCODE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"La variable vaut 1\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTCODE,\\"\\") = \\"1\\")"},"id":"kfxn91jl-CI-0"},{"bindingDependencies":["TESTCODE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"La variable ne vaut pas 1 et n\u2019est pas vide\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(nvl(TESTCODE,\\"\\") <> \\"1\\" and not(isnull(TESTCODE)))"},"id":"kfxn91jl-CI-1"},{"bindingDependencies":["TESTCODE"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"La variable est vide\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(isnull(TESTCODE))"},"id":"kfxn91jl-CI-2"}],"response":{"name":"TESTCODE"},"hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"options":[{"label":{"type":"VTL|MD","value":"Code 1"},"value":"1"},{"label":{"type":"VTL|MD","value":"Code 2"},"value":"2"},{"label":{"type":"VTL|MD","value":"Code 3"},"value":"3"}],"conditionFilter":{"type":"VTL","value":"true"},"id":"kfxn91jl","page":"4","label":{"type":"VTL|MD","value":"\\"\u27a1 3. \\" || \\"Controle sur code\\""},"mandatory":false,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxn91jl-kfxn7ugm","label":{"type":"VTL|MD","value":"\\"Tester cocher 1, ne rien cocher, cocher 2\\""},"position":"AFTER_QUESTION_TEXT"}]},{"componentType":"Datepicker","controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"La date saisie doit \xeatre comprise entre 1990-12-31 et 2040-12-31.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(TESTDATEA)) and (cast(TESTDATEA, date, \\"YYYY-MM-DD\\")>cast(\\"2040-12-31\\", date, \\"YYYY-MM-DD\\") or cast(TESTDATEA, date, \\"YYYY-MM-DD\\")<cast(\\"1990-12-31\\", date, \\"YYYY-MM-DD\\")))"},"id":"kfxnfv4l-formatborne"},{"bindingDependencies":["TESTDATEA"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"Date sup\xe9rieure \xe0 date du jour\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(cast(TESTDATEA,date,\\"YYYY-MM-DD\\") > cast(current_date(), date, \\"YYYY-MM-DD\\"))"},"id":"kfxnfv4l-CI-0"}],"max":"2040-12-31","dateFormat":"YYYY-MM-DD","hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"label":{"type":"VTL|MD","value":"\\"\u27a1 4. \\" || \\"Controle sur date AAAA-MM-JJ (saisie entre 31/12/1990 et 31/12/2040)\\""},"mandatory":false,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxnfv4l-kfxnywlg","label":{"type":"VTL|MD","value":"saisir une date > date du jour"},"position":"AFTER_QUESTION_TEXT"},{"declarationType":"HELP","id":"kfxnfv4l-kzgvf7oe","label":{"type":"VTL|MD","value":"cast(TESTDATEA,string)"},"position":"AFTER_QUESTION_TEXT"}],"bindingDependencies":["TESTDATEA"],"min":"1990-12-31","response":{"name":"TESTDATEA"},"id":"kfxnfv4l","page":"5"},{"componentType":"Datepicker","controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"La date saisie doit \xeatre comprise entre 2010-01 et 2030-12.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(TESTDATEB)) and (cast(TESTDATEB, date, \\"YYYY-MM\\")>cast(\\"2030-12\\", date, \\"YYYY-MM\\") or cast(TESTDATEB, date, \\"YYYY-MM\\")<cast(\\"2010-01\\", date, \\"YYYY-MM\\")))"},"id":"kfxnqc6m-formatborne"},{"bindingDependencies":["TESTDATEB"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"La date est sup\xe9rieure au 12 2010\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(TESTDATEB != \'\' and TESTDATEB > \'2010-12\')"},"id":"kfxnqc6m-CI-0"}],"max":"2030-12","dateFormat":"YYYY-MM","hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"label":{"type":"VTL|MD","value":"\\"\u27a1 5. \\" || \\"Controle sur date AAAA-MM (manque lunatic)\\""},"mandatory":false,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxnqc6m-kfxni8ox","label":{"type":"VTL|MD","value":"Date entre 01-2010 et 12-2030"},"position":"AFTER_QUESTION_TEXT"}],"bindingDependencies":["TESTDATEB"],"min":"2010-01","response":{"name":"TESTDATEB"},"id":"kfxnqc6m","page":"6"},{"componentType":"Datepicker","controls":[{"criticality":"ERROR","errorMessage":{"type":"VTL|MD","value":"\\"La date saisie doit \xeatre comprise entre 2010 et 2030.\\""},"typeOfControl":"FORMAT","control":{"type":"VTL","value":"not(not(isnull(TESTDATEC)) and (cast(TESTDATEC, date, \\"YYYY\\")>cast(\\"2030\\", date, \\"YYYY\\") or cast(TESTDATEC, date, \\"YYYY\\")<cast(\\"2010\\", date, \\"YYYY\\")))"},"id":"kfxnk34d-formatborne"},{"bindingDependencies":["TESTDATEC"],"criticality":"WARN","errorMessage":{"type":"VTL|MD","value":"\\"La date est sup\xe9rieure a 2020\\""},"typeOfControl":"CONSISTENCY","control":{"type":"VTL","value":"not(TESTDATEC > \'2020\' and TESTDATEC != \'\')"},"id":"kfxnk34d-CI-0"}],"max":"2030","dateFormat":"YYYY","hierarchy":{"sequence":{"id":"kfxmfvwj","page":"1","label":{"type":"VTL|MD","value":"\\"I - \\" || \\"TEST SUR BOOLEEN CODE DATE ET TEXTE\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"label":{"type":"VTL|MD","value":"\\"\u27a1 6. \\" || \\"Controle sur date AAAA (si sup\xe9rieur \xe0 2020) manque lunatic\\""},"mandatory":false,"declarations":[{"declarationType":"INSTRUCTION","id":"kfxnk34d-kfxnk172","label":{"type":"VTL|MD","value":"saisir une date > 2020"},"position":"AFTER_QUESTION_TEXT"}],"bindingDependencies":["TESTDATEC"],"min":"2010","response":{"name":"TESTDATEC"},"id":"kfxnk34d","page":"7"},{"componentType":"Sequence","hierarchy":{"sequence":{"id":"COMMENT-SEQ","page":"8","label":{"type":"VTL|MD","value":"\\"Commentaire\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"COMMENT-SEQ","page":"8","label":{"type":"VTL|MD","value":"\\"Commentaire\\""}},{"componentType":"Textarea","bindingDependencies":["COMMENT_QE"],"response":{"name":"COMMENT_QE"},"hierarchy":{"sequence":{"id":"COMMENT-SEQ","page":"8","label":{"type":"VTL|MD","value":"\\"Commentaire\\""}}},"conditionFilter":{"type":"VTL","value":"true"},"id":"COMMENT-QUESTION","page":"9","label":{"type":"VTL|MD","value":"\\"Avez-vous des remarques concernant l\'enqu\xeate ou des commentaires ?\\""},"mandatory":false,"maxLength":2000}],"pagination":"question","lunaticModelVersion":"2.2.14-rc","modele":"QTESTCONTNONNUM","enoCoreVersion":"2.3.10-controls-type","generatingDate":"06-09-2022 13:01:32","missing":false,"id":"kzguw1v7","label":{"type":"VTL|MD","value":"QNONREG Controles Non Num\xe9riques VTL"},"maxPage":"9"}'),T={},u="Propri\xe9t\xe9s de base",d={},p=[{value:"D\xe9clarations <GoToType></GoToType>",id:"d\xe9clarations-",level:2},{value:"Contr\xf4les <GoToType></GoToType>",id:"contr\xf4les-",level:2}];function E(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,l.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"propri\xe9t\xe9s-de-base",children:"Propri\xe9t\xe9s de base"})}),"\n","\n",(0,r.jsxs)(n.p,{children:["Les champs qui composent un formulaire Lunatic sont d\xe9finis dans la propri\xe9t\xe9 ",(0,r.jsx)(n.code,{children:"components"})," du fichier source JSON. Certaines propri\xe9t\xe9s sont communes \xe0 tous les composants :"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"label"}),", permet de d\xe9finir le libell\xe9 affich\xe9 au-dessus du champ"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"description"}),", permet de d\xe9finir un texte \xe0 afficher sous le libell\xe9"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"conditionFilter"}),", permet de d\xe9finir une condition d'affichage (sous forme d'expression VTL) qui devra renvoyer ",(0,r.jsx)(n.code,{children:"true"})," pour que le composant soit affich\xe9 lorsque l'on navigue sur la bonne page."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"id"}),", clef unique permettant d'identifier le champ"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"bindingDependencies"}),", liste des variables qui affectent la pr\xe9sentation des champs"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"mandatory"}),", pr\xe9cise si le champ doit \xeatre rempli par l'utilisateur (optionnel, se traduit par l'attribut ",(0,r.jsx)(n.code,{children:"required"})," au niveau HTML)"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"page"}),", page dans lequel le champ doit \xeatre pr\xe9sent\xe9"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Pour les composants qui permettent une entr\xe9e utilisateur des propri\xe9t\xe9s suppl\xe9mentaires sont disponibles :"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"response"}),", objet avec une propri\xe9t\xe9 ",(0,r.jsx)(n.code,{children:"name"})," permettant de d\xe9finir dans quelle variable sera sauvegard\xe9e la valeur associ\xe9e (exemple ",(0,r.jsx)(n.code,{children:'{"name": "PRENOM"}'}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"readOnly"}),", permet de mettre le champ en lecture seul (optionnel, expression VTL)."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"disabled"}),", permet de d\xe9sactiver le champ (il n'est plus focusable) (optionnel, expression VTL)."]}),"\n"]}),"\n",(0,r.jsx)(o.e,{type:"ComponentTypeBase"}),"\n",(0,r.jsxs)(n.h2,{id:"d\xe9clarations-",children:["D\xe9clarations ",(0,r.jsx)(o.e,{type:"DeclarationType"})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"declarations"}),", permettent d'ajouter du texte autour des composants."]}),"\n"]}),"\n","\n",(0,r.jsx)(s.L,{source:i}),"\n",(0,r.jsxs)(n.h2,{id:"contr\xf4les-",children:["Contr\xf4les ",(0,r.jsx)(o.e,{type:"ControlType"})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"controls"}),", d\xe9finit les contr\xf4les de validation \xe0 effectuer sur la valeur des champs."]}),"\n"]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsxs)(n.p,{children:["Les contr\xf4les n'ont aucun effet dans Lunatic directement, c'est \xe0 l'orchestrateur d'agir comme il le souhaite en utilisant la m\xe9thode ",(0,r.jsx)(n.code,{children:"compileControls()"})," ",(0,r.jsx)(n.a,{href:"/Lunatic/docs/hook/controls",children:"cf"}),"."]})}),"\n","\n",(0,r.jsx)(s.L,{source:c})]})}function m(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(E,{...e})}):E(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/f39704da.56e5d68a.js b/website/assets/js/f39704da.56e5d68a.js new file mode 100644 index 000000000..9fdf7c5d8 --- /dev/null +++ b/website/assets/js/f39704da.56e5d68a.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2411],{4264:(e,n,r)=>{"use strict";r.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var o=r(7119),s=r(6487),a=r(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var c=r(7020),d=r(4848);const u={};function p(e){let{source:n,data:p=u,options:m}=e;const x=n.maxPage&&"1"!==n.maxPage;return(0,d.jsxs)("div",{className:t.FormExample,children:[(0,d.jsxs)(o.A,{children:[(0,d.jsx)(s.A,{value:"source",label:"Source",default:!0,children:(0,d.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,d.jsx)(s.A,{value:"data",label:"Data",children:(0,d.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,d.jsxs)(o.A,{children:[(0,d.jsx)(s.A,{value:"code",label:"Code",children:(0,d.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:x?l:i})}),(0,d.jsx)(s.A,{value:"render",label:"Rendu",default:!0,children:(0,d.jsx)("div",{className:t.FormExampleRender,children:(0,d.jsx)(c.A,{fallback:(0,d.jsx)("div",{children:"Loading..."}),children:()=>{const e=x?r(5152).g:r(3314).S;return(0,d.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,r)=>{"use strict";r.d(n,{S:()=>s});var t=r(1999),o=r(4848);function s(e){let{source:n,data:r}=e;const{getComponents:s,Provider:a}=(0,t.O1)(n,r,{initialPage:"1"});return(0,o.jsx)(a,{children:(0,o.jsx)(t.R2,{components:s()})})}},5152:(e,n,r)=>{"use strict";r.d(n,{g:()=>a});var t=r(1999),o=r(6540),s=r(4848);function a(e){let{source:n,data:r,options:a}=e;const{getComponents:i,isLastPage:l,isFirstPage:c,goPreviousPage:d,goNextPage:u,Provider:p,compileControls:m}=(0,t.O1)(n,r,{initialPage:"1",...a}),[x,g]=(0,o.useState)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p,{children:(0,s.jsx)(t.R2,{components:i(),componentProps:()=>({errors:x?.currentErrors})})}),(0,s.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,s.jsx)("button",{className:"button button--primary",disabled:c,onClick:d,children:"Pr\xe9c\xe9dent"}),(0,s.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?g(e):u()},children:"Suivant"})]}),x&&(0,s.jsx)(t.I1,{errors:x.currentErrors,goNext:()=>{g(void 0),u()},onClose:()=>{g(void 0)},isCritical:x.isCritical})]})}},3267:(e,n,r)=>{"use strict";r.d(n,{e:()=>o});var t=r(4848);function o(e){let{type:n}=e;const r=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,t.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:r,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,t.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,t.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},2414:(e,n,r)=>{"use strict";r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>d,default:()=>x,frontMatter:()=>c,metadata:()=>t,toc:()=>p});const t=JSON.parse('{"id":"components/fields/radio","title":"Radio","description":"Permet de s\xe9lectionner une valeur parmi une liste d\'option","source":"@site/docs/components/fields/radio.mdx","sourceDirName":"components/fields","slug":"/components/fields/radio","permalink":"/Lunatic/docs/components/fields/radio","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/radio.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Suggester","permalink":"/Lunatic/docs/components/fields/suggester"},"next":{"title":"CheckboxOne","permalink":"/Lunatic/docs/components/fields/checkboxOne"}}');var o=r(4848),s=r(8453),a=r(3267);const i=JSON.parse('{"components":[{"id":"radio","componentType":"Radio","mandatory":false,"page":"3","label":{"value":"\\"Label for a Radio component\\"","type":"VTL|MD"},"description":{"value":"\\"Description of a Radio component\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"options":[{"value":"1","description":{"value":"\\"D\xe9claration oui\\"","type":"VTL|MD"},"label":{"value":"\\"oui\\"","type":"VTL|MD"}},{"value":"2","description":{"value":"\\"D\xe9claration non\\"","type":"VTL|MD"},"label":{"value":"\\"non\\"","type":"VTL|MD"}}],"response":{"name":"Q2"}}],"variables":[{"variableType":"COLLECTED","name":"Q2","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var l=r(4264);const c={},d="Radio",u={},p=[];function m(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"radio",children:"Radio"})}),"\n",(0,o.jsx)(n.p,{children:"Permet de s\xe9lectionner une valeur parmi une liste d'option"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"options"}),", liste des options s\xe9lectionnables","\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"value"}),", valeur a associ\xe9 \xe0 la r\xe9ponse"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"label"}),", libell\xe9 de l'option (expression VTL)"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"description"}),", libell\xe9 de l'option (expression VTL)"]}),"\n"]}),"\n"]}),"\n"]}),"\n","\n",(0,o.jsx)(a.e,{type:"ComponentRadioType"}),"\n","\n",(0,o.jsx)(l.L,{source:i})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/f398cc77.e656e3ff.js b/website/assets/js/f398cc77.e656e3ff.js new file mode 100644 index 000000000..7e829371e --- /dev/null +++ b/website/assets/js/f398cc77.e656e3ff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2369],{966:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>d,default:()=>u,frontMatter:()=>c,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"api/functions/ModalControls","title":"Function: ModalControls()","description":"ModalControls(props): ReactPortal \\\\| null","source":"@site/docs/api/functions/ModalControls.md","sourceDirName":"api/functions","slug":"/api/functions/ModalControls","permalink":"/Lunatic/docs/api/functions/ModalControls","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/functions/ModalControls.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticComponents","permalink":"/Lunatic/docs/api/functions/LunaticComponents"},"next":{"title":"useLunatic","permalink":"/Lunatic/docs/api/functions/useLunatic"}}');var s=t(4848),r=t(8453);const c={},d="Function: ModalControls()",i={},l=[{value:"Parameters",id:"parameters",level:2},{value:"Returns",id:"returns",level:2},{value:"Defined in",id:"defined-in",level:2}];function a(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"function-modalcontrols",children:"Function: ModalControls()"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"ModalControls"}),"(",(0,s.jsx)(n.code,{children:"props"}),"): ",(0,s.jsx)(n.code,{children:"ReactPortal"})," | ",(0,s.jsx)(n.code,{children:"null"})]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"props"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"Props"})})]})})]}),"\n",(0,s.jsx)(n.h2,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"ReactPortal"})," | ",(0,s.jsx)(n.code,{children:"null"})]}),"\n",(0,s.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/components/shared/ModalControls/ModalControls.tsx#L26",children:"src/components/shared/ModalControls/ModalControls.tsx:26"})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>c,x:()=>d});var o=t(6540);const s={},r=o.createContext(s);function c(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/f7562109.98de39b2.js b/website/assets/js/f7562109.98de39b2.js new file mode 100644 index 000000000..0acb7b215 --- /dev/null +++ b/website/assets/js/f7562109.98de39b2.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7737],{4264:(e,n,r)=>{"use strict";r.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var s=r(7119),o=r(6487),a=r(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",l="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var c=r(7020),u=r(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const x=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(o.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:x?l:i})}),(0,u.jsx)(o.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(c.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=x?r(5152).g:r(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,r)=>{"use strict";r.d(n,{S:()=>o});var t=r(1999),s=r(4848);function o(e){let{source:n,data:r}=e;const{getComponents:o,Provider:a}=(0,t.O1)(n,r,{initialPage:"1"});return(0,s.jsx)(a,{children:(0,s.jsx)(t.R2,{components:o()})})}},5152:(e,n,r)=>{"use strict";r.d(n,{g:()=>a});var t=r(1999),s=r(6540),o=r(4848);function a(e){let{source:n,data:r,options:a}=e;const{getComponents:i,isLastPage:l,isFirstPage:c,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,t.O1)(n,r,{initialPage:"1",...a}),[x,g]=(0,s.useState)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(p,{children:(0,o.jsx)(t.R2,{components:i(),componentProps:()=>({errors:x?.currentErrors})})}),(0,o.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,o.jsx)("button",{className:"button button--primary",disabled:c,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,o.jsx)("button",{className:"button button--primary",disabled:l,onClick:()=>{const e=m();e.currentErrors?g(e):d()},children:"Suivant"})]}),x&&(0,o.jsx)(t.I1,{errors:x.currentErrors,goNext:()=>{g(void 0),d()},onClose:()=>{g(void 0)},isCritical:x.isCritical})]})}},526:(e,n,r)=>{"use strict";r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>t,toc:()=>p});const t=JSON.parse('{"id":"components/fields/duration","title":"Duration","description":"Le composant Duration permet \xe0 l\'utilisateur de renseigner une dur\xe9e. Elle peut \xeatre d\xe9finie en :","source":"@site/docs/components/fields/duration.mdx","sourceDirName":"components/fields","slug":"/components/fields/duration","permalink":"/Lunatic/docs/components/fields/duration","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/components/fields/duration.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Datepicker","permalink":"/Lunatic/docs/components/fields/datepicker"},"next":{"title":"Dropdown","permalink":"/Lunatic/docs/components/fields/dropdown"}}');var s=r(4848),o=r(8453);const a=JSON.parse('{"components":[{"id":"kxi788","componentType":"Duration","mandatory":false,"format":"PTnHnM","page":"1","maxPage":"1","label":{"value":"\\"\u27a1 1. \\" || \\"Duration (format: PTnHnM) \\"","type":"VTL|MD"},"description":{"value":"\\"Description\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"DUREE"}}],"variables":[{"variableType":"COLLECTED","name":"DUREE","values":{"PREVIOUS":null,"COLLECTED":"PT12H50M","FORCED":null,"EDITED":null,"INPUTTED":null}}]}');var i=r(4264);const l=JSON.parse('{"components":[{"id":"kxi788","componentType":"Duration","mandatory":false,"format":"PnYnM","page":"1","maxPage":"1","label":{"value":"\\"\u27a1 1. \\" || \\"Duration (format: PnYnM) \\"","type":"VTL|MD"},"description":{"value":"\\"Description\\"","type":"VTL|MD"},"conditionFilter":{"value":"true","type":"VTL"},"response":{"name":"DUREE"}}],"variables":[{"variableType":"COLLECTED","name":"DUREE","values":{"PREVIOUS":null,"COLLECTED":"P4Y0M","FORCED":null,"EDITED":null,"INPUTTED":null}}]}'),c={},u="Duration",d={},p=[];function m(e){const n={h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"duration",children:"Duration"})}),"\n",(0,s.jsxs)(n.p,{children:["Le composant ",(0,s.jsx)(n.strong,{children:"Duration"})," permet \xe0 l'utilisateur de renseigner une dur\xe9e. Elle peut \xeatre d\xe9finie en :"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"ann\xe9es / mois (format : PnYnM)"}),"\n",(0,s.jsx)(n.li,{children:"heures / minutes (format : PTnHnM)"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Le composant pr\xe9sente deux champs de saisie, mais la donn\xe9e est enregistr\xe9e dans une variable commune.\nPar exemple en renseignant respectivement dans les champs 10 et 7, la valeur de la donn\xe9e sera :"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:'ann\xe9e / mois : "PT10H7M"'}),"\n",(0,s.jsx)(n.li,{children:'heures / minutes : "P10Y7M"'}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Si une seule des deux valeurs est renseign\xe9e, la seconde prend pour valeur 0 (ex : P0Y5M)."}),"\n",(0,s.jsx)(n.p,{children:"Il est impossible de renseigner une valeur sup\xe9rieure \xe0 59 minutes (resp. 11 mois)."}),"\n","\n",(0,s.jsx)(i.L,{source:a}),"\n","\n",(0,s.jsx)(i.L,{source:l})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(m,{...e})}):m(e)}},5843:()=>{}}]); \ No newline at end of file diff --git a/website/assets/js/f8409a7e.db1c9dd5.js b/website/assets/js/f8409a7e.db1c9dd5.js new file mode 100644 index 000000000..32f24b546 --- /dev/null +++ b/website/assets/js/f8409a7e.db1c9dd5.js @@ -0,0 +1 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6903],{4264:(e,n,r)=>{"use strict";r.d(n,{L:()=>p});const t={FormExample:"FormExample_a30K",FormExampleRender:"FormExampleRender_QfqF",FormExampleCode:"FormExampleCode_XePV","margin-top--md":"margin-top--md_TH4F"};var s=r(7119),o=r(6487),a=r(3007);const i="import {\n type LunaticData,\n type LunaticSource,\n useLunatic,\n LunaticComponents,\n} from '@inseefr/lunatic';\nimport '@inseefr/lunatic/lib/main.css'\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n};\n\nexport function FormRenderer({ source, data }: Props) {\n const { getComponents, Provider } = useLunatic(source, data, {\n initialPage: '1',\n });\n return (\n <Provider>\n <LunaticComponents components={getComponents()} />\n </Provider>\n );\n}\n",c="import {\n type LunaticData,\n type LunaticSource,\n type LunaticState,\n useLunatic,\n LunaticComponents,\n ModalControls,\n} from '@inseefr/lunatic';\nimport { useState } from 'react';\n\ntype Props = {\n source: LunaticSource;\n data: LunaticData;\n options?: {initialPage?: LunaticState['pageTag']},\n};\n\nexport function FormRendererWithNavigation({ source, data, options }: Props) {\n const {\n getComponents,\n isLastPage,\n isFirstPage,\n goPreviousPage,\n goNextPage,\n Provider,\n compileControls,\n } = useLunatic(source, data, {\n initialPage: '1' as LunaticState['pageTag'],\n ...options\n });\n\n // Les contr\xf4les doivent \xeatre v\xe9rifi\xe9s manuellement\n const [errors, setErrors] = useState<ReturnType<typeof compileControls>>();\n const handleNext = () => {\n const currentPageErrors = compileControls();\n if (currentPageErrors.currentErrors) {\n setErrors(currentPageErrors);\n } else {\n goNextPage();\n }\n };\n const forceNext = () => {\n setErrors(undefined);\n goNextPage();\n };\n const closeModal = () => {\n setErrors(undefined);\n };\n\n return (\n <div>\n <Provider>\n <LunaticComponents\n components={getComponents()}\n componentProps={() => ({\n errors: errors?.currentErrors,\n })}\n />\n </Provider>\n <div style={{ marginTop: '.7rem', display: 'flex', gap: '.2rem' }}>\n <button className=\"button button--primary\" disabled={isFirstPage} onClick={goPreviousPage}>\n Pr\xe9c\xe9dent\n </button>\n <button className=\"button button--primary\" disabled={isLastPage} onClick={handleNext}>\n Suivant\n </button>\n </div>\n {errors && (\n <ModalControls\n errors={errors.currentErrors}\n goNext={forceNext}\n onClose={closeModal}\n isCritical={errors.isCritical}\n />\n )}\n </div>\n );\n}\n";var l=r(7020),u=r(4848);const d={};function p(e){let{source:n,data:p=d,options:m}=e;const g=n.maxPage&&"1"!==n.maxPage;return(0,u.jsxs)("div",{className:t.FormExample,children:[(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"source",label:"Source",default:!0,children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(n,null,2)})}),(0,u.jsx)(o.A,{value:"data",label:"Data",children:(0,u.jsx)(a.A,{language:"json",className:t.FormExampleCode,children:JSON.stringify(p,null,2)})})]}),(0,u.jsxs)(s.A,{children:[(0,u.jsx)(o.A,{value:"code",label:"Code",children:(0,u.jsx)(a.A,{language:"tsx",className:t.FormExampleCode,children:g?c:i})}),(0,u.jsx)(o.A,{value:"render",label:"Rendu",default:!0,children:(0,u.jsx)("div",{className:t.FormExampleRender,children:(0,u.jsx)(l.A,{fallback:(0,u.jsx)("div",{children:"Loading..."}),children:()=>{const e=g?r(5152).g:r(3314).S;return(0,u.jsx)(e,{source:n,data:p,options:m})}})})})]})]})}},3314:(e,n,r)=>{"use strict";r.d(n,{S:()=>o});var t=r(1999),s=r(4848);function o(e){let{source:n,data:r}=e;const{getComponents:o,Provider:a}=(0,t.O1)(n,r,{initialPage:"1"});return(0,s.jsx)(a,{children:(0,s.jsx)(t.R2,{components:o()})})}},5152:(e,n,r)=>{"use strict";r.d(n,{g:()=>a});var t=r(1999),s=r(6540),o=r(4848);function a(e){let{source:n,data:r,options:a}=e;const{getComponents:i,isLastPage:c,isFirstPage:l,goPreviousPage:u,goNextPage:d,Provider:p,compileControls:m}=(0,t.O1)(n,r,{initialPage:"1",...a}),[g,h]=(0,s.useState)();return(0,o.jsxs)("div",{children:[(0,o.jsx)(p,{children:(0,o.jsx)(t.R2,{components:i(),componentProps:()=>({errors:g?.currentErrors})})}),(0,o.jsxs)("div",{style:{marginTop:".7rem",display:"flex",gap:".2rem"},children:[(0,o.jsx)("button",{className:"button button--primary",disabled:l,onClick:u,children:"Pr\xe9c\xe9dent"}),(0,o.jsx)("button",{className:"button button--primary",disabled:c,onClick:()=>{const e=m();e.currentErrors?h(e):d()},children:"Suivant"})]}),g&&(0,o.jsx)(t.I1,{errors:g.currentErrors,goNext:()=>{h(void 0),d()},onClose:()=>{h(void 0)},isCritical:g.isCritical})]})}},3746:(e,n,r)=>{"use strict";r.r(n),r.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>t,toc:()=>m});const t=JSON.parse('{"id":"intro","title":"D\xe9marrage","description":"Lunatic est une biblioth\xe8que React pour afficher des questionnaires con\xe7us sur l\'outil Pogues et g\xe9n\xe9r\xe9s au format Lunatic-Model via Eno.","source":"@site/docs/intro.mdx","sourceDirName":".","slug":"/","permalink":"/Lunatic/docs/","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/intro.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1,"slug":"/"},"sidebar":"docs","next":{"title":"hook useLunatic()","permalink":"/Lunatic/docs/category/hook-uselunatic"}}');var s=r(4848),o=r(8453),a=r(7119),i=r(6487),c=r(3067),l=r(4264);const u={sidebar_position:1,slug:"/"},d="D\xe9marrage",p={},m=[{value:"Pour commencer",id:"pour-commencer",level:2},{value:"Exemple",id:"exemple",level:2}];function g(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"d\xe9marrage",children:"D\xe9marrage"})}),"\n",(0,s.jsxs)(n.p,{children:["Lunatic est une biblioth\xe8que ",(0,s.jsx)(n.strong,{children:"React"})," pour afficher des questionnaires con\xe7us sur l'outil ",(0,s.jsx)(n.a,{href:"https://github.com/inseeFr/pogues",children:"Pogues"})," et g\xe9n\xe9r\xe9s au format ",(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic-Model",children:"Lunatic-Model"})," via ",(0,s.jsx)(n.a,{href:"https://github.com/inseeFr/eno",children:"Eno"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"pour-commencer",children:"Pour commencer"}),"\n",(0,s.jsxs)(n.p,{children:["Pour commencer \xe0 utiliser Lunatic dans votre application il faut t\xe9l\xe9charger la d\xe9pendance depuis ",(0,s.jsx)(n.code,{children:"npm"}),"."]}),"\n",(0,s.jsxs)(a.A,{groupId:"npm2yarn",children:[(0,s.jsx)(i.A,{value:"npm",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"npm install @inseefr/lunatic\n"})})}),(0,s.jsx)(i.A,{value:"yarn",label:"Yarn",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"yarn add @inseefr/lunatic\n"})})}),(0,s.jsx)(i.A,{value:"pnpm",label:"pnpm",children:(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"pnpm add @inseefr/lunatic\n"})})})]}),"\n",(0,s.jsx)(n.p,{children:"Ensuite la librairie se d\xe9compose en 2 parties :"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["un hook ",(0,s.jsx)(n.code,{children:"useLunatic()"})," qui permet de lire un fichier ",(0,s.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic-Model",children:"Lunatic-Model"})," et d'offrir les diff\xe9rentes fonctionnalit\xe9s permettant de naviguer dans les composants."]}),"\n",(0,s.jsxs)(n.li,{children:["un composant ",(0,s.jsx)(n.code,{children:"<LunaticComponents/>"})," qui permet d'afficher la liste des composants."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"exemple",children:"Exemple"}),"\n","\n",(0,s.jsx)(l.L,{source:c})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(g,{...e})}):g(e)}},5843:()=>{},3067:e=>{"use strict";e.exports=JSON.parse('{"components":[{"componentType":"Input","label":{"value":"\\"Nom de l\'occupant principal.\\"","type":"VTL|MD"},"maxLength":30,"id":"surname","description":{"value":"\\"For example, Bob.\\"","type":"VTL|MD"},"response":{"name":"NOM"},"page":"1"}],"variables":[{"variableType":"COLLECTED","name":"NOM","componentRef":"name","values":{"PREVIOUS":null,"COLLECTED":null,"FORCED":null,"EDITED":null,"INPUTTED":null}}]}')}}]); \ No newline at end of file diff --git a/website/assets/js/f97e9514.c47cf53a.js b/website/assets/js/f97e9514.c47cf53a.js new file mode 100644 index 000000000..295b51052 --- /dev/null +++ b/website/assets/js/f97e9514.c47cf53a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4717],{7021:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>l,contentTitle:()=>t,default:()=>a,frontMatter:()=>i,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"api/classes/VTLMissingDependencies","title":"Class: VTLMissingDependencies","description":"Extends","source":"@site/docs/api/classes/VTLMissingDependencies.md","sourceDirName":"api/classes","slug":"/api/classes/VTLMissingDependencies","permalink":"/Lunatic/docs/api/classes/VTLMissingDependencies","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/classes/VTLMissingDependencies.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"VTLInterpretationError","permalink":"/Lunatic/docs/api/classes/VTLInterpretationError"},"next":{"title":"VTLMissingDependency","permalink":"/Lunatic/docs/api/classes/VTLMissingDependency"}}');var d=r(4848),c=r(8453);const i={},t="Class: VTLMissingDependencies",l={},o=[{value:"Extends",id:"extends",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new VTLMissingDependencies()",id:"new-vtlmissingdependencies",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2},{value:"captureStackTrace()",id:"capturestacktrace",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,c.R)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.header,{children:(0,d.jsx)(s.h1,{id:"class-vtlmissingdependencies",children:"Class: VTLMissingDependencies"})}),"\n",(0,d.jsx)(s.h2,{id:"extends",children:"Extends"}),"\n",(0,d.jsxs)(s.ul,{children:["\n",(0,d.jsx)(s.li,{children:(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})})}),"\n"]}),"\n",(0,d.jsx)(s.h2,{id:"constructors",children:"Constructors"}),"\n",(0,d.jsx)(s.h3,{id:"new-vtlmissingdependencies",children:"new VTLMissingDependencies()"}),"\n",(0,d.jsxs)(s.blockquote,{children:["\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.strong,{children:"new VTLMissingDependencies"}),"(",(0,d.jsx)(s.code,{children:"expression"}),", ",(0,d.jsx)(s.code,{children:"dependencies"}),"): ",(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependencies",children:(0,d.jsx)(s.code,{children:"VTLMissingDependencies"})})]}),"\n"]}),"\n",(0,d.jsx)(s.h4,{id:"parameters",children:"Parameters"}),"\n",(0,d.jsxs)(s.table,{children:[(0,d.jsx)(s.thead,{children:(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.th,{children:"Parameter"}),(0,d.jsx)(s.th,{children:"Type"})]})}),(0,d.jsxs)(s.tbody,{children:[(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"expression"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"string"})})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"dependencies"})}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,d.jsx)(s.h4,{id:"returns",children:"Returns"}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLMissingDependencies",children:(0,d.jsx)(s.code,{children:"VTLMissingDependencies"})})}),"\n",(0,d.jsx)(s.h4,{id:"overrides",children:"Overrides"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#constructors",children:(0,d.jsx)(s.code,{children:"constructor"})})]}),"\n",(0,d.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L29",children:"src/use-lunatic/commons/variables/errors.ts:29"})}),"\n",(0,d.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,d.jsxs)(s.table,{children:[(0,d.jsx)(s.thead,{children:(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.th,{children:"Property"}),(0,d.jsx)(s.th,{children:"Modifier"}),(0,d.jsx)(s.th,{children:"Type"}),(0,d.jsx)(s.th,{children:"Description"}),(0,d.jsx)(s.th,{children:"Inherited from"}),(0,d.jsx)(s.th,{children:"Defined in"})]})}),(0,d.jsxs)(s.tbody,{children:[(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"cause?"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"public"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"unknown"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"cause"})]}),(0,d.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es2022.error.d.ts:24"})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"dependencies"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"readonly"})}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.code,{children:"string"}),"[]"]}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L31",children:"src/use-lunatic/commons/variables/errors.ts:31"})})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"expression"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"readonly"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"string"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"expression"})]}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/use-lunatic/commons/variables/errors.ts#L30",children:"src/use-lunatic/commons/variables/errors.ts:30"})})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"message"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"public"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"string"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"message"})]}),(0,d.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1077"})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"name"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"public"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"string"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"name"})]}),(0,d.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1076"})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"stack?"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"public"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"string"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"stack"})]}),(0,d.jsx)(s.td,{children:"website/node_modules/typescript/lib/lib.es5.d.ts:1078"})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"prepareStackTrace?"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"static"})}),(0,d.jsxs)(s.td,{children:["(",(0,d.jsx)(s.code,{children:"err"}),": ",(0,d.jsx)(s.code,{children:"Error"}),", ",(0,d.jsx)(s.code,{children:"stackTraces"}),": ",(0,d.jsx)(s.code,{children:"CallSite"}),"[]) => ",(0,d.jsx)(s.code,{children:"any"})]}),(0,d.jsxs)(s.td,{children:["Optional override for formatting stack traces ",(0,d.jsx)(s.strong,{children:"See"})," ",(0,d.jsx)(s.a,{href:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces",children:"https://v8.dev/docs/stack-trace-api#customizing-stack-traces"})]}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"prepareStackTrace"})]}),(0,d.jsx)(s.td,{children:"node_modules/@types/node/globals.d.ts:143"})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"stackTraceLimit"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"static"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"number"})}),(0,d.jsx)(s.td,{children:"-"}),(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.code,{children:"stackTraceLimit"})]}),(0,d.jsx)(s.td,{children:"node_modules/@types/node/globals.d.ts:145"})]})]})]}),"\n",(0,d.jsx)(s.h2,{id:"methods",children:"Methods"}),"\n",(0,d.jsx)(s.h3,{id:"capturestacktrace",children:"captureStackTrace()"}),"\n",(0,d.jsxs)(s.blockquote,{children:["\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.code,{children:"static"})," ",(0,d.jsx)(s.strong,{children:"captureStackTrace"}),"(",(0,d.jsx)(s.code,{children:"targetObject"}),", ",(0,d.jsx)(s.code,{children:"constructorOpt"}),"?): ",(0,d.jsx)(s.code,{children:"void"})]}),"\n"]}),"\n",(0,d.jsx)(s.p,{children:"Create .stack property on a target object"}),"\n",(0,d.jsx)(s.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,d.jsxs)(s.table,{children:[(0,d.jsx)(s.thead,{children:(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.th,{children:"Parameter"}),(0,d.jsx)(s.th,{children:"Type"})]})}),(0,d.jsxs)(s.tbody,{children:[(0,d.jsxs)(s.tr,{children:[(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"targetObject"})}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"object"})})]}),(0,d.jsxs)(s.tr,{children:[(0,d.jsxs)(s.td,{children:[(0,d.jsx)(s.code,{children:"constructorOpt"}),"?"]}),(0,d.jsx)(s.td,{children:(0,d.jsx)(s.code,{children:"Function"})})]})]})]}),"\n",(0,d.jsx)(s.h4,{id:"returns-1",children:"Returns"}),"\n",(0,d.jsx)(s.p,{children:(0,d.jsx)(s.code,{children:"void"})}),"\n",(0,d.jsx)(s.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,d.jsxs)(s.p,{children:[(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError",children:(0,d.jsx)(s.code,{children:"VTLExpressionError"})}),".",(0,d.jsx)(s.a,{href:"/Lunatic/docs/api/classes/VTLExpressionError#capturestacktrace",children:(0,d.jsx)(s.code,{children:"captureStackTrace"})})]}),"\n",(0,d.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,d.jsx)(s.p,{children:"node_modules/@types/node/globals.d.ts:136"})]})}function a(e={}){const{wrapper:s}={...(0,c.R)(),...e.components};return s?(0,d.jsx)(s,{...e,children:(0,d.jsx)(h,{...e})}):h(e)}},8453:(e,s,r)=>{r.d(s,{R:()=>i,x:()=>t});var n=r(6540);const d={},c=n.createContext(d);function i(e){const s=n.useContext(c);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function t(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),n.createElement(c.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/f9c40bd6.8662c030.js b/website/assets/js/f9c40bd6.8662c030.js new file mode 100644 index 000000000..806c4fc20 --- /dev/null +++ b/website/assets/js/f9c40bd6.8662c030.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5693],{3267:(e,n,s)=>{s.d(n,{e:()=>r});var i=s(4848);function r(e){let{type:n}=e;const s=`https://github.com/search?q=repo%3AInseeFr%2FLunatic+%22export+type+${n}%22&type=code`;return(0,i.jsxs)("a",{className:"button button--secondary",style:{display:"inline-flex",alignItems:"center",gap:".3rem"},href:s,target:"_blank",rel:"noopener noreferrer",children:["Voir le type",(0,i.jsx)("svg",{width:"13.5",height:"13.5","aria-hidden":"true",viewBox:"0 0 24 24",className:"iconExternalLink_node_modules-@docusaurus-theme-classic-lib-theme-Icon-ExternalLink-styles-module",children:(0,i.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})]})}},4409:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>i,toc:()=>o});const i=JSON.parse('{"id":"hook/parameters","title":"Param\xe8tres","description":"Le premier point d\'entr\xe9e avec la librairie est le hook useLunatic(source, data, options) qui prend 3 arguments :","source":"@site/docs/hook/parameters.mdx","sourceDirName":"hook","slug":"/hook/parameters","permalink":"/Lunatic/docs/hook/parameters","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/hook/parameters.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"hook useLunatic()","permalink":"/Lunatic/docs/category/hook-uselunatic"},"next":{"title":"Retour","permalink":"/Lunatic/docs/hook/return"}}');var r=s(4848),t=s(8453),d=s(3267);const l={},c="Param\xe8tres",a={},o=[{value:"Options <GoToType></GoToType>",id:"options",level:2},{value:"Vue d'ensemble",id:"vue-densemble",level:3},{value:"Utilisation",id:"utilisation",level:4},{value:"Structure des donn\xe9es de vue d'ensemble",id:"structure-des-donn\xe9es-de-vue-densemble",level:4},{value:"Suivi des changements",id:"trackChanges",level:3},{value:"Mode "Ne sais pas" / "Refus"",id:"missing",level:3},{value:"Mode "management"",id:"management",level:3}];function u(e){const n={a:"a",admonition:"admonition",code:"code",del:"del",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"param\xe8tres",children:"Param\xe8tres"})}),"\n","\n",(0,r.jsxs)(n.p,{children:["Le premier point d'entr\xe9e avec la librairie est le hook ",(0,r.jsx)(n.code,{children:"useLunatic(source, data, options)"})," qui prend 3 arguments :"]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["Un objet source correspondant \xe0 un ",(0,r.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic-Model",children:"mod\xe8le lunatic"}),". ",(0,r.jsx)(d.e,{type:"LunaticSource"})]}),"\n",(0,r.jsxs)(n.li,{children:["Un objet contenant les donn\xe9es du formulaire (s'il a \xe9t\xe9 pr\xe9rempli par exemple) ",(0,r.jsx)(d.e,{type:"LunaticData"})]}),"\n",(0,r.jsxs)(n.li,{children:["Un ",(0,r.jsx)(n.a,{href:"#options",children:"objet d'option"})," pour d\xe9finir des comportements sp\xe9cifique ",(0,r.jsx)(d.e,{type:"LunaticOptions"})]}),"\n"]}),"\n",(0,r.jsxs)(n.h2,{id:"options",children:["Options ",(0,r.jsx)(d.e,{type:"LunaticOptions"})]}),"\n",(0,r.jsxs)(n.p,{children:["Toutes les options sont ",(0,r.jsx)(n.strong,{children:"optionnelles"}),"."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"disableFilters"}),", d\xe9sactive les filtres de composants dans le questionnaire (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"features"}),", active le support du VTL et du Markdown (d\xe9faut ",(0,r.jsx)(n.code,{children:"['VTL', 'MD']"}),")"]}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsxs)(n.del,{children:[(0,r.jsx)(n.strong,{children:"preferences"})," (d\xe9faut ",(0,r.jsx)(n.code,{children:"['COLLECTED']"}),"), non utilis\xe9"]})}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"savingType"}),", d\xe9finit dans quelle clef sauvegarder les donn\xe9es (d\xe9faut ",(0,r.jsx)(n.code,{children:"'COLLECTED'"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"onChange"}),", m\xe9thode appel\xe9e lorsqu'une variable change suite \xe0 une action utilisateur (doit \xeatre m\xe9mo\xefs\xe9 car utilis\xe9 en d\xe9pendance d'un useCallback en interne). (optionnel ",(0,r.jsx)(n.code,{children:"(response: {name: string}, value: any, args?: {iteration?: number}) => {}"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"management"}),", active le ",(0,r.jsx)(n.a,{href:"#management",children:"mode management"})," (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"shortcut"}),", active les racourcis clavier pour les cases \xe0 cocher / radio et boutons ne sait pas / refus (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"initialPage"}),", d\xe9finit la page de d\xe9marrage (d\xe9faut ",(0,r.jsx)(n.code,{children:"'1'"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"lastReachedPage"}),", d\xe9finit la derni\xe8re page atteinte (d\xe9faut ",(0,r.jsx)(n.code,{children:"undefined"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"autoSuggesterLoading"}),", active le pr\xe9chargement des donn\xe9es du suggester \xe0 l'initialisation de Lunatic (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"getReferentiel"})," promesse appel\xe9e pour r\xe9cup\xe9rer les nomenclatures necessaire au fonctionnement des suggesters (",(0,r.jsx)(n.code,{children:"(name: string) => Promise<Array<unknown>>"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"activeControls"})," active les controles (default ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"withOverview"}),", active le syst\xe8me de ",(0,r.jsx)(n.a,{href:"#vue-densemble",children:"vue d'ensemble"})," (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missing"}),", active le syst\xe8me de ",(0,r.jsx)(n.a,{href:"#missing",children:"missing"})," (Ne sait pas / Refus) (d\xe9fault ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missingStrategy"})," fonction ex\xe9cut\xe9e au clique sur un button missing (d\xe9faut ",(0,r.jsx)(n.code,{children:"emptyFn"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missingShortcut"})," raccourcis clavier d\xe9clanchant les boutons missing (d\xe9faut ",(0,r.jsx)(n.code,{children:"{ dontKnow: '', refused: '' }"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"dontKnowButton"}),' label du bouton "Ne sait pas" (d\xe9faut ',(0,r.jsx)(n.code,{children:"{ fr: 'Ne sais pas', en: \"Don't know\" }"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"refusedButton"}),' label du bouton "Refus" (d\xe9faut ',(0,r.jsx)(n.code,{children:"{ fr: 'Refus', en: 'Refused' }"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"trackChanges"}),", active le ",(0,r.jsx)(n.a,{href:"#trackChanges",children:"suivi des changements"})," (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),"),"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"componentsOptions"})," permet de d\xe9finir des options sur le fonctionnement des composants. Toutes les options sont optionnelles (d\xe9faut objet contenant la valeur par d\xe9faut de chaque param\xe8tre)","\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"detailAlwaysDisplayed"})," permet d'afficher par d\xe9faut les modalit\xe9s 'detail' associ\xe9es aux modalit\xe9s de r\xe9ponse"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"vue-densemble",children:"Vue d'ensemble"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"withOverview"}),", active le syst\xe8me de vue d'ensemble (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n"]}),"\n",(0,r.jsx)(n.h4,{id:"utilisation",children:"Utilisation"}),"\n",(0,r.jsxs)(n.p,{children:["Pour activer le syst\xe8me de vue d'ensemble, d\xe9finissez ",(0,r.jsx)(n.code,{children:"withOverview"})," sur ",(0,r.jsx)(n.code,{children:"true"})," lors de l'appel \xe0 ",(0,r.jsx)(n.code,{children:"useLunatic"})," :"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"const {\n overview\n} = useLunatic(source, data, {withOverview: true})\n"})}),"\n",(0,r.jsx)(n.h4,{id:"structure-des-donn\xe9es-de-vue-densemble",children:"Structure des donn\xe9es de vue d'ensemble"}),"\n",(0,r.jsxs)(n.p,{children:["Lorsque l'option ",(0,r.jsx)(n.code,{children:"withOverview"})," est activ\xe9e, le retour de ",(0,r.jsx)(n.code,{children:"useLunatic"})," inclura une propri\xe9t\xe9 ",(0,r.jsx)(n.code,{children:"overview"}),", qui est un tableau d'objets de type ",(0,r.jsx)(n.code,{children:"InterpretedLunaticOverviewItem"}),". L'overview est constitu\xe9 de l'ensemble des s\xe9quences du questionnaire, chaque sequence peut contenir des sous s\xe9quence qui seront disponible dans ",(0,r.jsx)(n.code,{children:"children"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"Chaque \xe9l\xe9ment de la vue d'ensemble a la structure suivante :"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"id"}),": Identifiant unique de l'\xe9l\xe9ment."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"type"}),": Type de l'\xe9l\xe9ment."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"page"}),": Tag de la page o\xf9 se trouve l'\xe9l\xe9ment."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"label"}),": Libell\xe9 de l'\xe9l\xe9ment, rendu avec React."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"description"}),": Description de l'\xe9l\xe9ment, rendue avec React."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"reached"}),": Indique si l'\xe9l\xe9ment a \xe9t\xe9 atteint."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"current"}),": Indique si nous sommes actuellement dans cet \xe9l\xe9ment ou dans un de ses enfants."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"children"}),": Tableau des sous-\xe9l\xe9ments de l'\xe9l\xe9ment."]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["La propri\xe9t\xe9 ",(0,r.jsx)(n.code,{children:"children"})," contient les sous-s\xe9quences de la s\xe9quence principale."]}),"\n",(0,r.jsx)(n.h3,{id:"trackChanges",children:"Suivi des changements"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"trackChanges"}),", active le suivi des changements (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),"),"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Afin de simplifier le suivi des changements ",(0,r.jsx)(n.code,{children:"@inseefr/lunatic"})," offre un syst\xe8me int\xe9gr\xe9 permettant d'obtenir les variables modifi\xe9es entre 2 \xe9tapes. Cela permet par exemple de mettre en place une synchronisation partielle des donn\xe9es au fil du remplissage du formulaire (plut\xf4t que d'attendre la finalisation du formulaire)."]}),"\n",(0,r.jsxs)(n.p,{children:["Pour activer ce mode de suivi, passez l'option ",(0,r.jsx)(n.code,{children:"trackChanges"})," \xe0 ",(0,r.jsx)(n.code,{children:"true"}),". Le hook ",(0,r.jsx)(n.code,{children:"useLunatic()"})," renverra alors 2 m\xe9thodes suppl\xe9mentaires permettant de contr\xf4ler le suivi des changements."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-tsx",children:"const {\n getChangedData,\n resetChangedData,\n} = useLunatic(source, data, {trackChanges: true})\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"getChangedData(reset: boolean = false)"}),", r\xe9cup\xe8re les donn\xe9es qui ont chang\xe9 depuis le dernier reset. Le format de retour est le m\xeame que ",(0,r.jsx)(n.code,{children:"getData()"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"resetChangedData()"}),", vide le dictionnaire des variables chang\xe9e"]}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"missing",children:'Mode "Ne sais pas" / "Refus"'}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missing"})," (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Ce mode permet \xe0 l'utilisateur d'indiquer qu'il ne connait pas la r\xe9ponse \xe0 une question ou qu'il souhaite ne pas y r\xe9pondre. Des options suppl\xe9mentaires permettent de d\xe9finir le comportement des boutons."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missingStrategy"})," fonction ex\xe9cut\xe9e au clique sur un button missing (d\xe9faut ",(0,r.jsx)(n.code,{children:"emptyFn"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"missingShortcut"})," raccourcis clavier d\xe9clanchant les boutons missing (d\xe9faut ",(0,r.jsx)(n.code,{children:"{ dontKnow: '', refused: '' }"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"dontKnowButton"}),' label du bouton "Ne sait pas" (d\xe9faut ',(0,r.jsx)(n.code,{children:"{ fr: 'Ne sais pas', en: \"Don't know\" }"}),")"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"refusedButton"}),' label du bouton "Refus" (d\xe9faut ',(0,r.jsx)(n.code,{children:"{ fr: 'Refus', en: 'Refused' }"}),")"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Pour chaque champ une clef ",(0,r.jsx)(n.code,{children:"missingResponse"})," doit enregistrer le choix fait par l'utilisateur."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-json",children:'{\n "missingResponse": { "name": "READY_MISSING" }\n}\n'})}),"\n",(0,r.jsxs)(n.p,{children:["La valeur de cette r\xe9ponse sera ",(0,r.jsx)(n.code,{children:"RF"})," en cas de refus, ",(0,r.jsx)(n.code,{children:"DK"}),' en cas de "Je ne sais pas".']}),"\n",(0,r.jsx)(n.h3,{id:"management",children:'Mode "management"'}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"management"}),", active le mode management (d\xe9faut ",(0,r.jsx)(n.code,{children:"false"}),")"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Ce mode permet de g\xe9rer plusieurs \xe9tats de la m\xeame variable (utilis\xe9 par les positions de r\xe9cup\xe9ration). L'administrateur pourra osciller entre le mode ",(0,r.jsx)(n.code,{children:"COLLECTED"}),", ",(0,r.jsx)(n.code,{children:"EDITED"}),", ",(0,r.jsx)(n.code,{children:"INPUTTED"}),"..."]}),"\n",(0,r.jsx)(n.admonition,{type:"warning",children:(0,r.jsxs)(n.p,{children:["Ce mode n'est pas encore impl\xe9ment\xe9, l'option ",(0,r.jsx)(n.code,{children:"management"})," n'a pas donc pas d'effet pour le moment."]})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>d,x:()=>l});var i=s(6540);const r={},t=i.createContext(r);function d(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/f9cde7f6.9a40a539.js b/website/assets/js/f9cde7f6.9a40a539.js new file mode 100644 index 000000000..e7fab25a2 --- /dev/null +++ b/website/assets/js/f9cde7f6.9a40a539.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3553],{1410:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>a,frontMatter:()=>i,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"hook/controls","title":"Gestion des contr\xf4les","description":"Les contr\xf4les permettent de d\xe9finir les r\xe8gles de validation dans le questionnaire (sous forme d\'expression VTL). Le hook useLunatic fournit une fonction compileControls permettant d\'ex\xe9cuter ces contr\xf4les et de r\xe9cup\xe9rer les erreurs.","source":"@site/docs/hook/controls.mdx","sourceDirName":"hook","slug":"/hook/controls","permalink":"/Lunatic/docs/hook/controls","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/hook/controls.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"Navigation","permalink":"/Lunatic/docs/hook/navigation"},"next":{"title":"Afficher le formulaire","permalink":"/Lunatic/docs/components/lunatic-components"}}');var t=r(4848),o=r(8453);const i={},c="Gestion des contr\xf4les",l={},d=[{value:"Structure d'un contr\xf4le",id:"structure-dun-contr\xf4le",level:2},{value:"Utilisation des contr\xf4les dans les orchestrateurs",id:"utilisation-des-contr\xf4les-dans-les-orchestrateurs",level:2}];function u(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"gestion-des-contr\xf4les",children:"Gestion des contr\xf4les"})}),"\n",(0,t.jsxs)(n.p,{children:["Les contr\xf4les permettent de d\xe9finir les r\xe8gles de validation dans le questionnaire (sous forme d'expression VTL). Le hook ",(0,t.jsx)(n.code,{children:"useLunatic"})," fournit une fonction ",(0,t.jsx)(n.code,{children:"compileControls"})," permettant d'ex\xe9cuter ces contr\xf4les et de r\xe9cup\xe9rer les erreurs."]}),"\n",(0,t.jsx)(n.h2,{id:"structure-dun-contr\xf4le",children:"Structure d'un contr\xf4le"}),"\n",(0,t.jsx)(n.p,{children:"Les contr\xf4les sont d\xe9finis au niveau des composants dans la source. Chaque contr\xf4le poss\xe8de les caract\xe9ristiques suivantes :"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Criticit\xe9 :"})," Peut \xeatre d\xe9finie comme information, avertissement ou erreur."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Type de contr\xf4le :"})," Peut \xeatre de format ou de coh\xe9rence."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Expression :"})," D\xe9finit la condition d'affichage du contr\xf4le."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Message d'erreur :"})," Message affich\xe9 en cas de non-validation du contr\xf4le."]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"L'expression et le message d'erreur peuvent \xeatre dynamiques et personnalis\xe9es via le VTL. La structure TypeScript d'un contr\xf4le est la suivante :"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"export type ControlType = {\n id: string;\n criticality: 'INFO' | 'WARN' | 'ERROR';\n typeOfControl: 'FORMAT' | 'CONSISTENCY';\n control: {value: string, type: 'VTL'};\n errorMessage: {value: string, type: 'VTL' | 'VTL|MD' | 'TXT'};\n bindingDependencies?: string[];\n type?: 'roundabout' | 'ROW' | 'simple';\n iterations?: number;\n};\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Les types ",(0,t.jsx)(n.code,{children:"'roundabout'"})," et ",(0,t.jsx)(n.code,{children:"'ROW'"})," d\xe9finissent des contr\xf4les sp\xe9cifiques. ",(0,t.jsx)(n.code,{children:"'ROW'"})," est utilis\xe9 uniquement dans un tableau pour d\xe9finir un contr\xf4le de ligne, tandis que ",(0,t.jsx)(n.code,{children:"'roundabout'"})," est utilis\xe9 dans le composant rond-point."]}),"\n",(0,t.jsx)(n.h2,{id:"utilisation-des-contr\xf4les-dans-les-orchestrateurs",children:"Utilisation des contr\xf4les dans les orchestrateurs"}),"\n",(0,t.jsxs)(n.p,{children:["Le hook Lunatic fournit la fonction ",(0,t.jsx)(n.code,{children:"compileControls"}),", qui permet de r\xe9cup\xe9rer la liste des erreurs courantes ainsi qu'un bool\xe9en ",(0,t.jsx)(n.code,{children:"isCritical"}),". Ce dernier vaut ",(0,t.jsx)(n.code,{children:"true"})," lorsqu'il y a une erreur avec une criticit\xe9 ",(0,t.jsx)(n.code,{children:"ERROR"})," ou de type de contr\xf4le ",(0,t.jsx)(n.code,{children:"FORMAT"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"Les composants peuvent ensuite utiliser ces erreurs en tant que propri\xe9t\xe9s pour les afficher."}),"\n",(0,t.jsxs)(n.p,{children:["Par exemple, en utilisant ",(0,t.jsx)(n.code,{children:"compileControls"})," \xe0 chaque changement de page :"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"const [errors, setErrors] = useState();\n\nconst handleGoNext = () => {\n const { currentErrors } = compileControls();\n setErrors(currentErrors);\n if (!currentErrors) {\n goNextPage();\n }\n};\n\nreturn (\n <>\n {/* ... */}\n <LunaticComponents\n components={components}\n componentProps={() => ({\n // highlight-start\n errors: errors,\n // highlight-end\n })}\n />\n {/* ... */}\n </>\n);\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Dans cet exemple, ",(0,t.jsx)(n.code,{children:"currentErrors"})," contient les erreurs actuelles retourn\xe9es par ",(0,t.jsx)(n.code,{children:"compileControls"}),". Si aucune erreur n'est pr\xe9sente, la fonction ",(0,t.jsx)(n.code,{children:"goNextPage()"})," est appel\xe9e pour passer \xe0 la page suivante."]})]})}function a(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>i,x:()=>c});var s=r(6540);const t={},o=s.createContext(t);function i(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/fa29edc5.081c785e.js b/website/assets/js/fa29edc5.081c785e.js new file mode 100644 index 000000000..6fcfb5775 --- /dev/null +++ b/website/assets/js/fa29edc5.081c785e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6136],{6076:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"internal/resizing","title":"Resizing","description":"Le resizing permet de synchroniser la taille de plusieurs variables. Par exemple lorsque l\'on rajoute des personnes, on va ajuster la liste des ages. Ce processus est d\xe9clar\xe9 dans la propri\xe9t\xe9 resizing.","source":"@site/docs/internal/resizing.mdx","sourceDirName":"internal","slug":"/internal/resizing","permalink":"/Lunatic/docs/internal/resizing","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/internal/resizing.mdx","tags":[],"version":"current","frontMatter":{},"sidebar":"docs","previous":{"title":"\xc9tat & Reducer","permalink":"/Lunatic/docs/internal/reducer"},"next":{"title":"Cleaning","permalink":"/Lunatic/docs/internal/cleaning"}}');var t=s(4848),i=s(8453);const a={},o="Resizing",l={},c=[];function d(e){const n={admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"resizing",children:"Resizing"})}),"\n",(0,t.jsx)(n.p,{children:"Le resizing permet de synchroniser la taille de plusieurs variables. Par exemple lorsque l'on rajoute des personnes, on va ajuster la liste des ages. Ce processus est d\xe9clar\xe9 dans la propri\xe9t\xe9 resizing."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:'{\n\t"resizing": {\n\t\t"NB": {\n\t\t\t"variables": ["PRENOM", "AGE"],\n\t\t\t"size": "cast(NB,integer)"\n\t\t}\n\t}\n}\n'})}),"\n",(0,t.jsxs)(n.p,{children:["On observe les changements de la variable ",(0,t.jsx)(n.code,{children:"NB"})," et lorsqu'elle change, on va calculer la taille associ\xe9e gr\xe0ce \xe0 l'expression dans la propri\xe9t\xe9 ",(0,t.jsx)(n.code,{children:"size"}),". Les variables list\xe9es dans ",(0,t.jsx)(n.code,{children:"variables"})," seront automatiquement dimensionn\xe9es \xe0 la bonne taille."]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsx)(n.p,{children:"Vous ne pouvez observer que des variables collect\xe9es."})})]})}function u(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>o});var r=s(6540);const t={},i=r.createContext(t);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/fed19d79.1afdc356.js b/website/assets/js/fed19d79.1afdc356.js new file mode 100644 index 000000000..f628e83aa --- /dev/null +++ b/website/assets/js/fed19d79.1afdc356.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8738],{2035:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>h,frontMatter:()=>d,metadata:()=>s,toc:()=>t});const s=JSON.parse('{"id":"api/type-aliases/LunaticSource","title":"Type Alias: LunaticSource","description":"LunaticSource: object","source":"@site/docs/api/type-aliases/LunaticSource.md","sourceDirName":"api/type-aliases","slug":"/api/type-aliases/LunaticSource","permalink":"/Lunatic/docs/api/type-aliases/LunaticSource","draft":false,"unlisted":false,"editUrl":"https://github.com/InseeFr/Lunatic/tree/3.0/docs/docs/api/type-aliases/LunaticSource.md","tags":[],"version":"current","frontMatter":{},"sidebar":"typedocSidebar","previous":{"title":"LunaticSlotComponents","permalink":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents"},"next":{"title":"LunaticState","permalink":"/Lunatic/docs/api/type-aliases/LunaticState"}}');var c=i(4848),l=i(8453);const d={},r="Type Alias: LunaticSource",o={},t=[{value:"Type declaration",id:"type-declaration",level:2},{value:"cleaning?",id:"cleaning",level:3},{value:"Index Signature",id:"index-signature",level:4},{value:"components",id:"components",level:3},{value:"enoCoreVersion?",id:"enocoreversion",level:3},{value:"generatingDate?",id:"generatingdate",level:3},{value:"id?",id:"id",level:3},{value:"label?",id:"label",level:3},{value:"lunaticModelVersion?",id:"lunaticmodelversion",level:3},{value:"maxPage?",id:"maxpage",level:3},{value:"missingBlock?",id:"missingblock",level:3},{value:"Index Signature",id:"index-signature-1",level:4},{value:"modele?",id:"modele",level:3},{value:"pagination?",id:"pagination",level:3},{value:"resizing?",id:"resizing",level:3},{value:"Index Signature",id:"index-signature-2",level:4},{value:"suggesters?",id:"suggesters",level:3},{value:"variables",id:"variables",level:3},{value:"Defined in",id:"defined-in",level:2}];function a(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",strong:"strong",...(0,l.R)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.header,{children:(0,c.jsx)(n.h1,{id:"type-alias-lunaticsource",children:"Type Alias: LunaticSource"})}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"LunaticSource"}),": ",(0,c.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,c.jsx)(n.p,{children:"A lunatic survey unit"}),"\n",(0,c.jsx)(n.h2,{id:"type-declaration",children:"Type declaration"}),"\n",(0,c.jsx)(n.h3,{id:"cleaning",children:"cleaning?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"cleaning"}),": ",(0,c.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,c.jsx)(n.h4,{id:"index-signature",children:"Index Signature"}),"\n",(0,c.jsxs)(n.p,{children:["[",(0,c.jsx)(n.code,{children:"k"}),": ",(0,c.jsx)(n.code,{children:"string"}),"]: ",(0,c.jsx)(n.code,{children:"object"})]}),"\n",(0,c.jsx)(n.h3,{id:"components",children:"components"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"components"}),": ",(0,c.jsx)(n.code,{children:"ComponentDefinitionWithPage"}),"[]"]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"enocoreversion",children:"enoCoreVersion?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"enoCoreVersion"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"generatingdate",children:"generatingDate?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"generatingDate"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"id",children:"id?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"id"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"label",children:"label?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"label"}),": ",(0,c.jsx)(n.code,{children:"VTLExpression"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"lunaticmodelversion",children:"lunaticModelVersion?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"lunaticModelVersion"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"maxpage",children:"maxPage?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"maxPage"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"missingblock",children:"missingBlock?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"missingBlock"}),": ",(0,c.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,c.jsx)(n.h4,{id:"index-signature-1",children:"Index Signature"}),"\n",(0,c.jsxs)(n.p,{children:["[",(0,c.jsx)(n.code,{children:"k"}),": ",(0,c.jsx)(n.code,{children:"string"}),"]: ",(0,c.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,c.jsx)(n.h3,{id:"modele",children:"modele?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"modele"}),": ",(0,c.jsx)(n.code,{children:"string"})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"pagination",children:"pagination?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"pagination"}),": ",(0,c.jsx)(n.code,{children:'"question"'})," | ",(0,c.jsx)(n.code,{children:'"sequence"'})]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"resizing",children:"resizing?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"resizing"}),": ",(0,c.jsx)(n.code,{children:"object"})]}),"\n"]}),"\n",(0,c.jsx)(n.h4,{id:"index-signature-2",children:"Index Signature"}),"\n",(0,c.jsxs)(n.p,{children:["[",(0,c.jsx)(n.code,{children:"k"}),": ",(0,c.jsx)(n.code,{children:"string"}),"]: ",(0,c.jsx)(n.code,{children:"object"})," | ",(0,c.jsx)(n.code,{children:"object"})," | ",(0,c.jsx)(n.code,{children:"object"})]}),"\n",(0,c.jsx)(n.h3,{id:"suggesters",children:"suggesters?"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.code,{children:"optional"})," ",(0,c.jsx)(n.strong,{children:"suggesters"}),": ",(0,c.jsx)(n.code,{children:"SuggesterDefinition"}),"[]"]}),"\n"]}),"\n",(0,c.jsx)(n.h3,{id:"variables",children:"variables"}),"\n",(0,c.jsxs)(n.blockquote,{children:["\n",(0,c.jsxs)(n.p,{children:[(0,c.jsx)(n.strong,{children:"variables"}),": ",(0,c.jsx)(n.code,{children:"Variable"}),"[]"]}),"\n"]}),"\n",(0,c.jsx)(n.h2,{id:"defined-in",children:"Defined in"}),"\n",(0,c.jsx)(n.p,{children:(0,c.jsx)(n.a,{href:"https://github.com/InseeFr/Lunatic/blob/869b8886c27197759b95541a790eb48450353a48/src/type.source.ts#L267",children:"src/type.source.ts:267"})})]})}function h(e={}){const{wrapper:n}={...(0,l.R)(),...e.components};return n?(0,c.jsx)(n,{...e,children:(0,c.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>d,x:()=>r});var s=i(6540);const c={},l=s.createContext(c);function d(e){const n=s.useContext(l);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:d(e.components),s.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/website/assets/js/main.d810294f.js b/website/assets/js/main.d810294f.js new file mode 100644 index 000000000..473232d4f --- /dev/null +++ b/website/assets/js/main.d810294f.js @@ -0,0 +1,2 @@ +/*! For license information please see main.d810294f.js.LICENSE.txt */ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8792],{8858:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});n(6540);var r=n(3259),o=n.n(r),a=n(4054);const i={"029f537f":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(4459)]).then(n.bind(n,7287)),"@site/docs/components/decorations/question.mdx",7287],"0cb2ce6a":[()=>n.e(9231).then(n.bind(n,6509)),"@site/docs/api/functions/useLunatic.md",6509],"0e7a0dc8":[()=>n.e(891).then(n.bind(n,7951)),"@site/docs/internal/missing.mdx",7951],"0ea626f8":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(1585)]).then(n.bind(n,6609)),"@site/docs/components/fields/input.mdx",6609],"0f175527":[()=>n.e(6298).then(n.bind(n,2709)),"@site/src/pages/changelog.mdx",2709],"1067611d":[()=>n.e(5021).then(n.bind(n,9770)),"@site/docs/api/type-aliases/LunaticPager.md",9770],"14eb3368":[()=>Promise.all([n.e(1869),n.e(6969)]).then(n.bind(n,5985)),"@theme/DocCategoryGeneratedIndexPage",5985],17896441:[()=>Promise.all([n.e(1869),n.e(1107),n.e(532),n.e(8401)]).then(n.bind(n,1742)),"@theme/DocItem",1742],"1d80a4d6":[()=>n.e(5757).then(n.bind(n,5528)),"@site/docs/api/type-aliases/LunaticExpression.md",5528],"1ec6518c":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(431)]).then(n.bind(n,8545)),"@site/docs/components/fields/textarea.mdx",8545],"1f391b9e":[()=>Promise.all([n.e(1869),n.e(1107),n.e(532),n.e(6061)]).then(n.bind(n,2695)),"@theme/MDXPage",2695],"2088de68":[()=>n.e(1710).then(n.t.bind(n,7542,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-fonctionnement-interne-85f.json",7542],"22544e41":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(8120)]).then(n.bind(n,1784)),"@site/docs/components/fields/datepicker.mdx",1784],"2a2339b9":[()=>n.e(8074).then(n.bind(n,8156)),"@site/docs/api/classes/VTLInterpretationError.md",8156],"32530c60":[()=>n.e(2633).then(n.t.bind(n,783,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-agregateurs-2ad.json",783],"3b33ea71":[()=>n.e(8164).then(n.bind(n,3176)),"@site/docs/api/type-aliases/LunaticComponentProps.md",3176],"43f86adf":[()=>n.e(5891).then(n.bind(n,3129)),"@site/docs/api/interfaces/LunaticExtraProps.md",3129],"4445d26b":[()=>n.e(1648).then(n.bind(n,4820)),"@site/docs/api/type-aliases/LunaticOptions.md",4820],45833858:[()=>n.e(7675).then(n.bind(n,440)),"@site/docs/api/type-aliases/LunaticCollectedValue.md",440],"46db7f29":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(2419)]).then(n.bind(n,8194)),"@site/docs/components/fields/checkboxGroup.mdx",8194],"4d072e10":[()=>n.e(1936).then(n.bind(n,369)),"@site/docs/api/type-aliases/LunaticError.md",369],"4e1b86ca":[()=>n.e(373).then(n.bind(n,2501)),"@site/docs/api/type-aliases/LunaticComponentDefinition.md",2501],"4fe25d84":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(3371)]).then(n.bind(n,7285)),"@site/docs/components/aggregators/loop.mdx",7285],"53eb1e5c":[()=>n.e(8336).then(n.bind(n,7515)),"@site/docs/hook/track-changes.mdx",7515],"58e0c7b0":[()=>n.e(6655).then(n.bind(n,8793)),"@site/docs/api/type-aliases/LunaticChangesHandler.md",8793],"5c547149":[()=>n.e(9385).then(n.bind(n,1285)),"@site/docs/components/lunatic-components.mdx",1285],"5e6898a4":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(7159)]).then(n.bind(n,6575)),"@site/docs/components/fields/suggester.mdx",6575],"5e8c322a":[()=>n.e(594).then(n.bind(n,8012)),"@site/docs/api/index.md",8012],"5e95c892":[()=>n.e(9647).then(n.bind(n,7591)),"@theme/DocsRoot",7591],"5ed7f5fe":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(5474)]).then(n.bind(n,895)),"@site/docs/components/fields/table.mdx",895],"6049a7bc":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(5149)]).then(n.bind(n,239)),"@site/docs/components/fields/dropdown.mdx",239],"69100af9":[()=>n.e(8665).then(n.bind(n,3887)),"@site/docs/api/variables/components.md",3887],"6e0c98ef":[()=>n.e(5813).then(n.t.bind(n,100,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-champs-dbb.json",100],"6ef797bf":[()=>n.e(3861).then(n.bind(n,7155)),"@site/docs/internal/reducer.mdx",7155],"6f0fe8bc":[()=>n.e(5487).then(n.t.bind(n,9366,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-5e6.json",9366],"72b55bd9":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(6255)]).then(n.bind(n,4890)),"@site/docs/components/aggregators/pairwise.mdx",4890],"7a34fa89":[()=>n.e(8804).then(n.bind(n,3074)),"@site/docs/api/type-aliases/LunaticSlotComponents.md",3074],"7c0f0c82":[()=>n.e(1930).then(n.bind(n,7745)),"@site/docs/components/personnalisation.mdx",7745],"835f525a":[()=>n.e(4858).then(n.t.bind(n,7510,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-balisage-e5f.json",7510],"85c3c79c":[()=>n.e(7086).then(n.bind(n,3295)),"@site/docs/internal/cleaning.mdx",3295],"897040e0":[()=>n.e(1812).then(n.bind(n,2941)),"@site/docs/hook/return.mdx",2941],"8c14e59c":[()=>n.e(4069).then(n.bind(n,808)),"@site/docs/api/type-aliases/LunaticState.md",808],"8fcf01ba":[()=>n.e(6532).then(n.bind(n,5239)),"@site/docs/api/type-aliases/LunaticStateVariable.md",5239],"94c6a771":[()=>n.e(3107).then(n.bind(n,1205)),"@site/docs/api/classes/VTLExpressionError.md",1205],"94f53d34":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(5791)]).then(n.bind(n,5437)),"@site/docs/components/aggregators/rosterForLoop.mdx",5437],"9cb90f50":[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(8937)]).then(n.bind(n,9501)),"@site/docs/components/fields/input-number.mdx",9501],a538f389:[()=>n.e(7480).then(n.bind(n,2147)),"@site/docs/components/decorations/filter-description.mdx",2147],a66aaf29:[()=>n.e(5711).then(n.t.bind(n,7472,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-composants-724.json",7472],a7456010:[()=>n.e(1235).then(n.t.bind(n,8552,19)),"@generated/docusaurus-plugin-content-pages/default/__plugin.json",8552],a7bd4aaa:[()=>n.e(7098).then(n.bind(n,298)),"@theme/DocVersionRoot",298],a94703ab:[()=>Promise.all([n.e(1869),n.e(9048)]).then(n.bind(n,350)),"@theme/DocRoot",350],a976e8d8:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(2929)]).then(n.bind(n,4603)),"@site/docs/components/aggregators/roundabout.mdx",4603],aba21aa0:[()=>n.e(5742).then(n.t.bind(n,7093,19)),"@generated/docusaurus-plugin-content-docs/default/__plugin.json",7093],af8b7c6f:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(4762)]).then(n.bind(n,6463)),"@site/docs/components/decorations/sequence.mdx",6463],b6ce7557:[()=>n.e(1215).then(n.bind(n,5623)),"@site/docs/api/classes/VTLMissingDependency.md",5623],b968f49b:[()=>n.e(1777).then(n.bind(n,5149)),"@site/docs/api/type-aliases/LunaticVariable.md",5149],ba2f5f01:[()=>n.e(4796).then(n.bind(n,9414)),"@site/docs/vtl.mdx",9414],c1574f21:[()=>n.e(8818).then(n.bind(n,447)),"@site/docs/api/functions/LunaticComponents.md",447],c3356e06:[()=>n.e(6392).then(n.t.bind(n,2153,19)),"@generated/docusaurus-plugin-content-docs/default/p/lunatic-docs-category-hook-uselunatic-976.json",2153],c901544c:[()=>n.e(554).then(n.bind(n,8241)),"@site/docs/api/variables/Button.md",8241],ccd161e0:[()=>n.e(4024).then(n.bind(n,84)),"@site/docs/api/type-aliases/LunaticControl.md",84],d1a1dfaa:[()=>n.e(7984).then(n.bind(n,6340)),"@site/docs/api/type-aliases/LunaticValues.md",6340],d209f454:[()=>n.e(7945).then(n.bind(n,7726)),"@site/docs/hook/navigation.mdx",7726],d48ac471:[()=>n.e(7871).then(n.bind(n,9522)),"@site/docs/api/type-aliases/LunaticData.md",9522],d48c2e32:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(856)]).then(n.bind(n,6458)),"@site/docs/components/fields/checkboxOne.mdx",6458],d8e663aa:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(8969)]).then(n.bind(n,9219)),"@site/docs/components/fields/checkboxBoolean.mdx",9219],e2699ac7:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(7149)]).then(n.bind(n,2584)),"@site/docs/components/fields/text.mdx",2584],ea9b137c:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(8346)]).then(n.bind(n,335)),"@site/docs/components/base.mdx",335],f39704da:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(2411)]).then(n.bind(n,2414)),"@site/docs/components/fields/radio.mdx",2414],f398cc77:[()=>n.e(2369).then(n.bind(n,966)),"@site/docs/api/functions/ModalControls.md",966],f7562109:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(7737)]).then(n.bind(n,526)),"@site/docs/components/fields/duration.mdx",526],f8409a7e:[()=>Promise.all([n.e(1869),n.e(1107),n.e(198),n.e(6903)]).then(n.bind(n,3746)),"@site/docs/intro.mdx",3746],f97e9514:[()=>n.e(4717).then(n.bind(n,7021)),"@site/docs/api/classes/VTLMissingDependencies.md",7021],f9c40bd6:[()=>n.e(5693).then(n.bind(n,4409)),"@site/docs/hook/parameters.mdx",4409],f9cde7f6:[()=>n.e(3553).then(n.bind(n,1410)),"@site/docs/hook/controls.mdx",1410],fa29edc5:[()=>n.e(6136).then(n.bind(n,6076)),"@site/docs/internal/resizing.mdx",6076],fed19d79:[()=>n.e(8738).then(n.bind(n,2035)),"@site/docs/api/type-aliases/LunaticSource.md",2035]};var s=n(4848);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(6367),u=n(2764);function d(e,t){if("*"===e)return o()({loading:l,loader:()=>n.e(8159).then(n.bind(n,8159)),modules:["@theme/NotFound"],webpack:()=>[8159],render(e,t){const n=e.default;return(0,s.jsx)(u.W,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=a[`${e}-${t}`],d={},p=[],f=[],m=(0,c.A)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),o().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const o=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let i=o;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=a}));const a=o.__comp;delete o.__comp;const i=o.__context;delete o.__context;const l=o.__props;return delete o.__props,(0,s.jsx)(u.W,{value:i,children:(0,s.jsx)(a,{...o,...l,...n})})}})}const p=[{path:"/Lunatic/docs/changelog",component:d("/Lunatic/docs/changelog","c76"),exact:!0},{path:"/Lunatic/docs/",component:d("/Lunatic/docs/","0c2"),routes:[{path:"/Lunatic/docs/",component:d("/Lunatic/docs/","5c5"),routes:[{path:"/Lunatic/docs/",component:d("/Lunatic/docs/","18e"),routes:[{path:"/Lunatic/docs/api",component:d("/Lunatic/docs/api","7b8"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/classes/VTLExpressionError",component:d("/Lunatic/docs/api/classes/VTLExpressionError","d00"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/classes/VTLInterpretationError",component:d("/Lunatic/docs/api/classes/VTLInterpretationError","d37"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/classes/VTLMissingDependencies",component:d("/Lunatic/docs/api/classes/VTLMissingDependencies","3c1"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/classes/VTLMissingDependency",component:d("/Lunatic/docs/api/classes/VTLMissingDependency","bb2"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/functions/LunaticComponents",component:d("/Lunatic/docs/api/functions/LunaticComponents","62e"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/functions/ModalControls",component:d("/Lunatic/docs/api/functions/ModalControls","8f8"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/functions/useLunatic",component:d("/Lunatic/docs/api/functions/useLunatic","888"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/interfaces/LunaticExtraProps",component:d("/Lunatic/docs/api/interfaces/LunaticExtraProps","6b0"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticChangesHandler",component:d("/Lunatic/docs/api/type-aliases/LunaticChangesHandler","777"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticCollectedValue",component:d("/Lunatic/docs/api/type-aliases/LunaticCollectedValue","885"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition",component:d("/Lunatic/docs/api/type-aliases/LunaticComponentDefinition","034"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticComponentProps",component:d("/Lunatic/docs/api/type-aliases/LunaticComponentProps","985"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticControl",component:d("/Lunatic/docs/api/type-aliases/LunaticControl","e25"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticData",component:d("/Lunatic/docs/api/type-aliases/LunaticData","43d"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticError",component:d("/Lunatic/docs/api/type-aliases/LunaticError","3a4"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticExpression",component:d("/Lunatic/docs/api/type-aliases/LunaticExpression","27a"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticOptions",component:d("/Lunatic/docs/api/type-aliases/LunaticOptions","c23"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticPager",component:d("/Lunatic/docs/api/type-aliases/LunaticPager","8c6"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticSlotComponents",component:d("/Lunatic/docs/api/type-aliases/LunaticSlotComponents","17e"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticSource",component:d("/Lunatic/docs/api/type-aliases/LunaticSource","2e7"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticState",component:d("/Lunatic/docs/api/type-aliases/LunaticState","ac9"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticStateVariable",component:d("/Lunatic/docs/api/type-aliases/LunaticStateVariable","a10"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticValues",component:d("/Lunatic/docs/api/type-aliases/LunaticValues","f5a"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/type-aliases/LunaticVariable",component:d("/Lunatic/docs/api/type-aliases/LunaticVariable","307"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/variables/Button",component:d("/Lunatic/docs/api/variables/Button","2bb"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/api/variables/components",component:d("/Lunatic/docs/api/variables/components","b71"),exact:!0,sidebar:"typedocSidebar"},{path:"/Lunatic/docs/category/agr\xe9gateurs",component:d("/Lunatic/docs/category/agr\xe9gateurs","976"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/category/balisage",component:d("/Lunatic/docs/category/balisage","652"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/category/champs",component:d("/Lunatic/docs/category/champs","94b"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/category/composants",component:d("/Lunatic/docs/category/composants","d6f"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/category/fonctionnement-interne",component:d("/Lunatic/docs/category/fonctionnement-interne","80b"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/category/hook-uselunatic",component:d("/Lunatic/docs/category/hook-uselunatic","efa"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/aggregators/loop",component:d("/Lunatic/docs/components/aggregators/loop","5fc"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/aggregators/pairwise",component:d("/Lunatic/docs/components/aggregators/pairwise","573"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/aggregators/rosterForLoop",component:d("/Lunatic/docs/components/aggregators/rosterForLoop","c0a"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/aggregators/roundabout",component:d("/Lunatic/docs/components/aggregators/roundabout","a1d"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/base",component:d("/Lunatic/docs/components/base","e49"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/decorations/filter-description",component:d("/Lunatic/docs/components/decorations/filter-description","593"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/decorations/question",component:d("/Lunatic/docs/components/decorations/question","fc6"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/decorations/sequence",component:d("/Lunatic/docs/components/decorations/sequence","795"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/checkboxBoolean",component:d("/Lunatic/docs/components/fields/checkboxBoolean","4e2"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/checkboxGroup",component:d("/Lunatic/docs/components/fields/checkboxGroup","d83"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/checkboxOne",component:d("/Lunatic/docs/components/fields/checkboxOne","d58"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/datepicker",component:d("/Lunatic/docs/components/fields/datepicker","f81"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/dropdown",component:d("/Lunatic/docs/components/fields/dropdown","710"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/duration",component:d("/Lunatic/docs/components/fields/duration","a22"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/input",component:d("/Lunatic/docs/components/fields/input","a74"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/input-number",component:d("/Lunatic/docs/components/fields/input-number","629"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/radio",component:d("/Lunatic/docs/components/fields/radio","991"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/suggester",component:d("/Lunatic/docs/components/fields/suggester","fc8"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/table",component:d("/Lunatic/docs/components/fields/table","f0d"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/text",component:d("/Lunatic/docs/components/fields/text","671"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/fields/textarea",component:d("/Lunatic/docs/components/fields/textarea","f48"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/lunatic-components",component:d("/Lunatic/docs/components/lunatic-components","639"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/components/personnalisation",component:d("/Lunatic/docs/components/personnalisation","d82"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/hook/controls",component:d("/Lunatic/docs/hook/controls","ccc"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/hook/navigation",component:d("/Lunatic/docs/hook/navigation","bf0"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/hook/parameters",component:d("/Lunatic/docs/hook/parameters","5b2"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/hook/return",component:d("/Lunatic/docs/hook/return","8c5"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/hook/track-changes",component:d("/Lunatic/docs/hook/track-changes","00c"),exact:!0},{path:"/Lunatic/docs/internal/cleaning",component:d("/Lunatic/docs/internal/cleaning","972"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/internal/missing",component:d("/Lunatic/docs/internal/missing","1eb"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/internal/reducer",component:d("/Lunatic/docs/internal/reducer","ed7"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/internal/resizing",component:d("/Lunatic/docs/internal/resizing","595"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/vtl",component:d("/Lunatic/docs/vtl","1ab"),exact:!0,sidebar:"docs"},{path:"/Lunatic/docs/",component:d("/Lunatic/docs/","6e2"),exact:!0,sidebar:"docs"}]}]}]},{path:"*",component:d("*")}]},4221:(e,t,n)=>{var r,o;!function(){var a,i,s,l,c,u,d,p,f,m,h,g,y,b,v,w,S,x,k,_,E,O,L,P,C,A,j,T,I,N,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.9",R.utils={},R.utils.warn=(a=this,function(e){a.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],a=e[o];if(Array.isArray(a))t[o]=a.slice();else{if("string"!=typeof a&&"number"!=typeof a&&"boolean"!=typeof a)throw new TypeError("clone is not deep and does not support nested objects");t[o]=a}}return t},R.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new R.FieldRef(r,n,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue},R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,n,r,o=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var a=0;a<r.length;a++){var i=r[a];i in n.elements&&o.push(i)}return new R.Set(o)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var o=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(o))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)},R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,o=[],a=0,i=0;a<=r;a++){var s=a-i;if(n.charAt(a).match(R.tokenizer.separator)||a==r){if(s>0){var l=R.utils.clone(t)||{};l.position=[i,s],l.index=o.length,o.push(new R.Token(n.slice(i,a),l))}i=a+1}}return o},R.tokenizer.separator=/[\s\-]+/,R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach((function(e){var n=R.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],o=[],a=0;a<e.length;a++){var i=r(e[a],a,e);if(null!=i&&""!==i)if(Array.isArray(i))for(var s=0;s<i.length;s++)o.push(i[s]);else o.push(i)}e=o}return e},R.Pipeline.prototype.runString=function(e,t){var n=new R.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,o=Math.floor(r/2),a=this.elements[2*o];r>1&&(a<e&&(t=o),a>e&&(n=o),a!=e);)r=n-t,o=t+Math.floor(r/2),a=this.elements[2*o];return a==e||a>e?2*o:a<e?2*(o+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},R.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,o=n.length,a=r.length,i=0,s=0,l=0,c=0;l<o&&c<a;)(i=n[l])<(s=r[c])?l+=2:i>s?c+=2:i==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements},R.stemmer=(i={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",p="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,m=new RegExp("^("+c+")?"+u+c),h=new RegExp(p),g=new RegExp(d),y=new RegExp(f),b=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,S=/^(.+?)(ed|ing)$/,x=/.$/,k=/(at|bl|iz)$/,_=new RegExp("([^aeiouylsz])\\1$"),E=new RegExp("^"+c+l+"[^aeiouwxy]$"),O=/^(.+?[^aeiou])y$/,L=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,P=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,C=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,A=/^(.+?)(s|t)(ion)$/,j=/^(.+?)e$/,T=/ll$/,I=new RegExp("^"+c+l+"[^aeiouwxy]$"),N=function(e){var t,n,r,o,a,l,c;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),a=v,(o=b).test(e)?e=e.replace(o,"$1$2"):a.test(e)&&(e=e.replace(a,"$1$2")),a=S,(o=w).test(e)){var u=o.exec(e);(o=m).test(u[1])&&(o=x,e=e.replace(o,""))}else a.test(e)&&(t=(u=a.exec(e))[1],(a=y).test(t)&&(l=_,c=E,(a=k).test(e=t)?e+="e":l.test(e)?(o=x,e=e.replace(o,"")):c.test(e)&&(e+="e")));return(o=O).test(e)&&(e=(t=(u=o.exec(e))[1])+"i"),(o=L).test(e)&&(t=(u=o.exec(e))[1],n=u[2],(o=m).test(t)&&(e=t+i[n])),(o=P).test(e)&&(t=(u=o.exec(e))[1],n=u[2],(o=m).test(t)&&(e=t+s[n])),a=A,(o=C).test(e)?(t=(u=o.exec(e))[1],(o=h).test(t)&&(e=t)):a.test(e)&&(t=(u=a.exec(e))[1]+u[2],(a=h).test(t)&&(e=t)),(o=j).test(e)&&(t=(u=o.exec(e))[1],a=g,l=I,((o=h).test(t)||a.test(t)&&!l.test(t))&&(e=t)),a=h,(o=T).test(e)&&a.test(e)&&(o=x,e=e.replace(o,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(N)}),R.Pipeline.registerFunction(R.stemmer,"stemmer"),R.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter"),R.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},R.Pipeline.registerFunction(R.trimmer,"trimmer"),R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var n=new R.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var o=r.pop();if(o.str.length>0){var a,i=o.str.charAt(0);i in o.node.edges?a=o.node.edges[i]:(a=new R.TokenSet,o.node.edges[i]=a),1==o.str.length&&(a.final=!0),r.push({node:a,editsRemaining:o.editsRemaining,str:o.str.slice(1)})}if(0!=o.editsRemaining){if("*"in o.node.edges)var s=o.node.edges["*"];else{s=new R.TokenSet;o.node.edges["*"]=s}if(0==o.str.length&&(s.final=!0),r.push({node:s,editsRemaining:o.editsRemaining-1,str:o.str}),o.str.length>1&&r.push({node:o.node,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)}),1==o.str.length&&(o.node.final=!0),o.str.length>=1){if("*"in o.node.edges)var l=o.node.edges["*"];else{l=new R.TokenSet;o.node.edges["*"]=l}1==o.str.length&&(l.final=!0),r.push({node:l,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)})}if(o.str.length>1){var c,u=o.str.charAt(0),d=o.str.charAt(1);d in o.node.edges?c=o.node.edges[d]:(c=new R.TokenSet,o.node.edges[d]=c),1==o.str.length&&(c.final=!0),r.push({node:c,editsRemaining:o.editsRemaining-1,str:u+o.str.slice(2)})}}}return n},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,n=t,r=0,o=e.length;r<o;r++){var a=e[r],i=r==o-1;if("*"==a)t.edges[a]=t,t.final=i;else{var s=new R.TokenSet;s.final=i,t.edges[a]=s,t=s}}return n},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),o=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var a=0;a<o;a++){var i=r[a];t.push({prefix:n.prefix.concat(i),node:n.node.edges[i]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var o=t[r];e=e+o+this.edges[o].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var o=Object.keys(n.qNode.edges),a=o.length,i=Object.keys(n.node.edges),s=i.length,l=0;l<a;l++)for(var c=o[l],u=0;u<s;u++){var d=i[u];if(d==c||"*"==c){var p=n.node.edges[d],f=n.qNode.edges[c],m=p.final&&f.final,h=void 0;d in n.output.edges?(h=n.output.edges[d]).final=h.final||m:((h=new R.TokenSet).final=m,n.output.edges[d]=h),r.push({qNode:f,output:h,node:p})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(r=n;r<e.length;r++){var o=new R.TokenSet,a=e[r];t.edges[a]=o,this.uncheckedNodes.push({parent:t,char:a,child:o}),t=o}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query((function(t){new R.QueryParser(e,t).parse()}))},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),n=Object.create(null),r=Object.create(null),o=Object.create(null),a=Object.create(null),i=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new R.Vector;e.call(t,t);for(s=0;s<t.clauses.length;s++){var l=t.clauses[s],c=null,u=R.Set.empty;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var p=c[d];l.term=p;var f=R.TokenSet.fromClause(l),m=this.tokenSet.intersect(f).toArray();if(0===m.length&&l.presence===R.Query.presence.REQUIRED){for(var h=0;h<l.fields.length;h++){a[j=l.fields[h]]=R.Set.empty}break}for(var g=0;g<m.length;g++){var y=m[g],b=this.invertedIndex[y],v=b._index;for(h=0;h<l.fields.length;h++){var w=b[j=l.fields[h]],S=Object.keys(w),x=y+"/"+j,k=new R.Set(S);if(l.presence==R.Query.presence.REQUIRED&&(u=u.union(k),void 0===a[j]&&(a[j]=R.Set.complete)),l.presence!=R.Query.presence.PROHIBITED){if(r[j].upsert(v,l.boost,(function(e,t){return e+t})),!o[x]){for(var _=0;_<S.length;_++){var E,O=S[_],L=new R.FieldRef(O,j),P=w[O];void 0===(E=n[L])?n[L]=new R.MatchData(y,j,P):E.add(y,j,P)}o[x]=!0}}else void 0===i[j]&&(i[j]=R.Set.empty),i[j]=i[j].union(k)}}}if(l.presence===R.Query.presence.REQUIRED)for(h=0;h<l.fields.length;h++){a[j=l.fields[h]]=a[j].intersect(u)}}var C=R.Set.complete,A=R.Set.empty;for(s=0;s<this.fields.length;s++){var j;a[j=this.fields[s]]&&(C=C.intersect(a[j])),i[j]&&(A=A.union(i[j]))}var T=Object.keys(n),I=[],N=Object.create(null);if(t.isNegated()){T=Object.keys(this.fieldVectors);for(s=0;s<T.length;s++){L=T[s];var D=R.FieldRef.fromString(L);n[L]=new R.MatchData}}for(s=0;s<T.length;s++){var F=(D=R.FieldRef.fromString(T[s])).docRef;if(C.contains(F)&&!A.contains(F)){var M,B=this.fieldVectors[D],z=r[D.fieldName].similarity(B);if(void 0!==(M=N[F]))M.score+=z,M.matchData.combine(n[D]);else{var U={ref:F,score:z,matchData:n[D]};N[F]=U,I.push(U)}}}return I.sort((function(e,t){return t.score-e.score}))},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},n={},r=e.fieldVectors,o=Object.create(null),a=e.invertedIndex,i=new R.TokenSet.Builder,s=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var c=(d=r[l])[0],u=d[1];n[c]=new R.Vector(u)}for(l=0;l<a.length;l++){var d,p=(d=a[l])[0],f=d[1];i.insert(p),o[p]=f}return i.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=o,t.tokenSet=i.root,t.pipeline=s,new R.Index(t)},R.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var o=0;o<r.length;o++){var a=r[o],i=this._fields[a].extractor,s=this._fields[a].isLiteral??!1,l=i?i(e):e[a],c=s?[l]:this.tokenizer(l,{fields:[a]}),u=s?c:this.pipeline.run(c),d=new R.FieldRef(n,a),p=Object.create(null);this.fieldTermFrequencies[d]=p,this.fieldLengths[d]=0,this.fieldLengths[d]+=u.length;for(var f=0;f<u.length;f++){var m=u[f];if(null==p[m]&&(p[m]=0),p[m]+=1,null==this.invertedIndex[m]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var g=0;g<r.length;g++)h[r[g]]=Object.create(null);this.invertedIndex[m]=h}null==this.invertedIndex[m][a][n]&&(this.invertedIndex[m][a][n]=Object.create(null));for(var y=0;y<this.metadataWhitelist.length;y++){var b=this.metadataWhitelist[y],v=m.metadata[b];null==this.invertedIndex[m][a][n][b]&&(this.invertedIndex[m][a][n][b]=[]),this.invertedIndex[m][a][n][b].push(v)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},o=0;o<t;o++){var a=R.FieldRef.fromString(e[o]),i=a.fieldName;r[i]||(r[i]=0),r[i]+=1,n[i]||(n[i]=0),n[i]+=this.fieldLengths[a]}var s=Object.keys(this._fields);for(o=0;o<s.length;o++){var l=s[o];n[l]=n[l]/r[l]}this.averageFieldLength=n},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),o=0;o<n;o++){for(var a=R.FieldRef.fromString(t[o]),i=a.fieldName,s=this.fieldLengths[a],l=new R.Vector,c=this.fieldTermFrequencies[a],u=Object.keys(c),d=u.length,p=this._fields[i].boost||1,f=this._documents[a.docRef].boost||1,m=0;m<d;m++){var h,g,y,b=u[m],v=c[b],w=this.invertedIndex[b]._index;void 0===r[b]?(h=R.idf(this.invertedIndex[b],this.documentCount),r[b]=h):h=r[b],g=h*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[i]))+v),g*=p,g*=f,y=Math.round(1e3*g)/1e3,l.insert(w,y)}e[a]=l}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,n){for(var r=Object.create(null),o=Object.keys(n||{}),a=0;a<o.length;a++){var i=o[a];r[i]=n[i].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],o=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var a=0;a<o.length;a++){var i=o[a],s=Object.keys(e.metadata[r][i]);null==this.metadata[r][i]&&(this.metadata[r][i]=Object.create(null));for(var l=0;l<s.length;l++){var c=s[l];null==this.metadata[r][i][c]?this.metadata[r][i][c]=e.metadata[r][i][c]:this.metadata[r][i][c]=this.metadata[r][i][c].concat(e.metadata[r][i][c])}}}},R.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o];a in this.metadata[e][t]?this.metadata[e][t][a]=this.metadata[e][t][a].concat(n[a]):this.metadata[e][t][a]=n[a]}else this.metadata[e][t]=n},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,R.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},R.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new R.QueryParseError(n,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new R.QueryParseError(n,t.start,t.end)}switch(r.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new R.QueryParseError(n,r.start,r.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var o=e.peekLexeme();if(null==o){r="expecting term, found nothing";throw new R.QueryParseError(r,t.start,t.end)}if(o.type===R.QueryLexer.TERM)return R.QueryParser.parseTerm;r="expecting term, found '"+o.type+"'";throw new R.QueryParseError(r,o.start,o.end)}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(r,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new R.QueryParseError(r,o.start,o.end)}else e.nextClause()}},R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new R.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new R.QueryParseError(r,o.start,o.end)}else e.nextClause()}},void 0===(o="function"==typeof(r=function(){return R})?r.call(t,n,t,e):r)||(e.exports=o)}()},1555:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,x:()=>i});var r=n(6540),o=n(4848);const a=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,o.jsx)(a.Provider,{value:n,children:t})}},979:(e,t,n)=>{"use strict";var r=n(6540),o=n(5338),a=n(545),i=n(4625),s=n(4784),l=n(1191);const c=[n(5300),n(6547),n(6232),n(8252)];var u=n(8858),d=n(6347),p=n(2831),f=n(4848);function m(e){let{children:t}=e;return(0,f.jsx)(f.Fragment,{children:t})}var h=n(4502),g=n(5792),y=n(4763),b=n(1436),v=n(3523),w=n(2473),S=n(2920),x=n(9529),k=n(9458),_=n(886);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,g.A)(),r=(0,w.o)(),o=n[e].htmlLang,a=e=>e.replace("-","_");return(0,f.jsxs)(h.A,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,f.jsx)("meta",{property:"og:locale",content:a(o)}),Object.values(n).filter((e=>o!==e.htmlLang)).map((e=>(0,f.jsx)("meta",{property:"og:locale:alternate",content:a(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function O(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,g.A)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,g.A)(),{pathname:r}=(0,d.zy)();return e+(0,k.Ks)((0,y.Ay)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:r;return(0,f.jsxs)(h.A,{children:[(0,f.jsx)("meta",{property:"og:url",content:o}),(0,f.jsx)("link",{rel:"canonical",href:o})]})}function L(){const{i18n:{currentLocale:e}}=(0,g.A)(),{metadata:t,image:n}=(0,b.p)();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(h.A,{children:[(0,f.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,f.jsx)("body",{className:S.w})]}),n&&(0,f.jsx)(v.be,{image:n}),(0,f.jsx)(O,{}),(0,f.jsx)(E,{}),(0,f.jsx)(_.A,{tag:x.C,locale:e}),(0,f.jsx)(h.A,{children:t.map(((e,t)=>(0,f.jsx)("meta",{...e},t)))})]})}const P=new Map;var C=n(1555),A=n(5705),j=n(8963);function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=c.map((t=>{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>o.forEach((e=>e?.()))}const I=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,j.A)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,o=t.hash===n.hash,a=t.search===n.search;if(r&&o&&!a)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),T("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function N(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,p.u)(u.A,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class R extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=l.A.canUseDOM?T("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=T("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),N(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,f.jsx)(I,{previousLocation:this.previousLocation,location:t,children:(0,f.jsx)(d.qh,{location:t,render:()=>e})})}}const D=R,F="__docusaurus-base-url-issue-banner-container",M="__docusaurus-base-url-issue-banner",B="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${F}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="${M}" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseUrl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${B}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n document.body.prepend(bannerContainer);\n var suggestionContainer = document.getElementById('${B}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function U(){const{siteConfig:{baseUrl:e}}=(0,g.A)();return(0,f.jsx)(f.Fragment,{children:!l.A.canUseDOM&&(0,f.jsx)(h.A,{children:(0,f.jsx)("script",{children:z(e)})})})}function $(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,g.A)(),{pathname:n}=(0,d.zy)();return t&&n===e?(0,f.jsx)(U,{}):null}function V(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:r,localeConfigs:o}}=(0,g.A)(),a=(0,y.Ay)(e),{htmlLang:i,direction:s}=o[r];return(0,f.jsxs)(h.A,{children:[(0,f.jsx)("html",{lang:i,dir:s}),(0,f.jsx)("title",{children:t}),(0,f.jsx)("meta",{property:"og:title",content:t}),(0,f.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&(0,f.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),e&&(0,f.jsx)("link",{rel:"icon",href:a})]})}var H=n(35),Q=n(4753);function W(){const e=(0,Q.A)();return(0,f.jsx)(h.A,{children:(0,f.jsx)("html",{"data-has-hydrated":e})})}const q=(0,p.v)(u.A);function G(){const e=function(e){if(P.has(e.pathname))return{...e,pathname:P.get(e.pathname)};if((0,p.u)(u.A,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return P.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return P.set(e.pathname,t),{...e,pathname:t}}((0,d.zy)());return(0,f.jsx)(D,{location:e,children:q})}function K(){return(0,f.jsx)(H.A,{children:(0,f.jsx)(A.l,{children:(0,f.jsxs)(C.x,{children:[(0,f.jsxs)(m,{children:[(0,f.jsx)(V,{}),(0,f.jsx)(L,{}),(0,f.jsx)($,{}),(0,f.jsx)(G,{})]}),(0,f.jsx)(W,{})]})})})}var Y=n(4054);const Z=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;o?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var X=n(6367);const J=new Set,ee=new Set,te=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ne={prefetch:e=>{if(!(e=>!te()&&!ee.has(e)&&!J.has(e))(e))return!1;J.add(e);const t=(0,p.u)(u.A,e).flatMap((e=>{return t=e.route.path,Object.entries(Y).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,X.A)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Z(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!te()&&!ee.has(e))(e)&&(ee.add(e),N(e))},re=Object.freeze(ne);function oe(e){let{children:t}=e;return"hash"===s.A.future.experimental_router?(0,f.jsx)(i.I9,{children:t}):(0,f.jsx)(i.Kd,{children:t})}const ae=Boolean(!0);if(l.A.canUseDOM){window.docusaurus=re;const e=document.getElementById("__docusaurus"),t=(0,f.jsx)(a.vd,{children:(0,f.jsx)(oe,{children:(0,f.jsx)(K,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},i=()=>{if(window.docusaurusRoot)window.docusaurusRoot.render(t);else if(ae)window.docusaurusRoot=o.hydrateRoot(e,t,{onRecoverableError:n});else{const r=o.createRoot(e,{onRecoverableError:n});r.render(t),window.docusaurusRoot=r}};N(window.location.pathname).then((()=>{(0,r.startTransition)(i)}))}},5705:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,l:()=>p});var r=n(6540),o=n(4784);const a=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/Lunatic/docs/","versions":[{"name":"current","label":"Next","isLast":true,"path":"/Lunatic/docs/","mainDocId":"intro","docs":[{"id":"api/classes/VTLExpressionError","path":"/Lunatic/docs/api/classes/VTLExpressionError","sidebar":"typedocSidebar"},{"id":"api/classes/VTLInterpretationError","path":"/Lunatic/docs/api/classes/VTLInterpretationError","sidebar":"typedocSidebar"},{"id":"api/classes/VTLMissingDependencies","path":"/Lunatic/docs/api/classes/VTLMissingDependencies","sidebar":"typedocSidebar"},{"id":"api/classes/VTLMissingDependency","path":"/Lunatic/docs/api/classes/VTLMissingDependency","sidebar":"typedocSidebar"},{"id":"api/functions/LunaticComponents","path":"/Lunatic/docs/api/functions/LunaticComponents","sidebar":"typedocSidebar"},{"id":"api/functions/ModalControls","path":"/Lunatic/docs/api/functions/ModalControls","sidebar":"typedocSidebar"},{"id":"api/functions/useLunatic","path":"/Lunatic/docs/api/functions/useLunatic","sidebar":"typedocSidebar"},{"id":"api/index","path":"/Lunatic/docs/api/","sidebar":"typedocSidebar"},{"id":"api/interfaces/LunaticExtraProps","path":"/Lunatic/docs/api/interfaces/LunaticExtraProps","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticChangesHandler","path":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticCollectedValue","path":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticComponentDefinition","path":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticComponentProps","path":"/Lunatic/docs/api/type-aliases/LunaticComponentProps","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticControl","path":"/Lunatic/docs/api/type-aliases/LunaticControl","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticData","path":"/Lunatic/docs/api/type-aliases/LunaticData","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticError","path":"/Lunatic/docs/api/type-aliases/LunaticError","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticExpression","path":"/Lunatic/docs/api/type-aliases/LunaticExpression","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticOptions","path":"/Lunatic/docs/api/type-aliases/LunaticOptions","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticPager","path":"/Lunatic/docs/api/type-aliases/LunaticPager","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticSlotComponents","path":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticSource","path":"/Lunatic/docs/api/type-aliases/LunaticSource","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticState","path":"/Lunatic/docs/api/type-aliases/LunaticState","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticStateVariable","path":"/Lunatic/docs/api/type-aliases/LunaticStateVariable","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticValues","path":"/Lunatic/docs/api/type-aliases/LunaticValues","sidebar":"typedocSidebar"},{"id":"api/type-aliases/LunaticVariable","path":"/Lunatic/docs/api/type-aliases/LunaticVariable","sidebar":"typedocSidebar"},{"id":"api/variables/Button","path":"/Lunatic/docs/api/variables/Button","sidebar":"typedocSidebar"},{"id":"api/variables/components","path":"/Lunatic/docs/api/variables/components","sidebar":"typedocSidebar"},{"id":"components/aggregators/loop","path":"/Lunatic/docs/components/aggregators/loop","sidebar":"docs"},{"id":"components/aggregators/pairwise","path":"/Lunatic/docs/components/aggregators/pairwise","sidebar":"docs"},{"id":"components/aggregators/rosterForLoop","path":"/Lunatic/docs/components/aggregators/rosterForLoop","sidebar":"docs"},{"id":"components/aggregators/roundabout","path":"/Lunatic/docs/components/aggregators/roundabout","sidebar":"docs"},{"id":"components/base","path":"/Lunatic/docs/components/base","sidebar":"docs"},{"id":"components/decorations/filter-description","path":"/Lunatic/docs/components/decorations/filter-description","sidebar":"docs"},{"id":"components/decorations/question","path":"/Lunatic/docs/components/decorations/question","sidebar":"docs"},{"id":"components/decorations/sequence","path":"/Lunatic/docs/components/decorations/sequence","sidebar":"docs"},{"id":"components/fields/checkboxBoolean","path":"/Lunatic/docs/components/fields/checkboxBoolean","sidebar":"docs"},{"id":"components/fields/checkboxGroup","path":"/Lunatic/docs/components/fields/checkboxGroup","sidebar":"docs"},{"id":"components/fields/checkboxOne","path":"/Lunatic/docs/components/fields/checkboxOne","sidebar":"docs"},{"id":"components/fields/datepicker","path":"/Lunatic/docs/components/fields/datepicker","sidebar":"docs"},{"id":"components/fields/dropdown","path":"/Lunatic/docs/components/fields/dropdown","sidebar":"docs"},{"id":"components/fields/duration","path":"/Lunatic/docs/components/fields/duration","sidebar":"docs"},{"id":"components/fields/input","path":"/Lunatic/docs/components/fields/input","sidebar":"docs"},{"id":"components/fields/input-number","path":"/Lunatic/docs/components/fields/input-number","sidebar":"docs"},{"id":"components/fields/radio","path":"/Lunatic/docs/components/fields/radio","sidebar":"docs"},{"id":"components/fields/suggester","path":"/Lunatic/docs/components/fields/suggester","sidebar":"docs"},{"id":"components/fields/table","path":"/Lunatic/docs/components/fields/table","sidebar":"docs"},{"id":"components/fields/text","path":"/Lunatic/docs/components/fields/text","sidebar":"docs"},{"id":"components/fields/textarea","path":"/Lunatic/docs/components/fields/textarea","sidebar":"docs"},{"id":"components/lunatic-components","path":"/Lunatic/docs/components/lunatic-components","sidebar":"docs"},{"id":"components/personnalisation","path":"/Lunatic/docs/components/personnalisation","sidebar":"docs"},{"id":"hook/controls","path":"/Lunatic/docs/hook/controls","sidebar":"docs"},{"id":"hook/navigation","path":"/Lunatic/docs/hook/navigation","sidebar":"docs"},{"id":"hook/parameters","path":"/Lunatic/docs/hook/parameters","sidebar":"docs"},{"id":"hook/return","path":"/Lunatic/docs/hook/return","sidebar":"docs"},{"id":"hook/track-changes","path":"/Lunatic/docs/hook/track-changes"},{"id":"internal/cleaning","path":"/Lunatic/docs/internal/cleaning","sidebar":"docs"},{"id":"internal/missing","path":"/Lunatic/docs/internal/missing","sidebar":"docs"},{"id":"internal/reducer","path":"/Lunatic/docs/internal/reducer","sidebar":"docs"},{"id":"internal/resizing","path":"/Lunatic/docs/internal/resizing","sidebar":"docs"},{"id":"intro","path":"/Lunatic/docs/","sidebar":"docs"},{"id":"vtl","path":"/Lunatic/docs/vtl","sidebar":"docs"},{"id":"/category/hook-uselunatic","path":"/Lunatic/docs/category/hook-uselunatic","sidebar":"docs"},{"id":"/category/composants","path":"/Lunatic/docs/category/composants","sidebar":"docs"},{"id":"/category/balisage","path":"/Lunatic/docs/category/balisage","sidebar":"docs"},{"id":"/category/champs","path":"/Lunatic/docs/category/champs","sidebar":"docs"},{"id":"/category/agr\xe9gateurs","path":"/Lunatic/docs/category/agr\xe9gateurs","sidebar":"docs"},{"id":"/category/fonctionnement-interne","path":"/Lunatic/docs/category/fonctionnement-interne","sidebar":"docs"}],"draftIds":[],"sidebars":{"typedocSidebar":{"link":{"path":"/Lunatic/docs/api/","label":"Typedoc API"}},"docs":{"link":{"path":"/Lunatic/docs/","label":"intro"}}}}],"breadcrumbs":true}},"@cmfcmf/docusaurus-search-local":{"default":{"titleBoost":5,"contentBoost":1,"tagsBoost":3,"parentCategoriesBoost":2,"indexDocSidebarParentCategories":0,"maxSearchResults":8}}}'),i=JSON.parse('{"defaultLocale":"fr","locales":["fr"],"path":"i18n","currentLocale":"fr","localeConfigs":{"fr":{"label":"Fran\xe7ais","direction":"ltr","htmlLang":"fr","calendar":"gregory","path":"fr"}}}');var s=n(2654);const l=JSON.parse('{"docusaurusVersion":"3.6.3","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.6.3"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.6.3"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.6.3"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.6.3"},"fix-lunatic-plugin":{"type":"project"},"@cmfcmf/docusaurus-search-local":{"type":"package","name":"@cmfcmf/docusaurus-search-local","version":"1.2.0"},"docusaurus-plugin-typedoc":{"type":"package","name":"docusaurus-plugin-typedoc","version":"1.0.5"},"docusaurus-theme-mermaid":{"type":"package","name":"@docusaurus/theme-mermaid","version":"3.6.3"}}}');var c=n(4848);const u={siteConfig:o.A,siteMetadata:l,globalData:a,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},35:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(6540),o=n(1191),a=n(4502),i=n(9458),s=n(3502),l=n(2764),c=n(4848);function u(e){let{error:t,tryAgain:n}=e;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,c.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,c.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,c.jsx)(d,{error:t})]})}function d(e){let{error:t}=e;const n=(0,i.rA)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,c.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function p(e){let{children:t}=e;return(0,c.jsx)(l.W,{value:{plugin:{name:"docusaurus-core-error-boundary",id:"default"}},children:t})}function f(e){let{error:t,tryAgain:n}=e;return(0,c.jsx)(p,{children:(0,c.jsxs)(h,{fallback:()=>(0,c.jsx)(u,{error:t,tryAgain:n}),children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("title",{children:"Page Error"})}),(0,c.jsx)(s.A,{children:(0,c.jsx)(u,{error:t,tryAgain:n})})]})})}const m=e=>(0,c.jsx)(f,{...e});class h extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){o.A.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??m)(e)}return e??null}}},1191:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,o={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},4502:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(545),o=n(4848);function a(e){return(0,o.jsx)(r.mg,{...e})}},7880:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6540),o=n(4625),a=n(9458),i=n(5792),s=n(7056),l=n(1191),c=n(7756),u=n(4763),d=n(4848);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:y=!0,...b}=e;const{siteConfig:v}=(0,i.A)(),{trailingSlash:w,baseUrl:S}=v,x=v.future.experimental_router,{withBaseUrl:k}=(0,u.hH)(),_=(0,c.A)(),E=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>E.current));const O=p||f;const L=(0,s.A)(O),P=O?.replace("pathname://","");let C=void 0!==P?(A=P,y&&(e=>e.startsWith("/"))(A)?k(A):A):void 0;var A;"hash"===x&&C?.startsWith("./")&&(C=C?.slice(1)),C&&L&&(C=(0,a.Ks)(C,{trailingSlash:w,baseUrl:S}));const j=(0,r.useRef)(!1),T=n?o.k2:o.N_,I=l.A.canUseIntersectionObserver,N=(0,r.useRef)(),R=()=>{j.current||null==C||(window.docusaurus.preload(C),j.current=!0)};(0,r.useEffect)((()=>(!I&&L&&l.A.canUseDOM&&null!=C&&window.docusaurus.prefetch(C),()=>{I&&N.current&&N.current.disconnect()})),[N,C,I,L]);const D=C?.startsWith("#")??!1,F=!b.target||"_self"===b.target,M=!C||!L||!F||D&&"hash"!==x;g||!D&&M||_.collectLink(C),b.id&&_.collectAnchor(b.id);const B={};return M?(0,d.jsx)("a",{ref:E,href:C,...O&&!L&&{target:"_blank",rel:"noopener noreferrer"},...b,...B}):(0,d.jsx)(T,{...b,onMouseEnter:R,onTouchStart:R,innerRef:e=>{E.current=e,I&&e&&L&&(N.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(N.current.unobserve(e),N.current.disconnect(),null!=C&&window.docusaurus.prefetch(C))}))})),N.current.observe(e))},to:C,...n&&{isActive:h,activeClassName:m},...B})}const f=r.forwardRef(p)},2032:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,T:()=>l});var r=n(6540),o=n(4848);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(2654);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return a(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const i=s({message:t,id:n});return(0,o.jsx)(o.Fragment,{children:a(i,r)})}},6583:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r="default"},7056:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}n.d(t,{A:()=>o,z:()=>r})},4763:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,hH:()=>i});var r=n(6540),o=n(5792),a=n(7056);function i(){const{siteConfig:e}=(0,o.A)(),{baseUrl:t,url:n}=e,i=e.future.experimental_router,s=(0,r.useCallback)(((e,r)=>function(e){let{siteUrl:t,baseUrl:n,url:r,options:{forcePrependBaseUrl:o=!1,absolute:i=!1}={},router:s}=e;if(!r||r.startsWith("#")||(0,a.z)(r))return r;if("hash"===s)return r.startsWith("/")?`.${r}`:`./${r}`;if(o)return n+r.replace(/^\//,"");if(r===n.replace(/\/$/,""))return n;const l=r.startsWith(n)?r:n+r.replace(/^\//,"");return i?t+l:l}({siteUrl:n,baseUrl:t,url:e,options:r,router:i})),[n,t,i]);return{withBaseUrl:s}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},7756:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);n(4848);const o=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),a=()=>(0,r.useContext)(o);function i(){return a()}},5792:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(5705);function a(){return(0,r.useContext)(o.o)}},2114:(e,t,n)=>{"use strict";n.d(t,{P_:()=>i,kh:()=>a});var r=n(5792),o=n(6583);function a(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,r.A)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}function i(e,t,n){void 0===t&&(t=o.W),void 0===n&&(n={});const r=a(e),i=r?.[t];if(!i&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return i}},4753:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(1555);function a(){return(0,r.useContext)(o.o)}},8963:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);const o=n(1191).A.canUseDOM?r.useLayoutEffect:r.useEffect},6367:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function o(e){const t={};return function e(n,o){Object.entries(n).forEach((n=>{let[a,i]=n;const s=o?`${o}.${a}`:a;r(i)?e(i,s):t[s]=i}))}(e),t}},2764:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,o:()=>a});var r=n(6540),o=n(4848);const a=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(a),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,o.jsx)(a.Provider,{value:s,children:t})}},6220:(e,t,n)=>{"use strict";n.d(t,{VQ:()=>g,XK:()=>v,g1:()=>b});var r=n(6540),o=n(869),a=n(6583),i=n(1436),s=n(5054),l=n(5302),c=n(4848);const u=e=>`docs-preferred-version-${e}`,d={save:(e,t,n)=>{(0,s.Wf)(u(e),{persistence:t}).set(n)},read:(e,t)=>(0,s.Wf)(u(e),{persistence:t}).get(),clear:(e,t)=>{(0,s.Wf)(u(e),{persistence:t}).del()}},p=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const f=r.createContext(null);function m(){const e=(0,o.Gy)(),t=(0,i.p)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[a,s]=(0,r.useState)((()=>p(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function o(e){const t=d.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(d.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,o(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[a,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){d.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function h(e){let{children:t}=e;const n=m();return(0,c.jsx)(f.Provider,{value:n,children:t})}function g(e){let{children:t}=e;return(0,c.jsx)(h,{children:t})}function y(){const e=(0,r.useContext)(f);if(!e)throw new l.dV("DocsPreferredVersionContextProvider");return e}function b(e){void 0===e&&(e=a.W);const t=(0,o.ht)(e),[n,i]=y(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}function v(){const e=(0,o.Gy)(),[t]=y();function n(n){const r=e[n],{preferredVersionName:o}=t[n];return r.versions.find((e=>e.name===o))??null}const r=Object.keys(e);return Object.fromEntries(r.map((e=>[e,n(e)])))}},8328:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,v:()=>i});var r=n(869),o=n(6220);function a(e,t){return`docs-${e}-${t}`}function i(){const e=(0,r.Gy)(),t=(0,r.gk)(),n=(0,o.XK)();return[...Object.keys(e).map((function(r){const o=t?.activePlugin.pluginId===r?t.activeVersion:void 0,i=n[r],s=e[r].versions.find((e=>e.isLast));return a(r,(o??i??s).name)}))]}},5779:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,t:()=>c});var r=n(6540),o=n(5302),a=n(4848);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:o}=e;const i=(0,r.useMemo)((()=>n&&o?{name:n,items:o}:null),[n,o]);return(0,a.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new o.dV("DocsSidebarProvider");return e}},5246:(e,t,n)=>{"use strict";n.d(t,{$S:()=>m,B5:()=>E,Nr:()=>f,OF:()=>S,QB:()=>_,Vd:()=>x,Y:()=>v,cC:()=>p,d1:()=>O,fW:()=>k,w8:()=>y});var r=n(6540),o=n(6347),a=n(2831),i=n(869),s=n(6707),l=n(2808),c=n(6220),u=n(8875),d=n(5779);function p(e){const t=(0,u.r)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function f(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=f(t);if(e)return e}}(e):void 0:e.href}function m(){const{pathname:e}=(0,o.zy)(),t=(0,d.t)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=w({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const h=(e,t)=>void 0!==e&&(0,s.ys)(e,t),g=(e,t)=>e.some((e=>y(e,t)));function y(e,t){return"link"===e.type?h(e.href,t):"category"===e.type&&(h(e.href,t)||g(e.items,t))}function b(e,t){switch(e.type){case"category":return y(e,t)||e.items.some((e=>b(e,t)));case"link":return!e.unlisted||y(e,t);default:return!0}}function v(e,t){return(0,r.useMemo)((()=>e.filter((e=>b(e,t)))),[e,t])}function w(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const o=[];return function e(t){for(const a of t)if("category"===a.type&&((0,s.ys)(a.href,n)||e(a.items))||"link"===a.type&&(0,s.ys)(a.href,n)){return r&&"category"!==a.type||o.unshift(a),!0}return!1}(t),o}function S(){const e=(0,d.t)(),{pathname:t}=(0,o.zy)(),n=(0,i.vT)()?.pluginData.breadcrumbs;return!1!==n&&e?w({sidebarItems:e.items,pathname:t}):null}function x(e){const{activeVersion:t}=(0,i.zK)(e),{preferredVersion:n}=(0,c.g1)(e),o=(0,i.r7)(e);return(0,r.useMemo)((()=>(0,l.sb)([t,n,o].filter(Boolean))),[t,n,o])}function k(e,t){const n=x(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function _(e,t){const n=x(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,l.sb)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function E(e){let{route:t}=e;const n=(0,o.zy)(),r=(0,u.r)(),i=t.routes,s=i.find((e=>(0,o.B6)(n.pathname,e)));if(!s)return null;const l=s.sidebar,c=l?r.docsSidebars[l]:void 0;return{docElement:(0,a.v)(i),sidebarName:l,sidebarItems:c}}function O(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!f(e)))}},8875:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,r:()=>l});var r=n(6540),o=n(5302),a=n(4848);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new o.dV("DocsVersionProvider");return e}},869:(e,t,n)=>{"use strict";n.d(t,{d1:()=>l.d1,zK:()=>b,vT:()=>m,gk:()=>h,Gy:()=>p,$S:()=>l.$S,HW:()=>v,vF:()=>u.v,ht:()=>f,g1:()=>c.g1,r7:()=>y,jh:()=>g});var r=n(6347),o=n(2114);const a=e=>e.versions.find((e=>e.isLast));function i(e,t){return[...e.versions].sort(((e,t)=>e.path===t.path?0:e.path.includes(t.path)?-1:t.path.includes(e.path)?1:0)).find((e=>!!(0,r.B6)(t,{path:e.path,exact:!1,strict:!1})))}function s(e,t){const n=i(e,t),o=n?.docs.find((e=>!!(0,r.B6)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:o,alternateDocVersions:o?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(o.id):{}}}var l=n(5246),c=n(6220),u=n(8328);const d={},p=()=>(0,o.kh)("docusaurus-plugin-content-docs")??d,f=e=>{try{return(0,o.P_)("docusaurus-plugin-content-docs",e,{failfast:!0})}catch(t){throw new Error("You are using a feature of the Docusaurus docs plugin, but this plugin does not seem to be enabled"+("Default"===e?"":` (pluginId=${e}`),{cause:t})}};function m(e){void 0===e&&(e={});const t=p(),{pathname:n}=(0,r.zy)();return function(e,t,n){void 0===n&&(n={});const o=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.B6)(t,{path:n.path,exact:!1,strict:!1})})),a=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!a&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return a}(t,n,e)}function h(e){void 0===e&&(e={});const t=m(e),{pathname:n}=(0,r.zy)();if(!t)return;return{activePlugin:t,activeVersion:i(t.pluginData,n)}}function g(e){return f(e).versions}function y(e){const t=f(e);return a(t)}function b(e){const t=f(e),{pathname:n}=(0,r.zy)();return s(t,n)}function v(e){const t=f(e),{pathname:n}=(0,r.zy)();return function(e,t){const n=a(e);return{latestDocSuggestion:s(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},6232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5947),o=n.n(r);o().configure({showSpinner:!1});const a={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{o().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){o().done()}}},6547:(e,t,n)=>{"use strict";var r=n(8181),o=n(4784);!function(e){const{themeConfig:{prism:t}}=o.A,{additionalLanguages:r}=t,a=globalThis.Prism;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(9700),n(4761)(`./prism-${e}`)})),delete globalThis.Prism,void 0!==a&&(globalThis.Prism=e)}(r.My)},8445:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(8215),o=n(2032),a=n(1436),i=n(7880),s=n(7756);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(4848);function u(e){let{as:t,id:n,...u}=e;const d=(0,s.A)(),{navbar:{hideOnScroll:p}}=(0,a.p)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,o.T)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.A)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(i.A,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},8584:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);const r={iconExternalLink:"iconExternalLink_nPIU"};var o=n(4848);function a(e){let{width:t=13.5,height:n=13.5}=e;return(0,o.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},3502:(e,t,n)=>{"use strict";n.d(t,{A:()=>si});var r=n(6540),o=n(8215),a=n(35),i=n(3523),s=n(6347),l=n(2032),c=n(4232),u=n(4848);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.W6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.$)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.T)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(4717),y=n(2920);const b={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(h,{className:b.skipToContent})}var w=n(1436),S=n(2459);function x(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:o=1.2,className:a,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:o,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const k={closeButton:"closeButton_CVFx"};function _(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,o.A)("clean-btn close",k.closeButton,e.className),children:(0,u.jsx)(x,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function O(e){const{announcementBar:t}=(0,w.p)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,o.A)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const L={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function P(){const{announcementBar:e}=(0,w.p)(),{isActive:t,close:n}=(0,S.M)();if(!t)return null;const{backgroundColor:r,textColor:o,isCloseable:a}=e;return(0,u.jsxs)("div",{className:L.announcementBar,style:{backgroundColor:r,color:o},role:"banner",children:[a&&(0,u.jsx)("div",{className:L.announcementBarPlaceholder}),(0,u.jsx)(O,{className:L.announcementBarContent}),a&&(0,u.jsx)(_,{onClick:n,className:L.announcementBarClose})]})}var C=n(1227),A=n(3622);var j=n(5302),T=n(7078);const I=r.createContext(null);function N(e){let{children:t}=e;const n=function(){const e=(0,C.M)(),t=(0,T.YL)(),[n,o]=(0,r.useState)(!1),a=null!==t.component,i=(0,j.ZC)(a);return(0,r.useEffect)((()=>{a&&!i&&o(!0)}),[a,i]),(0,r.useEffect)((()=>{a?e.shown||o(!0):o(!1)}),[e.shown,a]),(0,r.useMemo)((()=>[n,o]),[n])}();return(0,u.jsx)(I.Provider,{value:n,children:t})}function R(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function D(){const e=(0,r.useContext)(I);if(!e)throw new j.dV("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,o=(0,r.useCallback)((()=>n(!1)),[n]),a=(0,T.YL)();return(0,r.useMemo)((()=>({shown:t,hide:o,content:R(a)})),[o,a,t])}function F(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:a}=D();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,o.A)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":a}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var M=n(5331),B=n(4753);function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function U(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function V(e){let{className:t,buttonClassName:n,value:r,onChange:a}=e;const i=(0,B.A)(),s=(0,l.T)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.T)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.T)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,o.A)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,o.A)("clean-btn",$.toggleButton,!i&&$.toggleButtonDisabled,n),type:"button",onClick:()=>a("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite","aria-pressed":"dark"===r?"true":"false",children:[(0,u.jsx)(z,{className:(0,o.A)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(U,{className:(0,o.A)($.toggleIcon,$.darkToggleIcon)})]})})}const H=r.memo(V),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function W(e){let{className:t}=e;const n=(0,w.p)().navbar.style,r=(0,w.p)().colorMode.disableSwitch,{colorMode:o,setColorMode:a}=(0,M.G)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:o,onChange:a})}var q=n(3360);function G(){return(0,u.jsx)(q.A,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function K(){const e=(0,C.M)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(x,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(G,{}),(0,u.jsx)(W,{className:"margin-right--md"}),(0,u.jsx)(K,{})]})}var Z=n(7880),X=n(4763),J=n(7056);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(8584);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:o,label:a,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Ay)(r),p=(0,X.Ay)(t),f=(0,X.Ay)(o,{forcePrependBaseUrl:!0}),m=a&&o&&!(0,J.A)(o),h=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[a,m&&(0,u.jsx)(te.A,{...s&&{width:12,height:12}})]})};return o?(0,u.jsx)(Z.A,{href:l?f:o,...c,...h}):(0,u.jsx)(Z.A,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const a=(0,u.jsx)(ne,{className:(0,o.A)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:a}):a}function oe(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,o.A)("menu__link",t),...r})})}function ae(e){let{mobile:t=!1,position:n,...r}=e;const o=t?oe:re;return(0,u.jsx)(o,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(936),se=n(6707),le=n(5792);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.ys)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:a,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,o.A)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,o.A)("navbar__link",a),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(ka,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:a,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.A)(),{pathname:t}=(0,s.zy)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,o.A)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,o.A)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.N,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(ka,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var me=n(2473);function he(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var ye=n(961);function be(e,t){var n=void 0;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout((function(){return e.apply(void 0,o)}),t)}}function ve(e){return{current:e}}function we(e){return e!==Object(e)}function Se(e,t){if(e===t)return!0;if(we(e)||we(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(!(o in t))return!1;if(!Se(e[o],t[o]))return!1}return!0}var xe=function(){};function ke(e){var t=e.item,n=e.items,r=void 0===n?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+r.findIndex((function(e){return e.objectID===t.objectID}))],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oe=["items"],Le=["items"];function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Ce(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function je(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Pe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){return e.map((function(e){var t=e.items,n=je(e,Oe);return Ie(Ie({},n),{},{objectIDs:(null==t?void 0:t.map((function(e){return e.objectID})))||n.objectIDs})}))}function De(e){var t=function(e){var t=_e((e.version||"").split(".").map(Number),2),n=t[0],r=t[1];return n>=3||2===n&&r>=4||1===n&&r>=10}(e);function n(n,r,o){if(t&&void 0!==o){var a=o[0].__autocomplete_algoliaCredentials,i={"X-Algolia-Application-Id":a.appId,"X-Algolia-API-Key":a.apiKey};e.apply(void 0,[n].concat(Ce(r),[{headers:i}]))}else e.apply(void 0,[n].concat(Ce(r)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setAuthenticatedUserToken:function(t){e("setAuthenticatedUserToken",t)},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&n("clickedObjectIDsAfterSearch",Re(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&n("clickedObjectIDs",Re(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.length>0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&n("convertedObjectIDsAfterSearch",Re(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&n("convertedObjectIDs",Re(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.length>0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&t.reduce((function(e,t){var n=t.items,r=je(t,Le);return[].concat(Ce(e),Ce(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r<e.objectIDs.length;r+=t)n.push(Ie(Ie({},e),{},{objectIDs:e.objectIDs.slice(r,r+t)}));return n}(Ie(Ie({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return n("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.length>0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Fe(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function Me(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function ze(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Be(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Be(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qe="2.13.0",We="https://cdn.jsdelivr.net/npm/search-insights@".concat(Qe,"/dist/search-insights.min.js"),qe=be((function(e){var t=e.onItemsChange,n=e.items,r=e.insights,o=e.state;t({insights:r,insightsEvents:Fe({items:n}).map((function(e){return Ve({eventName:"Items Viewed"},e)})),state:o})}),400);function Ge(e){var t=function(e){return Ve({onItemsChange:function(e){var t=e.insights,n=e.insightsEvents,r=e.state;t.viewedObjectIDs.apply(t,ze(n.map((function(e){return Ve(Ve({},e),{},{algoliaSource:Ke(e.algoliaSource,r.context)})}))))},onSelect:function(e){var t=e.insights,n=e.insightsEvents,r=e.state;t.clickedObjectIDsAfterSearch.apply(t,ze(n.map((function(e){return Ve(Ve({},e),{},{algoliaSource:Ke(e.algoliaSource,r.context)})}))))},onActive:xe,__autocomplete_clickAnalytics:!0},e)}(e),n=t.insightsClient,r=t.insightsInitParams,o=t.onItemsChange,a=t.onSelect,i=t.onActive,s=t.__autocomplete_clickAnalytics,l=n;if(n||function(e){if("undefined"!=typeof window)e({window:window})}((function(e){var t=e.window,n=t.AlgoliaAnalyticsObject||"aa";"string"==typeof n&&(l=t[n]),l||(t.AlgoliaAnalyticsObject=n,t[n]||(t[n]=function(){t[n].queue||(t[n].queue=[]);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t[n].queue.push(r)}),t[n].version=Qe,l=t[n],function(e){var t="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var n=e.document.createElement("script");n.async=!0,n.src=We,n.onerror=function(){console.error(t)},document.body.appendChild(n)}catch(r){console.error(t)}}(t))})),!l)return{};r&&l("init",Ve({partial:!0},r));var c=De(l),u=ve([]),d=be((function(e){var t=e.state;if(t.isOpen){var n=t.collections.reduce((function(e,t){return[].concat(ze(e),ze(t.items))}),[]).filter(Me);Se(u.current.map((function(e){return e.objectID})),n.map((function(e){return e.objectID})))||(u.current=n,n.length>0&&qe({onItemsChange:o,items:n,insights:c,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive,o=!1;function u(e){t({algoliaInsightsPlugin:{__algoliaSearchParameters:Ve(Ve({},s?{clickAnalytics:!0}:{}),e?{userToken:Ye(e)}:{}),insights:c}})}l("addAlgoliaAgent","insights-plugin"),u(),l("onUserTokenChange",(function(e){o||u(e)})),l("getUserToken",null,(function(e,t){o||u(t)})),l("onAuthenticatedUserTokenChange",(function(e){e?(o=!0,u(e)):(o=!1,l("getUserToken",null,(function(e,t){return u(t)})))})),l("getAuthenticatedUserToken",null,(function(e,t){t&&(o=!0,u(t))})),n((function(e){var t=e.item,n=e.state,r=e.event,o=e.source;Me(t)&&a({state:n,event:r,insights:c,item:t,insightsEvents:[Ve({eventName:"Item Selected"},ke({item:t,items:o.getItems().filter(Me)}))]})})),r((function(e){var t=e.item,n=e.source,r=e.state,o=e.event;Me(t)&&i({state:r,event:o,insights:c,item:t,insightsEvents:[Ve({eventName:"Item Active"},ke({item:t,items:n.getItems().filter(Me)}))]})}))},onStateChange:function(e){var t=e.state;d({state:t})},__autocomplete_pluginOptions:e}}function Ke(){var e,t=arguments.length>1?arguments[1]:void 0;return[].concat(ze(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),["autocomplete-internal"],ze(null!==(e=t.algoliaInsightsPlugin)&&void 0!==e&&e.__automaticInsights?["autocomplete-automatic"]:[]))}function Ye(e){return"number"==typeof e?e.toString():e}function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ze(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ze(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(r,a){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);o=e(o,{type:r,props:t,payload:a}),n({state:o,prevState:i})},pendingRequests:(r=[],{add:function(e){return r.push(e),e.finally((function(){r=r.filter((function(t){return t!==e}))}))},cancelAll:function(){r.forEach((function(e){return e.cancel()}))},isEmpty:function(){return 0===r.length}})}}function tt(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e){return 0===e.collections.length?0:e.collections.reduce((function(e,t){return e+t.items.length}),0)}var st=0;function lt(){return"autocomplete-".concat(st++)}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ft(e){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function mt(e){return function(e){if(Array.isArray(e))return ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ht(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ft(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e,t){var n,r="undefined"!=typeof window?window:{},o=e.plugins||[];return yt(yt({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:r,shouldPanelOpen:function(e){return it(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:lt(),plugins:o,initialState:yt({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(mt(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:xe,onResolve:xe};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=ut(ut({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return tt(e)})).then((function(e){return e.map((function(e){return yt(yt({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:yt({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==wt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_t(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ct(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ct(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function At(e){return Boolean(e.execute)}function jt(e,t,n){if(o=e,Boolean(null==o?void 0:o.execute)){var r="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(Pt(Object.keys(n.context).map((function(e){var t;return null===(t=n.context[e])||void 0===t?void 0:t.__algoliaSearchParameters}))))):{};return Ot(Ot({},e),{},{requests:e.queries.map((function(n){return{query:"algolia"===e.requesterId?Ot(Ot({},n),{},{params:Ot(Ot({},r),n.params)}):n,sourceId:t,transformResponse:e.transformResponse}}))})}var o;return{items:e,sourceId:t}}function Tt(e){var t=e.reduce((function(e,t){if(!At(t))return e.push(t),e;var n=t.searchClient,r=t.execute,o=t.requesterId,a=t.requests,i=e.find((function(e){return At(t)&&At(e)&&e.searchClient===n&&Boolean(o)&&e.requesterId===o}));if(i){var s;(s=i.items).push.apply(s,Pt(a))}else{var l={execute:r,requesterId:o,items:a,searchClient:n};e.push(l)}return e}),[]).map((function(e){if(!At(e))return Promise.resolve(e);var t=e,n=t.execute,r=t.items;return n({searchClient:t.searchClient,requests:r})}));return Promise.all(t).then((function(e){return tt(e)}))}function It(e,t,n){return t.map((function(t){var r,o=e.filter((function(e){return e.sourceId===t.sourceId})),a=o.map((function(e){return e.items})),i=o[0].transformResponse,s=i?i({results:r=a,hits:r.map((function(e){return e.hits})).filter(Boolean),facetHits:r.map((function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}):a;return t.onResolve({source:t,results:a,items:s,state:n.getState()}),Array.isArray(s),s.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:s}}))}function Nt(e,t){var n=t;return{then:function(t,r){return Nt(e.then(Ft(t,n,e),Ft(r,n,e)),n)},catch:function(t){return Nt(e.catch(Ft(t,n,e)),n)},finally:function(t){return t&&n.onCancelList.push(t),Nt(e.finally(Ft(t&&function(){return n.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===n.isCanceled}}}function Rt(e){return Nt(new Promise((function(t,n){return e(t,n)})),{isCanceled:!1,onCancelList:[]})}function Dt(e){return Nt(e,{isCanceled:!1,onCancelList:[]})}function Ft(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function Mt(e){var t=function(e){var t=e.collections.map((function(e){return e.items.length})).reduce((function(e,t,n){var r=(e[n-1]||0)+t;return e.push(r),e}),[]).reduce((function(t,n){return n<=e.activeItemId?t+1:t}),0);return e.collections[t]}(e);if(!t)return null;var n=t.items[function(e){for(var t=e.state,n=e.collection,r=!1,o=0,a=0;!1===r;){var i=t.collections[o];if(i===n){r=!0;break}a+=i.items.length,o++}return t.activeItemId-a}({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}function Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}Rt.resolve=function(e){return Dt(Promise.resolve(e))},Rt.reject=function(e){return Dt(Promise.reject(e))};var zt=["event","nextState","props","query","refresh","store"];function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Vt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Bt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Bt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qt,Wt,qt,Gt=null,Kt=(Qt=-1,Wt=-1,qt=void 0,function(e){var t=++Qt;return Promise.resolve(e).then((function(e){return qt&&t<Wt?qt:(Wt=t,qt=e,e)}))});function Yt(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,o=e.props,a=e.query,i=e.refresh,s=e.store,l=Ht(e,zt);Gt&&o.environment.clearTimeout(Gt);var c=l.setCollections,u=l.setIsOpen,d=l.setQuery,p=l.setActiveItemId,f=l.setStatus,m=l.setContext;if(d(a),p(o.defaultActiveItemId),!a&&!1===o.openOnFocus){var h,g=s.getState().collections.map((function(e){return $t($t({},e),{},{items:[]})}));f("idle"),c(g),u(null!==(h=r.isOpen)&&void 0!==h?h:o.shouldPanelOpen({state:s.getState()}));var y=Dt(Kt(g).then((function(){return Promise.resolve()})));return s.pendingRequests.add(y)}f("loading"),Gt=o.environment.setTimeout((function(){f("stalled")}),o.stallThreshold);var b=Dt(Kt(o.getSources($t({query:a,refresh:i,state:s.getState()},l)).then((function(e){return Promise.all(e.map((function(e){return Promise.resolve(e.getItems($t({query:a,refresh:i,state:s.getState()},l))).then((function(t){return jt(t,e.sourceId,s.getState())}))}))).then(Tt).then((function(t){var n,r=t.some((function(e){return function(e){return!Array.isArray(e)&&Boolean(null==e?void 0:e._automaticInsights)}(e.items)}));r&&m({algoliaInsightsPlugin:$t($t({},(null===(n=s.getState().context)||void 0===n?void 0:n.algoliaInsightsPlugin)||{}),{},{__automaticInsights:r})});return It(t,e,s)})).then((function(e){return function(e){var t=e.collections,n=e.props,r=e.state,o=t.reduce((function(e,t){return xt(xt({},e),{},kt({},t.source.sourceId,xt(xt({},t.source),{},{getItems:function(){return tt(t.items)}})))}),{}),a=n.plugins.reduce((function(e,t){return t.reshape?t.reshape(e):e}),{sourcesBySourceId:o,state:r}).sourcesBySourceId;return tt(n.reshape({sourcesBySourceId:a,sources:Object.values(a),state:r})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:o,state:s.getState()})}))})))).then((function(e){var n;f("idle"),c(e);var d=o.shouldPanelOpen({state:s.getState()});u(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!a&&d||d);var p=Mt(s.getState());if(null!==s.getState().activeItemId&&p){var m=p.item,h=p.itemInputValue,g=p.itemUrl,y=p.source;y.onActive($t({event:t,item:m,itemInputValue:h,itemUrl:g,refresh:i,source:y,state:s.getState()},l))}})).finally((function(){f("idle"),Gt&&o.environment.clearTimeout(Gt)}));return s.pendingRequests.add(b)}function Zt(e,t,n){return[e,null==n?void 0:n.sourceId,t].filter(Boolean).join("-").replace(/\s/g,"")}function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}var Jt=["event","props","refresh","store"];function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach((function(t){nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var on=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function an(e){return e.nativeEvent||e}function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}var ln=["props","refresh","store"],cn=["inputElement","formElement","panelElement"],un=["inputElement"],dn=["inputElement","maxLength"],pn=["source"],fn=["item","source"];function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bn(e){var t=e.props,n=e.refresh,r=e.store,o=yn(e,ln);return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,a=e.panelElement;function i(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,a].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return hn({onTouchStart:i,onMouseDown:i,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},yn(e,cn))},getRootProps:function(e){return hn({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?r.getState().collections.map((function(e){var n=e.source;return Zt(t.id,"list",n)})).join(" "):void 0,"aria-labelledby":Zt(t.id,"label")},e)},getFormProps:function(e){e.inputElement;return hn({action:"",noValidate:!0,role:"search",onSubmit:function(a){var i;a.preventDefault(),t.onSubmit(hn({event:a,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(i=e.inputElement)||void 0===i||i.blur()},onReset:function(a){var i;a.preventDefault(),t.onReset(hn({event:a,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(i=e.inputElement)||void 0===i||i.focus()}},yn(e,un))},getLabelProps:function(e){return hn({htmlFor:Zt(t.id,"input"),id:Zt(t.id,"label")},e)},getInputProps:function(e){var a;function i(e){(t.openOnFocus||Boolean(r.getState().query))&&Yt(hn({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var s=e||{},l=(s.inputElement,s.maxLength),c=void 0===l?512:l,u=yn(s,dn),d=Mt(r.getState()),p=function(e){return Boolean(e&&e.match(on))}((null===(a=t.environment.navigator)||void 0===a?void 0:a.userAgent)||""),f=t.enterKeyHint||(null!=d&&d.itemUrl&&!p?"go":"search");return hn({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?Zt(t.id,"item-".concat(r.getState().activeItemId),null==d?void 0:d.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.map((function(e){var n=e.source;return Zt(t.id,"list",n)})).join(" "):void 0,"aria-labelledby":Zt(t.id,"label"),value:r.getState().completion||r.getState().query,id:Zt(t.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){var a=e.currentTarget.value;t.ignoreCompositionEvents&&an(e).isComposing?o.setQuery(a):Yt(hn({event:e,props:t,query:a.slice(0,c),refresh:n,store:r},o))},onCompositionEnd:function(e){Yt(hn({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},o))},onKeyDown:function(e){an(e).isComposing||function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,a=rn(e,Jt);if("ArrowUp"===t.key||"ArrowDown"===t.key){var i=function(){var e=Mt(o.getState()),t=n.environment.document.getElementById(Zt(n.id,"item-".concat(o.getState().activeItemId),null==e?void 0:e.source));t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):t.scrollIntoView(!1))},s=function(){var e=Mt(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,i=e.itemInputValue,s=e.itemUrl,l=e.source;l.onActive(tn({event:t,item:n,itemInputValue:i,itemUrl:s,refresh:r,source:l,state:o.getState()},a))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?Yt(tn({event:t,props:n,query:o.getState().query,refresh:r,store:o},a)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),s(),setTimeout(i,0)})):(o.dispatch(t.key,{}),s(),i())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var l=Mt(o.getState()),c=l.item,u=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(tn({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:o.getState()},a)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:o.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(tn({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:o.getState()},a)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:o.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(tn({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:o.getState()},a)),void n.navigator.navigate({itemUrl:d,item:c,state:o.getState()});Yt(tn({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:o},a)).then((function(){p.onSelect(tn({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:o.getState()},a))}))}}}(hn({event:e,props:t,refresh:n,store:r},o))},onFocus:i,onBlur:xe,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||i(n)}},u)},getPanelProps:function(e){return hn({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.source,o=yn(n,pn);return hn({role:"listbox","aria-labelledby":Zt(t.id,"label"),id:Zt(t.id,"list",r)},o)},getItemProps:function(e){var a=e.item,i=e.source,s=yn(e,fn);return hn({id:Zt(t.id,"item-".concat(a.__autocomplete_id),i),role:"option","aria-selected":r.getState().activeItemId===a.__autocomplete_id,onMouseMove:function(e){if(a.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",a.__autocomplete_id);var t=Mt(r.getState());if(null!==r.getState().activeItemId&&t){var i=t.item,s=t.itemInputValue,l=t.itemUrl,c=t.source;c.onActive(hn({event:e,item:i,itemInputValue:s,itemUrl:l,refresh:n,source:c,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var s=i.getItemInputValue({item:a,state:r.getState()}),l=i.getItemUrl({item:a,state:r.getState()});(l?Promise.resolve():Yt(hn({event:e,nextState:{isOpen:!1},props:t,query:s,refresh:n,store:r},o))).then((function(){i.onSelect(hn({event:e,item:a,itemInputValue:s,itemUrl:l,refresh:n,source:i,state:r.getState()},o))}))}},s)}}}var vn="1.17.0",wn=[{segment:"autocomplete-core",version:vn}];function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(e){var t,n,r,o,a=e.plugins,i=e.options,s=null===(t=((null===(n=i.__autocomplete_metadata)||void 0===n?void 0:n.userAgents)||[])[0])||void 0===t?void 0:t.segment,l=s?_n({},s,Object.keys((null===(r=i.__autocomplete_metadata)||void 0===r?void 0:r.options)||{})):{};return{plugins:a.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:kn({"autocomplete-core":Object.keys(i)},l),ua:wn.concat((null===(o=i.__autocomplete_metadata)||void 0===o?void 0:o.userAgents)||[])}}function On(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=Mt(n))||void 0===t?void 0:t.itemInputValue)||null}function Ln(e,t,n,r){if(!n)return null;if(e<0&&(null===t||null!==r&&0===t))return n+e;var o=(null===t?-1:t)+e;return o<=-1||o>=n?null===r?null:0:o}function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Pn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return An(An({},e),{},{activeItemId:t.payload});case"setQuery":return An(An({},e),{},{query:t.payload,completion:null});case"setCollections":return An(An({},e),{},{collections:t.payload});case"setIsOpen":return An(An({},e),{},{isOpen:t.payload});case"setStatus":return An(An({},e),{},{status:t.payload});case"setContext":return An(An({},e),{},{context:An(An({},e.context),t.payload)});case"ArrowDown":var n=An(An({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:Ln(1,e.activeItemId,it(e),t.props.defaultActiveItemId)});return An(An({},n),{},{completion:On({state:n})});case"ArrowUp":var r=An(An({},e),{},{activeItemId:Ln(-1,e.activeItemId,it(e),t.props.defaultActiveItemId)});return An(An({},r),{},{completion:On({state:r})});case"Escape":return e.isOpen?An(An({},e),{},{activeItemId:null,isOpen:!1,completion:null}):An(An({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return An(An({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return An(An({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return An(An({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:An(An({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return An(An({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function In(e){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){Dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==In(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==In(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===In(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fn(e){var t=[],n=vt(e,t),r=et(Tn,n,(function(e){var t,r,a=e.prevState,c=e.state;if(n.onStateChange(Rn({prevState:a,state:c,refresh:i,navigator:n.navigator},o)),!l()&&null!==(t=c.context)&&void 0!==t&&null!==(r=t.algoliaInsightsPlugin)&&void 0!==r&&r.__automaticInsights&&!1!==n.insights){var u=Ge({__autocomplete_clickAnalytics:!1});n.plugins.push(u),s([u])}})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map((function(e){return ot(ot({},e),{},{items:tt(e.items).map((function(e){return ot(ot({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),a=bn(Rn({props:n,refresh:i,store:r,navigator:n.navigator},o));function i(){return Yt(Rn({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:i,store:r},o))}function s(e){e.forEach((function(e){var r;return null===(r=e.subscribe)||void 0===r?void 0:r.call(e,Rn(Rn({},o),{},{navigator:n.navigator,refresh:i,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})},onResolve:function(e){t.push({onResolve:e})}}))}))}function l(){return n.plugins.some((function(e){return"aa.algoliaInsightsPlugin"===e.name}))}if(n.insights&&!l()){var c="boolean"==typeof n.insights?{}:n.insights;n.plugins.push(Ge(c))}return s(n.plugins),function(e){var t,n,r=e.metadata,o=e.environment;if(null===(t=o.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var a=o.document.createElement("meta"),i=o.document.querySelector("head");a.name="algolia:metadata",setTimeout((function(){a.content=JSON.stringify(r),i.appendChild(a)}),0)}}({metadata:En({plugins:n.plugins,options:e}),environment:n.environment}),Rn(Rn({refresh:i,navigator:n.navigator},a),o)}var Mn=function(e,t,n,r){var o;t[0]=0;for(var a=1;a<t.length;a++){var i=t[a++],s=t[a]?(t[0]|=i?1:2,n[t[a++]]):t[++a];3===i?r[0]=s:4===i?r[1]=Object.assign(r[1]||{},s):5===i?(r[1]=r[1]||{})[t[++a]]=s:6===i?r[1][t[++a]]+=s+"":i?(o=e.apply(s,Mn(e,s,n,["",null])),r.push(o),s[0]?t[0]|=2:(t[a-2]=0,t[a]=o)):r.push(s)}return r},Bn=new Map;function zn(e){var t=Bn.get(this);return t||(t=new Map,Bn.set(this,t)),(t=Mn(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,r=1,o="",a="",i=[0],s=function(e){1===r&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?i.push(0,e,o):3===r&&(e||o)?(i.push(3,e,o),r=2):2===r&&"..."===o&&e?i.push(4,e,0):2===r&&o&&!e?i.push(5,0,!0,o):r>=5&&((o||!e&&5===r)&&(i.push(r,0,o,n),r=6),e&&(i.push(r,e,0,n),r=6)),o=""},l=0;l<e.length;l++){l&&(1===r&&s(),s(l));for(var c=0;c<e[l].length;c++)t=e[l][c],1===r?"<"===t?(s(),i=[i],r=3):o+=t:4===r?"--"===o&&">"===t?(r=1,o=""):o=t+o[0]:a?t===a?a="":o+=t:'"'===t||"'"===t?a=t:">"===t?(s(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[l][c+1])?(s(),3===r&&(i=i[0]),r=i,(i=i[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),r=2):o+=t),3===r&&"!--"===o&&(r=4,i=i[0])}return s(),i}(e)),t),arguments,[])).length>1?t:t[0]}var Un=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},$n=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},Vn=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='<circle\n cx="50"\n cy="50"\n fill="none"\n r="35"\n stroke="currentColor"\n stroke-dasharray="164.93361431346415 56.97787143782138"\n stroke-width="6"\n>\n <animateTransform\n attributeName="transform"\n type="rotate"\n repeatCount="indefinite"\n dur="1s"\n values="0 50 50;90 50 50;180 50 50;360 50 50"\n keyTimes="0;0.40;0.65;1"\n />\n</circle>',t},Hn=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Qn(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Wn(e){this._listeners[e.type](e)}function qn(e,t,n){var r,o,a=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)a&&n[t]===a[t]||Qn(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((o=t.toLowerCase())in e||Hn.includes(o))&&(t=o),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?a||e.addEventListener(t,Wn,r):e.removeEventListener(t,Wn,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Gn(e){switch(e){case"onChange":return"onInput";case"onCompositionEnd":return"oncompositionend";default:return e}}function Kn(e,t){for(var n in t)qn(e,Gn(n),t[n])}function Yn(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||qn(e,Gn(n),t[n])}var Zn=["children"];function Xn(e){return function(e){if(Array.isArray(e))return Jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function er(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(e){return function(t,n){var r=n.children,o=void 0===r?[]:r,a=er(n,Zn),i=e.document.createElement(t);return Kn(i,a),i.append.apply(i,Xn(o)),i}}function nr(e){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(e)}var rr=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lr=function(e){var t=e.autocompleteScopeApi,n=e.environment,r=(e.classNames,e.getInputProps),o=e.getInputPropsCore,a=e.isDetached,i=e.state,s=sr(e,rr),l=tr(n)("input",s),c=r(ar({state:i,props:o({inputElement:l}),inputElement:l},t));return Kn(l,ar(ar({},c),{},{onKeyDown:function(e){a&&"Tab"===e.key||c.onKeyDown(e)}})),l};function cr(e){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==cr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fr,mr,hr,gr,yr,br,vr,wr,Sr,xr,kr={},_r=[],Er=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Or=Array.isArray;function Lr(e,t){for(var n in t)e[n]=t[n];return e}function Pr(e){var t=e.parentNode;t&&t.removeChild(e)}function Cr(e,t,n){var r,o,a,i={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?fr.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return Ar(e,i,r,o,null)}function Ar(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++hr:o,__i:-1,__u:0};return null==o&&null!=mr.vnode&&mr.vnode(a),a}function jr(e){return e.children}function Tr(e,t){this.props=e,this.context=t}function Ir(e,t){if(null==t)return e.__?Ir(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Ir(e):null}function Nr(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Nr(e)}}function Rr(e){(!e.__d&&(e.__d=!0)&&gr.push(e)&&!Dr.__r++||yr!==mr.debounceRendering)&&((yr=mr.debounceRendering)||br)(Dr)}function Dr(){var e,t,n,r,o,a,i,s;for(gr.sort(vr);e=gr.shift();)e.__d&&(t=gr.length,r=void 0,a=(o=(n=e).__v).__e,i=[],s=[],n.__P&&((r=Lr({},o)).__v=o.__v+1,mr.vnode&&mr.vnode(r),Hr(n.__P,r,o,n.__n,void 0!==n.__P.ownerSVGElement,32&o.__u?[a]:null,i,null==a?Ir(o):a,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,Qr(i,r,s),r.__e!=a&&Nr(r)),gr.length>t&&gr.sort(vr));Dr.__r=0}function Fr(e,t,n,r,o,a,i,s,l,c,u){var d,p,f,m,h,g=r&&r.__k||_r,y=t.length;for(n.__d=l,Mr(n,t,g),l=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?kr:g[f.__i]||kr,f.__i=d,Hr(e,f,p,o,a,i,s,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&qr(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==h&&null!=m&&(h=m),65536&f.__u||p.__k===f.__k?(l&&!l.isConnected&&(l=Ir(p)),l=Br(f,l,e)):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=h}function Mr(e,t,n){var r,o,a,i,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)i=r+d,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?Ar(null,o,null,null,null):Or(o)?Ar(jr,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?Ar(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=zr(o,n,i,u),o.__i=s,a=null,-1!==s&&(u--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==i&&(s===i+1?d++:s>i?u>l-i?d+=s-i:d--:s<i?s==i-1&&(d=s-i):d=0,s!==r+d&&(o.__u|=65536))):(a=n[i])&&null==a.key&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ir(a)),Gr(a,a,!1),n[i]=null,u--);if(u)for(r=0;r<c;r++)null!=(a=n[r])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ir(a)),Gr(a,a))}function Br(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Br(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function zr(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&a===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;i>=0||s<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&o==l.key&&a===l.type)return i;i--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&a===l.type)return s;s++}}return-1}function Ur(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Er.test(t)?n:n+"px"}function $r(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ur(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ur(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=wr,e.addEventListener(t,a?xr:Sr,a)):e.removeEventListener(t,a?xr:Sr,a);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Vr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=wr++;else if(t.t<n.u)return;return n(mr.event?mr.event(t):t)}}}function Hr(e,t,n,r,o,a,i,s,l,c){var u,d,p,f,m,h,g,y,b,v,w,S,x,k,_,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=mr.__b)&&u(t);e:if("function"==typeof E)try{if(y=t.props,b=(u=E.contextType)&&r[u.__c],v=u?b?b.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in E&&E.prototype.render?t.__c=d=new E(y,v):(t.__c=d=new Tr(y,v),d.constructor=E,d.render=Kr),b&&b.sub(d),d.props=y,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Lr({},d.__s)),Lr(d.__s,E.getDerivedStateFromProps(y,d.__s))),f=d.props,m=d.state,d.__v=t,p)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,v),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,m,h)}))}if(d.context=v,d.props=y,d.__P=e,d.__e=!1,S=mr.__r,x=0,"prototype"in E&&E.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(r=Lr(Lr({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(f,m)),Fr(e,Or(_=null!=u&&u.type===jr&&null==u.key?u.props.children:u)?_:[_],t,n,r,o,a,i,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),mr.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Wr(n.__e,t,n,r,o,a,i,l,c);(u=mr.diffed)&&u(t)}function Qr(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)qr(n[r],n[++r],n[++r]);mr.__c&&mr.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){mr.__e(e,t.__v)}}))}function Wr(e,t,n,r,o,a,i,s,l){var c,u,d,p,f,m,h,g=n.props,y=t.props,b=t.type;if("svg"===b&&(o=!0),null!=a)for(c=0;c<a.length;c++)if((f=a[c])&&"setAttribute"in f==!!b&&(b?f.localName===b:3===f.nodeType)){e=f,a[c]=null;break}if(null==e){if(null===b)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),a=null,s=!1}if(null===b)g===y||s&&e.data===y||(e.data=y);else{if(a=a&&fr.call(e.childNodes),g=n.props||kr,!s&&null!=a)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)f=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=f:"key"===c||c in y||$r(e,c,null,f,o));for(c in y)f=y[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?m=f:"checked"==c?h=f:"key"===c||s&&"function"!=typeof f||g[c]===f||$r(e,c,f,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Fr(e,Or(p)?p:[p],t,n,r,o&&"foreignObject"!==b,a,i,a?a[0]:n.__k&&Ir(n,0),s,l),null!=a)for(c=a.length;c--;)null!=a[c]&&Pr(a[c]);s||(c="value",void 0!==m&&(m!==e[c]||"progress"===b&&!m||"option"===b&&m!==g[c])&&$r(e,c,m,g[c],!1),c="checked",void 0!==h&&h!==e[c]&&$r(e,c,h,g[c],!1))}return e}function qr(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){mr.__e(e,n)}}function Gr(e,t,n){var r,o;if(mr.unmount&&mr.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||qr(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){mr.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Gr(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||Pr(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Kr(e,t,n){return this.constructor(e,n)}function Yr(e,t,n){var r,o,a,i;mr.__&&mr.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],i=[],Hr(t,e=(!r&&n||t).__k=Cr(jr,null,[e]),o||kr,kr,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?fr.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r,i),Qr(a,e,i)}function Zr(e,t){return t.reduce((function(e,t){return e&&e[t]}),e)}fr=_r.slice,mr={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},hr=0,Tr.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Lr({},this.state),"function"==typeof e&&(e=e(Lr({},n),this.props)),e&&Lr(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Rr(this))},Tr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rr(this))},Tr.prototype.render=jr,gr=[],br="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vr=function(e,t){return e.__v.__b-t.__v.__b},Dr.__r=0,wr=0,Sr=Vr(!1),xr=Vr(!0);var Xr="__aa-highlight__",Jr="__/aa-highlight__";function eo(e){var t=e.highlightedValue.split(Xr),n=t.shift(),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return e},add:function(t){var n=e[e.length-1];(null==n?void 0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Jr);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function to(e){return function(e){if(Array.isArray(e))return no(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return no(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return no(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ro(e){var t=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=Zr(t,["_highlightResult"].concat(to(r),["value"]));return"string"!=typeof o&&(o=Zr(t,r)||""),eo({highlightedValue:o})}function oo(e){var t=e.createElement,n=e.Fragment;function r(e){var r=e.hit,o=e.attribute,a=e.tagName,i=void 0===a?"mark":a;return t(n,{},ro({hit:r,attribute:o}).map((function(e,n){return e.isHighlighted?t(i,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="Highlight",r}var ao={"&":"&","<":"<",">":">",""":'"',"'":"'"},io=new RegExp(/\w/i),so=/&(amp|quot|lt|gt|#39);/g,lo=RegExp(so.source);function co(e,t){var n,r,o,a=e[t],i=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,s=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return io.test((o=a.value)&&lo.test(o)?o.replace(so,(function(e){return ao[e]})):o)||s!==i?a.isHighlighted:s}function uo(e){return uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uo(e)}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==uo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e){return e.some((function(e){return e.isHighlighted}))?e.map((function(t,n){return fo(fo({},t),{},{isHighlighted:!co(e,n)})})):e.map((function(e){return fo(fo({},e),{},{isHighlighted:!1})}))}function go(e){var t=e.createElement,n=e.Fragment;function r(e){var r,o=e.hit,a=e.attribute,i=e.tagName,s=void 0===i?"mark":i;return t(n,{},(r={hit:o,attribute:a},ho(ro(r))).map((function(e,n){return e.isHighlighted?t(s,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="ReverseHighlight",r}function yo(e){return function(e){if(Array.isArray(e))return bo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vo(e){var t=e.hit,n=e.attribute,r=Array.isArray(n)?n:[n],o=Zr(t,["_snippetResult"].concat(yo(r),["value"]));return"string"!=typeof o&&(o=Zr(t,r)||""),eo({highlightedValue:o})}function wo(e){var t=e.createElement,n=e.Fragment;function r(e){var r,o=e.hit,a=e.attribute,i=e.tagName,s=void 0===i?"mark":i;return t(n,{},(r={hit:o,attribute:a},ho(vo(r))).map((function(e,n){return e.isHighlighted?t(s,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="ReverseSnippet",r}function So(e){var t=e.createElement,n=e.Fragment;function r(e){var r=e.hit,o=e.attribute,a=e.tagName,i=void 0===a?"mark":a;return t(n,{},vo({hit:r,attribute:o}).map((function(e,n){return e.isHighlighted?t(i,{key:n},e.value):e.value})))}return r.__autocomplete_componentName="Snippet",r}function xo(e,t){if("string"==typeof t){var n=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}return t}function ko(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Object.keys(t).forEach((function(n){var r=e[n],o=t[n];r!==o&&(e[n]=[r,o].filter(Boolean).join(" "))})),e}),{})}function _o(e){return _o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(e)}var Eo=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"];function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ao={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},jo=function(e,t){var n=e.children;(0,e.render)(n,t)},To={createElement:Cr,Fragment:jr,render:Yr};function Io(e){var t=e.panelPlacement,n=e.container,r=e.form,o=e.environment,a=n.getBoundingClientRect(),i=(o.pageYOffset||o.document.documentElement.scrollTop||o.document.body.scrollTop||0)+a.top+a.height;switch(t){case"start":return{top:i,left:a.left};case"end":return{top:i,right:o.document.documentElement.clientWidth-(a.left+a.width)};case"full-width":return{top:i,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var s=r.getBoundingClientRect();return{top:i,left:s.left,right:o.document.documentElement.clientWidth-(s.left+s.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function No(e){return No="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},No(e)}function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ro.apply(this,arguments)}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==No(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==No(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===No(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bo=[{segment:"autocomplete-js",version:vn}];function zo(e){return function(e){if(Array.isArray(e))return Uo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $o(e){return $o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$o(e)}var Vo=function(e){return e&&"object"===$o(e)&&"[object Object]"===Object.prototype.toString.call(e)};function Ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return Object.keys(t).forEach((function(n){var r=e[n],o=t[n];Array.isArray(r)&&Array.isArray(o)?e[n]=r.concat.apply(r,zo(o)):Vo(r)&&Vo(o)?e[n]=Ho(r,o):e[n]=o})),e}),{})}function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Go(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Qo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Yo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zo=["components"];function Xo(e){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(e)}function Jo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){na(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function na(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e){var t,n=function(){var e=[],t=[];function n(n){e.push(n);var r=n();t.push(r)}return{runEffect:n,cleanupEffects:function(){var e=t;t=[],e.forEach((function(e){e()}))},runEffects:function(){var t=e;e=[],t.forEach((function(e){n(e)}))}}}(),r=n.runEffect,o=n.cleanupEffects,a=n.runEffects,i=(t=[],{reactive:function(e){var n=e(),r={_fn:e,_ref:{current:n},get value(){return this._ref.current},set value(e){this._ref.current=e}};return t.push(r),r},runReactives:function(){t.forEach((function(e){e._ref.current=e._fn()}))}}),s=i.reactive,l=i.runReactives,c=ve(!1),u=ve(e),d=ve(void 0),p=s((function(){return function(e){var t,n=e.classNames,r=e.container,o=e.getEnvironmentProps,a=e.getFormProps,i=e.getInputProps,s=e.getItemProps,l=e.getLabelProps,c=e.getListProps,u=e.getPanelProps,d=e.getRootProps,p=e.panelContainer,f=e.panelPlacement,m=e.render,h=e.renderNoResults,g=e.renderer,y=e.detachedMediaQuery,b=e.components,v=e.translations,w=Co(e,Eo),S="undefined"!=typeof window?window:{},x=xo(S,r);x.tagName;var k=Lo(Lo({},To),g),_={Highlight:oo(k),ReverseHighlight:go(k),ReverseSnippet:wo(k),Snippet:So(k)};return{renderer:{classNames:ko(Ao,null!=n?n:{}),container:x,getEnvironmentProps:null!=o?o:function(e){return e.props},getFormProps:null!=a?a:function(e){return e.props},getInputProps:null!=i?i:function(e){return e.props},getItemProps:null!=s?s:function(e){return e.props},getLabelProps:null!=l?l:function(e){return e.props},getListProps:null!=c?c:function(e){return e.props},getPanelProps:null!=u?u:function(e){return e.props},getRootProps:null!=d?d:function(e){return e.props},panelContainer:p?xo(S,p):S.document.body,panelPlacement:null!=f?f:"input-wrapper-width",render:null!=m?m:jo,renderNoResults:h,renderer:k,detachedMediaQuery:null!=y?y:getComputedStyle(S.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:Lo(Lo({},_),b),translations:Lo(Lo({},{clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",detachedSearchButtonTitle:"Search",submitButtonTitle:"Submit"}),v)},core:Lo(Lo({},w),{},{id:null!==(t=w.id)&&void 0!==t?t:lt(),environment:S})}}(u.current)})),f=s((function(){return p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches})),m=s((function(){return Fn(ta(ta({},p.value.core),{},{onStateChange:function(e){var t,n,r;c.current=e.state.collections.some((function(e){return e.source.templates.noResults})),null===(t=d.current)||void 0===t||t.call(d,e),null===(n=(r=p.value.core).onStateChange)||void 0===n||n.call(r,e)},shouldPanelOpen:u.current.shouldPanelOpen||function(e){var t=e.state;if(f.value)return!0;var n=it(t)>0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(c.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Bo,options:e}}))})),h=ve(ta({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),g={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},y={setActiveItemId:m.value.setActiveItemId,setQuery:m.value.setQuery,setCollections:m.value.setCollections,setIsOpen:m.value.setIsOpen,setStatus:m.value.setStatus,setContext:m.value.setContext,refresh:m.value.refresh,navigator:m.value.navigator},b=s((function(){return zn.bind(p.value.renderer.renderer.createElement)})),v=s((function(){return function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.classNames,o=e.environment,a=e.isDetached,i=e.placeholder,s=void 0===i?"Search":i,l=e.propGetters,c=e.setIsModalOpen,u=e.state,d=e.translations,p=tr(o),f=l.getRootProps(dr({state:u,props:t.getRootProps({})},n)),m=p("div",dr({class:r.root},f)),h=p("div",{class:r.detachedContainer,onMouseDown:function(e){e.stopPropagation()}}),g=p("div",{class:r.detachedOverlay,children:[h],onMouseDown:function(){c(!1),t.setIsOpen(!1)}}),y=l.getLabelProps(dr({state:u,props:t.getLabelProps({})},n)),b=p("button",{class:r.submitButton,type:"submit",title:d.submitButtonTitle,children:[Un({environment:o})]}),v=p("label",dr({class:r.label,children:[b]},y)),w=p("button",{class:r.clearButton,type:"reset",title:d.clearButtonTitle,children:[$n({environment:o})]}),S=p("div",{class:r.loadingIndicator,children:[Vn({environment:o})]}),x=lr({class:r.input,environment:o,state:u,getInputProps:l.getInputProps,getInputPropsCore:t.getInputProps,autocompleteScopeApi:n,isDetached:a}),k=p("div",{class:r.inputWrapperPrefix,children:[v,S]}),_=p("div",{class:r.inputWrapperSuffix,children:[w]}),E=p("div",{class:r.inputWrapper,children:[x]}),O=l.getFormProps(dr({state:u,props:t.getFormProps({inputElement:x})},n)),L=p("form",dr({class:r.form,children:[k,E,_]},O)),P=l.getPanelProps(dr({state:u,props:t.getPanelProps({})},n)),C=p("div",dr({class:r.panel},P)),A=p("div",{class:r.detachedSearchButtonQuery,textContent:u.query}),j=p("div",{class:r.detachedSearchButtonPlaceholder,hidden:Boolean(u.query),textContent:s});if(a){var T=p("div",{class:r.detachedSearchButtonIcon,children:[Un({environment:o})]}),I=p("button",{type:"button",class:r.detachedSearchButton,title:d.detachedSearchButtonTitle,id:y.id,onClick:function(){c(!0)},children:[T,j,A]}),N=p("button",{type:"button",class:r.detachedCancelButton,textContent:d.detachedCancelButtonText,onTouchStart:function(e){e.stopPropagation()},onClick:function(){t.setIsOpen(!1),c(!1)}}),R=p("div",{class:r.detachedFormContainer,children:[L,N]});h.appendChild(R),m.appendChild(I)}else m.appendChild(L);return{detachedContainer:h,detachedOverlay:g,detachedSearchButtonQuery:A,detachedSearchButtonPlaceholder:j,inputWrapper:E,input:x,root:m,form:L,label:v,submitButton:b,clearButton:w,loadingIndicator:S,panel:C}}({autocomplete:m.value,autocompleteScopeApi:y,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:g,setIsModalOpen:k,state:h.current,translations:p.value.renderer.translations})}));function w(){Kn(v.value.panel,{style:f.value?{}:Io({panelPlacement:p.value.renderer.panelPlacement,container:v.value.root,form:v.value.form,environment:p.value.core.environment})})}function S(e){h.current=e;var t={autocomplete:m.value,autocompleteScopeApi:y,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:b.value,dom:v.value,panelContainer:f.value?v.value.detachedContainer:p.value.renderer.panelContainer,propGetters:g,state:h.current,renderer:p.value.renderer.renderer},n=!it(e)&&!c.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,o=e.propGetters,a=e.state;Yn(r.root,o.getRootProps(Fo({state:a,props:t.getRootProps({})},n))),Yn(r.input,o.getInputProps(Fo({state:a,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Kn(r.label,{hidden:"stalled"===a.status}),Kn(r.loadingIndicator,{hidden:"stalled"!==a.status}),Kn(r.clearButton,{hidden:!a.query}),Kn(r.detachedSearchButtonQuery,{textContent:a.query}),Kn(r.detachedSearchButtonPlaceholder,{hidden:Boolean(a.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,o=t.classNames,a=t.html,i=t.dom,s=t.panelContainer,l=t.propGetters,c=t.state,u=t.components,d=t.renderer;if(c.isOpen){s.contains(i.panel)||"loading"===c.status||s.appendChild(i.panel),i.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var p=c.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var i=e.source,s=e.items;return d.createElement("section",{key:t,className:o.source,"data-autocomplete-source-id":i.sourceId},i.templates.header&&d.createElement("div",{className:o.sourceHeader},i.templates.header({components:u,createElement:d.createElement,Fragment:d.Fragment,items:s,source:i,state:c,html:a})),i.templates.noResults&&0===s.length?d.createElement("div",{className:o.sourceNoResults},i.templates.noResults({components:u,createElement:d.createElement,Fragment:d.Fragment,source:i,state:c,html:a})):d.createElement("ul",Ro({className:o.list},l.getListProps(Fo({state:c,props:n.getListProps({source:i})},r))),s.map((function(e){var t=n.getItemProps({item:e,source:i});return d.createElement("li",Ro({key:t.id,className:o.item},l.getItemProps(Fo({state:c,props:t},r))),i.templates.item({components:u,createElement:d.createElement,Fragment:d.Fragment,item:e,state:c,html:a}))}))),i.templates.footer&&d.createElement("div",{className:o.sourceFooter},i.templates.footer({components:u,createElement:d.createElement,Fragment:d.Fragment,items:s,source:i,state:c,html:a})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:o.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),m=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(Fo(Fo({children:f,state:c,sections:p,elements:m},d),{},{components:u,html:a},r),i.panel)}else s.contains(i.panel)&&s.removeChild(i.panel)}(n,t)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o();var t,n,r=p.value.renderer,i=r.components,s=Jo(r,Zo);u.current=Ho(s,p.value.core,{components:(t=i,n=function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")},Object.entries(t).reduce((function(e,t){var r=Ko(t,2),o=r[0],a=r[1];return n({key:o,value:a})?qo(qo({},e),{},Go({},o,a)):e}),{})),initialState:h.current},e),l(),a(),m.value.refresh().then((function(){S(h.current)}))}function k(e){e!==p.value.core.environment.document.body.contains(v.value.detachedOverlay)&&(e?(p.value.core.environment.document.body.appendChild(v.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),v.value.input.focus()):(p.value.core.environment.document.body.removeChild(v.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}return r((function(){var e=m.value.getEnvironmentProps({formElement:v.value.form,panelElement:v.value.panel,inputElement:v.value.input});return Kn(p.value.core.environment,e),function(){Kn(p.value.core.environment,Object.keys(e).reduce((function(e,t){return ta(ta({},e),{},na({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?v.value.detachedOverlay:v.value.panel;return f.value&&h.current.isOpen&&k(!0),S(h.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(v.value.root),function(){e.removeChild(v.value.root)}})),r((function(){var e=be((function(e){S(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&k(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=be((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?x({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){v.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),ta(ta({},y),{},{update:x,destroy:function(){o()}})}var oa=n(4502);const aa=n(4221),ia=aa;var sa=n(689),la=n.n(sa);function ca(){const e=(0,s.zy)(),t=(0,s.W6)(),{siteConfig:{baseUrl:n}}=(0,le.A)(),[o,a]=(0,r.useState)({terms:[],isDocsOrBlog:!1});return(0,r.useEffect)((()=>{if(!e.state?.cmfcmfhighlight||0===e.state.cmfcmfhighlight.terms.length)return;a(e.state.cmfcmfhighlight);const{cmfcmfhighlight:n,...r}=e.state;t.replace({...e,state:r})}),[e.state?.cmfcmfhighlight,t,e]),(0,r.useEffect)((()=>{if(0===o.terms.length)return;const e=o.isDocsOrBlog?document.getElementsByTagName("article")[0]:document.getElementsByTagName("main")[0];if(!e)return;const t=new(la())(e),n={ignoreJoiners:!0};return t.mark(o.terms,n),()=>t.unmark(n)}),[o,n]),null}var ua=n(2114),da=n(9529);function pa(e){let{document:t}=e;const[n,r]=t.sectionRoute.split("#");let o=n;return r&&(o+="#"+r),o}const fa={documents:[],index:ia((function(){this.ref("id"),this.field("title"),this.field("content")}))};const ma=()=>{const e=(0,B.A)(),[t,o]=(0,r.useState)((()=>!!e&&"dark"===document.documentElement.getAttribute("data-theme")));(0,r.useEffect)((()=>{const e=new MutationObserver((()=>{o("dark"===document.documentElement.getAttribute("data-theme"))}));return e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>e.disconnect()}),[]);const{siteConfig:{baseUrl:a}}=(0,le.A)(),{titleBoost:i,contentBoost:c,tagsBoost:u,parentCategoriesBoost:d,indexDocSidebarParentCategories:p,maxSearchResults:f}=(0,ua.P_)("@cmfcmf/docusaurus-search-local"),m=(0,s.W6)(),{tags:h}=function(){const{i18n:e}=(0,le.A)(),t=n(869).vF(),r=[da.C,...t];return{locale:e.currentLocale,tags:r}}(),g=(0,r.useRef)(h);(0,r.useEffect)((()=>{g.current=h}),[h]);const y=(0,r.useRef)({}),b=async e=>{const t=y.current[e];switch(t?.state){case"ready":return t;case void 0:{const t=[];y.current[e]={state:"loading",callbacks:t};const n=await async function(e,t){{let r;try{const n=await fetch(`${e}search-index-${t}.json`);if(!n.ok)return fa;r=await n.json()}catch(n){return fa}return{documents:r.documents,index:ia.Index.load(r.index)}}}(a,e);return t.forEach((e=>e(n))),y.current[e]={state:"ready",...n}}case"loading":return new Promise((e=>{t.callbacks.push(e)}))}},v=(0,l.T)({message:"cmfcmf/d-s-l.searchBar.placeholder",description:"Placeholder shown in the searchbar"}),w=(0,r.useRef)(null),S=(0,r.useRef)(null);return(0,r.useEffect)((()=>{if(w.current)return S.current=ra({container:w.current,placeholder:v,renderer:{createElement:r.createElement,Fragment:r.Fragment,render:ye.render},navigator:{navigate(e){let{item:t,itemUrl:n}=e;m.push(n,{cmfcmfhighlight:{terms:t.terms,isDocsOrBlog:"docs"===t.document.type||"blog"===t.document.type}})}},detachedMediaQuery:"",defaultActiveItemId:0,translations:{clearButtonTitle:(0,l.T)({message:"cmfcmf/d-s-l.searchBar.clearButtonTitle",description:"Title of the button to clear the current search input"}),detachedCancelButtonText:(0,l.T)({message:"cmfcmf/d-s-l.searchBar.detachedCancelButtonText",description:"Text of the button to close the detached search window"}),submitButtonTitle:(0,l.T)({message:"cmfcmf/d-s-l.searchBar.submitButtonTitle",description:"Title of the button to submit a new search"})},getSources(e){let{query:t}=e;return[{sourceId:"search-results",templates:{item(e){let{item:t}=e;const n=pa(t);return r.createElement("a",{href:n,className:"aa-ItemLink",onClick:e=>{e.preventDefault(),m.push(n,{cmfcmfhighlight:{terms:t.terms,isDocsOrBlog:"docs"===t.document.type||"blog"===t.document.type}})}},r.createElement("div",{className:"aa-ItemContent"},r.createElement("div",{className:"aa-ItemContentBody"},r.createElement("div",{className:"aa-ItemContentTitle"},t.document.sectionTitle),t.document.pageTitle!==t.document.sectionTitle&&r.createElement("div",{className:"aa-ItemContentDescription"},t.document.pageTitle))),r.createElement("div",{className:"aa-ItemActions"},r.createElement("button",{className:"aa-ItemActionButton aa-DesktopOnly aa-ActiveOnly",type:"button",title:"Select"},r.createElement("svg",{viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"},r.createElement("path",{d:"M18.984 6.984h2.016v6h-15.188l3.609 3.609-1.406 1.406-6-6 6-6 1.406 1.406-3.609 3.609h13.172v-4.031z"})))))},noResults:()=>r.createElement("div",{className:"aa-ItemContent"},r.createElement("div",{className:"aa-ItemContentBody"},(0,l.T)({message:"cmfcmf/d-s-l.searchBar.noResults",description:"message shown if no results are found"})))},getItemUrl(e){let{item:t}=e;return pa(t)},async getItems(){const e=g.current,n=await Promise.all(e.map((e=>b(e)))),r=(e=>aa.tokenizer(e).map((e=>e.str)))(t);return n.flatMap((e=>{let{index:t,documents:n}=e;return t.query((e=>{e.term(r,{fields:["title"],boost:i}),e.term(r,{fields:["title"],boost:i,wildcard:ia.Query.wildcard.TRAILING}),e.term(r,{fields:["content"],boost:c}),e.term(r,{fields:["content"],boost:c,wildcard:ia.Query.wildcard.TRAILING}),e.term(r,{fields:["tags"],boost:u}),e.term(r,{fields:["tags"],boost:u,wildcard:ia.Query.wildcard.TRAILING}),p&&(e.term(r,{fields:["sidebarParentCategories"],boost:d}),e.term(r,{fields:["sidebarParentCategories"],boost:d,wildcard:ia.Query.wildcard.TRAILING}))})).slice(0,f).map((e=>({document:n.find((t=>t.id.toString()===e.ref)),score:e.score,terms:r})))})).sort(((e,t)=>t.score-e.score)).slice(0,f)}}]}}),()=>S.current?.destroy()}),[f]),r.createElement(r.Fragment,null,r.createElement(oa.A,null,r.createElement("body",{"data-theme":t?"dark":"light"})),r.createElement(ca,null),r.createElement("div",{className:"dsla-search-wrapper"},r.createElement("div",{className:"dsla-search-field",ref:w,"data-tags":h.join(",")})))},ha={navbarSearchContainer:"navbarSearchContainer_Bca1"};function ga(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,o.A)(n,ha.navbarSearchContainer),children:t})}var ya=n(869),ba=n(5246);var va=n(6220);function wa(e,t){return t.alternateDocVersions[e.name]??function(e){return e.docs.find((t=>t.id===e.mainDocId))}(e)}const Sa={default:ae,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:o="",...a}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.A)(),p=(0,me.o)(),{search:f,hash:m}=(0,s.zy)(),h=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${m}${o}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.T)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...a,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(he,{className:ge}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(ga,{className:n,children:(0,u.jsx)(ma,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:a=!1}=e;const i=a?"li":"div";return(0,u.jsx)(i,{className:(0,o.A)({navbar__item:!r&&!a,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,ya.zK)(r),i=(0,ba.QB)(t,r),s=a?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>s||!!a?.sidebar&&a.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,ya.zK)(r),i=(0,ba.fW)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>a?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...o}=e;const a=(0,ba.Vd)(r)[0],i=t??a.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(a).path;return(0,u.jsx)(ae,{...o,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:o,dropdownItemsAfter:a,...i}=e;const{search:c,hash:d}=(0,s.zy)(),p=(0,ya.zK)(n),f=(0,ya.jh)(n),{savePreferredVersionName:m}=(0,va.g1)(n),h=[...o,...f.map((function(e){const t=wa(e,p);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>m(e.name)}})),...a],g=(0,ba.Vd)(n)[0],y=t&&h.length>1?(0,l.T)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,b=t&&h.length>1?void 0:wa(g,p).path;return h.length<=1?(0,u.jsx)(ae,{...i,mobile:t,label:y,to:b,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:y,to:b,items:h,isActive:r?()=>!1:void 0})}},xa=Sa;function ka(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=xa[r];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(o,{...n})}function _a(){const e=(0,C.M)(),t=(0,w.p)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(ka,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Ea(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.A,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Oa(){const e=0===(0,w.p)().navbar.items.length,t=D();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Ea,{onClick:()=>t.hide()}),t.content]})}function La(){const e=(0,C.M)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(F,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(_a,{}),secondaryMenu:(0,u.jsx)(Oa,{})}):null}const Pa={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function Ca(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,o.A)("navbar-sidebar__backdrop",e.className)})}function Aa(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:a}}=(0,w.p)(),i=(0,C.M)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),o=(0,r.useRef)(!1),a=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(a.current=e.getBoundingClientRect().height)}),[]);return(0,A.Mq)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<a.current)return void n(!0);if(o.current)return void(o.current=!1);const s=r?.scrollY,l=document.documentElement.scrollHeight-a.current,c=window.innerHeight;s&&i>=s?n(!1):i+c<l&&n(!0)})),(0,c.$)((t=>{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return o.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.T)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,o.A)("navbar","navbar--fixed-top",n&&[Pa.navbarHideable,!d&&Pa.navbarHidden],{"navbar--dark":"dark"===a,"navbar--primary":"primary"===a,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(Ca,{onClick:i.toggle}),(0,u.jsx)(La,{})]})}var ja=n(1373);const Ta="right";function Ia(e){let{width:t=30,height:n=30,className:r,...o}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...o,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function Na(){const{toggle:e,shown:t}=(0,C.M)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.T)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(Ia,{})})}const Ra={colorModeToggle:"colorModeToggle_DEke"};function Da(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ja.k2,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(ka,{...e})},t)))})}function Fa(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function Ma(){const e=(0,C.M)(),t=(0,w.p)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??Ta)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return(0,u.jsx)(Fa,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(Na,{}),(0,u.jsx)(G,{}),(0,u.jsx)(Da,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Da,{items:r}),(0,u.jsx)(W,{className:Ra.colorModeToggle}),!o&&(0,u.jsx)(ga,{children:(0,u.jsx)(ma,{})})]})})}function Ba(){return(0,u.jsx)(Aa,{children:(0,u.jsx)(Ma,{})})}function za(e){let{item:t}=e;const{to:n,href:r,label:o,prependBaseUrlToHref:a,...i}=t,s=(0,X.Ay)(n),l=(0,X.Ay)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(Z.A,{className:"footer__link-item",...r?{href:a?l:r}:{to:s},...i,children:[o,r&&!(0,J.A)(r)&&(0,u.jsx)(te.A,{})]})}function Ua(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(za,{item:t})},t.href??t.to)}function $a(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(Ua,{item:e},t)))})]})}function Va(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)($a,{column:e},t)))})}function Ha(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function Qa(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(za,{item:t})}function Wa(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(Qa,{item:e}),t.length!==n+1&&(0,u.jsx)(Ha,{})]},n)))})})}function qa(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(Va,{columns:t}):(0,u.jsx)(Wa,{links:t})}var Ga=n(9659);const Ka={footerLogoLink:"footerLogoLink_BH7S"};function Ya(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.hH)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(Ga.A,{className:(0,o.A)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function Za(e){let{logo:t}=e;return t.href?(0,u.jsx)(Z.A,{href:t.href,className:Ka.footerLogoLink,target:t.target,children:(0,u.jsx)(Ya,{logo:t})}):(0,u.jsx)(Ya,{logo:t})}function Xa(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Ja(e){let{style:t,links:n,logo:r,copyright:a}=e;return(0,u.jsx)("footer",{className:(0,o.A)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||a)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),a]})]})})}function ei(){const{footer:e}=(0,w.p)();if(!e)return null;const{copyright:t,links:n,logo:r,style:o}=e;return(0,u.jsx)(Ja,{style:o,links:n&&n.length>0&&(0,u.jsx)(qa,{links:n}),logo:r&&(0,u.jsx)(Za,{logo:r}),copyright:t&&(0,u.jsx)(Xa,{copyright:t})})}const ti=r.memo(ei),ni=(0,j.fM)([M.a,S.o,A.Tv,va.VQ,i.Jx,function(e){let{children:t}=e;return(0,u.jsx)(T.y_,{children:(0,u.jsx)(C.e,{children:(0,u.jsx)(N,{children:t})})})}]);function ri(e){let{children:t}=e;return(0,u.jsx)(ni,{children:t})}var oi=n(8445);function ai(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(oi.A,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.A,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(ja.a2,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(ja.bq,{error:t})})]})})})}const ii={mainWrapper:"mainWrapper_z2l0"};function si(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,y.J)(),(0,u.jsxs)(ri,{children:[(0,u.jsx)(i.be,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(P,{}),(0,u.jsx)(Ba,{}),(0,u.jsx)("div",{id:d,className:(0,o.A)(g.G.wrapper.main,ii.mainWrapper,r),children:(0,u.jsx)(a.A,{fallback:e=>(0,u.jsx)(ai,{...e}),children:t})}),!n&&(0,u.jsx)(ti,{})]})}},3360:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(7880),o=n(4763),a=n(5792),i=n(1436),s=n(9659),l=n(4848);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const a={light:(0,o.Ay)(t.src),dark:(0,o.Ay)(t.srcDark||t.src)},i=(0,l.jsx)(s.A,{className:t.className,sources:a,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,a.A)(),{navbar:{title:n,logo:s}}=(0,i.p)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,o.Ay)(s?.href||"/"),m=n?"":t,h=s?.alt??m;return(0,l.jsxs)(r.A,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:h,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},886:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(4502),o=n(4848);function a(e){let{locale:t,version:n,tag:a}=e;const i=t;return(0,o.jsxs)(r.A,{children:[t&&(0,o.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,o.jsx)("meta",{name:"docusaurus_version",content:n}),a&&(0,o.jsx)("meta",{name:"docusaurus_tag",content:a}),i&&(0,o.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,o.jsx)("meta",{name:"docsearch:version",content:n}),a&&(0,o.jsx)("meta",{name:"docsearch:docusaurus_tag",content:a})]})}},9659:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6540),o=n(5066),a=n(4753),i=n(5331);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(4848);function c(e){let{className:t,children:n}=e;const c=(0,a.A)(),{colorMode:u}=(0,i.G)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const a=n({theme:e,className:(0,o.A)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:a},e)}))})}function u(e){const{sources:t,className:n,alt:r,...o}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:a}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:a,...o})}})}},936:(e,t,n)=>{"use strict";n.d(t,{N:()=>y,u:()=>c});var r=n(6540),o=n(1191),a=n(8963),i=n(4459),s=n(4848);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,o]=(0,r.useState)(t??!1),a=(0,r.useCallback)((()=>{o((e=>!e))}),[]);return{collapsed:n,setCollapsed:o,toggleCollapsed:a}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:o}=e;const a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=o?.duration??function(e){if((0,i.O)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${o?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!a.current)return p(e,n),void(a.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,o])}function m(e){if(!o.A.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:o,animation:a,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:a}),(0,s.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:o})}function g(e){let{collapsed:t,...n}=e;const[o,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,a.A)((()=>{t||i(!0)}),[t]),(0,a.A)((()=>{o&&c(t)}),[o,t]),o?(0,s.jsx)(h,{...n,collapsed:l}):null}function y(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,s.jsx)(r,{...n})}},2459:(e,t,n)=>{"use strict";n.d(t,{M:()=>h,o:()=>m});var r=n(6540),o=n(4753),a=n(5054),i=n(5302),s=n(1436),l=n(4848);const c=(0,a.Wf)("docusaurus.announcement.dismiss"),u=(0,a.Wf)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.p)(),t=(0,o.A)(),[n,a]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{a(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),a(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||a(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(f);if(!e)throw new i.dV("AnnouncementBarProvider");return e}},5331:(e,t,n)=>{"use strict";n.d(t,{G:()=>y,a:()=>g});var r=n(6540),o=n(1191),a=n(5302),i=n(5054),s=n(1436),l=n(4848);const c=r.createContext(void 0),u="theme",d=(0,i.Wf)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,m=e=>o.A.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),h=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.p)(),[o,a]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:o=!0}=r;t?(a(t),o&&h(t)):(a(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:i,get isDarkTheme(){return o===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[o,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function y(){const e=(0,r.useContext)(c);if(null==e)throw new a.dV("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},1227:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(6540),o=n(7078),a=n(9607),i=n(9579),s=n(1436),l=n(5302),c=n(4848);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,o.YL)(),{items:t}=(0,s.p)().navbar;return 0===t.length&&!e.component}(),t=(0,a.l)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.$Z)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.dV("NavbarMobileSidebarProvider");return e}},7078:(e,t,n)=>{"use strict";n.d(t,{GX:()=>c,YL:()=>l,y_:()=>s});var r=n(6540),o=n(5302),a=n(4848);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new o.dV("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const a=(0,r.useContext)(i);if(!a)throw new o.dV("NavbarSecondaryMenuContentProvider");const[,s]=a,l=(0,o.Be)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},2920:(e,t,n)=>{"use strict";n.d(t,{w:()=>o,J:()=>a});var r=n(6540);const o="navigation-with-keyboard";function a(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(o),"mousedown"===e.type&&document.body.classList.remove(o)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(o),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},9607:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(6540),o=n(1191);const a={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(e){let{desktopBreakpoint:t=i}=void 0===e?{}:e;const[n,s]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){s(function(e){if(!o.A.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?a.desktop:a.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},4717:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",blogAuthorsListPage:"blog-authors-list-page",blogAuthorsPostsPage:"blog-authors-posts-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",draftBanner:"theme-draft-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{blogFooterTagsRow:"theme-blog-footer-tags-row",blogFooterEditMetaRow:"theme-blog-footer-edit-meta-row"},pages:{pageFooterEditMetaRow:"theme-pages-footer-edit-meta-row"}}},4459:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{O:()=>r})},1373:(e,t,n)=>{"use strict";n.d(t,{bq:()=>u,MN:()=>c,a2:()=>l,k2:()=>d});var r=n(6540),o=n(2032),a=n(9458);const i={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};var s=n(4848);function l(e){return(0,s.jsx)("button",{type:"button",...e,children:(0,s.jsx)(o.A,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function c(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)("div",{className:i.errorBoundaryFallback,children:[(0,s.jsx)("p",{children:t.message}),(0,s.jsx)(l,{onClick:n})]})}function u(e){let{error:t}=e;const n=(0,a.rA)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,s.jsx)("p",{className:i.errorBoundaryError,children:n})}class d extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}},9579:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>i,aZ:()=>l});var r=n(6540),o=n(6347),a=n(5302);function i(e){!function(e){const t=(0,o.W6)(),n=(0,a._q)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){const t=(0,o.W6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}function l(e){return s((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},2808:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function o(e){return Array.from(new Set(e))}n.d(t,{XI:()=>r,sb:()=>o})},3523:(e,t,n)=>{"use strict";n.d(t,{e3:()=>f,be:()=>d,Jx:()=>m});var r=n(6540),o=n(5066),a=n(4502),i=n(2764);function s(){const e=r.useContext(i.o);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(4763),c=n(5792);var u=n(4848);function d(e){let{title:t,description:n,keywords:r,image:o,children:i}=e;const s=function(e){const{siteConfig:t}=(0,c.A)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.hH)(),p=o?d(o,{absolute:!0}):void 0;return(0,u.jsxs)(a.A,{children:[t&&(0,u.jsx)("title",{children:s}),t&&(0,u.jsx)("meta",{property:"og:title",content:s}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,u.jsx)("meta",{property:"og:image",content:p}),p&&(0,u.jsx)("meta",{name:"twitter:image",content:p}),i]})}const p=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(p),s=(0,o.A)(i,t);return(0,u.jsxs)(p.Provider,{value:s,children:[(0,u.jsx)(a.A,{children:(0,u.jsx)("html",{className:s})}),n]})}function m(e){let{children:t}=e;const n=s(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const a=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(f,{className:(0,o.A)(r,a),children:t})}},5302:(e,t,n)=>{"use strict";n.d(t,{Be:()=>c,ZC:()=>s,_q:()=>i,dV:()=>l,fM:()=>u});var r=n(6540),o=n(8963),a=n(4848);function i(e){const t=(0,r.useRef)(e);return(0,o.A)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,o.A)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?<name>\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,a.jsx)(a.Fragment,{children:e.reduceRight(((e,t)=>(0,a.jsx)(t,{children:e})),n)})}}},6707:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>s,ys:()=>i});var r=n(6540),o=n(8858),a=n(5792);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,a.A)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function o(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(o).flatMap((e=>e.routes??[])))}(n)}({routes:o.A,baseUrl:e})),[e])}},3622:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>f,Tv:()=>u,a_:()=>m,gk:()=>h});var r=n(6540),o=n(1191),a=n(4753),i=n(8963),s=n(5302),l=n(4848);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new s.dV("ScrollControllerProvider");return e}const p=()=>o.A.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),o=(0,r.useRef)(p()),a=(0,s._q)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();a(e,o.current),o.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[a,n,...t])}function m(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),o=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,i.A)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:o}}function h(){const e=(0,r.useRef)(null),t=(0,a.A)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const o=document.documentElement.scrollTop;(n&&o>e||!n&&o<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(o-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},9529:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r="default"},5054:(e,t,n)=>{"use strict";n.d(t,{Wf:()=>u,Dv:()=>d});var r=n(6540);const o=JSON.parse('{"N":"localStorage","M":""}'),a=o.N;function i(e){let{key:t,oldValue:n,newValue:r,storage:o}=e;if(n===r)return;const a=document.createEvent("StorageEvent");a.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,o),window.dispatchEvent(a)}function s(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,l||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),l=!0),null}var t}let l=!1;const c={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function u(e,t){const n=`${e}${o.M}`;if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(n);const r=s(t?.persistence);return null===r?c:{get:()=>{try{return r.getItem(n)}catch(e){return console.error(`Docusaurus storage error, can't get key=${n}`,e),null}},set:e=>{try{const t=r.getItem(n);r.setItem(n,e),i({key:n,oldValue:t,newValue:e,storage:r})}catch(t){console.error(`Docusaurus storage error, can't set ${n}=${e}`,t)}},del:()=>{try{const e=r.getItem(n);r.removeItem(n),i({key:n,oldValue:e,newValue:null,storage:r})}catch(e){console.error(`Docusaurus storage error, can't delete key=${n}`,e)}},listen:e=>{try{const t=t=>{t.storageArea===r&&t.key===n&&e(t)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}catch(t){return console.error(`Docusaurus storage error, can't listen for changes of key=${n}`,t),()=>{}}}}}function d(e,t){const n=(0,r.useRef)((()=>null===e?c:u(e,t))).current(),o=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(o,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},2473:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(5792),o=n(6347),a=n(9458);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.A)(),{pathname:l}=(0,o.zy)(),c=(0,a.Ks)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},4232:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(6540),o=n(6347),a=n(5302);function i(e){const t=(0,o.zy)(),n=(0,a.ZC)(t),i=(0,a._q)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},1436:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(5792);function o(){return(0,r.A)().siteConfig.themeConfig}},9357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addTrailingSlash=o,t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[i]=e.split(/[#?]/),s="/"===i||i===r?i:(l=i,c=n,c?o(l):a(l));var l,c;return e.replace(i,s)},t.addLeadingSlash=function(e){return(0,r.addPrefix)(e,"/")},t.removeTrailingSlash=a;const r=n(9184);function o(e){return e.endsWith("/")?e:`${e}/`}function a(e){return(0,r.removeSuffix)(e,"/")}},1155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=function e(t){if(t.cause)return[t,...e(t.cause)];return[t]}},9458:(e,t,n)=>{"use strict";t.rA=t.Ks=void 0;const r=n(1635);var o=n(9357);Object.defineProperty(t,"Ks",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=n(9184);var i=n(1155);Object.defineProperty(t,"rA",{enumerable:!0,get:function(){return i.getErrorCausalChain}})},9184:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPrefix=function(e,t){return e.startsWith(t)?e:`${t}${e}`},t.removeSuffix=function(e,t){if(""===t)return e;return e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:`${e}${t}`},t.removePrefix=function(e,t){return e.startsWith(t)?e.slice(t.length):e}},1513:(e,t,n)=>{"use strict";n.d(t,{zR:()=>w,TM:()=>O,yJ:()=>f,sC:()=>P,AO:()=>p});var r=n(8168);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=i.length;p>=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};var s=n(1561);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var h=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var y="popstate",b="hashchange";function v(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),h||(0,s.A)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,c=i.forceRefresh,w=void 0!==c&&c,S=i.getUserConfirmation,x=void 0===S?g:S,k=i.keyLength,_=void 0===k?6:k,E=e.basename?d(l(e.basename)):"";function O(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname+o.search+o.hash;return E&&(a=u(a,E)),f(a,r,n)}function L(){return Math.random().toString(36).substr(2,_)}var P=m();function C(e){(0,r.A)(U,e),U.length=n.length,P.notifyListeners(U.location,U.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(O(e.state))}function j(){I(O(v()))}var T=!1;function I(e){if(T)T=!1,C();else{P.confirmTransitionTo(e,"POP",x,(function(t){t?C({action:"POP",location:e}):function(e){var t=U.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(T=!0,F(o))}(e)}))}}var N=O(v()),R=[N.key];function D(e){return E+p(e)}function F(e){n.go(e)}var M=0;function B(e){1===(M+=e)&&1===e?(window.addEventListener(y,A),a&&window.addEventListener(b,j)):0===M&&(window.removeEventListener(y,A),a&&window.removeEventListener(b,j))}var z=!1;var U={length:n.length,action:"POP",location:N,createHref:D,push:function(e,t){var r="PUSH",a=f(e,t,L(),U.location);P.confirmTransitionTo(a,r,x,(function(e){if(e){var t=D(a),i=a.key,s=a.state;if(o)if(n.pushState({key:i,state:s},null,t),w)window.location.href=t;else{var l=R.indexOf(U.location.key),c=R.slice(0,l+1);c.push(a.key),R=c,C({action:r,location:a})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",a=f(e,t,L(),U.location);P.confirmTransitionTo(a,r,x,(function(e){if(e){var t=D(a),i=a.key,s=a.state;if(o)if(n.replaceState({key:i,state:s},null,t),w)window.location.replace(t);else{var l=R.indexOf(U.location.key);-1!==l&&(R[l]=a.key),C({action:r,location:a})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return z||(B(1),z=!0),function(){return z&&(z=!1,B(-1)),t()}},listen:function(e){var t=P.appendListener(e);return B(1),function(){B(-1),t()}}};return U}var S="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:l},slash:{encodePath:l,decodePath:l}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function _(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function E(e){window.location.replace(k(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),h||(0,s.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,a=void 0===o?g:o,i=n.hashType,c=void 0===i?"slash":i,y=e.basename?d(l(e.basename)):"",b=x[c],v=b.encodePath,w=b.decodePath;function O(){var e=w(_());return y&&(e=u(e,y)),f(e)}var L=m();function P(e){(0,r.A)(z,e),z.length=t.length,L.notifyListeners(z.location,z.action)}var C=!1,A=null;function j(){var e,t,n=_(),r=v(n);if(n!==r)E(r);else{var o=O(),i=z.location;if(!C&&(t=o,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===p(o))return;A=null,function(e){if(C)C=!1,P();else{var t="POP";L.confirmTransitionTo(e,t,a,(function(n){n?P({action:t,location:e}):function(e){var t=z.location,n=R.lastIndexOf(p(t));-1===n&&(n=0);var r=R.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(C=!0,D(o))}(e)}))}}(o)}}var T=_(),I=v(T);T!==I&&E(I);var N=O(),R=[p(N)];function D(e){t.go(e)}var F=0;function M(e){1===(F+=e)&&1===e?window.addEventListener(S,j):0===F&&window.removeEventListener(S,j)}var B=!1;var z={length:t.length,action:"POP",location:N,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+v(y+p(e))},push:function(e,t){var n="PUSH",r=f(e,void 0,void 0,z.location);L.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(y+t);if(_()!==o){A=t,function(e){window.location.hash=e}(o);var a=R.lastIndexOf(p(z.location)),i=R.slice(0,a+1);i.push(t),R=i,P({action:n,location:r})}else P()}}))},replace:function(e,t){var n="REPLACE",r=f(e,void 0,void 0,z.location);L.confirmTransitionTo(r,n,a,(function(e){if(e){var t=p(r),o=v(y+t);_()!==o&&(A=t,E(o));var a=R.indexOf(p(z.location));-1!==a&&(R[a]=t),P({action:n,location:r})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=L.setPrompt(e);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),t()}},listen:function(e){var t=L.appendListener(e);return M(1),function(){M(-1),t()}}};return z}function L(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,a=void 0===o?["/"]:o,i=t.initialIndex,s=void 0===i?0:i,l=t.keyLength,c=void 0===l?6:l,u=m();function d(e){(0,r.A)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var g=L(s,0,a.length-1),y=a.map((function(e){return f(e,void 0,"string"==typeof e?h():e.key||h())})),b=p;function v(e){var t=L(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:y.length,action:"POP",location:y[g],index:g,entries:y,createHref:b,push:function(e,t){var r="PUSH",o=f(e,t,h(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=f(e,t,h(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=l(n),g=0;g<i.length;++g){var y=i[g];if(!(a[y]||r&&r[y]||h&&h[y]||s&&s[y])){var b=p(n,y);try{c(t,y,b)}catch(v){}}}}return t}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},689:function(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=o,this.iframesTimeout=a}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(t){var n=e.filter((function(e){return e.contains(t)})).length>0;-1!==e.indexOf(t)||n||e.push(t)})),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var o=e.contentWindow;if(r=o.document,!o||!r)throw new Error("iframe inaccessible")}catch(a){n()}r&&t(r)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var r=this,o=!1,a=null,i=function i(){if(!o){o=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener("load",i),r.getIframeContents(e,t,n))}catch(s){n()}}};e.addEventListener("load",i),a=setTimeout(i,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(r){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,r=0;this.forEachIframe(e,(function(){return!0}),(function(e){r++,n.waitForIframes(e.querySelector("html"),(function(){--r||t()}))}),(function(e){e||t()}))}},{key:"forEachIframe",value:function(t,n,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=t.querySelectorAll("iframe"),s=i.length,l=0;i=Array.prototype.slice.call(i);var c=function(){--s<=0&&a(l)};s||c(),i.forEach((function(t){e.matches(t,o.exclude)?c():o.onIframeReady(t,(function(e){n(t)&&(l++,r(e)),c()}),c)}))}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,r){var o=!1,a=!1;return r.forEach((function(e,t){e.val===n&&(o=t,a=e.handled)})),this.compareNodeIframe(e,t,n)?(!1!==o||a?!1===o||a||(r[o].handled=!0):r.push({val:n,handled:!0}),!0):(!1===o&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,r){var o=this;e.forEach((function(e){e.handled||o.getIframeContents(e.val,(function(e){o.createInstanceOnIframe(e).forEachNode(t,n,r)}))}))}},{key:"iterateThroughNodes",value:function(e,t,n,r,o){for(var a=this,i=this.createIterator(t,e,r),s=[],l=[],c=void 0,u=void 0,d=function(){var e=a.getIteratorNode(i);return u=e.prevNode,c=e.node};d();)this.iframes&&this.forEachIframe(t,(function(e){return a.checkIframeFilter(c,u,e,s)}),(function(t){a.createInstanceOnIframe(t).forEachNode(e,(function(e){return l.push(e)}),r)})),l.push(c);l.forEach((function(e){n(e)})),this.iframes&&this.handleOpenIframes(s,e,n,r),o()}},{key:"forEachNode",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=this.getContexts(),i=a.length;i||o(),a.forEach((function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,(function(){--i<=0&&o()}))};r.iframes?r.waitForIframes(a,s):s()}))}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var o=!1;return n.every((function(t){return!r.call(e,t)||(o=!0,!1)})),o}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":e(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var o in t)if(t.hasOwnProperty(o)){var a=t[o],i="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(a):this.escapeStr(a);""!==i&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(i)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynomyms(i)+"|"+this.processSynomyms(s)+")"+r))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,(function(e){return"\\"===e.charAt(0)?"?":"\x01"}))).replace(/(?:\\)*\*/g,(function(e){return"\\"===e.charAt(0)?"*":"\x02"}))}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,(function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||""===r?e:e+"\0"}))}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xe0\xe1\u1ea3\xe3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\xe2\u1ea7\u1ea5\u1ea9\u1eab\u1ead\xe4\xe5\u0101\u0105","A\xc0\xc1\u1ea2\xc3\u1ea0\u0102\u1eb0\u1eae\u1eb2\u1eb4\u1eb6\xc2\u1ea6\u1ea4\u1ea8\u1eaa\u1eac\xc4\xc5\u0100\u0104","c\xe7\u0107\u010d","C\xc7\u0106\u010c","d\u0111\u010f","D\u0110\u010e","e\xe8\xe9\u1ebb\u1ebd\u1eb9\xea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7\xeb\u011b\u0113\u0119","E\xc8\xc9\u1eba\u1ebc\u1eb8\xca\u1ec0\u1ebe\u1ec2\u1ec4\u1ec6\xcb\u011a\u0112\u0118","i\xec\xed\u1ec9\u0129\u1ecb\xee\xef\u012b","I\xcc\xcd\u1ec8\u0128\u1eca\xce\xcf\u012a","l\u0142","L\u0141","n\xf1\u0148\u0144","N\xd1\u0147\u0143","o\xf2\xf3\u1ecf\xf5\u1ecd\xf4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edf\u1ee1\u1edb\u1edd\u1ee3\xf6\xf8\u014d","O\xd2\xd3\u1ece\xd5\u1ecc\xd4\u1ed2\u1ed0\u1ed4\u1ed6\u1ed8\u01a0\u1ede\u1ee0\u1eda\u1edc\u1ee2\xd6\xd8\u014c","r\u0159","R\u0158","s\u0161\u015b\u0219\u015f","S\u0160\u015a\u0218\u015e","t\u0165\u021b\u0163","T\u0164\u021a\u0162","u\xf9\xfa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1\xfb\xfc\u016f\u016b","U\xd9\xda\u1ee6\u0168\u1ee4\u01af\u1eea\u1ee8\u1eec\u1eee\u1ef0\xdb\xdc\u016e\u016a","y\xfd\u1ef3\u1ef7\u1ef9\u1ef5\xff","Y\xdd\u1ef2\u1ef6\u1ef8\u1ef4\u0178","z\u017e\u017c\u017a","Z\u017d\u017b\u0179"]:["a\xe0\xe1\u1ea3\xe3\u1ea1\u0103\u1eb1\u1eaf\u1eb3\u1eb5\u1eb7\xe2\u1ea7\u1ea5\u1ea9\u1eab\u1ead\xe4\xe5\u0101\u0105A\xc0\xc1\u1ea2\xc3\u1ea0\u0102\u1eb0\u1eae\u1eb2\u1eb4\u1eb6\xc2\u1ea6\u1ea4\u1ea8\u1eaa\u1eac\xc4\xc5\u0100\u0104","c\xe7\u0107\u010dC\xc7\u0106\u010c","d\u0111\u010fD\u0110\u010e","e\xe8\xe9\u1ebb\u1ebd\u1eb9\xea\u1ec1\u1ebf\u1ec3\u1ec5\u1ec7\xeb\u011b\u0113\u0119E\xc8\xc9\u1eba\u1ebc\u1eb8\xca\u1ec0\u1ebe\u1ec2\u1ec4\u1ec6\xcb\u011a\u0112\u0118","i\xec\xed\u1ec9\u0129\u1ecb\xee\xef\u012bI\xcc\xcd\u1ec8\u0128\u1eca\xce\xcf\u012a","l\u0142L\u0141","n\xf1\u0148\u0144N\xd1\u0147\u0143","o\xf2\xf3\u1ecf\xf5\u1ecd\xf4\u1ed3\u1ed1\u1ed5\u1ed7\u1ed9\u01a1\u1edf\u1ee1\u1edb\u1edd\u1ee3\xf6\xf8\u014dO\xd2\xd3\u1ece\xd5\u1ecc\xd4\u1ed2\u1ed0\u1ed4\u1ed6\u1ed8\u01a0\u1ede\u1ee0\u1eda\u1edc\u1ee2\xd6\xd8\u014c","r\u0159R\u0158","s\u0161\u015b\u0219\u015fS\u0160\u015a\u0218\u015e","t\u0165\u021b\u0163T\u0164\u021a\u0162","u\xf9\xfa\u1ee7\u0169\u1ee5\u01b0\u1eeb\u1ee9\u1eed\u1eef\u1ef1\xfb\xfc\u016f\u016bU\xd9\xda\u1ee6\u0168\u1ee4\u01af\u1eea\u1ee8\u1eec\u1eee\u1ef0\xdb\xdc\u016e\u016a","y\xfd\u1ef3\u1ef7\u1ef9\u1ef5\xffY\xdd\u1ef2\u1ef6\u1ef8\u1ef4\u0178","z\u017e\u017c\u017aZ\u017d\u017b\u0179"],r=[];return e.split("").forEach((function(o){n.every((function(n){if(-1!==n.indexOf(o)){if(r.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),r.push(n)}return!0}))})),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xa1\xbf",r=this.opt.accuracy,o="string"==typeof r?r:r.value,a="string"==typeof r?[]:r.limiters,i="";switch(a.forEach((function(e){i+="|"+t.escapeStr(e)})),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr(n)))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach((function(e){t.opt.separateWordSearch?e.split(" ").forEach((function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)})):e.trim()&&-1===n.indexOf(e)&&n.push(e)})),{keywords:n.sort((function(e,t){return t.length-e.length})),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],r=0;return e.sort((function(e,t){return e.start-t.start})).forEach((function(e){var o=t.callNoMatchOnInvalidRanges(e,r),a=o.start,i=o.end;o.valid&&(e.start=a,e.length=i-a,n.push(e),r=i)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,r=void 0,o=!1;return e&&void 0!==e.start?(r=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?o=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:o}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var r=void 0,o=!0,a=n.length,i=t-a,s=parseInt(e.start,10)-i;return(r=(s=s>a?a:s)+parseInt(e.length,10))>a&&(r=a,this.log("End range automatically set to the max value of "+a)),s<0||r-s<0||s>a||r>a?(o=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,r).replace(/\s+/g,"")&&(o=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:o}}},{key:"getTextNodes",value:function(e){var t=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})}),(function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){e({value:n,nodes:r})}))}},{key:"matchesExclude",value:function(e){return o.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var r=this.opt.element?this.opt.element:"mark",o=e.splitText(t),a=o.splitText(n-t),i=document.createElement(r);return i.setAttribute("data-markjs","true"),this.opt.className&&i.setAttribute("class",this.opt.className),i.textContent=o.textContent,o.parentNode.replaceChild(i,o),a}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,r,o){var a=this;e.nodes.every((function(i,s){var l=e.nodes[s+1];if(void 0===l||l.start>t){if(!r(i.node))return!1;var c=t-i.start,u=(n>i.end?i.end:n)-i.start,d=e.value.substr(0,i.start),p=e.value.substr(u+i.start);if(i.node=a.wrapRangeInTextNode(i.node,c,u),e.value=d+p,e.nodes.forEach((function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)})),n-=u,o(i.node.previousSibling,i.start),!(n>i.end))return!1;t=i.end}return!0}))}},{key:"wrapMatches",value:function(e,t,n,r,o){var a=this,i=0===t?0:t+1;this.getTextNodes((function(t){t.nodes.forEach((function(t){t=t.node;for(var o=void 0;null!==(o=e.exec(t.textContent))&&""!==o[i];)if(n(o[i],t)){var s=o.index;if(0!==i)for(var l=1;l<i;l++)s+=o[l].length;t=a.wrapRangeInTextNode(t,s,s+o[i].length),r(t.previousSibling),e.lastIndex=0}})),o()}))}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,r,o){var a=this,i=0===t?0:t+1;this.getTextNodes((function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[i];){var l=s.index;if(0!==i)for(var c=1;c<i;c++)l+=s[c].length;var u=l+s[i].length;a.wrapRangeInMappedTextNode(t,l,u,(function(e){return n(s[i],e)}),(function(t,n){e.lastIndex=n,r(t)}))}o()}))}},{key:"wrapRangeFromIndex",value:function(e,t,n,r){var o=this;this.getTextNodes((function(a){var i=a.value.length;e.forEach((function(e,r){var s=o.checkWhitespaceRanges(e,i,a.value),l=s.start,c=s.end;s.valid&&o.wrapRangeInMappedTextNode(a,l,c,(function(n){return t(n,e,a.value.substring(l,c),r)}),(function(t){n(t,e)}))})),r()}))}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var r=0,o="wrapMatches",a=function(e){r++,n.opt.each(e)};this.opt.acrossElements&&(o="wrapMatchesAcrossElements"),this[o](e,this.opt.ignoreGroups,(function(e,t){return n.opt.filter(t,e,r)}),a,(function(){0===r&&n.opt.noMatch(e),n.opt.done(r)}))}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var r=0,o="wrapMatches",a=this.getSeparatedKeywords("string"==typeof e?[e]:e),i=a.keywords,s=a.length,l=this.opt.caseSensitive?"":"i",c=function e(t){var a=new RegExp(n.createRegExp(t),"gm"+l),c=0;n.log('Searching with expression "'+a+'"'),n[o](a,1,(function(e,o){return n.opt.filter(o,t,r,c)}),(function(e){c++,r++,n.opt.each(e)}),(function(){0===c&&n.opt.noMatch(t),i[s-1]===t?n.opt.done(r):e(i[i.indexOf(t)+1])}))};this.opt.acrossElements&&(o="wrapMatchesAcrossElements"),0===s?this.opt.done(r):c(i[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var r=0,o=this.checkRanges(e);o&&o.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(o)),this.wrapRangeFromIndex(o,(function(e,t,r,o){return n.opt.filter(e,t,r,o)}),(function(e,t){r++,n.opt.each(e,t)}),(function(){n.opt.done(r)}))):this.opt.done(r)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(function(e){t.unwrapMatches(e)}),(function(e){var r=o.matches(e,n),a=t.matchesExclude(e);return!r||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}},{key:"opt",set:function(e){this._opt=r({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new o(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),a}();function i(e){var t=this,n=new a(e);return this.mark=function(e,r){return n.mark(e,r),t},this.markRegExp=function(e,r){return n.markRegExp(e,r),t},this.markRanges=function(e,r){return n.markRanges(e,r),t},this.unmark=function(e){return n.unmark(e),t},this}return i}()},5300:(e,t,n)=>{"use strict";n.r(t)},8252:(e,t,n)=>{"use strict";n.r(t)},5947:function(e,t,n){var r,o;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}function a(e){return 100*(-1+e)}function i(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),c=a.querySelector(r.barSelector),u=r.speed,d=r.easing;return a.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout((function(){l(a,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,i=t.querySelector(r.barSelector),s=e?"-100":a(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+a)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)},7022:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i<o.length;i++)a[o[i]]=e.languages.bash[o[i]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},2514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof a&&!a(e))return e;for(var o,s=i.length;-1!==n.code.indexOf(o=t(r,s));)++s;return i[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);!function i(s){for(var l=0;l<s.length&&!(o>=a.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=a[o],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),m=p.indexOf(f);if(m>-1){++o;var h=p.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=p.substring(m+f.length),b=[];h&&b.push.apply(b,i([h])),b.push(g),y&&b.push.apply(b,i([y])),"string"==typeof c?s.splice.apply(s,[l,1].concat(b)):c.content=b}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},4761:(e,t,n)=>{var r={"./prism-bash":7022,"./prism-json":2514};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=4761},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),L=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var D,F=Object.assign;function M(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case x:return"Portal";case E:return"Profiler";case _:return"StrictMode";case C:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case L:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,ke=null,_e=null;function Ee(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Oe(e){ke?_e?_e.push(e):_e=[e]:ke=e}function Le(){if(ke){var e=ke,t=_e;if(_e=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Ce(){}var Ae=!1;function je(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Pe(e,t,n)}finally{Ae=!1,(null!==ke||null!==_e)&&(Ce(),Le())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ie=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Ie=!1}function Re(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var De=!1,Fe=null,Me=!1,Be=null,ze={onError:function(e){De=!0,Fe=e}};function Ue(e,t,n,r,o,a,i,s,l){De=!1,Fe=null,Re.apply(ze,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(a(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return He(o),e;if(i===r)return He(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=dt(s):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,xt,kt,_t,Et,Ot=!1,Lt=[],Pt=null,Ct=null,At=null,jt=new Map,Tt=new Map,It=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Dt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=vo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Mt(e)&&n.delete(t)}function zt(){Ot=!1,null!==Pt&&Mt(Pt)&&(Pt=null),null!==Ct&&Mt(Ct)&&(Ct=null),null!==At&&Mt(At)&&(At=null),jt.forEach(Bt),Tt.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function $t(e){function t(t){return Ut(t,e)}if(0<Lt.length){Ut(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Ut(Pt,e),null!==Ct&&Ut(Ct,e),null!==At&&Ut(At,e),jt.forEach(t),Tt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Ft(n),null===n.blockedOn&&It.shift()}var Vt=w.ReactCurrentBatchConfig,Ht=!0;function Qt(e,t,n,r){var o=vt,a=Vt.transition;Vt.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=o,Vt.transition=a}}function Wt(e,t,n,r){var o=vt,a=Vt.transition;Vt.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=o,Vt.transition=a}}function qt(e,t,n,r){if(Ht){var o=Kt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),Rt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Dt(Pt,e,t,n,r,o),!0;case"dragenter":return Ct=Dt(Ct,e,t,n,r,o),!0;case"mouseover":return At=Dt(At,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return jt.set(a,Dt(jt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,Dt(Tt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&St(a),null===(a=Kt(e,t,n,r))&&Hr(e,t,r,Gt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Kt(e,t,n,r){if(Gt=null,null!==(e=vo(e=Se(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=F({},cn,{view:0,detail:0}),pn=on(dn),fn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=on(fn),hn=on(F({},fn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),yn=on(F({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=F({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(bn),wn=on(F({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return _n}var On=F({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(On),Pn=on(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),An=on(F({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=F({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(jn),In=[9,13,27,32],Nn=u&&"CompositionEvent"in window,Rn=null;u&&"documentMode"in document&&(Rn=document.documentMode);var Dn=u&&"TextEvent"in window&&!Rn,Fn=u&&(!Nn||Rn&&8<Rn&&11>=Rn),Mn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Qn(e,t,n,r){Oe(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Gn(e){Mr(e,0)}function Kn(e){if(q(So(e)))return e}function Yn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Xn=Jn}else Xn=!1;Zn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),qn=Wn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Qn(t,qn,e,Se(e)),je(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function ar(e,t){if("click"===e)return Kn(t)}function ir(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Wr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},kr={},_r={};function Er(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return kr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Or=Er("animationend"),Lr=Er("animationiteration"),Pr=Er("animationstart"),Cr=Er("transitionend"),Ar=new Map,jr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Ar.set(e,t),l(t,[e])}for(var Ir=0;Ir<jr.length;Ir++){var Nr=jr[Ir];Tr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Tr(Or,"onAnimationEnd"),Tr(Lr,"onAnimationIteration"),Tr(Pr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Cr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ue.apply(this,arguments),De){if(!De)throw Error(a(198));var u=Fe;De=!1,Fe=null,Me||(Me=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Fr(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Fr(o,s,c),a=l}}}if(Me)throw e=Be,Me=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Yt(t)){case 1:var o=Qt;break;case 4:o=Wt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=vo(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}je((function(){var r=a,o=Se(n),i=[];e:{var s=Ar.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Ln;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cn;break;case Or:case Lr:case Pr:l=yn;break;case Cr:l=An;break;case"scroll":l=pn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Te(m,p))&&u.push(Qr(m,h,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!vo(c)&&!c[ho])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vo(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:So(l),f=null==c?s:So(c),(s=new u(h,m+"leave",l,n,o)).target=d,s.relatedTarget=f,h=null,vo(o)===r&&((u=new u(p,m+"enter",c,n,o)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=qr(f))m++;for(f=0,h=p;h;h=qr(h))f++;for(;0<m-f;)u=qr(u),m--;for(;0<f-m;)p=qr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==l&&Gr(i,s,l,u,!1),null!==c&&null!==d&&Gr(i,d,c,u,!0)}if("select"===(l=(s=r?So(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if(Hn(s))if(Zn)g=ir;else{g=or;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ar);switch(g&&(g=g(e,r))?Qn(i,g,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?So(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,o)}var b;if(Nn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Fn&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(b=en()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,$n=!0)),0<(y=Wr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:y}),b?v.data=b:null!==(b=Un(n))&&(v.data=b))),(b=Dn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Bn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Nn&&zn(e,t)?(e=en(),Jt=Xt=Zt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}Mr(i,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Te(e,n))&&r.unshift(Qr(e,a,o)),null!=(a=Te(e,t))&&r.push(Qr(e,a,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Te(n,a))&&i.unshift(Qr(n,l,s)):o||null!=(l=Te(n,a))&&i.push(Qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Kr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Yr,"")}function Xr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,ho="__reactContainer$"+po,go="__reactEvents$"+po,yo="__reactListeners$"+po,bo="__reactHandles$"+po;function vo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var ko=[],_o=-1;function Eo(e){return{current:e}}function Oo(e){0>_o||(e.current=ko[_o],ko[_o]=null,_o--)}function Lo(e,t){_o++,ko[_o]=e.current,e.current=t}var Po={},Co=Eo(Po),Ao=Eo(!1),jo=Po;function To(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!=(e=e.childContextTypes)}function No(){Oo(Ao),Oo(Co)}function Ro(e,t,n){if(Co.current!==Po)throw Error(a(168));Lo(Co,t),Lo(Ao,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,V(e)||"Unknown",o));return F({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,jo=Co.current,Lo(Co,e),Lo(Ao,Ao.current),!0}function Mo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Do(e,t,jo),r.__reactInternalMemoizedMergedChildContext=e,Oo(Ao),Oo(Co),Lo(Co,e)):Oo(Ao),Lo(Ao,n)}var Bo=null,zo=!1,Uo=!1;function $o(e){null===Bo?Bo=[e]:Bo.push(e)}function Vo(){if(!Uo&&null!==Bo){Uo=!0;var e=0,t=vt;try{var n=Bo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,zo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),qe(Je,Vo),o}finally{vt=t,Uo=!1}}return null}var Ho=[],Qo=0,Wo=null,qo=0,Go=[],Ko=0,Yo=null,Zo=1,Xo="";function Jo(e,t){Ho[Qo++]=qo,Ho[Qo++]=Wo,Wo=e,qo=t}function ea(e,t,n){Go[Ko++]=Zo,Go[Ko++]=Xo,Go[Ko++]=Yo,Yo=e;var r=Zo;e=Xo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Zo=1<<32-it(t)+o|n<<o|r,Xo=a+e}else Zo=1<<a|n<<o|r,Xo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===Wo;)Wo=Ho[--Qo],Ho[Qo]=null,qo=Ho[--Qo],Ho[Qo]=null;for(;e===Yo;)Yo=Go[--Ko],Go[Ko]=null,Xo=Go[--Ko],Go[Ko]=null,Zo=Go[--Ko],Go[Ko]=null}var ra=null,oa=null,aa=!1,ia=null;function sa(e,t){var n=jc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function la(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=jc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&la(e,t)?sa(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var ga=w.ReactCurrentBatchConfig;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function wa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===T&&va(a)===t.type)?((r=o(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Rc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case x:return(t=Mc(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Rc(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case T:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||R(n))return null!==o?null:d(e,t,n,r,null);ba(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||R(r))return d(t,e=e.get(n)||null,r,o,null);ba(t,r)}return null}function h(o,a,s,l){for(var c=null,u=null,d=a,h=a=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=f(o,d,s[h],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,h),null===u?c=y:u.sibling=y,u=y,d=g}if(h===s.length)return n(o,d),aa&&Jo(o,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(o,s[h],l))&&(a=i(d,a,h),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,h),c}for(d=r(o,d);h<s.length;h++)null!==(g=m(d,o,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),a=i(g,a,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,h),c}function g(o,s,l,c){var u=R(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,h=s,g=s=0,y=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=f(o,h,b.value,c);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(o,h),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v,h=y}if(b.done)return n(o,h),aa&&Jo(o,g),u;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=p(o,b.value,c))&&(s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return aa&&Jo(o,g),u}for(h=r(o,h);!b.done;g++,b=l.next())null!==(b=m(h,o,g,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),u}return function e(r,a,i,l){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case S:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===k){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===T&&va(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=ya(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===k?((a=Rc(i.props.children,r.mode,l,i.key)).return=r,r=a):((l=Nc(i.type,i.key,i.props,null,r.mode,l)).ref=ya(r,a,i),l.return=r,r=l)}return s(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Mc(i,r.mode,l)).return=r,r=a}return s(r);case T:return e(r,a,(u=i._init)(i._payload),l)}if(te(i))return h(r,a,i,l);if(R(i))return g(r,a,i,l);ba(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Fc(i,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Sa=wa(!0),xa=wa(!1),ka=Eo(null),_a=null,Ea=null,Oa=null;function La(){Oa=Ea=_a=null}function Pa(e){var t=ka.current;Oo(ka),e._currentValue=t}function Ca(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Aa(e,t){_a=e,Oa=Ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(vs=!0),e.firstContext=null)}function ja(e){var t=e._currentValue;if(Oa!==e)if(e={context:e,memoizedValue:t,next:null},null===Ea){if(null===_a)throw Error(a(308));Ea=e,_a.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return t}var Ta=null;function Ia(e){null===Ta?Ta=[e]:Ta.push(e)}function Na(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ia(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ra(e,r)}function Ra(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Da=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ma(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ra(e,n)}return null===(o=r.interleaved)?(t.next=t,Ia(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ra(e,n)}function Ua(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Va(e,t,n,r){var o=e.updateQueue;Da=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=F({},d,p);break e;case 2:Da=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Dl|=i,e.lanes=i,e.memoizedState=d}}function Ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Qa={},Wa=Eo(Qa),qa=Eo(Qa),Ga=Eo(Qa);function Ka(e){if(e===Qa)throw Error(a(174));return e}function Ya(e,t){switch(Lo(Ga,t),Lo(qa,e),Lo(Wa,Qa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Wa),Lo(Wa,t)}function Za(){Oo(Wa),Oo(qa),Oo(Ga)}function Xa(e){Ka(Ga.current);var t=Ka(Wa.current),n=le(t,e.type);t!==n&&(Lo(qa,e),Lo(Wa,n))}function Ja(e){qa.current===e&&(Oo(Wa),Oo(qa))}var ei=Eo(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,si=null,li=null,ci=null,ui=!1,di=!1,pi=0,fi=0;function mi(){throw Error(a(321))}function hi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function gi(e,t,n,r,o,i){if(ii=i,si=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Ji:es,e=n(r,o),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(a(301));i+=1,ci=li=null,t.updateQueue=null,oi.current=ts,e=n(r,o)}while(di)}if(oi.current=Xi,t=null!==li&&null!==li.next,ii=0,ci=li=si=null,ui=!1,t)throw Error(a(300));return e}function yi(){var e=0!==pi;return pi=0,e}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?si.memoizedState=ci=e:ci=ci.next=e,ci}function vi(){if(null===li){var e=si.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?si.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(a(310));e={memoizedState:(li=e).memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?si.memoizedState=ci=e:ci=ci.next=e}return ci}function wi(e,t){return"function"==typeof t?t(e):t}function Si(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=li,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,si.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(vs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,si.lanes|=i,Dl|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=vi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sr(i,t.memoizedState)||(vs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ki(){}function _i(e,t){var n=si,r=vi(),o=t(),i=!sr(r.memoizedState,o);if(i&&(r.memoizedState=o,vs=!0),r=r.queue,Di(Li.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(n.flags|=2048,ji(9,Oi.bind(null,n,r,o,t),void 0,null),null===Cl)throw Error(a(349));30&ii||Ei(n,t,o)}return o}function Ei(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oi(e,t,n,r){t.value=n,t.getSnapshot=r,Pi(t)&&Ci(e)}function Li(e,t,n){return n((function(){Pi(t)&&Ci(e)}))}function Pi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ci(e){var t=Ra(e,1);null!==t&&nc(t,e,1,-1)}function Ai(e){var t=bi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Gi.bind(null,si,e),[t.memoizedState,e]}function ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ti(){return vi().memoizedState}function Ii(e,t,n,r){var o=bi();si.flags|=e,o.memoizedState=ji(1|t,n,void 0,void 0===r?null:r)}function Ni(e,t,n,r){var o=vi();r=void 0===r?null:r;var a=void 0;if(null!==li){var i=li.memoizedState;if(a=i.destroy,null!==r&&hi(r,i.deps))return void(o.memoizedState=ji(t,n,a,r))}si.flags|=e,o.memoizedState=ji(1|t,n,a,r)}function Ri(e,t){return Ii(8390656,8,e,t)}function Di(e,t){return Ni(2048,8,e,t)}function Fi(e,t){return Ni(4,2,e,t)}function Mi(e,t){return Ni(4,4,e,t)}function Bi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4,4,Bi.bind(null,t,e),n)}function Ui(){}function $i(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vi(e,t){var n=vi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hi(e,t,n){return 21&ii?(sr(n,t)||(n=ht(),si.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n)}function Qi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{vt=n,ai.transition=r}}function Wi(){return vi().memoizedState}function qi(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e))Yi(t,n);else if(null!==(n=Na(e,t,n,r))){nc(n,e,r,ec()),Zi(n,t,r)}}function Gi(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Yi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ia(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Na(e,t,o,r))&&(nc(n,e,r,o=ec()),Zi(n,t,r))}}function Ki(e){var t=e.alternate;return e===si||null!==t&&t===si}function Yi(e,t){di=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zi(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xi={readContext:ja,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},Ji={readContext:ja,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:ja,useEffect:Ri,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ii(4194308,4,Bi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var n=bi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qi.bind(null,si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:Ai,useDebugValue:Ui,useDeferredValue:function(e){return bi().memoizedState=e},useTransition:function(){var e=Ai(!1),t=e[0];return e=Qi.bind(null,e[1]),bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=si,o=bi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Cl)throw Error(a(349));30&ii||Ei(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ri(Li.bind(null,r,i,e),[e]),r.flags|=2048,ji(9,Oi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bi(),t=Cl.identifierPrefix;if(aa){var n=Xo;t=":"+t+"R"+(n=(Zo&~(1<<32-it(Zo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:ja,useCallback:$i,useContext:ja,useEffect:Di,useImperativeHandle:zi,useInsertionEffect:Fi,useLayoutEffect:Mi,useMemo:Vi,useReducer:Si,useRef:Ti,useState:function(){return Si(wi)},useDebugValue:Ui,useDeferredValue:function(e){return Hi(vi(),li.memoizedState,e)},useTransition:function(){return[Si(wi)[0],vi().memoizedState]},useMutableSource:ki,useSyncExternalStore:_i,useId:Wi,unstable_isNewReconciler:!1},ts={readContext:ja,useCallback:$i,useContext:ja,useEffect:Di,useImperativeHandle:zi,useInsertionEffect:Fi,useLayoutEffect:Mi,useMemo:Vi,useReducer:xi,useRef:Ti,useState:function(){return xi(wi)},useDebugValue:Ui,useDeferredValue:function(e){var t=vi();return null===li?t.memoizedState=e:Hi(t,li.memoizedState,e)},useTransition:function(){return[xi(wi)[0],vi().memoizedState]},useMutableSource:ki,useSyncExternalStore:_i,useId:Wi,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=za(e,a,o))&&(nc(t,e,o,r),Ua(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=Ba(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=za(e,a,o))&&(nc(t,e,o,r),Ua(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ba(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=za(e,o,r))&&(nc(t,e,r,n),Ua(t,e,r))}};function as(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,a))}function is(e,t,n){var r=!1,o=Po,a=t.contextType;return"object"==typeof a&&null!==a?a=ja(a):(o=Io(t)?jo:Co.current,a=(r=null!=(r=t.contextTypes))?To(e,o):Po),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Fa(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ja(a):(a=Io(t)?jo:Co.current,o.context=To(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rs(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Va(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Ba(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Ql=r),ds(0,t)},n}function ms(e,t,n){(n=Ba(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ba(-1,1)).tag=2,za(n,t,1))),n.lanes|=1),e)}var bs=w.ReactCurrentOwner,vs=!1;function ws(e,t,n,r){t.child=null===e?xa(t,null,n,r):Sa(t,e.child,n,r)}function Ss(e,t,n,r,o){n=n.render;var a=t.ref;return Aa(t,o),r=gi(e,t,n,r,a,o),n=yi(),null===e||vs?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function xs(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ks(e,t,a,r,o))}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Ic(a,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=a,!(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(vs=!0)}}return Os(e,t,n,r,o)}function _s(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lo(Il,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Lo(Il,Tl),Tl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Il,Tl),Tl|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Lo(Il,Tl),Tl|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,o){var a=Io(n)?jo:Co.current;return a=To(t,a),Aa(t,o),n=gi(e,t,n,r,a,o),r=yi(),null===e||vs?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ls(e,t,n,r,o){if(Io(n)){var a=!0;Fo(t)}else a=!1;if(Aa(t,o),null===t.stateNode)Vs(e,t),is(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=ja(c):c=To(t,c=Io(n)?jo:Co.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,i,r,c),Da=!1;var p=t.memoizedState;i.state=p,Va(t,r,i,o),l=t.memoizedState,s!==r||p!==l||Ao.current||Da?("function"==typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Da||as(t,n,s,r,p,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ma(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=ja(l):l=To(t,l=Io(n)?jo:Co.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,i,r,l),Da=!1,p=t.memoizedState,i.state=p,Va(t,r,i,o);var m=t.memoizedState;s!==d||p!==m||Ao.current||Da?("function"==typeof f&&(rs(t,n,f,r),m=t.memoizedState),(c=Da||as(t,n,c,r,p,m,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,a,o)}function Ps(e,t,n,r,o,a){Es(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&Mo(t,n,!1),Hs(e,t,a);r=t.stateNode,bs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,s,a)):ws(e,t,s,a),t.memoizedState=r.state,o&&Mo(t,n,!0),t.child}function Cs(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),Ya(e,t.containerInfo)}function As(e,t,n,r,o){return ma(),ha(o),t.flags|=256,ws(e,t,n,r),t.child}var js,Ts,Is,Ns,Rs={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,o=t.pendingProps,i=ei.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Lo(ei,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Dc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Rc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Rs,e):Ms(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=us(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Dc({mode:"visible",children:r.children},o,0,null),(i=Rc(i,o,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Sa(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Rs,i);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=us(i=Error(a(419)),r,void 0))}if(l=!!(s&e.childLanes),vs||l){if(null!==(r=Cl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ra(e,o),nc(r,e,o,-1))}return hc(),Bs(e,t,s,r=us(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Go[Ko++]=Zo,Go[Ko++]=Xo,Go[Ko++]=Yo,Zo=e.id,Xo=e.overflow,Yo=t),t=Ms(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(s){s=o.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=Ic(i,c)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Ic(r,s):(s=Rc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,o}return e=(s=e.child).sibling,o=Ic(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ms(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ha(r),Sa(t,e.child,null,n),(e=Ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ca(e.return,t,n)}function Us(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function $s(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ws(e,t,r.children,n),2&(r=ei.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Lo(ei,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,a);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qs(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Io(t.type)&&No(),Ws(t),null;case 3:return r=t.stateNode,Za(),Oo(Ao),Oo(Co),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Ts(e,t),Ws(t),null;case 5:Ja(t);var o=Ka(Ga.current);if(n=t.type,null!==e&&null!=t.stateNode)Is(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ws(t),null}if(e=Ka(Wa.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[mo]=i,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Br(Rr[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":oe(r,i),Br("invalid",r)}for(var l in be(n,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":W(r),J(r,i,!0);break;case"textarea":W(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[fo]=t,e[mo]=r,js(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Br(Rr[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=K(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(i in be(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Br("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":W(e),J(e,r,!1);break;case"textarea":W(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Ka(Ga.current),Ka(Wa.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Xr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Ws(t),null;case 13:if(Oo(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ei.current?0===Nl&&(Nl=3):hc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Za(),Ts(e,t),null===e&&$r(t.stateNode.containerInfo),Ws(t),null;case 10:return Pa(t.type._context),Ws(t),null;case 19:if(Oo(ei),null===(i=t.memoizedState))return Ws(t),null;if(r=!!(128&t.flags),null===(l=i.rendering))if(r)Qs(i,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ti(e))){for(t.flags|=128,Qs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Lo(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Ze()>$l&&(t.flags|=128,r=!0,Qs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Ws(t),null}else 2*Ze()-i.renderingStartTime>$l&&1073741824!==n&&(t.flags|=128,r=!0,Qs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,n=ei.current,Lo(ei,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Tl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(na(t),t.tag){case 1:return Io(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Za(),Oo(Ao),Oo(Co),ri(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Oo(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ei),null;case 4:return Za(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}js=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(){},Is=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ka(Wa.current);var a,i=null;switch(n){case"input":o=K(e,o),r=K(e,r),i=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Ys=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){_c(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&el(t,n,a)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[go],delete t[yo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ys||Js(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),$t(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&el(n,t,i),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Ys&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){_c(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(e,t,n),Ys=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));fl(i,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){_c(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hl(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){_c(e,e.return,g)}try{nl(5,e,e.return)}catch(g){_c(e,e.return,g)}}break;case 1:hl(t,e),yl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(hl(t,e),yl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(g){_c(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&Z(o,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):v(o,d,p,u)}switch(l){case"input":X(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(g){_c(e,e.return,g)}}break;case 6:if(hl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){_c(e,e.return,g)}}break;case 3:if(hl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(g){_c(e,e.return,g)}break;case 4:default:hl(t,e),yl(e);break;case 13:hl(t,e),yl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Ze())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,hl(t,e),Ys=u):hl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(p=Xs=d;null!==Xs;){switch(m=(f=Xs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Js(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){_c(r,n,g)}}break;case 5:Js(f,f.return);break;case 22:if(null!==f.memoizedState){Sl(p);continue}}null!==m?(m.return=f,Xs=m):Sl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(g){_c(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){_c(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ll(e,sl(e),i);break;default:throw Error(a(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Xs=e,vl(e,t,n)}function vl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ks;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Ks;var c=Ys;if(Ks=i,(Ys=l)&&!c)for(Xs=o;null!==Xs;)l=(i=Xs).child,22===i.tag&&null!==i.memoizedState?xl(o):null!==l?(l.return=i,Xs=l):xl(o);for(;null!==a;)Xs=a,vl(a,t,n),a=a.sibling;Xs=o,Ks=s,Ys=c}wl(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Xs=a):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ha(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ha(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&$t(p)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&ol(t)}catch(f){_c(t,t.return,f)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function Sl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){_c(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){_c(t,o,l)}}var a=t.return;try{ol(t)}catch(l){_c(t,a,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){_c(t,i,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,_l=Math.ceil,El=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Ll=w.ReactCurrentBatchConfig,Pl=0,Cl=null,Al=null,jl=0,Tl=0,Il=Eo(0),Nl=0,Rl=null,Dl=0,Fl=0,Ml=0,Bl=null,zl=null,Ul=0,$l=1/0,Vl=null,Hl=!1,Ql=null,Wl=null,ql=!1,Gl=null,Kl=0,Yl=0,Zl=null,Xl=-1,Jl=0;function ec(){return 6&Pl?Ze():-1!==Xl?Xl:Xl=Ze()}function tc(e){return 1&e.mode?2&Pl&&0!==jl?jl&-jl:null!==ga.transition?(0===Jl&&(Jl=ht()),Jl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Zl=null,Error(a(185));yt(e,n,r),2&Pl&&e===Cl||(e===Cl&&(!(2&Pl)&&(Fl|=n),4===Nl&&sc(e,jl)),rc(e,r),1===n&&0===Pl&&!(1&t.mode)&&($l=Ze()+500,zo&&Vo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?s&n&&!(s&r)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pt(e,e===Cl?jl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){zo=!0,$o(e)}(lc.bind(null,e)):$o(lc.bind(null,e)),io((function(){!(6&Pl)&&Vo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,Jl=0,6&Pl)throw Error(a(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=pt(e,e===Cl?jl:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gc(e,r);else{t=r;var o=Pl;Pl|=2;var i=mc();for(Cl===e&&jl===t||(Vl=null,$l=Ze()+500,pc(e,t));;)try{bc();break}catch(l){fc(e,l)}La(),El.current=i,Pl=o,null!==Al?t=0:(Cl=null,jl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ac(e,o))),1===t)throw n=Rl,pc(e,0),sc(e,r),rc(e,Ze()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!sr(a(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gc(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=ac(e,i))),1!==t)))throw n=Rl,pc(e,0),sc(e,r),rc(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Sc(e,zl,Vl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,zl,Vl),t);break}Sc(e,zl,Vl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>o&&(o=s),r&=~i}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_l(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,zl,Vl),r);break}Sc(e,zl,Vl);break;default:throw Error(a(329))}}}return rc(e,Ze()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=zl,zl=n,null!==t&&ic(t)),e}function ic(e){null===zl?zl=e:zl.push.apply(zl,e)}function sc(e,t){for(t&=~Ml,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(6&Pl)throw Error(a(327));xc();var t=pt(e,0);if(!(1&t))return rc(e,Ze()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Rl,pc(e,0),sc(e,t),rc(e,Ze()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,zl,Vl),rc(e,Ze()),null}function cc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&($l=Ze()+500,zo&&Vo())}}function uc(e){null!==Gl&&0===Gl.tag&&!(6&Pl)&&xc();var t=Pl;Pl|=1;var n=Ll.transition,r=vt;try{if(Ll.transition=null,vt=1,e)return e()}finally{vt=r,Ll.transition=n,!(6&(Pl=t))&&Vo()}}function dc(){Tl=Il.current,Oo(Il)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Za(),Oo(Ao),Oo(Co),ri();break;case 5:Ja(r);break;case 4:Za();break;case 13:case 19:Oo(ei);break;case 10:Pa(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Cl=e,Al=e=Ic(e.current,null),jl=Tl=t,Nl=0,Rl=null,Ml=Fl=Dl=0,zl=Bl=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ta=null}return e}function fc(e,t){for(;;){var n=Al;try{if(La(),oi.current=Xi,ui){for(var r=si.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ui=!1}if(ii=0,ci=li=si=null,di=!1,pi=0,Ol.current=null,null===n||null===n.return){Nl=1,Rl=t,Al=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=jl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=gs(s);if(null!==m){m.flags&=-257,ys(m,s,l,0,t),1&m.mode&&hs(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(c),t.updateQueue=g}else h.add(c);break e}if(!(1&t)){hs(i,u,t),hc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var y=gs(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),ha(cs(c,l));break e}}i=c=cs(c,l),4!==Nl&&(Nl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,$a(i,fs(0,c,t));break e;case 1:l=c;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Wl&&Wl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,$a(i,ms(i,l,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(w){t=w,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function mc(){var e=El.current;return El.current=Xi,null===e?Xi:e}function hc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Cl||!(268435455&Dl)&&!(268435455&Fl)||sc(Cl,jl)}function gc(e,t){var n=Pl;Pl|=2;var r=mc();for(Cl===e&&jl===t||(Vl=null,pc(e,t));;)try{yc();break}catch(o){fc(e,o)}if(La(),Pl=n,El.current=r,null!==Al)throw Error(a(261));return Cl=null,jl=0,Nl}function yc(){for(;null!==Al;)vc(Al)}function bc(){for(;null!==Al&&!Ke();)vc(Al)}function vc(e){var t=kl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?wc(e):Al=t,Ol.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Nl=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qs(n,t,Tl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Nl&&(Nl=5)}function Sc(e,t,n){var r=vt,o=Ll.transition;try{Ll.transition=null,vt=1,function(e,t,n,r){do{xc()}while(null!==Gl);if(6&Pl)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Cl&&(Al=Cl=null,jl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||ql||(ql=!0,Cc(tt,(function(){return xc(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Ll.transition,Ll.transition=null;var s=vt;vt=1;var l=Pl;Pl|=4,Ol.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(S){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++d===r&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(S){_c(t,t.return,S)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}h=tl,tl=!1}(e,n),gl(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ye(),Pl=l,vt=s,Ll.transition=i}else e.current=n;if(ql&&(ql=!1,Gl=e,Kl=o),i=e.pendingLanes,0===i&&(Wl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Ql,Ql=null,e;!!(1&Kl)&&0!==e.tag&&xc(),i=e.pendingLanes,1&i?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Vo()}(e,t,n,r)}finally{Ll.transition=o,vt=r}return null}function xc(){if(null!==Gl){var e=wt(Kl),t=Ll.transition,n=vt;try{if(Ll.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Kl=0,6&Pl)throw Error(a(331));var o=Pl;for(Pl|=4,Xs=e.current;null!==Xs;){var i=Xs,s=i.child;if(16&Xs.flags){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Xs=p;else for(;null!==Xs;){var f=(d=Xs).sibling,m=d.return;if(al(d),d===u){Xs=null;break}if(null!==f){f.return=m,Xs=f;break}Xs=m}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Xs=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Xs=s;else e:for(;null!==Xs;){if(2048&(i=Xs).flags)switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Xs=b;break e}Xs=i.return}}var v=e.current;for(Xs=v;null!==Xs;){var w=(s=Xs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Xs=w;else e:for(s=v;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(x){_c(l,l.return,x)}if(l===s){Xs=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Xs=S;break e}Xs=l.return}}if(Pl=o,Vo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(x){}r=!0}return r}finally{vt=n,Ll.transition=t}}return!1}function kc(e,t,n){e=za(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(yt(e,1,t),rc(e,t))}function _c(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=za(t,e=ms(t,e=cs(n,e),1),1),e=ec(),null!==t&&(yt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(jl&n)===n&&(4===Nl||3===Nl&&(130023424&jl)===jl&&500>Ze()-Ul?pc(e,0):Ml|=n),rc(e,t)}function Oc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=Ra(e,t))&&(yt(e,t,n),rc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Oc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Oc(e,n)}function Cc(e,t){return qe(e,t)}function Ac(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jc(e,t,n,r){return new Ac(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var n=e.alternate;return null===n?((n=jc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Tc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Rc(n.children,o,i,t);case _:s=8,o|=8;break;case E:return(e=jc(12,n,t,2|o)).elementType=E,e.lanes=i,e;case C:return(e=jc(13,n,t,o)).elementType=C,e.lanes=i,e;case A:return(e=jc(19,n,t,o)).elementType=A,e.lanes=i,e;case I:return Dc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case L:s=9;break e;case P:s=11;break e;case j:s=14;break e;case T:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=jc(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Rc(e,t,n,r){return(e=jc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=jc(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=jc(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=jc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,n,r,o,a,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=jc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fa(a),e}function Uc(e){if(!e)return Po;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Io(n))return Do(e,n,t)}return t}function $c(e,t,n,r,o,a,i,s,l){return(e=zc(n,r,!0,e,0,a,0,s,l)).context=Uc(null),n=e.current,(a=Ba(r=ec(),o=tc(n))).callback=null!=t?t:null,za(n,a,o),e.current.lanes=o,yt(e,o,r),rc(e,r),e}function Vc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ba(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=za(o,t,i))&&(nc(e,o,i,a),Ua(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Qc(e,t),(e=e.alternate)&&Qc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)vs=!0;else{if(!(e.lanes&n||128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Cs(t),ma();break;case 5:Xa(t);break;case 1:Io(t.type)&&Fo(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(ka,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ei,1&ei.current),t.flags|=128,null):n&t.child.childLanes?Fs(e,t,n):(Lo(ei,1&ei.current),null!==(e=Hs(e,t,n))?e.sibling:null);Lo(ei,1&ei.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return $s(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,n)}return Hs(e,t,n)}(e,t,n);vs=!!(131072&e.flags)}else vs=!1,aa&&1048576&t.flags&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var o=To(t,Co.current);Aa(t,n),o=gi(null,t,r,e,o,n);var i=yi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(i=!0,Fo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Fa(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===j)return 14}return 2}(r),e=ns(r,e),o){case 0:t=Os(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=xs(null,t,r,ns(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ls(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Cs(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ma(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=As(e,t,r,n,o=cs(Error(a(423)),t));break e}if(r!==o){t=As(e,t,r,n,o=cs(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Xa(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==i&&no(r,i)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Fs(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ss(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Lo(ka,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===o.children&&!Ao.current){t=Hs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Ba(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Ca(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ca(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Aa(t,n),r=r(o=ja(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),xs(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Vs(e,t),t.tag=1,Io(r)?(e=!0,Fo(t)):e=!1,Aa(t,n),is(t,r,o),ls(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return $s(e,t,n);case 22:return _s(e,t,n)}throw Error(a(156,t.tag))};var qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Jc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Hc(i);s.call(e)}}Vc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hc(i);a.call(e)}}var i=$c(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=i,e[ho]=i.current,$r(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[ho]=l.current,$r(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(i)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vc(e,t,null,null)},Kc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[ho]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Ft(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Ze()),!(6&Pl)&&($l=Ze()+500,Vo()))}break;case 13:uc((function(){var t=Ra(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},xt=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ra(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},_t=function(){return vt},Et=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));q(r),X(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=cc,Ce=uc;var eu={usingClientEntryPoint:!1,Events:[wo,So,xo,Oe,Le,cc]},tu={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var n=!1,r="",o=qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zc(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(a(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",s=qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,o,0,i,s),e[ho]=t.current,$r(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Kc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(a(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!a(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},545:(e,t,n)=>{"use strict";n.d(t,{mg:()=>J,vd:()=>Q});var r=n(6540),o=n(5556),a=n.n(o),i=n(115),s=n.n(i),l=n(311),c=n.n(l),u=n(2833),d=n.n(u);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},y={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(g).map((function(e){return g[e]})),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x=Object.keys(S).reduce((function(e,t){return e[S[t]]=t,e}),{}),k=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_=function(e){var t=k(e,g.TITLE),n=k(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=k(e,"defaultTitle");return t||r||void 0},E=function(e){return k(e,"onChangeClientState")||function(){}},O=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return p({},e,t)}),{})},L=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o+=1){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},P=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i+=1){var s=a[i],l=p({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},C=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},A=function(e){return Array.isArray(e)?e.join(""):e},j=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},T=function(e,t){var n;return p({},e,((n={})[t]=void 0,n))},I=[g.NOSCRIPT,g.SCRIPT,g.STYLE],N=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},R=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},D=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[S[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var o,a=((o={key:n})["data-rh"]=!0,o);return Object.keys(t).forEach((function(e){var n=S[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]})),r.createElement(e,a)}))},M=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(o={key:e=t.title})["data-rh"]=!0,a=D(n,o),[r.createElement(g.TITLE,a,e)];var e,n,o,a},toString:function(){return function(e,t,n,r){var o=R(n),a=A(t);return o?"<"+e+' data-rh="true" '+o+">"+N(a,r)+"</"+e+">":"<"+e+' data-rh="true">'+N(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return D(t)},toString:function(){return R(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+N(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===I.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},B=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.noscriptTags,i=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,p=e.scriptTags,f={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=j(e.metaTags,v),a=j(t,y),i=j(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,o.priority),F(g.LINK,a.priority),F(g.SCRIPT,i.priority))},toString:function(){return M(g.META,o.priority,r)+" "+M(g.LINK,a.priority,r)+" "+M(g.SCRIPT,i.priority,r)}},metaTags:o.default,linkTags:a.default,scriptTags:i.default}}(e);f=m.priorityMethods,u=m.linkTags,d=m.metaTags,p=m.scriptTags}return{priority:f,base:M(g.BASE,t,r),bodyAttributes:M("bodyAttributes",n,r),htmlAttributes:M("htmlAttributes",o,r),link:M(g.LINK,u,r),meta:M(g.META,d,r),noscript:M(g.NOSCRIPT,a,r),script:M(g.SCRIPT,p,r),style:M(g.STYLE,i,r),title:M(g.TITLE,{title:l,titleAttributes:c},r)}},z=[],U=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?z:n.instances},add:function(e){(n.canUseDOM?z:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?z:n.instances).indexOf(e);(n.canUseDOM?z:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),V=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),H="undefined"!=typeof document,Q=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new U(r.props.context,t.canUseDOM),r}return f(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);Q.canUseDOM=H,Q.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},Q.defaultProps={context:{}},Q.displayName="HelmetProvider";var W=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),o=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(o),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),a.some((function(e,t){return n=t,r.isEqualNode(e)}))?a.splice(n,1):i.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:i}},q=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s+=1){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=a.indexOf(l);-1!==u&&a.splice(u,1)}for(var d=a.length-1;d>=0;d-=1)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},G=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,a=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;q(g.BODY,e.bodyAttributes),q(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=A(e)),q(g.TITLE,t)}(u,d);var p={baseTag:W(g.BASE,n),linkTags:W(g.LINK,o),metaTags:W(g.META,a),noscriptTags:W(g.NOSCRIPT,i),scriptTags:W(g.SCRIPT,l),styleTags:W(g.STYLE,c)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),s(e,f,m)},K=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,o=null,a=(e=n.helmetInstances.get().map((function(e){var t=p({},e.props);return delete t.context,t})),{baseTag:L(["href"],e),bodyAttributes:O("bodyAttributes",e),defer:k(e,"defer"),encode:k(e,"encodeSpecialCharacters"),htmlAttributes:O("htmlAttributes",e),linkTags:P(g.LINK,["rel","href"],e),metaTags:P(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:P(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:E(e),scriptTags:P(g.SCRIPT,["src","innerHTML"],e),styleTags:P(g.STYLE,["cssText"],e),title:_(e),titleAttributes:O("titleAttributes",e),prioritizeSeoTags:C(e,"prioritizeSeoTags")});Q.canUseDOM?(t=a,K&&cancelAnimationFrame(K),t.defer?K=requestAnimationFrame((function(){G(t,(function(){K=null}))})):(G(t),K=null)):B&&(o=B(a)),r(o)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:V.isRequired},Y.displayName="HelmetDispatcher";var Z=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}f(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(T(this.props,"helmetData"),T(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return p({},r,((t={})[n.type]=[].concat(r[n.type]||[],[p({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return p({},o,((t={})[r.type]=i,t.titleAttributes=p({},a),t));case g.BODY:return p({},o,{bodyAttributes:p({},a)});case g.HTML:return p({},o,{htmlAttributes:p({},a)});default:return p({},o,((n={})[r.type]=p({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=p({},t);return Object.keys(e).forEach((function(t){var r;n=p({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,o={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,a=r.children,i=h(r,Z),s=Object.keys(i).reduce((function(e,t){return e[x[t]||t]=i[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,a),l){case g.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}})),this.mapArrayTypeChildrenToProps(o,t)},n.render=function(){var e=this.props,t=e.children,n=h(e,X),o=p({},n),a=n.helmetData;return t&&(o=this.mapChildrenToProps(t,o)),!a||a instanceof U||(a=new U(a.context,a.instances)),a?r.createElement(Y,p({},o,{context:a.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(Y,p({},o,{context:e}))}))},t}(r.Component);J.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case l:return e;default:return t}}case o:return t}}}function x(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||S(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===h},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===i},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},3259:(e,t,n)=>{"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var s=n(6540),l=[],c=[];var u=s.createContext(null);function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function f(e,t){return s.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,p;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=i({loader:null,loading:null,delay:200,timeout:null,render:f,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return l.push(g),"function"==typeof m.webpack&&c.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),p=d=function(t){function n(n){var r;return a(o(o(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),r._loadModule()})),g(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.report(t)})),h.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts()};h.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?s.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(s.Component),a(d,"contextType",u),p}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(p,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return s.createElement(u.Provider,{value:{report:this.props.report}},s.Children.only(this.props.children))},t}(s.Component);function y(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return y(e)}))}h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){y(l).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){y(c).then(e,e)}))},e.exports=h},2831:(e,t,n)=>{"use strict";n.d(t,{u:()=>i,v:()=>s});var r=n(6347),o=n(8168),a=n(6540);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var o=e.path?(0,r.B6)(t,e):n.length?n[n.length-1].match:r.Ix.computeRootMatch(t);return o&&(n.push({route:e,match:o}),e.routes&&i(e.routes,t,n)),o})),n}function s(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?a.createElement(r.dO,n,e.map((function(e,n){return a.createElement(r.qh,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,o.A)({},n,{},t,{route:e})):a.createElement(e.component,(0,o.A)({},n,t,{route:e}))}})}))):null}},4625:(e,t,n)=>{"use strict";n.d(t,{I9:()=>d,Kd:()=>u,N_:()=>y,k2:()=>w});var r=n(6347),o=n(2892),a=n(6540),i=n(1513),s=n(8168),l=n(8587),c=n(1561),u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.zR)(t.props),t}return(0,o.A)(t,e),t.prototype.render=function(){return a.createElement(r.Ix,{history:this.history,children:this.props.children})},t}(a.Component);var d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.TM)(t.props),t}return(0,o.A)(t,e),t.prototype.render=function(){return a.createElement(r.Ix,{history:this.history,children:this.props.children})},t}(a.Component);var p=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,i.yJ)(e,null,null,t):e},m=function(e){return e},h=a.forwardRef;void 0===h&&(h=m);var g=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=(0,l.A)(e,["innerRef","navigate","onClick"]),c=i.target,u=(0,s.A)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=m!==h&&t||n,a.createElement("a",u)}));var y=h((function(e,t){var n=e.component,o=void 0===n?g:n,u=e.replace,d=e.to,y=e.innerRef,b=(0,l.A)(e,["component","replace","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=e.history,r=f(p(d,e.location),e.location),l=r?n.createHref(r):"",g=(0,s.A)({},b,{href:l,navigate:function(){var t=p(d,e.location),r=(0,i.AO)(e.location)===(0,i.AO)(f(t));(u||r?n.replace:n.push)(t)}});return m!==h?g.ref=t||y:g.innerRef=y,a.createElement(o,g)}))})),b=function(e){return e},v=a.forwardRef;void 0===v&&(v=b);var w=v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,u=void 0===i?"active":i,d=e.activeStyle,m=e.className,h=e.exact,g=e.isActive,w=e.location,S=e.sensitive,x=e.strict,k=e.style,_=e.to,E=e.innerRef,O=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.createElement(r.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var n=w||e.location,i=f(p(_,n),n),l=i.pathname,L=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=L?(0,r.B6)(n.pathname,{path:L,exact:h,sensitive:S,strict:x}):null,C=!!(g?g(P,n):P),A="function"==typeof m?m(C):m,j="function"==typeof k?k(C):k;C&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,u),j=(0,s.A)({},j,d));var T=(0,s.A)({"aria-current":C&&o||null,className:A,style:j,to:i},O);return b!==v?T.ref=t||E:T.innerRef=E,a.createElement(y,T)}))}))},6347:(e,t,n)=>{"use strict";n.d(t,{B6:()=>k,Ix:()=>v,W6:()=>T,XZ:()=>b,dO:()=>A,qh:()=>_,zy:()=>I});var r=n(2892),o=n(6540),a=n(5556),i=n.n(a),s=n(1513),l=n(1561),c=n(8168),u=n(8505),d=n.n(u),p=(n(4363),n(8587)),f=(n(4146),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};var h=o.createContext||function(e,t){var n,a,s="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n,r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.A)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=i().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((a={})[s]=i().object,a),{Provider:l,Consumer:c}},g=function(e){var t=h();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;o.Component;var w={},S=1e4,x=0;function k(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,s=void 0!==i&&i,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var o=[],a={regexp:d()(e,o,t),keys:o};return x<S&&(r[e]=a,x++),a}(n,{end:a,strict:s,sensitive:c}),o=r.regexp,i=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],p=l.slice(1),f=e===u;return a&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=p[n],e}),{})}}),null)}var _=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?k(n.pathname,e.props):t.match,a=(0,c.A)({},t,{location:n,match:r}),i=e.props,s=i.children,u=i.component,d=i.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(b.Provider,{value:a},a.match?s?"function"==typeof s?s(a):s:u?o.createElement(u,a):d?d(a):null:"function"==typeof s?s(a):null)}))},t}(o.Component);function E(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=E(e);return 0!==t.pathname.indexOf(n)?t:(0,c.A)({},t,{pathname:t.pathname.substr(n.length)})}function L(e){return"string"==typeof e?e:(0,s.AO)(e)}function P(e){return function(){(0,l.A)(!1)}}function C(){}o.Component;var A=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return o.createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var n,r,a=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?k(a.pathname,(0,c.A)({},e.props,{path:i})):t.match}})),r?o.cloneElement(n,{location:a,computedMatch:r}):null}))},t}(o.Component);var j=o.useContext;function T(){return j(y)}function I(){return j(b).location}},8505:(e,t,n)=>{var r=n(4634);e.exports=f,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],p=n[1],f=n.index;if(s+=e.slice(i,f),i=f+d.length,p)s+=p[1];else{var m=e[i],h=n[2],g=n[3],y=n[4],b=n[5],v=n[6],w=n[7];s&&(r.push(s),s="");var S=null!=h&&null!=m&&m!==h,x="+"===v||"*"===v,k="?"===v||"*"===v,_=n[2]||u,E=y||b;r.push({name:g||a++,prefix:h||"",delimiter:_,optional:k,repeat:x,partial:S,asterisk:!!w,pattern:E?c(E):w?".*":"[^"+l(_)+"]+?"})}}return i<e.length&&(s+=e.substr(i)),s&&r.push(s),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var a="",s=t||{},l=(o||{}).pretty?i:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=s[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(d=l(p[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,a=!1!==n.end,i="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)i+=l(c);else{var p=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+p+f+")*"),i+=f=c.optional?c.partial?p+"("+f+")?":"(?:"+p+"("+f+"))?":p+"("+f+")"}}var m=l(n.delimiter||"/"),h=i.slice(-m.length)===m;return o||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=a?"$":o&&h?"":"(?="+m+"|$)",u(new RegExp("^"+i,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return p(a(e,n),t,n)}(e,t,n)}},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},5287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,h(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:k.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var L=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===a?"."+P(l,0):a,S(i)?(o="",null!=e&&(o=e.replace(L,"$&/")+"/"),C(i,t,o,"",(function(e){return e}))):null!=i&&(O(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(L,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",S(e))for(var c=0;c<e.length;c++){var u=a+P(s=e[c],c);l+=C(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,o,u=a+P(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},I={transition:null},N={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=R,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.3.1"},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<o&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,w(e),!h)if(null!==r(c))h=!0,I(x);else{var t=r(u);null!==t&&N(S,t.startTime-e)}}function x(e,n){h=!1,g&&(g=!1,b(O),O=-1),m=!0;var a=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!C());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&N(S,d.startTime-n),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,_=!1,E=null,O=-1,L=5,P=-1;function C(){return!(t.unstable_now()-P<L)}function A(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?k():(_=!1,E=null)}}else _=!1}if("function"==typeof v)k=function(){v(A)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,T=j.port2;j.port1.onmessage=A,k=function(){T.postMessage(null)}}else k=function(){y(A,0)};function I(e){E=e,_||(_=!0,k())}function N(e,n){O=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,I(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(g?(b(O),O=-1):g=!0,N(S,a-i))):(e.sortIndex=s,n(c,e),h||m||(h=!0,I(x))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},2833:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var c=a[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},4784:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={markdown:{mermaid:!0,format:"mdx",mdx1Compat:{comments:!0,admonitions:!0,headingIds:!0},anchors:{maintainCase:!1}},themes:["@docusaurus/theme-mermaid"],title:"@inseefr/lunatic",favicon:"img/favicon.ico",url:"https://inseefr.github.io",baseUrl:"/Lunatic/docs/",plugins:["./src/plugins/lunaticFixesPlugin.ts",["/home/runner/work/Lunatic/Lunatic/website/node_modules/@cmfcmf/docusaurus-search-local/lib/server/index.js",{indexBlog:!1}],["docusaurus-plugin-typedoc",{entryPoints:["../src/index.ts"],tsconfig:"../tsconfig.json",out:"./docs/api",readme:"none",enumMembersFormat:"table",indexFormat:"table",parametersFormat:"table",propertiesFormat:"table",propertyMembersFormat:"table"}]],organizationName:"InseeFr",projectName:"lunatic",trailingSlash:!1,onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",i18n:{defaultLocale:"fr",locales:["fr"],path:"i18n",localeConfigs:{}},presets:[["@docusaurus/preset-classic",{docs:{sidebarPath:"./sidebars.ts",editUrl:"https://github.com/InseeFr/Lunatic/tree/3.0/docs",routeBasePath:"/",remarkPlugins:[[null,{sync:!0}]]},blog:!1,pages:{remarkPlugins:[[null,{sync:!0}]]},theme:{customCss:["/home/runner/work/Lunatic/Lunatic/website/src/css/custom.css"]}}]],themeConfig:{image:"img/clipboard.png",navbar:{title:"@inseefr/lunatic",logo:{alt:"Lunatic",src:"/img/clipboard.png"},items:[{type:"docSidebar",sidebarId:"docs",label:"Documentation",position:"left"},{to:"changelog",label:"Changelog",position:"left"},{to:"api",label:"API",position:"left"},{href:"https://inseefr.github.io/Lunatic/storybook-3.0",label:"Storybook",position:"right"},{href:"https://github.com/InseeFr/Lunatic",label:"GitHub",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",links:[{title:"Docs",items:[{label:"Documentation",to:"/"},{label:"API",to:"/api"}]},{title:"Community",items:[{label:"Github",href:"https://github.com/InseeFr/Lunatic"},{label:"Issues",href:"https://github.com/InseeFr/Lunatic/issues"}]}],copyright:"Copyright \xa9 2024 InseeFr. Built with Docusaurus."},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},defaultLanguage:"javascript",additionalLanguages:["json","bash"],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},docs:{versionPersistence:"localStorage",sidebar:{hideable:!1,autoCollapseCategories:!1}},blog:{sidebar:{groupByYear:!0}},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3},mermaid:{theme:{dark:"dark",light:"default"},options:{}}},baseUrlIssueBanner:!0,future:{experimental_faster:{swcJsLoader:!1,swcJsMinimizer:!1,swcHtmlMinimizer:!1,lightningCssMinimizer:!1,mdxCrossCompilerCache:!1,rspackBundler:!1},experimental_storage:{type:"localStorage",namespace:!1},experimental_router:"browser"},onBrokenAnchors:"warn",onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},scripts:[],headTags:[],stylesheets:[],clientModules:[],tagline:"",titleDelimiter:"|",noIndex:!1}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},2892:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},8215:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},5066:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},8181:(e,t,n)=>{"use strict";n.d(t,{f4:()=>J,My:()=>O});var r=n(6540);function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const a=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r};var i,s,l,c,u,d=Object.create,p=Object.defineProperty,f=Object.defineProperties,m=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,S=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&S(e,n,t[n]);if(y)for(var n of y(t))w.call(t,n)&&S(e,n,t[n]);return e},k=(e,t)=>f(e,h(t)),_=(e,t)=>{var n={};for(var r in e)v.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&y)for(var r of y(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n},E=(i={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(i[l]=n[l]);n.hasOwnProperty(s)||(i[s]=a[s])}var c=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var l=t[s],c=r.util.type(l);"Object"!==c||a[i(l)]?"Array"!==c||a[i(l)]||(a[i(l)]=!0,e(l,n,s,a)):(a[i(l)]=!0,e(l,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",a),!a.grammar)throw new Error('The language "'+a.language+'" has no grammar.');return a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),i(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,s,u,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var m=0;m<f.length;++m){if(d&&d.cause==p+","+m)return;var h=f[m],g=h.inside,y=!!h.lookbehind,b=!!h.greedy,v=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var S=h.pattern||h,x=s.next,k=u;x!==t.tail&&!(d&&k>=d.reach);k+=x.value.length,x=x.next){var _=x.value;if(t.length>e.length)return;if(!(_ instanceof o)){var E,O=1;if(b){if(!(E=a(S,k,e,y))||E.index>=e.length)break;var L=E.index,P=E.index+E[0].length,C=k;for(C+=x.value.length;L>=C;)C+=(x=x.next).value.length;if(k=C-=x.value.length,x.value instanceof o)continue;for(var A=x;A!==t.tail&&(C<P||"string"==typeof A.value);A=A.next)O++,C+=A.value.length;O--,_=e.slice(k,C),E.index-=k}else if(!(E=a(S,0,_,y)))continue;L=E.index;var j=E[0],T=_.slice(0,L),I=_.slice(L+j.length),N=k+_.length;d&&N>d.reach&&(d.reach=N);var R=x.prev;if(T&&(R=l(t,R,T),k+=T.length),c(t,R,O),x=l(t,R,new o(p,g?r.tokenize(j,g):j,v,j)),I&&l(t,x,I),O>1){var D={cause:p+","+m,reach:N};i(e,t,n,x.prev,k,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),r.hooks.run("wrap",a);var s="";for(var l in a.attributes)s+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},r}();t.exports=n,n.default=n}},function(){return s||(0,i[g(i)[0]])((s={exports:{}}).exports,s),s.exports}),O=((e,t,n)=>(n=null!=e?d(b(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of g(t))v.call(e,o)||o===n||p(e,o,{get:()=>t[o],enumerable:!(r=m(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:p(n,"default",{value:e,enumerable:!0}),e)))(E());O.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},O.languages.markup.tag.inside["attr-value"].inside.entity=O.languages.markup.entity,O.languages.markup.doctype.inside["internal-subset"].inside=O.languages.markup,O.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(O.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:O.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:O.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},O.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(O.languages.markup.tag,"addAttribute",{value:function(e,t){O.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:O.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),O.languages.html=O.languages.markup,O.languages.mathml=O.languages.markup,O.languages.svg=O.languages.markup,O.languages.xml=O.languages.extend("markup",{}),O.languages.ssml=O.languages.xml,O.languages.atom=O.languages.xml,O.languages.rss=O.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(O),O.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},O.languages.javascript=O.languages.extend("clike",{"class-name":[O.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),O.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,O.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:O.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:O.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:O.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:O.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:O.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),O.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:O.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),O.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),O.languages.markup&&(O.languages.markup.tag.addInlined("script","javascript"),O.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),O.languages.js=O.languages.javascript,O.languages.actionscript=O.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),O.languages.actionscript["class-name"].alias="function",delete O.languages.actionscript.parameter,delete O.languages.actionscript["literal-property"],O.languages.markup&&O.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:O.languages.markup}}),c=/#(?!\{).+/,u={pattern:/#\{[^}]+\}/,alias:"variable"},(l=O).languages.coffeescript=l.languages.extend("javascript",{comment:c,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:u}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),l.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:c,interpolation:u}}}),l.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:l.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:u}}]}),l.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete l.languages.coffeescript["template-string"],l.languages.coffee=l.languages.coffeescript,function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(a=e.languages[t]){var a,i=a[o];if((i=i||(a=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(i=a[o]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s<l;s++)i[s]instanceof RegExp&&(i[s]={pattern:i[s]}),r(i[s]);else r(i)}}))}}),t.addSupport(["java","javascript","php"],t)}(O),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(O),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(O),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(O),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,a=t[n];"code"!==a.type?e(a.content):(o=a.content[1],a=a.content[3],o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),a.alias?"string"==typeof a.alias?a.alias=[a.alias,o]:a.alias.push(o):a.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var a=t.classes[r];if(a=/language-(.+)/.exec(a)){n=a[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(O),O.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:O.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},O.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var a=p(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var i=u(0);"variable"===i.type&&(f(i,"variable-input"),o.push(i.content))}n=a+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,f(u(0),"property-mutation"),0<o.length)){var s=p(/^\{$/,/^\}$/);if(-1!==s)for(var l=n;l<s;l++){var c=t[l];"variable"===c.type&&0<=o.indexOf(c.content)&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function p(e,r){for(var o=1,a=n;a<t.length;a++){var i=t[a],s=i.content;if("punctuation"===i.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0==--o)return a}return-1}function f(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),O.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function l(t,n,i){var l=e.tokenize(t,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),c=0,u={},d=(l=s(l.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+i.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,i),Object.keys(u));return c=0,function t(n){for(var a=0;a<n.length;a++){if(c>=d.length)return;var i,l,p,f,m,h,g,y=n[a];"string"==typeof y||"string"==typeof y.content?(i=d[c],-1!==(g=(h="string"==typeof y?y:y.content).indexOf(i))&&(++c,l=h.substring(0,g),m=u[i],p=void 0,(f={})["interpolation-punctuation"]=o,3===(f=e.tokenize(m,f)).length&&((p=[1,1]).push.apply(p,s(f[1],e.languages.javascript,"javascript")),f.splice.apply(f,p)),p=new e.Token("interpolation",f,r.alias,m),f=h.substring(g+i.length),m=[],l&&m.push(l),m.push(p),f&&(t(h=[f]),m.push.apply(m,h)),"string"==typeof y?(n.splice.apply(n,[a,1].concat(m)),a+=m.length-1):y.content=m)):(g=y.content,Array.isArray(g)?t(g):t([g]))}}(l),new e.Token(i,l,"language-"+i,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var a,i,s,c=n[r];"string"!=typeof c&&(a=c.content,Array.isArray(a)?"template-string"===c.type?(c=a[1],3===a.length&&"string"!=typeof c&&"embedded-code"===c.type&&(i=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,s=e.languages[c])&&(a[1]=l(i,s,c))):t(a):"string"!=typeof a&&t([a]))}}(t.tokens)}))}(O),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(O),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(O),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(O),O.languages.n4js=O.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),O.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),O.languages.n4jsd=O.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],a=e.languages.javascript[o];o=(a="RegExp"===e.util.type(a)?e.languages.javascript[o]={pattern:a}:a).inside||{};(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(O),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function i(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],a=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(a=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(a+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(a=s(t[r-1])+a,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",a,null,a)),o.content&&"string"!=typeof o.content&&i(o.content)}}o=a(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||i(e.tokens)}))}(O),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(O),O.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},O.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=O.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(O),O.languages.c=O.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),O.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),O.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},O.languages.c.string],char:O.languages.c.char,comment:O.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:O.languages.c}}}}),O.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete O.languages.c.boolean,O.languages.objectivec=O.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete O.languages.objectivec["class-name"],O.languages.objc=O.languages.objectivec,O.languages.reason=O.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),O.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete O.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(O),O.languages.go=O.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),O.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete O.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(O),O.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},O.languages.python["string-interpolation"].inside.interpolation.inside.rest=O.languages.python,O.languages.py=O.languages.python;((e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})})({},{dracula:()=>L,duotoneDark:()=>P,duotoneLight:()=>C,github:()=>A,jettwaveDark:()=>V,jettwaveLight:()=>H,nightOwl:()=>j,nightOwlLight:()=>T,oceanicNext:()=>R,okaidia:()=>D,oneDark:()=>Q,oneLight:()=>W,palenight:()=>F,shadesOfPurple:()=>M,synthwave84:()=>B,ultramin:()=>z,vsDark:()=>U,vsLight:()=>$});var L={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},P={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},C={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},A={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},j={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},T={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},I="#c5a5c5",N="#8dc891",R={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:I}},{types:["attr-value"],style:{color:N}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:N}},{types:["punctuation"],style:{color:N}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:I}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},D={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},F={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},M={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},B={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},z={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},U={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},$={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},V={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},H={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Q={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},W={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},q=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=x(x({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=k(x({},n),{backgroundColor:void 0}),r},G=/\r\n|\r|\n/,K=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},Y=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},Z=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let a=0,i=0,s=[];const l=[s];for(;i>-1;){for(;(a=r[i]++)<o[i];){let e,c=t[i];const u=n[i][a];if("string"==typeof u?(c=i>0?c:["plain"],e=u):(c=Y(c,u.type),u.alias&&(c=Y(c,u.alias)),e=u.content),"string"!=typeof e){i++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(G),p=d.length;s.push({types:c,content:d[0]});for(let t=1;t<p;t++)K(s),l.push(s=[]),s.push({types:c,content:d[t]})}i--,t.pop(),n.pop(),r.pop(),o.pop()}return K(s),l},X=({children:e,language:t,code:n,theme:o,prism:i})=>{const s=t.toLowerCase(),l=((e,t)=>{const[n,o]=(0,r.useState)(q(t,e)),a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)((()=>{t===a.current&&e===i.current||(a.current=t,i.current=e,o(q(t,e)))}),[e,t]),n})(s,o),c=(e=>(0,r.useCallback)((t=>{var n=t,{className:r,style:o,line:i}=n,s=_(n,["className","style","line"]);const l=k(x({},s),{className:a("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=x(x({},l.style||{}),o)),l}),[e]))(l),u=(e=>{const t=(0,r.useCallback)((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return(0,r.useCallback)((e=>{var n=e,{token:r,className:o,style:i}=n,s=_(n,["token","className","style"]);const l=k(x({},s),{className:a("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(l.style=x(x({},l.style||{}),i)),l}),[t])})(l),d=(({prism:e,code:t,grammar:n,language:o})=>{const a=(0,r.useRef)(e);return(0,r.useMemo)((()=>{if(null==n)return Z([t]);const e={code:t,grammar:n,language:o,tokens:[]};return a.current.hooks.run("before-tokenize",e),e.tokens=a.current.tokenize(t,n),a.current.hooks.run("after-tokenize",e),Z(e.tokens)}),[t,n,o])})({prism:i,language:s,code:n,grammar:i.languages[s]});return e({tokens:d,className:`prism-code language-${s}`,style:null!=l?l.root:{},getLineProps:c,getTokenProps:u})},J=e=>(0,r.createElement)(X,k(x({},e),{prism:e.prism||O,theme:e.theme||U,code:e.code,language:e.language}))},1561:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,a=n?"".concat(o,": ").concat(n):o;throw new Error(a)}}},1635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>N,__assign:()=>a,__asyncDelegator:()=>E,__asyncGenerator:()=>_,__asyncValues:()=>O,__await:()=>k,__awaiter:()=>m,__classPrivateFieldGet:()=>j,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>T,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>D,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>o,__generator:()=>h,__importDefault:()=>A,__importStar:()=>C,__makeTemplateObject:()=>L,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>x,__spreadArrays:()=>S,__values:()=>b,default:()=>F});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),p=!1,f=n.length-1;f>=0;f--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var g=(0,n[f])("accessor"===l?{get:d.get,set:d.set}:d[c],m);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=i(g.get))&&(d.get=s),(s=i(g.set))&&(d.set=s),(s=i(g.init))&&o.unshift(s)}else(s=i(g))&&("field"===l?o.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),p=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function S(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof k?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(r){u(a[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:k(e[r](t)),done:!1}:o?o(t):t}:o}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function L(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&g(t,e,n);return P(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function j(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,(function(e){return t(e),n()}))}catch(a){t(a)}}if(e.hasError)throw e.error}()}const F={__extends:o,__assign:a,__rest:i,__decorate:s,__param:l,__metadata:f,__awaiter:m,__generator:h,__createBinding:g,__exportStar:y,__values:b,__read:v,__spread:w,__spreadArrays:S,__spreadArray:x,__await:k,__asyncGenerator:_,__asyncDelegator:E,__asyncValues:O,__makeTemplateObject:L,__importStar:C,__importDefault:A,__classPrivateFieldGet:j,__classPrivateFieldSet:T,__classPrivateFieldIn:I,__addDisposableResource:N,__disposeResources:D}},2654:e=>{"use strict";e.exports=JSON.parse('{"theme.AnnouncementBar.closeButtonAriaLabel":"Fermer","theme.BackToTopButton.buttonAriaLabel":"Retour au d\xe9but de la page","theme.CodeBlock.copied":"Copi\xe9","theme.CodeBlock.copy":"Copier","theme.CodeBlock.copyButtonAriaLabel":"Copier le code","theme.CodeBlock.wordWrapToggle":"Activer/d\xe9sactiver le retour \xe0 la ligne","theme.DocSidebarItem.collapseCategoryAriaLabel":"R\xe9duire la cat\xe9gorie \'{label}\' de la barre lat\xe9rale","theme.DocSidebarItem.expandCategoryAriaLabel":"D\xe9velopper la cat\xe9gorie \'{label}\' de la barre lat\xe9rale","theme.ErrorPageContent.title":"Cette page a plant\xe9.","theme.ErrorPageContent.tryAgain":"R\xe9essayer","theme.NavBar.navAriaLabel":"Main","theme.NotFound.p1":"Nous n\'avons pas trouv\xe9 ce que vous recherchez.","theme.NotFound.p2":"Veuillez contacter le propri\xe9taire du site qui vous a li\xe9 \xe0 l\'URL d\'origine et leur faire savoir que leur lien est cass\xe9.","theme.NotFound.title":"Page introuvable","theme.TOCCollapsible.toggleButtonLabel":"Sur cette page","theme.admonition.caution":"attention","theme.admonition.danger":"danger","theme.admonition.info":"info","theme.admonition.note":"remarque","theme.admonition.tip":"astuce","theme.admonition.warning":"attention","theme.blog.archive.description":"Archive","theme.blog.archive.title":"Archive","theme.blog.author.noPosts":"This author has not written any posts yet.","theme.blog.author.pageTitle":"{authorName} - {nPosts}","theme.blog.authorsList.pageTitle":"Authors","theme.blog.authorsList.viewAll":"View All Authors","theme.blog.paginator.navAriaLabel":"Pagination de la liste des articles du blog","theme.blog.paginator.newerEntries":"Nouvelles entr\xe9es","theme.blog.paginator.olderEntries":"Anciennes entr\xe9es","theme.blog.post.paginator.navAriaLabel":"Pagination des articles du blog","theme.blog.post.paginator.newerPost":"Article plus r\xe9cent","theme.blog.post.paginator.olderPost":"Article plus ancien","theme.blog.post.plurals":"Un article|{count} articles","theme.blog.post.readMore":"Lire plus","theme.blog.post.readMoreLabel":"En savoir plus sur {title}","theme.blog.post.readingTime.plurals":"Une minute de lecture|{readingTime} minutes de lecture","theme.blog.sidebar.navAriaLabel":"Navigation article de blog r\xe9cent","theme.blog.tagTitle":"{nPosts} tagu\xe9s avec \xab {tagName} \xbb","theme.colorToggle.ariaLabel":"Basculer entre le mode sombre et clair (actuellement {mode})","theme.colorToggle.ariaLabel.mode.dark":"mode sombre","theme.colorToggle.ariaLabel.mode.light":"mode clair","theme.common.editThisPage":"\xc9diter cette page","theme.common.headingLinkTitle":"Lien direct vers {heading}","theme.common.skipToMainContent":"Aller au contenu principal","theme.contentVisibility.draftBanner.message":"This page is a draft. It will only be visible in dev and be excluded from the production build.","theme.contentVisibility.draftBanner.title":"Draft page","theme.contentVisibility.unlistedBanner.message":"Cette page n\'est pas r\xe9pertori\xe9e. Les moteurs de recherche ne l\'indexeront pas, et seuls les utilisateurs ayant un lien direct peuvent y acc\xe9der.","theme.contentVisibility.unlistedBanner.title":"Page non r\xe9pertori\xe9e","theme.docs.DocCard.categoryDescription.plurals":"1 \xe9l\xe9ment|{count} \xe9l\xe9ments","theme.docs.breadcrumbs.home":"Page d\'accueil","theme.docs.breadcrumbs.navAriaLabel":"Fil d\'Ariane","theme.docs.paginator.navAriaLabel":"Pages de documentation","theme.docs.paginator.next":"Suivant","theme.docs.paginator.previous":"Pr\xe9c\xe9dent","theme.docs.sidebar.closeSidebarButtonAriaLabel":"Fermer la barre de navigation","theme.docs.sidebar.collapseButtonAriaLabel":"R\xe9duire le menu lat\xe9ral","theme.docs.sidebar.collapseButtonTitle":"R\xe9duire le menu lat\xe9ral","theme.docs.sidebar.expandButtonAriaLabel":"D\xe9plier le menu lat\xe9ral","theme.docs.sidebar.expandButtonTitle":"D\xe9plier le menu lat\xe9ral","theme.docs.sidebar.navAriaLabel":"Docs sidebar","theme.docs.sidebar.toggleSidebarButtonAriaLabel":"Ouvrir/fermer la barre de navigation","theme.docs.tagDocListPageTitle":"{nDocsTagged} avec \\"{tagName}\\"","theme.docs.tagDocListPageTitle.nDocsTagged":"Un document tagu\xe9|{count} documents tagu\xe9s","theme.docs.versionBadge.label":"Version: {versionLabel}","theme.docs.versions.latestVersionLinkLabel":"derni\xe8re version","theme.docs.versions.latestVersionSuggestionLabel":"Pour une documentation \xe0 jour, consultez la {latestVersionLink} ({versionLabel}).","theme.docs.versions.unmaintainedVersionLabel":"Ceci est la documentation de {siteTitle} {versionLabel}, qui n\'est plus activement maintenue.","theme.docs.versions.unreleasedVersionLabel":"Ceci est la documentation de la prochaine version {versionLabel} de {siteTitle}.","theme.lastUpdated.atDate":" le {date}","theme.lastUpdated.byUser":" par {user}","theme.lastUpdated.lastUpdatedAtBy":"Derni\xe8re mise \xe0 jour{atDate}{byUser}","theme.navbar.mobileLanguageDropdown.label":"Langues","theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel":"\u2190 Retour au menu principal","theme.navbar.mobileVersionsDropdown.label":"Versions","theme.tags.tagsListLabel":"Tags :","theme.tags.tagsPageLink":"Voir tous les tags","theme.tags.tagsPageTitle":"Tags","cmfcmf/d-s-l.searchBar.placeholder":"Rechercher...","cmfcmf/d-s-l.searchBar.noResults":"Pas de r\xe9sultat.","cmfcmf/d-s-l.searchBar.clearButtonTitle":"Effacer","cmfcmf/d-s-l.searchBar.detachedCancelButtonText":"Annuler","cmfcmf/d-s-l.searchBar.submitButtonTitle":"Chercher"}')},4054:e=>{"use strict";e.exports=JSON.parse('{"/Lunatic/docs/changelog-c76":{"__comp":"1f391b9e","__context":{"plugin":"a7456010"},"content":"0f175527"},"/Lunatic/docs/-0c2":{"__comp":"5e95c892","__context":{"plugin":"aba21aa0"}},"/Lunatic/docs/-5c5":{"__comp":"a7bd4aaa","__props":"6f0fe8bc"},"/Lunatic/docs/-18e":{"__comp":"a94703ab"},"/Lunatic/docs/api-7b8":{"__comp":"17896441","content":"5e8c322a"},"/Lunatic/docs/api/classes/VTLExpressionError-d00":{"__comp":"17896441","content":"94c6a771"},"/Lunatic/docs/api/classes/VTLInterpretationError-d37":{"__comp":"17896441","content":"2a2339b9"},"/Lunatic/docs/api/classes/VTLMissingDependencies-3c1":{"__comp":"17896441","content":"f97e9514"},"/Lunatic/docs/api/classes/VTLMissingDependency-bb2":{"__comp":"17896441","content":"b6ce7557"},"/Lunatic/docs/api/functions/LunaticComponents-62e":{"__comp":"17896441","content":"c1574f21"},"/Lunatic/docs/api/functions/ModalControls-8f8":{"__comp":"17896441","content":"f398cc77"},"/Lunatic/docs/api/functions/useLunatic-888":{"__comp":"17896441","content":"0cb2ce6a"},"/Lunatic/docs/api/interfaces/LunaticExtraProps-6b0":{"__comp":"17896441","content":"43f86adf"},"/Lunatic/docs/api/type-aliases/LunaticChangesHandler-777":{"__comp":"17896441","content":"58e0c7b0"},"/Lunatic/docs/api/type-aliases/LunaticCollectedValue-885":{"__comp":"17896441","content":"45833858"},"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition-034":{"__comp":"17896441","content":"4e1b86ca"},"/Lunatic/docs/api/type-aliases/LunaticComponentProps-985":{"__comp":"17896441","content":"3b33ea71"},"/Lunatic/docs/api/type-aliases/LunaticControl-e25":{"__comp":"17896441","content":"ccd161e0"},"/Lunatic/docs/api/type-aliases/LunaticData-43d":{"__comp":"17896441","content":"d48ac471"},"/Lunatic/docs/api/type-aliases/LunaticError-3a4":{"__comp":"17896441","content":"4d072e10"},"/Lunatic/docs/api/type-aliases/LunaticExpression-27a":{"__comp":"17896441","content":"1d80a4d6"},"/Lunatic/docs/api/type-aliases/LunaticOptions-c23":{"__comp":"17896441","content":"4445d26b"},"/Lunatic/docs/api/type-aliases/LunaticPager-8c6":{"__comp":"17896441","content":"1067611d"},"/Lunatic/docs/api/type-aliases/LunaticSlotComponents-17e":{"__comp":"17896441","content":"7a34fa89"},"/Lunatic/docs/api/type-aliases/LunaticSource-2e7":{"__comp":"17896441","content":"fed19d79"},"/Lunatic/docs/api/type-aliases/LunaticState-ac9":{"__comp":"17896441","content":"8c14e59c"},"/Lunatic/docs/api/type-aliases/LunaticStateVariable-a10":{"__comp":"17896441","content":"8fcf01ba"},"/Lunatic/docs/api/type-aliases/LunaticValues-f5a":{"__comp":"17896441","content":"d1a1dfaa"},"/Lunatic/docs/api/type-aliases/LunaticVariable-307":{"__comp":"17896441","content":"b968f49b"},"/Lunatic/docs/api/variables/Button-2bb":{"__comp":"17896441","content":"c901544c"},"/Lunatic/docs/api/variables/components-b71":{"__comp":"17896441","content":"69100af9"},"/Lunatic/docs/category/agr\xe9gateurs-976":{"__comp":"14eb3368","__props":"32530c60"},"/Lunatic/docs/category/balisage-652":{"__comp":"14eb3368","__props":"835f525a"},"/Lunatic/docs/category/champs-94b":{"__comp":"14eb3368","__props":"6e0c98ef"},"/Lunatic/docs/category/composants-d6f":{"__comp":"14eb3368","__props":"a66aaf29"},"/Lunatic/docs/category/fonctionnement-interne-80b":{"__comp":"14eb3368","__props":"2088de68"},"/Lunatic/docs/category/hook-uselunatic-efa":{"__comp":"14eb3368","__props":"c3356e06"},"/Lunatic/docs/components/aggregators/loop-5fc":{"__comp":"17896441","content":"4fe25d84"},"/Lunatic/docs/components/aggregators/pairwise-573":{"__comp":"17896441","content":"72b55bd9"},"/Lunatic/docs/components/aggregators/rosterForLoop-c0a":{"__comp":"17896441","content":"94f53d34"},"/Lunatic/docs/components/aggregators/roundabout-a1d":{"__comp":"17896441","content":"a976e8d8"},"/Lunatic/docs/components/base-e49":{"__comp":"17896441","content":"ea9b137c"},"/Lunatic/docs/components/decorations/filter-description-593":{"__comp":"17896441","content":"a538f389"},"/Lunatic/docs/components/decorations/question-fc6":{"__comp":"17896441","content":"029f537f"},"/Lunatic/docs/components/decorations/sequence-795":{"__comp":"17896441","content":"af8b7c6f"},"/Lunatic/docs/components/fields/checkboxBoolean-4e2":{"__comp":"17896441","content":"d8e663aa"},"/Lunatic/docs/components/fields/checkboxGroup-d83":{"__comp":"17896441","content":"46db7f29"},"/Lunatic/docs/components/fields/checkboxOne-d58":{"__comp":"17896441","content":"d48c2e32"},"/Lunatic/docs/components/fields/datepicker-f81":{"__comp":"17896441","content":"22544e41"},"/Lunatic/docs/components/fields/dropdown-710":{"__comp":"17896441","content":"6049a7bc"},"/Lunatic/docs/components/fields/duration-a22":{"__comp":"17896441","content":"f7562109"},"/Lunatic/docs/components/fields/input-a74":{"__comp":"17896441","content":"0ea626f8"},"/Lunatic/docs/components/fields/input-number-629":{"__comp":"17896441","content":"9cb90f50"},"/Lunatic/docs/components/fields/radio-991":{"__comp":"17896441","content":"f39704da"},"/Lunatic/docs/components/fields/suggester-fc8":{"__comp":"17896441","content":"5e6898a4"},"/Lunatic/docs/components/fields/table-f0d":{"__comp":"17896441","content":"5ed7f5fe"},"/Lunatic/docs/components/fields/text-671":{"__comp":"17896441","content":"e2699ac7"},"/Lunatic/docs/components/fields/textarea-f48":{"__comp":"17896441","content":"1ec6518c"},"/Lunatic/docs/components/lunatic-components-639":{"__comp":"17896441","content":"5c547149"},"/Lunatic/docs/components/personnalisation-d82":{"__comp":"17896441","content":"7c0f0c82"},"/Lunatic/docs/hook/controls-ccc":{"__comp":"17896441","content":"f9cde7f6"},"/Lunatic/docs/hook/navigation-bf0":{"__comp":"17896441","content":"d209f454"},"/Lunatic/docs/hook/parameters-5b2":{"__comp":"17896441","content":"f9c40bd6"},"/Lunatic/docs/hook/return-8c5":{"__comp":"17896441","content":"897040e0"},"/Lunatic/docs/hook/track-changes-00c":{"__comp":"17896441","content":"53eb1e5c"},"/Lunatic/docs/internal/cleaning-972":{"__comp":"17896441","content":"85c3c79c"},"/Lunatic/docs/internal/missing-1eb":{"__comp":"17896441","content":"0e7a0dc8"},"/Lunatic/docs/internal/reducer-ed7":{"__comp":"17896441","content":"6ef797bf"},"/Lunatic/docs/internal/resizing-595":{"__comp":"17896441","content":"fa29edc5"},"/Lunatic/docs/vtl-1ab":{"__comp":"17896441","content":"ba2f5f01"},"/Lunatic/docs/-6e2":{"__comp":"17896441","content":"f8409a7e"}}')}},e=>{e.O(0,[1869],(()=>{return t=979,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/website/assets/js/main.d810294f.js.LICENSE.txt b/website/assets/js/main.d810294f.js.LICENSE.txt new file mode 100644 index 000000000..3a6ccc505 --- /dev/null +++ b/website/assets/js/main.d810294f.js.LICENSE.txt @@ -0,0 +1,133 @@ +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ + +/*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + */ + +/*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + */ + +/*! Bundled license information: + +prismjs/prism.js: + (** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + *) +*/ + +/*!*************************************************** +* mark.js v8.11.1 +* https://markjs.io/ +* Copyright (c) 2014–2018, Julian Kühnel +* Released under the MIT license https://git.io/vwTVl +*****************************************************/ + +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/website/assets/js/runtime~main.6d17b420.js b/website/assets/js/runtime~main.6d17b420.js new file mode 100644 index 000000000..f3746a797 --- /dev/null +++ b/website/assets/js/runtime~main.6d17b420.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,a,c,f,d,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return b[e].call(c.exports,c,c.exports,r),c.exports}r.m=b,e=[],r.O=(a,c,f,d)=>{if(!c){var b=1/0;for(i=0;i<e.length;i++){c=e[i][0],f=e[i][1],d=e[i][2];for(var t=!0,o=0;o<c.length;o++)(!1&d||b>=d)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,d<b&&(b=d));if(t){e.splice(i--,1);var n=f();void 0!==n&&(a=n)}}return a}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[c,f,d]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var d=Object.create(null);r.r(d);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&f&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(d,b),d},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({373:"4e1b86ca",431:"1ec6518c",554:"c901544c",594:"5e8c322a",856:"d48c2e32",891:"0e7a0dc8",1215:"b6ce7557",1235:"a7456010",1585:"0ea626f8",1648:"4445d26b",1710:"2088de68",1777:"b968f49b",1812:"897040e0",1930:"7c0f0c82",1936:"4d072e10",2369:"f398cc77",2411:"f39704da",2419:"46db7f29",2633:"32530c60",2929:"a976e8d8",3107:"94c6a771",3371:"4fe25d84",3553:"f9cde7f6",3861:"6ef797bf",4024:"ccd161e0",4069:"8c14e59c",4459:"029f537f",4717:"f97e9514",4762:"af8b7c6f",4796:"ba2f5f01",4858:"835f525a",5021:"1067611d",5149:"6049a7bc",5474:"5ed7f5fe",5487:"6f0fe8bc",5693:"f9c40bd6",5711:"a66aaf29",5742:"aba21aa0",5757:"1d80a4d6",5791:"94f53d34",5813:"6e0c98ef",5891:"43f86adf",6061:"1f391b9e",6136:"fa29edc5",6255:"72b55bd9",6298:"0f175527",6392:"c3356e06",6532:"8fcf01ba",6655:"58e0c7b0",6903:"f8409a7e",6969:"14eb3368",7086:"85c3c79c",7098:"a7bd4aaa",7149:"e2699ac7",7159:"5e6898a4",7480:"a538f389",7675:"45833858",7737:"f7562109",7871:"d48ac471",7945:"d209f454",7984:"d1a1dfaa",8074:"2a2339b9",8120:"22544e41",8164:"3b33ea71",8336:"53eb1e5c",8346:"ea9b137c",8401:"17896441",8665:"69100af9",8738:"fed19d79",8804:"7a34fa89",8818:"c1574f21",8937:"9cb90f50",8969:"d8e663aa",9048:"a94703ab",9231:"0cb2ce6a",9385:"5c547149",9647:"5e95c892"}[e]||e)+"."+{165:"60104c8f",198:"1d680d44",373:"9bf26b83",391:"41923806",431:"f8f76767",532:"87b60d88",545:"8c5343de",554:"f235d413",594:"d94f90d7",758:"2de31dbb",856:"9ff27447",890:"5ffb00ff",891:"9a766c11",1107:"6d76b575",1215:"eebc1147",1235:"5f9bbb01",1585:"15745c0f",1648:"29966862",1710:"073f8aba",1777:"34074d0c",1812:"2775e63b",1825:"4bd78481",1930:"8f2379dc",1936:"f0ade135",2130:"6c9f8cee",2334:"ba613eb0",2369:"e656e3ff",2387:"b95425bc",2411:"56e5d68a",2419:"d4baae75",2633:"706b2cd0",2664:"ef877a3c",2929:"4a0dab01",3056:"f856834f",3107:"6ab9ec9c",3175:"4be10d35",3371:"51c41bca",3553:"9a40a539",3624:"55293744",3861:"d6d81f41",4024:"4c8cc62c",4069:"de232d4f",4459:"63119643",4485:"ec35ec73",4492:"d716b7b0",4632:"2a4030f3",4697:"ede765eb",4717:"c47cf53a",4762:"347fcdef",4796:"e830acf3",4858:"c7489480",5021:"e3825ffe",5110:"dbb44139",5149:"903fbb0d",5410:"28a53ffc",5474:"380829ba",5487:"7e6da869",5693:"8662c030",5711:"19a4ff77",5742:"ed09cce9",5757:"6bfa3b3f",5791:"d08df3d3",5813:"95bb471a",5891:"979da35d",5978:"b8a78a84",6061:"341a86ca",6136:"081c785e",6237:"3e19f0f9",6240:"f83d349c",6244:"672ef196",6255:"c7a68712",6298:"2ff71eda",6355:"bc474220",6383:"c67dc1cb",6392:"3879aa85",6452:"7c0c122f",6532:"3d05031c",6655:"b064d201",6903:"db1c9dd5",6969:"5ecd0fa3",7086:"2f203624",7098:"4a47c66d",7149:"1417b042",7159:"6c6fcbdf",7306:"e2ddab41",7354:"f2073142",7357:"a69ceee5",7480:"1458ef2d",7675:"6039e53f",7691:"7a088108",7723:"462b020e",7737:"98de39b2",7871:"c25153df",7945:"989e2f98",7984:"0f89d2fc",8074:"9c8926bc",8120:"cb76717c",8159:"156a20a5",8164:"83d43384",8336:"22d1b908",8346:"eae46100",8401:"1245606d",8413:"5458cc78",8540:"4da3845f",8665:"772282cc",8731:"6a51e12b",8738:"1afdc356",8804:"c2ea4e92",8818:"c75960f5",8937:"dda795db",8969:"dc7c1146",9048:"5bad7cad",9231:"46235ae7",9385:"06881283",9647:"64ab6c54",9720:"a5758708",9732:"61cd1730"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},d="docs:",r.l=(e,a,c,b)=>{if(f[e])f[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var u=n[i];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==d+c){t=u;break}}t||(o=!0,(t=document.createElement("script")).charset="utf-8",t.timeout=120,r.nc&&t.setAttribute("nonce",r.nc),t.setAttribute("data-webpack",d+c),t.src=e),f[e]=[a];var l=(a,c)=>{t.onerror=t.onload=null,clearTimeout(s);var d=f[e];if(delete f[e],t.parentNode&&t.parentNode.removeChild(t),d&&d.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/Lunatic/docs/",r.gca=function(e){return e={17896441:"8401",45833858:"7675","4e1b86ca":"373","1ec6518c":"431",c901544c:"554","5e8c322a":"594",d48c2e32:"856","0e7a0dc8":"891",b6ce7557:"1215",a7456010:"1235","0ea626f8":"1585","4445d26b":"1648","2088de68":"1710",b968f49b:"1777","897040e0":"1812","7c0f0c82":"1930","4d072e10":"1936",f398cc77:"2369",f39704da:"2411","46db7f29":"2419","32530c60":"2633",a976e8d8:"2929","94c6a771":"3107","4fe25d84":"3371",f9cde7f6:"3553","6ef797bf":"3861",ccd161e0:"4024","8c14e59c":"4069","029f537f":"4459",f97e9514:"4717",af8b7c6f:"4762",ba2f5f01:"4796","835f525a":"4858","1067611d":"5021","6049a7bc":"5149","5ed7f5fe":"5474","6f0fe8bc":"5487",f9c40bd6:"5693",a66aaf29:"5711",aba21aa0:"5742","1d80a4d6":"5757","94f53d34":"5791","6e0c98ef":"5813","43f86adf":"5891","1f391b9e":"6061",fa29edc5:"6136","72b55bd9":"6255","0f175527":"6298",c3356e06:"6392","8fcf01ba":"6532","58e0c7b0":"6655",f8409a7e:"6903","14eb3368":"6969","85c3c79c":"7086",a7bd4aaa:"7098",e2699ac7:"7149","5e6898a4":"7159",a538f389:"7480",f7562109:"7737",d48ac471:"7871",d209f454:"7945",d1a1dfaa:"7984","2a2339b9":"8074","22544e41":"8120","3b33ea71":"8164","53eb1e5c":"8336",ea9b137c:"8346","69100af9":"8665",fed19d79:"8738","7a34fa89":"8804",c1574f21:"8818","9cb90f50":"8937",d8e663aa:"8969",a94703ab:"9048","0cb2ce6a":"9231","5c547149":"9385","5e95c892":"9647"}[e]||e,r.p+r.u(e)},(()=>{var e={5354:0,1869:0};r.f.j=(a,c)=>{var f=r.o(e,a)?e[a]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var d=new Promise(((c,d)=>f=e[a]=[c,d]));c.push(f[2]=d);var b=r.p+r.u(a),t=new Error;r.l(b,(c=>{if(r.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var d=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+d+": "+b+")",t.name="ChunkLoadError",t.type=d,t.request=b,f[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var f,d,b=c[0],t=c[1],o=c[2],n=0;if(b.some((a=>0!==e[a]))){for(f in t)r.o(t,f)&&(r.m[f]=t[f]);if(o)var i=o(r)}for(a&&a(c);n<b.length;n++)d=b[n],r.o(e,d)&&e[d]&&e[d][0](),e[d]=0;return r.O(i)},c=self.webpackChunkdocs=self.webpackChunkdocs||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})()})(); \ No newline at end of file diff --git "a/website/category/agr\303\251gateurs.html" "b/website/category/agr\303\251gateurs.html" new file mode 100644 index 000000000..f9c2985d3 --- /dev/null +++ "b/website/category/agr\303\251gateurs.html" @@ -0,0 +1,13 @@ +<!doctype html> +<html lang="fr" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page" data-has-hydrated="false"> +<head> +<meta charset="UTF-8"> +<meta name="generator" content="Docusaurus v3.6.3"> +<title data-rh="true">Agrégateurs | @inseefr/lunatic + + + + + + + \ No newline at end of file diff --git a/website/category/balisage.html b/website/category/balisage.html new file mode 100644 index 000000000..3d06c434e --- /dev/null +++ b/website/category/balisage.html @@ -0,0 +1,13 @@ + + + + + +Balisage | @inseefr/lunatic + + + + + + + \ No newline at end of file diff --git a/website/category/champs.html b/website/category/champs.html new file mode 100644 index 000000000..a89bc8c5a --- /dev/null +++ b/website/category/champs.html @@ -0,0 +1,13 @@ + + + + + +Champs | @inseefr/lunatic + + + + +

Champs

Ces composants permettent à l'utilisateur d'entrée des informations

+ + \ No newline at end of file diff --git a/website/category/composants.html b/website/category/composants.html new file mode 100644 index 000000000..e33d34d65 --- /dev/null +++ b/website/category/composants.html @@ -0,0 +1,13 @@ + + + + + +Composants | @inseefr/lunatic + + + + + + + \ No newline at end of file diff --git a/website/category/fonctionnement-interne.html b/website/category/fonctionnement-interne.html new file mode 100644 index 000000000..5d8ce50d3 --- /dev/null +++ b/website/category/fonctionnement-interne.html @@ -0,0 +1,13 @@ + + + + + +Fonctionnement interne | @inseefr/lunatic + + + + +
+ + \ No newline at end of file diff --git a/website/category/hook-uselunatic.html b/website/category/hook-uselunatic.html new file mode 100644 index 000000000..f7cce99a9 --- /dev/null +++ b/website/category/hook-uselunatic.html @@ -0,0 +1,13 @@ + + + + + +hook useLunatic() | @inseefr/lunatic + + + + + + + \ No newline at end of file diff --git a/website/changelog.html b/website/changelog.html new file mode 100644 index 000000000..4be04f0f7 --- /dev/null +++ b/website/changelog.html @@ -0,0 +1,98 @@ + + + + + +@inseefr/lunatic + + + + +

3.4.10

+

Correction de bugs

+
    +
  • CheckboxOne : il n'était plus possible de décocher la modalité sélectionnée
  • +
  • CheckboxGroup : la modalité "detail" était mal positionnée, et clic sur le champ de saisie décochait la modalité parent
  • +
  • le Provider fourni par le useLunatic se recalculait parfois à tord même si les paramètres n'avaient pas changé
  • +
+

3.4.9

+

Nouvelles fonctionnalités

+
    +
  • Input, InputNumber : lorsque la saisie dépasse la taille du champ, ajout d'un '...' lorsque le champ n'est pas focus pour améliorer la lisibilité
  • +
  • ajout d'un paramètre disableFilters dans le useLunatic pour permettre de désactiver tous les filtres au sein du questionnaire
  • +
  • ajout d'un paramètre detailAlwaysDisplayed dans le useLunatic pour permettre de toujours afficher les modalités de réponse "detail" (ex : "autre : préciser")
  • +
+

Correction de bugs

+
    +
  • Datepicker : la saisie d'une date au format YYYY-MM-DD avec une année sur 1 ou 2 digits était considérée invalide, et n'était donc pas enregistrée
  • +
+

3.4.8

+

Correction de bugs

+
    +
  • Suggester : les stopwords n'étaient plus pris en compte depuis la version 3.0.0
  • +
+

3.0.0

+

Nouvelles fonctionnalités

+
    +
  • Pairwise : Les liens symétriques sont déduits et seulement affichés.
  • +
  • Overview : Réorganisation du système d'overview avec prise en charge des boucles et ajout d'une propriété current.
  • +
  • Suggester +
      +
    • Changement du moteur d'indexation et de recherche en utilisant la librairie minisearch.
    • +
    • Il est maintenant possible d'ajouter une option arbitraire.
    • +
    +
  • +
  • Checkbox : Ajout de l'option "autre" dans les questions à choix unique/multiple
  • +
  • Ajout du support du type TXT pour les labels (sans expression VTL).
  • +
  • Création d'un composant Question.
  • +
  • Création d'un composant Text.
  • +
  • La feuille de style CSS de la librairie n'est plus importée par défaut.
  • +
+

Correction de bugs

+
    +
  • RosterForLoop : Il était possible de supprimer plus de lignes que le minimum spécifié.
  • +
+

Refactorisation

+
    +
  • Nettoyage de tous les composants et simplification de la personnalisation.
  • +
  • Correction de la faute d'orthographe sur l'état INPUTTED (INPUTED) des variables.
  • +
  • Typage plus précis du numéro de page (pager & pageTag).
  • +
  • Refactorisation des différents reducers, changement de handleChange pour handleChanges.
  • +
+

Build

+
    +
  • Suppression de Babel et Webpack pour le build, publication en ESM seulement (le build en CJS posait des problèmes à cause de l'utilisation d'ANTLR4 publié en ESM seulement).
  • +
  • Mise à jour globale des dépendances.
  • +
+

2.7.23

+
    +
  • hasPageResponse retourne false lorsque toutes les réponses d'une checkbox sont décochées.
  • +
+

2.7.22

+
    +
  • duration: le nombre d'heure max est 99
  • +
  • Correction de la dimension de variable calculées
  • +
+

2.7.4

+
    +
  • Capture les erreurs en cas d'expression VTL invalide
  • +
+

2.7.3

+
    +
  • Changement de la résolution des chemins des workers
  • +
  • Ajout de la commande npx @inseefr/lunatic workers pour copier les fichiers liés aux workers
  • +
+

2.7.2

+
    +
  • Datepicker utilise maintenant 3 champs au lieu du champ natif
  • +
  • Limite les valeurs dans le champ durée
  • +
  • Mise à jour storybook (version 7)
  • +
  • GLOBAL_ITERATION_INDEX est maintenant un entier
  • +
  • fix: Propriétés débordant sur les composants enfant d'un RosterForLoop
  • +
+

2.7.0

+
    +
  • Changement interne du système de stockage de variable et d'éxécution d'expression VTL.
  • +
+ + \ No newline at end of file diff --git a/website/components/aggregators/loop.html b/website/components/aggregators/loop.html new file mode 100644 index 000000000..cb14a2bcf --- /dev/null +++ b/website/components/aggregators/loop.html @@ -0,0 +1,39 @@ + + + + + +Loop | @inseefr/lunatic + + + + +

Loop

+

Le composant Loop (parfois appelé BlockForLoop) permet de créer une boucle permettant de poser une série de questions plusieurs fois (exemple: demander des informations sur plusieurs personnes).

+
    +
  • paginatedLoop, indique si la boucle doit être paginée ou non (defaut: false)
  • +
  • components, tableau contenant les composants enfant à cette boucle
  • +
+

Boucle non paginée

+

Une boucle non paginée présentera l'ensemble des champs les uns à la suite des autres.

+
    +
  • lines, permet le contrôle sur le nombre de lignes (ajouter / supprimer) +
      +
    • min, nombre minimal de lignes
    • +
    • max, nombre maximal de lignes
    • +
    +
  • +
+ +
{
"$schema": "../../../lunatic-schema.json",
"maxPage": "3",
"components": [
{
"id": "seq",
"componentType": "Sequence",
"label": {
"value": "\"Description des individus de votre logement\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "1"
},
{
"id": "loop-prenom",
"componentType": "Loop",
"label": {
"value": "\"Ajouter un individu\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM"
],
"lines": {
"min": {
"value": "1",
"type": "VTL"
},
"max": {
"value": "10",
"type": "VTL"
}
},
"page": "1",
"paginatedLoop": false,
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Prénom\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"PRENOM"
],
"id": "prenom",
"response": {
"name": "PRENOM"
}
},
{
"componentType": "InputNumber",
"label": {
"value": "\"Age\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"AGE"
],
"id": "Age",
"response": {
"name": "AGE"
}
}
]
},
{
"id": "seq-end",
"componentType": "Sequence",
"label": {
"value": "\"End\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "2"
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "PRENOM",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
},
{
"variableType": "COLLECTED",
"name": "AGE",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
}
]
}
Loading...
+

Boucle paginée

+

Une boucle paginée déclenchera un système de sous-navigation. Lorsque l'utilisateur arrive sur la page d'une boucle il sera automatiquement redirigé sur la première sous page.

+
    +
  • iterations, expression VTL permettant de calculer le nombre d'itérations à effectuer
  • +
  • maxPage, numéro de la dernière sous page
  • +
+
info

Les composants dans le tableau components devront avoir un numéro de page préfixé par la page de cette boucle, ex: 3.1)

+ +
{
"$schema": "../../../lunatic-schema.json",
"maxPage": "3",
"components": [
{
"id": "seq",
"componentType": "Sequence",
"label": {
"value": "\"Description des individus de votre logement\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "1"
},
{
"id": "loop-prenom",
"componentType": "Loop",
"label": {
"value": "\"Ajouter un individu\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM"
],
"lines": {
"min": {
"value": "1",
"type": "VTL"
},
"max": {
"value": "10",
"type": "VTL"
}
},
"page": "1",
"paginatedLoop": false,
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Prénom\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"PRENOM"
],
"id": "prenom",
"response": {
"name": "PRENOM"
}
}
]
},
{
"id": "loop",
"componentType": "Loop",
"loopDependencies": [
"PRENOM"
],
"iterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"page": "2",
"maxPage": "1",
"depth": 1,
"paginatedLoop": true,
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"components": [
{
"id": "age",
"label": {
"value": "PRENOM || \", quel est vôtre âge ?\"",
"type": "VTL"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "2.1",
"componentType": "InputNumber",
"min": 0,
"max": 120,
"decimals": 0,
"response": {
"name": "AGE"
}
}
]
},
{
"id": "seq-end",
"componentType": "Sequence",
"label": {
"value": "\"End\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "3"
}
],
"resizing": {
"PRENOM": {
"size": "count(PRENOM)",
"variables": [
"AGE"
]
}
},
"variables": [
{
"variableType": "COLLECTED",
"name": "PRENOM",
"values": {
"PREVIOUS": null,
"COLLECTED": [
"John",
"Jane"
],
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "AGE",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/aggregators/pairwise.html b/website/components/aggregators/pairwise.html new file mode 100644 index 000000000..94f2a7b50 --- /dev/null +++ b/website/components/aggregators/pairwise.html @@ -0,0 +1,39 @@ + + + + + +PairwiseLinks | @inseefr/lunatic + + + + +

PairwiseLinks

+

Le composant lien 2 à 2 permet de définir des relations bidirectionnelles entre les données.

+
    +
  • xAxisIterations, nombre d'éléments sur le premier axe
  • +
  • yAxisIterations, nombre d'éléments sur le second axe
  • +
  • components, liste des questions à poser pour chaque combinaison possible
  • +
  • symLinks, définit la relation bidirectionnelle entre les données
  • +
+ +

L'option symLinks va permettre d'indiquer la valeur inverse à une valeur sélectionnée. Si on prend l'exemple d'un sélect avec 3 valeurs

+
{
"symLinks": {
"LINKS": {
"époux": "époux",
"fils": "parent",
"parent": "fils"
}
}
}
+

De cette manière lorsqu'on indiquera que X est "fils" de Y, le système changera aussi la relation inverse pour indiquer que Y est "parent" de X.

+

xAxis et yAxis

+

Lorsque le pairwise est utilisé, 2 variables calculées vont agir de manière spéciale afin de pouvoir renvoyer les bonnes indications à l'utilisateur : xAxis et yAxis.

+
[
{
"variableType": "CALCULATED",
"name": "xAxis",
"expression": { "value": "PRENOM", "type": "VTL" },
"bindingDependencies": ["PRENOM"]
},
{
"variableType": "CALCULATED",
"name": "yAxis",
"expression": { "value": "PRENOM", "type": "VTL" },
"bindingDependencies": ["PRENOM"]
}
]
+

Si ces variables sont utilisées dans une expression d'un composant du pairwise, le système de calcul ira piocher l'élément au bon index.

+
{
"label": {
"value": "\"Qui est \" || yAxis || \" pour \" || xAxis || \" ?\"",
"type": "VTL|MD"
}
}
+ +
{
"maxPage": "5",
"components": [
{
"id": "seq",
"componentType": "Sequence",
"label": {
"value": "\"Description des individus de votre logement\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "1"
},
{
"id": "loop-prenom",
"componentType": "RosterForLoop",
"label": {
"value": "\"Ajouter un individu\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM"
],
"lines": {
"min": {
"value": "1",
"type": "VTL"
},
"max": {
"value": "10",
"type": "VTL"
}
},
"page": "1",
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Prénom\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"PRENOM"
],
"id": "prenom",
"response": {
"name": "PRENOM"
}
}
]
},
{
"id": "age-loop",
"componentType": "Loop",
"paginatedLoop": true,
"iterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"page": "2",
"maxPage": "1",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"loopDependencies": [
"PRENOM"
],
"components": [
{
"id": "age-quest",
"label": {
"value": "\"Âge de \" || PRENOM",
"type": "VTL|MD"
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"componentType": "InputNumber",
"page": "2.1",
"response": {
"name": "AGE"
}
}
]
},
{
"id": "pairwise-links",
"componentType": "PairwiseLinks",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"xAxisIterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"yAxisIterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"page": "3",
"symLinks": {
"LINKS": {
"1": "1",
"2": "3",
"3": "2",
"4": "4",
"5": "6",
"6": "5",
"7": "8",
"8": "7",
"9": "10",
"10": "9",
"11": "13",
"12": "12",
"13": "11",
"14": null,
"15": "15",
"16": "16",
"17": "17",
"18": "18"
}
},
"components": [
{
"componentType": "Dropdown",
"id": "dropdown-1",
"conditionFilter": {
"value": "xAxis <> yAxis",
"type": "VTL"
},
"label": {
"value": "\"Qui est \" || yAxis || \" pour \" || xAxis || \" ?\"",
"type": "VTL|MD"
},
"response": {
"name": "LINKS"
},
"options": [
{
"value": "1",
"label": {
"value": "\"Son conjoint, sa conjointe\"",
"type": "VTL"
}
},
{
"value": "2",
"label": {
"value": "\"Sa mère, son père\"",
"type": "VTL"
}
},
{
"value": "3",
"label": {
"value": "\"Sa fille, son fils\"",
"type": "VTL"
}
},
{
"value": "4",
"label": {
"value": "\"Sa soeur, son frère (y compris demi et quasi)\"",
"type": "VTL"
}
},
{
"value": "5",
"label": {
"value": "\"Sa belle-mère, son beau-père (conjoint.e d'un des parents)\"",
"type": "VTL"
}
},
{
"value": "6",
"label": {
"value": "\"L'enfant du conjoint (belle-fille, beau-fils)\"",
"type": "VTL"
}
},
{
"value": "7",
"label": {
"value": "\"Sa belle-mère, son beau-père (parent du conjoint)\"",
"type": "VTL"
}
},
{
"value": "8",
"label": {
"value": "\"Sa belle-fille, son beau-fils (conjoint.e d'un enfant)\"",
"type": "VTL"
}
},
{
"value": "9",
"label": {
"value": "\"Sa grand-mère, son grand-père\"",
"type": "VTL"
}
},
{
"value": "10",
"label": {
"value": "\"Sa petite-fille, petit-fils\"",
"type": "VTL"
}
},
{
"value": "11",
"label": {
"value": "\"Sa tante, son oncle\"",
"type": "VTL"
}
},
{
"value": "12",
"label": {
"value": "\"Sa cousine, son cousin\"",
"type": "VTL"
}
},
{
"value": "13",
"label": {
"value": "\"Sa nièce, son neveu\"",
"type": "VTL"
}
},
{
"value": "14",
"label": {
"value": "\"Un enfant placé en famille d'accueil\"",
"type": "VTL"
}
},
{
"value": "15",
"label": {
"value": "\"Sa belle-soeur, son beau-frère\"",
"type": "VTL"
}
},
{
"value": "16",
"label": {
"value": "\"Un autre lien familial\"",
"type": "VTL"
}
},
{
"value": "17",
"label": {
"value": "\"Un colocataire, sous-locataire\"",
"type": "VTL"
}
},
{
"value": "18",
"label": {
"value": "\"Autre lien (employé de maison, salarié logé, jeune au pair …)\"",
"type": "VTL"
}
}
]
},
{
"componentType": "Textarea",
"label": {
"value": "\"Pouvez-vous décrire le lien entre \" || xAxis || \" et \" || yAxis || \" ?\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "LINKS = \"17\"",
"type": "VTL"
},
"id": "other",
"response": {
"name": "OTHER"
}
}
]
},
{
"id": "pariwise-block",
"componentType": "Loop",
"paginatedLoop": true,
"iterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"page": "4",
"maxPage": "1",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"loopDependencies": [
"PRENOM"
],
"components": [
{
"componentType": "Textarea",
"page": "4.1",
"label": {
"value": "PRENOM || \", why do you live without your parents?\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "\"3\" not_in LINKS and AGE < 18",
"type": "VTL"
},
"id": "why",
"response": {
"name": "WHY"
}
}
]
},
{
"componentType": "Sequence",
"label": {
"type": "VTL",
"value": "\"END\""
},
"page": "5",
"id": "end"
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "PRENOM",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
},
{
"variableType": "COLLECTED",
"name": "AGE",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
},
{
"variableType": "COLLECTED",
"name": "LINKS",
"values": {
"PREVIOUS": [
[
null
]
],
"COLLECTED": [
[
null
]
],
"FORCED": [
[
null
]
],
"EDITED": [
[
null
]
],
"INPUTTED": [
[
null
]
]
}
},
{
"variableType": "COLLECTED",
"name": "OTHER",
"values": {
"PREVIOUS": [
[
null
]
],
"COLLECTED": [
[
null
]
],
"FORCED": [
[
null
]
],
"EDITED": [
[
null
]
],
"INPUTTED": [
[
null
]
]
}
},
{
"variableType": "COLLECTED",
"name": "WHY",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
},
{
"variableType": "CALCULATED",
"name": "xAxis",
"expression": {
"value": "PRENOM",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM"
],
"shapeFrom": "PRENOM",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"name": "yAxis",
"expression": {
"value": "PRENOM",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM"
],
"shapeFrom": "PRENOM",
"inFilter": "false"
}
],
"resizing": {
"PRENOM": {
"sizeForLinksVariables": [
"count(PRENOM)",
"count(PRENOM)"
],
"linksVariables": [
"LINKS"
]
}
}
}
Loading...
+

Format des données

+

Les données sont sauvegardées sous forme d'un tableau à 2 dimensions

+
x \ yMamanPapaFils
Maman
Papa
Fils
+

Si on souhaite indiquer la rélation Parent (valeur "2") et enfant (valeur "3"). +En suivant la question "qui est Y pour X ?" le tableau sera complété de la manière suivante.

+
x \ yMamanPapaFils
Maman3
Papa3
Fils22
+

Ce qui donnera ce tableau en JavaScript

+
[
[null, null, "3" ],
[null, null, "3" ],
["2", "2", null]
]
+ + \ No newline at end of file diff --git a/website/components/aggregators/rosterForLoop.html b/website/components/aggregators/rosterForLoop.html new file mode 100644 index 000000000..8ab137ce9 --- /dev/null +++ b/website/components/aggregators/rosterForLoop.html @@ -0,0 +1,28 @@ + + + + + +RosterForLoop | @inseefr/lunatic + + + + +

RosterForLoop

+

Le composant RosterForLoop fonctionne comme une boucle non paginée mais présente les différents champs dans un tableau.

+
    +
  • components, tableau contenant les composants enfant à cette boucle
  • +
  • lines, permet le contrôle sur le nombre de lignes (ajouter / supprimer) +
      +
    • min, nombre minimal de lignes
    • +
    • max, nombre maximal de lignes
    • +
    +
  • +
  • headers, définit l'en-tête du tableau (optionel)
  • +
+ +Voir le type + +
{
"$schema": "../../../lunatic-schema.json",
"maxPage": "3",
"components": [
{
"id": "seq",
"componentType": "Sequence",
"label": {
"value": "\"Description des individus de votre logement\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "1"
},
{
"id": "loop-prenom",
"componentType": "RosterForLoop",
"header": [
{
"headerCell": true,
"label": {
"value": "",
"type": "TXT"
}
},
{
"headerCell": true,
"label": {
"value": "Prénom",
"type": "TXT"
}
},
{
"headerCell": true,
"label": {
"value": "Age",
"type": "TXT"
}
}
],
"label": {
"value": "\"Ajouter un individu\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"bindingDependencies": [
"PRENOM",
"AGE"
],
"lines": {
"min": {
"value": "1",
"type": "VTL"
},
"max": {
"value": "10",
"type": "VTL"
}
},
"page": "1",
"components": [
{
"componentType": "Text",
"label": {
"value": "\"Individu \" || cast(GLOBAL_ITERATION_INDEX, string)",
"type": "VTL"
}
},
{
"componentType": "Input",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"PRENOM"
],
"id": "prenom",
"response": {
"name": "PRENOM"
}
},
{
"componentType": "Input",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"bindingDependencies": [
"AGE"
],
"id": "age",
"response": {
"name": "AGE"
}
}
]
},
{
"id": "loop",
"componentType": "Loop",
"loopDependencies": [
"PRENOM"
],
"iterations": {
"value": "count(PRENOM)",
"type": "VTL"
},
"page": "2",
"maxPage": "1",
"depth": 1,
"paginatedLoop": true,
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"components": [
{
"id": "age",
"label": {
"value": "PRENOM || \", quel est vôtre âge ?\"",
"type": "VTL"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "2.1",
"componentType": "InputNumber",
"min": 0,
"max": 120,
"decimals": 0,
"response": {
"name": "AGE"
}
}
]
},
{
"id": "seq-end",
"componentType": "Sequence",
"label": {
"value": "\"End\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "3"
}
],
"resizing": {
"PRENOM": {
"size": "count(PRENOM)",
"variables": [
"AGE"
]
}
},
"variables": [
{
"variableType": "COLLECTED",
"name": "PRENOM",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
},
{
"variableType": "COLLECTED",
"name": "AGE",
"values": {
"PREVIOUS": [
null
],
"COLLECTED": [
null
],
"FORCED": [
null
],
"EDITED": [
null
],
"INPUTTED": [
null
]
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/aggregators/roundabout.html b/website/components/aggregators/roundabout.html new file mode 100644 index 000000000..16a3ee5d7 --- /dev/null +++ b/website/components/aggregators/roundabout.html @@ -0,0 +1,37 @@ + + + + + +Roundabout | @inseefr/lunatic + + + + +

Roundabout

+

Ce composant se comporte comme une boucle avec une page carrefour qui permet de sauter à n'importe quelle itération.

+
    +
  • components, tableau contenant les composants enfant à cette boucle
  • +
  • iterations, expression VTL permettant de calculer le nombre d'itérations
  • +
  • expressions, un objet contenant les différents libellés à afficher pour chaque élément du rond point +
      +
    • unnecessary, condition d'affichage du libellé "Non concerné" sur le bouton (expression VTL)
    • +
    • complete, condition d'affichage du libellé "Complété" sur le bouton (expression VTL)
    • +
    • partial, condition d'affichage du libellé "Modifier" sur le bouton (expression VTL)
    • +
    • label, libellé à afficher au dessus du bouton (expression VTL)
    • +
    +
  • +
+ +Voir le type + +
{
"maxPage": "4",
"components": [
{
"id": "how",
"componentType": "InputNumber",
"mandatory": false,
"page": "1",
"min": 1,
"max": 10,
"decimals": 0,
"label": {
"value": "\"Combien de personnes vivent habituellement à votre adresse ?\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "NB_HAB"
}
},
{
"id": "loop",
"componentType": "Loop",
"page": "2",
"depth": 1,
"paginatedLoop": false,
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"loopDependencies": [
"NHAB"
],
"lines": {
"min": {
"value": "NB_HAB",
"type": "VTL"
},
"max": {
"value": "NB_HAB",
"type": "VTL"
}
},
"components": [
{
"id": "prenom",
"componentType": "Input",
"mandatory": false,
"maxLength": 20,
"label": {
"value": "\"Prénom\"))",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "PRENOMS"
}
},
{
"id": "age",
"componentType": "InputNumber",
"maxLength": 3,
"label": {
"value": "\"Age\"))",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "AGE"
}
}
]
},
{
"id": "roundabout",
"componentType": "Roundabout",
"page": "3",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"iterations": {
"value": "NB_HAB",
"type": "VTL"
},
"label": {
"value": "\"Libellé du rondpoint\"",
"type": "VTL"
},
"locked": true,
"progressVariable": "PROGRESS",
"item": {
"label": {
"value": "\"Questions de \" || PRENOMS",
"type": "VTL"
},
"description": {
"value": "if AGE > 18 then \"Aller aux question destinées à \" || PRENOMS else PRENOMS || \" n'est pas majeur, il/elle n'a pas à répondre aux questions\"",
"type": "VTL"
},
"disabled": {
"value": "AGE < 18",
"type": "VTL"
}
},
"controls": [],
"components": [
{
"id": "radio",
"componentType": "Radio",
"mandatory": false,
"page": "3.1",
"label": {
"value": "\"Connaissez-vous le recensement de la population ?\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"options": [
{
"value": "1",
"label": {
"value": "\"oui\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"label": {
"value": "\"non\"",
"type": "VTL|MD"
}
}
],
"response": {
"name": "KNOWREC"
}
},
{
"id": "jsygk7m7",
"componentType": "Subsequence",
"page": "3.2",
"label": {
"value": "\"Deuxième page de questions pour \"|| PRENOMS",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
}
},
{
"id": "sexe",
"componentType": "Radio",
"page": "3.2",
"label": {
"value": "\"Sexe\"",
"type": "VTL"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"options": [
{
"value": "1",
"label": {
"value": "\"Homme\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"label": {
"value": "\"Femme\"",
"type": "VTL|MD"
}
}
],
"response": {
"name": "SEXE"
}
},
{
"id": "jsygk7m7",
"componentType": "Subsequence",
"page": "3.3",
"label": {
"value": "\"Troisième page de questions \" || PRENOMS",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
}
},
{
"id": "kmno1n7m",
"componentType": "Input",
"maxLength": 30,
"page": "3.3",
"label": {
"value": "\"Dites quelque chose.\"))",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "SOMETHING"
}
}
]
},
{
"id": "seq",
"componentType": "Sequence",
"label": {
"value": "\"Merci !\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"page": "4"
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NB_HAB",
"values": {
"PREVIOUS": null,
"COLLECTED": 2,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "SOMETHING",
"values": {
"PREVIOUS": [],
"COLLECTED": [],
"FORCED": [],
"EDITED": [],
"INPUTTED": []
}
},
{
"variableType": "COLLECTED",
"name": "AGE",
"values": {
"PREVIOUS": null,
"COLLECTED": [
15,
15
],
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "SEXE",
"values": {
"PREVIOUS": [],
"COLLECTED": [],
"FORCED": [],
"EDITED": [],
"INPUTTED": []
}
},
{
"variableType": "COLLECTED",
"name": "PRENOMS",
"values": {
"PREVIOUS": null,
"COLLECTED": [
"Fanny",
"Ines"
],
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "KNOWREC",
"values": {
"PREVIOUS": [],
"COLLECTED": [],
"FORCED": [],
"EDITED": [],
"INPUTTED": []
}
},
{
"variableType": "COLLECTED",
"name": "PROGRESS",
"values": {
"PREVIOUS": [],
"COLLECTED": [],
"FORCED": [],
"EDITED": [],
"INPUTTED": []
}
},
{
"variableType": "CALCULATED",
"name": "PRENOMREF",
"expression": {
"value": "first_value(PRENOMS over())",
"type": "VTL"
},
"bindingDependencies": [
"PRENOMS"
],
"inFilter": "true"
},
{
"variableType": "CALCULATED",
"name": "COMPLETE",
"expression": {
"value": "not(isnull(KNOWREC)) and not(isnull(SEXE)) and not(isnull(SOMETHING))",
"type": "VTL"
},
"bindingDependencies": [
"KNOWREC",
"SEXE",
"SOMETHING"
],
"shapeFrom": "PRENOMS",
"inFilter": "true"
},
{
"variableType": "CALCULATED",
"name": "PARTIAL",
"expression": {
"value": "not(isnull(KNOWREC)) or not(isnull(SEXE)) or not(isnull(SOMETHING))",
"type": "VTL"
},
"bindingDependencies": [
"KNOWREC",
"SEXE",
"SOMETHING"
],
"shapeFrom": "PRENOMS",
"inFilter": "true"
}
],
"resizing": {
"NB_HAB": {
"size": "NB_HAB",
"variables": [
"PRENOMS",
"AGE",
"SEXE",
"SOMETHING",
"DATNAIS"
]
}
}
}
Loading...
+ +

Si le rond-point ne contient qu'un seul élément, il se comporte alors comme une boucle paginée. En revanche s'il a plus d'un élément certains comportement changent par rapport à une boucle paginée.

+
    +
  • Lors de l'arrivée sur le rond-point, on n'est pas redirigé automatiquement sur la première itération. On propose à l'utilisateur de choisir l'itération sur laquelle il souhaite aller.
  • +
  • À la fin d'une séquence, on n'est pas amené à l'itération suivante, on revient à la page d'accueil du rond-point.
  • +
+

Ce comportement fonctionne dans les 2 sens de navigation.

+ + \ No newline at end of file diff --git a/website/components/base.html b/website/components/base.html new file mode 100644 index 000000000..a687d957d --- /dev/null +++ b/website/components/base.html @@ -0,0 +1,44 @@ + + + + + +Propriétés de base | @inseefr/lunatic + + + + +

Propriétés de base

+ +

Les champs qui composent un formulaire Lunatic sont définis dans la propriété components du fichier source JSON. Certaines propriétés sont communes à tous les composants :

+
    +
  • label, permet de définir le libellé affiché au-dessus du champ
  • +
  • description, permet de définir un texte à afficher sous le libellé
  • +
  • conditionFilter, permet de définir une condition d'affichage (sous forme d'expression VTL) qui devra renvoyer true pour que le composant soit affiché lorsque l'on navigue sur la bonne page.
  • +
  • id, clef unique permettant d'identifier le champ
  • +
  • bindingDependencies, liste des variables qui affectent la présentation des champs
  • +
  • mandatory, précise si le champ doit être rempli par l'utilisateur (optionnel, se traduit par l'attribut required au niveau HTML)
  • +
  • page, page dans lequel le champ doit être présenté
  • +
+

Pour les composants qui permettent une entrée utilisateur des propriétés supplémentaires sont disponibles :

+
    +
  • response, objet avec une propriété name permettant de définir dans quelle variable sera sauvegardée la valeur associée (exemple {"name": "PRENOM"})
  • +
  • readOnly, permet de mettre le champ en lecture seul (optionnel, expression VTL).
  • +
  • disabled, permet de désactiver le champ (il n'est plus focusable) (optionnel, expression VTL).
  • +
+Voir le type +

Déclarations Voir le type

+
    +
  • declarations, permettent d'ajouter du texte autour des composants.
  • +
+ +
{
"$schema": "../../../lunatic-schema.json",
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Prénom de l'occupant principal.\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"page": "1",
"id": "name",
"response": {
"name": "PRENOM"
},
"declarations": [
{
"id": "kb9hi4j0-krnoclfe",
"declarationType": "INSTRUCTION",
"position": "BEFORE_QUESTION_TEXT",
"label": {
"value": "\"BEFORE_QUESTION_TEXT\"",
"type": "VTL|MD"
}
},
{
"id": "jruq5os5-kqhuxnyt",
"declarationType": "COMMENT",
"position": "AFTER_QUESTION_TEXT",
"label": {
"value": "\"AFTER_QUESTION_TEXT\"",
"type": "VTL|MD"
}
},
{
"id": "jruq5os5-kqhuxnyt",
"declarationType": "HELP",
"position": "AFTER_RESPONSE",
"label": {
"value": "\"AFTER_RESPONSE\"",
"type": "VTL|MD"
}
},
{
"id": "jruq5os5-kqhuxnyt",
"declarationType": "CODECARD",
"position": "DETACHABLE",
"label": {
"value": "\"DETACHABLE\"",
"type": "VTL|MD"
}
}
]
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NOM",
"componentRef": "name",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PRENOM",
"componentRef": "name",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+

Contrôles Voir le type

+
    +
  • controls, définit les contrôles de validation à effectuer sur la valeur des champs.
  • +
+
info

Les contrôles n'ont aucun effet dans Lunatic directement, c'est à l'orchestrateur d'agir comme il le souhaite en utilisant la méthode compileControls() cf.

+ +
{
"$schema": "../../../../lunatic-schema.json",
"variables": [
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "COMMENT_QE"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTSURBOO"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTTEXTE"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTCODE"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTDATEA"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTDATEB"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "TESTDATEC"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTSURBOO",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTTEXTE",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTCODE",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTDATEA",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTDATEB",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TESTDATEC",
"inFilter": "false"
}
],
"components": [
{
"componentType": "Sequence",
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
},
{
"componentType": "CheckboxBoolean",
"bindingDependencies": [
"TESTSURBOO"
],
"controls": [
{
"bindingDependencies": [
"TESTSURBOO"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"booleen pas coché et on affiche un message un peu long histoire de tester le truc \""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTSURBOO,false) = false)"
},
"id": "kfxmjupm-CI-0"
},
{
"bindingDependencies": [
"TESTSURBOO"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"On a coché le booleen et on met une phrase un peu longue car on veut tester ce qui s’affiche\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTSURBOO,false) = true)"
},
"id": "kfxmjupm-CI-1"
}
],
"response": {
"name": "TESTSURBOO"
},
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "kfxmjupm",
"page": "2",
"label": {
"type": "VTL|MD",
"value": "\"➡ 1. \" || \"Controle sur booleen\""
},
"mandatory": false
},
{
"componentType": "Input",
"bindingDependencies": [
"TESTTEXTE"
],
"controls": [
{
"bindingDependencies": [
"TESTTEXTE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"a ne peut pas valoir BLABLA\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTTEXTE,\"\") = \"BLABLA\")"
},
"id": "kfxn6f16-CI-0"
},
{
"bindingDependencies": [
"TESTTEXTE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Cette phrase un peu longue s’affiche si on a du vide pour la variable sur le texte inférieur à 255 caractères et voilà\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(isnull(TESTTEXTE))"
},
"id": "kfxn6f16-CI-1"
}
],
"response": {
"name": "TESTTEXTE"
},
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "kfxn6f16",
"page": "3",
"label": {
"type": "VTL|MD",
"value": "\"➡ 2. \" || \"Controle sur du texte < 255\""
},
"mandatory": false,
"maxLength": 15,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxn6f16-kfxn36ru",
"label": {
"type": "VTL|MD",
"value": "\"Tester la saisie de BLABLA\""
},
"position": "AFTER_QUESTION_TEXT"
}
]
},
{
"componentType": "CheckboxOne",
"bindingDependencies": [
"TESTCODE"
],
"controls": [
{
"bindingDependencies": [
"TESTCODE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La variable vaut 1\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTCODE,\"\") = \"1\")"
},
"id": "kfxn91jl-CI-0"
},
{
"bindingDependencies": [
"TESTCODE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La variable ne vaut pas 1 et n’est pas vide\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTCODE,\"\") <> \"1\" and not(isnull(TESTCODE)))"
},
"id": "kfxn91jl-CI-1"
},
{
"bindingDependencies": [
"TESTCODE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La variable est vide\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(isnull(TESTCODE))"
},
"id": "kfxn91jl-CI-2"
}
],
"response": {
"name": "TESTCODE"
},
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"options": [
{
"label": {
"type": "VTL|MD",
"value": "Code 1"
},
"value": "1"
},
{
"label": {
"type": "VTL|MD",
"value": "Code 2"
},
"value": "2"
},
{
"label": {
"type": "VTL|MD",
"value": "Code 3"
},
"value": "3"
}
],
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "kfxn91jl",
"page": "4",
"label": {
"type": "VTL|MD",
"value": "\"➡ 3. \" || \"Controle sur code\""
},
"mandatory": false,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxn91jl-kfxn7ugm",
"label": {
"type": "VTL|MD",
"value": "\"Tester cocher 1, ne rien cocher, cocher 2\""
},
"position": "AFTER_QUESTION_TEXT"
}
]
},
{
"componentType": "Datepicker",
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date saisie doit être comprise entre 1990-12-31 et 2040-12-31.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(TESTDATEA)) and (cast(TESTDATEA, date, \"YYYY-MM-DD\")>cast(\"2040-12-31\", date, \"YYYY-MM-DD\") or cast(TESTDATEA, date, \"YYYY-MM-DD\")<cast(\"1990-12-31\", date, \"YYYY-MM-DD\")))"
},
"id": "kfxnfv4l-formatborne"
},
{
"bindingDependencies": [
"TESTDATEA"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Date supérieure à date du jour\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(cast(TESTDATEA,date,\"YYYY-MM-DD\") > cast(current_date(), date, \"YYYY-MM-DD\"))"
},
"id": "kfxnfv4l-CI-0"
}
],
"max": "2040-12-31",
"dateFormat": "YYYY-MM-DD",
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"label": {
"type": "VTL|MD",
"value": "\"➡ 4. \" || \"Controle sur date AAAA-MM-JJ (saisie entre 31/12/1990 et 31/12/2040)\""
},
"mandatory": false,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxnfv4l-kfxnywlg",
"label": {
"type": "VTL|MD",
"value": "saisir une date > date du jour"
},
"position": "AFTER_QUESTION_TEXT"
},
{
"declarationType": "HELP",
"id": "kfxnfv4l-kzgvf7oe",
"label": {
"type": "VTL|MD",
"value": "cast(TESTDATEA,string)"
},
"position": "AFTER_QUESTION_TEXT"
}
],
"bindingDependencies": [
"TESTDATEA"
],
"min": "1990-12-31",
"response": {
"name": "TESTDATEA"
},
"id": "kfxnfv4l",
"page": "5"
},
{
"componentType": "Datepicker",
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date saisie doit être comprise entre 2010-01 et 2030-12.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(TESTDATEB)) and (cast(TESTDATEB, date, \"YYYY-MM\")>cast(\"2030-12\", date, \"YYYY-MM\") or cast(TESTDATEB, date, \"YYYY-MM\")<cast(\"2010-01\", date, \"YYYY-MM\")))"
},
"id": "kfxnqc6m-formatborne"
},
{
"bindingDependencies": [
"TESTDATEB"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date est supérieure au 12 2010\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(TESTDATEB != '' and TESTDATEB > '2010-12')"
},
"id": "kfxnqc6m-CI-0"
}
],
"max": "2030-12",
"dateFormat": "YYYY-MM",
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"label": {
"type": "VTL|MD",
"value": "\"➡ 5. \" || \"Controle sur date AAAA-MM (manque lunatic)\""
},
"mandatory": false,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxnqc6m-kfxni8ox",
"label": {
"type": "VTL|MD",
"value": "Date entre 01-2010 et 12-2030"
},
"position": "AFTER_QUESTION_TEXT"
}
],
"bindingDependencies": [
"TESTDATEB"
],
"min": "2010-01",
"response": {
"name": "TESTDATEB"
},
"id": "kfxnqc6m",
"page": "6"
},
{
"componentType": "Datepicker",
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date saisie doit être comprise entre 2010 et 2030.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(TESTDATEC)) and (cast(TESTDATEC, date, \"YYYY\")>cast(\"2030\", date, \"YYYY\") or cast(TESTDATEC, date, \"YYYY\")<cast(\"2010\", date, \"YYYY\")))"
},
"id": "kfxnk34d-formatborne"
},
{
"bindingDependencies": [
"TESTDATEC"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date est supérieure a 2020\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(TESTDATEC > '2020' and TESTDATEC != '')"
},
"id": "kfxnk34d-CI-0"
}
],
"max": "2030",
"dateFormat": "YYYY",
"hierarchy": {
"sequence": {
"id": "kfxmfvwj",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"TEST SUR BOOLEEN CODE DATE ET TEXTE\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"label": {
"type": "VTL|MD",
"value": "\"➡ 6. \" || \"Controle sur date AAAA (si supérieur à 2020) manque lunatic\""
},
"mandatory": false,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxnk34d-kfxnk172",
"label": {
"type": "VTL|MD",
"value": "saisir une date > 2020"
},
"position": "AFTER_QUESTION_TEXT"
}
],
"bindingDependencies": [
"TESTDATEC"
],
"min": "2010",
"response": {
"name": "TESTDATEC"
},
"id": "kfxnk34d",
"page": "7"
},
{
"componentType": "Sequence",
"hierarchy": {
"sequence": {
"id": "COMMENT-SEQ",
"page": "8",
"label": {
"type": "VTL|MD",
"value": "\"Commentaire\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "COMMENT-SEQ",
"page": "8",
"label": {
"type": "VTL|MD",
"value": "\"Commentaire\""
}
},
{
"componentType": "Textarea",
"bindingDependencies": [
"COMMENT_QE"
],
"response": {
"name": "COMMENT_QE"
},
"hierarchy": {
"sequence": {
"id": "COMMENT-SEQ",
"page": "8",
"label": {
"type": "VTL|MD",
"value": "\"Commentaire\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "COMMENT-QUESTION",
"page": "9",
"label": {
"type": "VTL|MD",
"value": "\"Avez-vous des remarques concernant l'enquête ou des commentaires ?\""
},
"mandatory": false,
"maxLength": 2000
}
],
"pagination": "question",
"lunaticModelVersion": "2.2.14-rc",
"modele": "QTESTCONTNONNUM",
"enoCoreVersion": "2.3.10-controls-type",
"generatingDate": "06-09-2022 13:01:32",
"missing": false,
"id": "kzguw1v7",
"label": {
"type": "VTL|MD",
"value": "QNONREG Controles Non Numériques VTL"
},
"maxPage": "9"
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/decorations/filter-description.html b/website/components/decorations/filter-description.html new file mode 100644 index 000000000..7f61a8c2c --- /dev/null +++ b/website/components/decorations/filter-description.html @@ -0,0 +1,20 @@ + + + + + +FilterDescription | @inseefr/lunatic + + + + +

FilterDescription

+

Le composant FilterDescription permet de d'ajouter du contexte à un filtre. Cet élément n'a pas vocation à être utilisé dans la version web des formulaires et ne sera donc jamais retourné dans la liste des composants.

+

Pourquoi ?

+

Dans le contexte d'une enquête papier ce champ permet d'indiquer à l'utilisateur la marche à suivre en fonction de sa réponse à une question précédente. Par exemple :

+
+

Si vous avez plus de 18 ans, passez à la page 3

+
+

Mais dans le cas d'une version interactive cette précision n'a pas lieu d'être, car le système va automatiquement faire la redirection.

+ + \ No newline at end of file diff --git a/website/components/decorations/question.html b/website/components/decorations/question.html new file mode 100644 index 000000000..5e27266fd --- /dev/null +++ b/website/components/decorations/question.html @@ -0,0 +1,16 @@ + + + + + +Question | @inseefr/lunatic + + + + +

Question

+

Le composant Question entoure une question en lui donnant un contexte supplémentaire avec un titre une description et des déclarations.

+ +
{
"$schema": "../../../lunatic-schema.json",
"pagination": "question",
"maxPage": "2",
"variables": [
{
"variableType": "COLLECTED",
"name": "TESTTEXTE",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "QNUM",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
],
"components": [
{
"componentType": "Question",
"id": "idQuestion",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"Question\""
},
"description": {
"type": "VTL|MD",
"value": "\"Description de la question\""
},
"declarations": [
{
"declarationType": "HELP",
"id": "idQuestion-help1",
"label": {
"type": "VTL|MD",
"value": "\"Contenu de la première déclaration avant (contexte)\""
},
"position": "BEFORE_QUESTION_TEXT"
},
{
"declarationType": "HELP",
"id": "idQuestion-help2",
"label": {
"type": "VTL|MD",
"value": "\"Contenu de la deuxième déclaration avant (contexte)\""
},
"position": "BEFORE_QUESTION_TEXT"
},
{
"declarationType": "HELP",
"id": "idQuestion-help3",
"label": {
"type": "VTL|MD",
"value": "\"Contenu de la première déclaration après (Information)\""
},
"position": "AFTER_QUESTION_TEXT"
},
{
"declarationType": "HELP",
"id": "idQuestion-help4",
"label": {
"type": "VTL|MD",
"value": "\"Contenu de la deuxième déclaration après (Information)\""
},
"position": "AFTER_QUESTION_TEXT"
}
],
"components": [
{
"componentType": "Input",
"bindingDependencies": [
"TESTTEXTE"
],
"controls": [
{
"bindingDependencies": [
"TESTTEXTE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"L'input ne peut pas valoir BLABLA\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(nvl(TESTTEXTE,\"\") = \"BLABLA\")"
},
"id": "kfxn6f16-CI-0"
},
{
"bindingDependencies": [
"TESTTEXTE"
],
"criticality": "WARN",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Cette phrase un peu longue s’affiche si on a du vide pour la variable sur le texte inférieur à 255 caractères et voilà\""
},
"typeOfControl": "CONSISTENCY",
"control": {
"type": "VTL",
"value": "not(isnull(TESTTEXTE))"
},
"id": "kfxn6f16-CI-1"
}
],
"response": {
"name": "TESTTEXTE"
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "kfxn6f16",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"Le label du champ input\""
},
"mandatory": false,
"maxLength": 15,
"declarations": [
{
"declarationType": "INSTRUCTION",
"id": "kfxn6f16-kfxn36ru",
"label": {
"type": "VTL|MD",
"value": "\"Tester la saisie de BLABLA\""
},
"position": "AFTER_QUESTION_TEXT"
}
]
}
]
},
{
"componentType": "Question",
"id": "idQuestion2",
"page": "2",
"label": {
"type": "VTL|MD",
"value": "\"Question 2\""
},
"description": {
"type": "VTL|MD",
"value": "\"Description de la question 2\""
},
"components": [
{
"id": "k0dzbfek",
"componentType": "InputNumber",
"mandatory": false,
"page": "2",
"min": 0,
"max": 100,
"decimals": 0,
"label": {
"value": "\"➡ 1. \" || \"Test de supériorité stricte - Saisie d’un nombre compris entre 0 et 100 - Si valeur supérieure à 5 message d’info. si superieur à 6,5 autre message \"",
"type": "VTL|MD"
},
"declarations": [
{
"id": "k0dzbfek-kzgzg0bk",
"declarationType": "HELP",
"position": "AFTER_QUESTION_TEXT",
"label": {
"value": "\"Tester 2 et 20 (pour vérifier ordre numérique et lexico)\"",
"type": "VTL|MD"
}
}
],
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"controls": [
{
"id": "k0dzbfek-CI-0",
"criticality": "WARN",
"control": {
"value": "not(cast(nvl(QNUM,0),integer) > 5)",
"type": "VTL"
},
"errorMessage": {
"value": "\"sup à 5\"",
"type": "VTL|MD"
},
"bindingDependencies": [
"QNUM"
],
"typeOfControl": "CONSISTENCY"
},
{
"id": "k0dzbfek-CI-1",
"criticality": "WARN",
"control": {
"value": "not(cast(nvl(QNUM,0),integer) > 6.5)",
"type": "VTL"
},
"errorMessage": {
"value": "\"superieur à 6.5\"",
"type": "VTL|MD"
},
"bindingDependencies": [
"QNUM"
],
"typeOfControl": "CONSISTENCY"
}
],
"bindingDependencies": [
"QNUM"
],
"response": {
"name": "QNUM"
}
}
]
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/decorations/sequence.html b/website/components/decorations/sequence.html new file mode 100644 index 000000000..2b70452f4 --- /dev/null +++ b/website/components/decorations/sequence.html @@ -0,0 +1,16 @@ + + + + + +Sequence & SubSequence | @inseefr/lunatic + + + + +

Sequence & SubSequence

+

Les composants Sequence et SubSequence permettent de démarrer une séquence de question et n'ont pour but de n'afficher que des informations textuelles à l'utilisateur (équivalent sémantique à des titres de premiers et second niveau).

+ +
{
"$schema": "../../../lunatic-schema.json",
"maxPage": "1",
"components": [
{
"id": "c1",
"componentType": "Sequence",
"page": "1",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"label": {
"value": "\"Sequence example\"",
"type": "VTL|MD"
}
},
{
"id": "c2",
"componentType": "Subsequence",
"page": "1",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"label": {
"value": "\"Subsequence example\"",
"type": "VTL|MD"
}
}
],
"variables": []
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/checkboxBoolean.html b/website/components/fields/checkboxBoolean.html new file mode 100644 index 000000000..9084315a3 --- /dev/null +++ b/website/components/fields/checkboxBoolean.html @@ -0,0 +1,16 @@ + + + + + +CheckboxBoolean | @inseefr/lunatic + + + + +

CheckboxBoolean

+

Affiche une case à cocher "Oui" / "Non"

+ +
{
"components": [
{
"id": "checkboxboolean",
"componentType": "CheckboxBoolean",
"mandatory": false,
"page": "1",
"label": {
"value": "\"checkboxBoolean component (checked: true, unchecked: false)\"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description for label\"",
"type": "VTL|MD"
},
"declarations": [
{
"id": "kb9hi4j0-krnoclfe",
"declarationType": "INSTRUCTION",
"position": "BEFORE_QUESTION_TEXT",
"label": {
"value": "\"Décalration Before\"",
"type": "VTL|MD"
}
},
{
"id": "kb9hi4j0-krnoclfe",
"declarationType": "HELP",
"position": "AFTER_QUESTION_TEXT",
"label": {
"value": "\"Description from DECLARATION.\"",
"type": "VTL|MD"
}
}
],
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"options": [
{
"value": "1",
"label": {
"value": "\"oui\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"label": {
"value": "\"non\"",
"type": "VTL|MD"
}
}
],
"response": {
"name": "Q2"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "Q2",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/checkboxGroup.html b/website/components/fields/checkboxGroup.html new file mode 100644 index 000000000..79632eb29 --- /dev/null +++ b/website/components/fields/checkboxGroup.html @@ -0,0 +1,18 @@ + + + + + +CheckboxGroup | @inseefr/lunatic + + + + +

CheckboxGroup

+

Affiche une liste de case à cocher. Chaque case sera associé à une variable spécifique précisé au travers de l'option responses. Chaque réponse prendra la valeur true ou false en fonction de l'état de la case à cocher.

+ +Voir le type + +
{
"$schema": "../../../lunatic-schema.json",
"components": [
{
"id": "checkboxbooleanGroupNumeric",
"componentType": "CheckboxGroup",
"page": "1",
"label": {
"value": "Situation matrimoniale",
"type": "TXT"
},
"orientation": "horizontal",
"hierarchy": {
"sequence": {
"id": "kmnnjaf1",
"page": "1",
"label": {
"value": "Situation matrimoniale",
"type": "Text"
}
},
"subSequence": {
"id": "kmw3dz2a",
"page": "2",
"label": {
"value": "Mois préférés de l'année",
"type": "Text"
}
}
},
"missingResponse": {
"name": "SITUMATRI_MISSING"
},
"responses": [
{
"id": "kmort6x9-QOP-kmosa98y",
"label": {
"value": "Française de naissance ou par réintégration",
"type": "Text"
},
"response": {
"name": "NATIO1N1"
}
},
{
"id": "kmort6x9-QOP-kmos360k",
"label": {
"value": "\"Française par déclaration, naturalisation, option à la majorité\"",
"type": "VTL"
},
"response": {
"name": "NATIO1N2"
}
},
{
"id": "kmort6x9-QOP-kmos37e1",
"label": {
"value": "Étrangère",
"type": "Text"
},
"response": {
"name": "NATIO1N3"
}
},
{
"id": "kmort6x9-QOP-kmorue9c",
"label": {
"value": "Apatride (pas de nationalité)",
"type": "Text"
},
"response": {
"name": "NATIO1N4"
}
}
]
},
{
"id": "checkboxbooleanGroupAlpha",
"componentType": "CheckboxGroup",
"page": "2",
"label": {
"value": "Mois préférés de l'année",
"type": "TXT"
},
"orientation": "vertical",
"hierarchy": {
"sequence": {
"id": "kmnnjaf1",
"page": "1",
"label": {
"value": "Situation matrimoniale",
"type": "Text"
}
},
"subSequence": {
"id": "kmw3dz2a",
"page": "2",
"label": {
"value": "Mois préférés de l'année",
"type": "Text"
}
}
},
"missingResponse": {
"name": "SITUMATRI_MISSING"
},
"bindingDependencies": [
"MOIS1",
"MOIS2",
"MOIS3",
"MOIS4",
"MOIS5",
"MOIS6",
"MOIS7",
"MOIS8",
"MOIS9",
"MOIS10",
"MOIS11",
"MOIS12"
],
"responses": [
{
"id": "mois1",
"label": {
"value": "Janvier",
"type": "Text"
},
"response": {
"name": "MOIS1"
}
},
{
"id": "mois2",
"label": {
"value": "Février",
"type": "Text"
},
"response": {
"name": "MOIS2"
}
},
{
"id": "mois3",
"label": {
"value": "Mars",
"type": "Text"
},
"response": {
"name": "MOIS3"
}
},
{
"id": "mois4",
"label": {
"value": "Avril",
"type": "Text"
},
"response": {
"name": "MOIS4"
}
},
{
"id": "mois5",
"label": {
"value": "Mai",
"type": "Text"
},
"response": {
"name": "MOIS5"
}
},
{
"id": "mois6",
"label": {
"value": "Juin",
"type": "Text"
},
"response": {
"name": "MOIS6"
}
},
{
"id": "mois7",
"label": {
"value": "Juillet",
"type": "Text"
},
"response": {
"name": "MOIS7"
}
},
{
"id": "mois8",
"label": {
"value": "Août",
"type": "Text"
},
"response": {
"name": "MOIS8"
}
},
{
"id": "mois9",
"label": {
"value": "Septembre",
"type": "Text"
},
"response": {
"name": "MOIS9"
}
},
{
"id": "mois10",
"label": {
"value": "Octobre",
"type": "Text"
},
"response": {
"name": "MOIS10"
}
},
{
"id": "mois11",
"label": {
"value": "Novembre",
"type": "Text"
},
"response": {
"name": "MOIS11"
}
},
{
"id": "mois12",
"label": {
"value": "Décembre",
"type": "Text"
},
"response": {
"name": "MOIS12"
}
}
]
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NATIO1N1",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "NATIO1N2",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "NATIO1N3",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "NATIO1N4",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS1",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS2",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS3",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS4",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS5",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS6",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS7",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS8",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS9",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS10",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS11",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "MOIS12",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/checkboxOne.html b/website/components/fields/checkboxOne.html new file mode 100644 index 000000000..92871de56 --- /dev/null +++ b/website/components/fields/checkboxOne.html @@ -0,0 +1,16 @@ + + + + + +CheckboxOne | @inseefr/lunatic + + + + +

CheckboxOne

+

Permet de sélectionner une valeur parmi une liste d'option. Le fonctionnement est similaire à celui des radios si ce n'est que la case peut être décochable.

+ +
{
"$schema": "../../../lunatic-schema.json",
"maxPage": "1",
"components": [
{
"id": "checkboxone",
"componentType": "CheckboxOne",
"mandatory": false,
"page": "1",
"label": {
"value": "\"checkboxone ONE component\"",
"type": "VTL|MD"
},
"description": {
"value": "\"true or false\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"options": [
{
"value": "1",
"description": {
"value": "\"Déclaration oui\"",
"type": "VTL|MD"
},
"label": {
"value": "\"oui\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"description": {
"value": "\"Déclaration non\"",
"type": "VTL|MD"
},
"label": {
"value": "\"non\"",
"type": "VTL|MD"
}
}
],
"response": {
"name": "Q2"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "Q2",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/datepicker.html b/website/components/fields/datepicker.html new file mode 100644 index 000000000..fed17c2a4 --- /dev/null +++ b/website/components/fields/datepicker.html @@ -0,0 +1,22 @@ + + + + + +Datepicker | @inseefr/lunatic + + + + +

Datepicker

+

Le composant Datepicker permet à l'utilisateur de sélectionner une date.

+
    +
  • dateFormat, format d'entrée de la date (YYYY-MM-DD | YYYY | YYYY-MM)
  • +
  • min, date minimale
  • +
  • max, date maximale
  • +
+

Le choix a été fait pour ce composant de ne plus utiliser un datepicker natif, car le comportement était trop différent en fonction des navigateurs et freiné l'entrée des informations par les enquêteurs. Aussi, cela permet le support de format qui n'était pas forcément pris en charge par les navigateurs à l'heure actuelle.

+ +
{
"components": [
{
"componentType": "Datepicker",
"max": "2100-01-01",
"dateFormat": "YYYY-MM-DD",
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"label": {
"type": "VTL|MD",
"value": "\"➡ 1. \" || \"Birth day\""
},
"mandatory": false,
"min": "1900-01-01",
"response": {
"name": "Q1"
},
"id": "l7ovm2rv",
"page": "1",
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Le format de la date YYYY-MM-DD n'est pas respecté.\""
},
"control": {
"type": "VTL",
"value": "cast(Q1, date, \"YYYY-MM-DD\")"
},
"id": "l7ovm2rv-format"
},
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"La date saisie doit être comprise entre 1900-01-01 et 2100-01-01.\""
},
"control": {
"type": "VTL",
"value": "not(cast(Q1, date, \"YYYY-MM-DD\")>cast(\"2100-01-01\", date, \"YYYY-MM-DD\") or cast(Q1, date,\"YYYY-MM-DD\")<cast(\"1900-01-01\", date, \"YYYY-MM-DD\"))"
},
"id": "l7ovm2rv-formatborne"
}
]
}
],
"variables": [
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": "1974-03-15",
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "Q1"
}
],
"pagination": "question",
"resizing": {},
"label": {
"type": "VTL|MD",
"value": "\"Example DatePicker\""
},
"lunaticModelVersion": "2.2.13",
"modele": "DATEPICKER",
"enoCoreVersion": "2.3.10",
"generatingDate": "05-09-2022 14:37:43",
"missing": false,
"id": "l7ovbqou",
"maxPage": "1"
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/dropdown.html b/website/components/fields/dropdown.html new file mode 100644 index 000000000..2feef4046 --- /dev/null +++ b/website/components/fields/dropdown.html @@ -0,0 +1,26 @@ + + + + + +Dropdown | @inseefr/lunatic + + + + +

Dropdown

+

Le composant permet de générer un menu déroulant.

+
    +
  • options, liste des options sélectionnables +
      +
    • value, valeur a associé à la réponse
    • +
    • label, libellé de l'option (expression VTL)
    • +
    +
  • +
+ +Voir le type + +
{
"maxPage": "1",
"components": [
{
"id": "j4nw5cqz",
"componentType": "Dropdown",
"mandatory": false,
"page": "1",
"label": {
"value": "\"In which state do The Simpsons reside?\"",
"type": "VTL|MD"
},
"response": {
"name": "STATE"
},
"options": [
{
"value": "1",
"label": {
"value": "\"Washington\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"label": {
"value": "\"Kentucky\"",
"type": "VTL|MD"
}
},
{
"value": "3",
"label": {
"value": "\"Ohio\"",
"type": "VTL|MD"
}
},
{
"value": "4",
"label": {
"value": "\"Maine\"",
"type": "VTL|MD"
}
},
{
"value": "5",
"label": {
"value": "\"North Dakota\"",
"type": "VTL|MD"
}
},
{
"value": "6",
"label": {
"value": "\"Florida\"",
"type": "VTL|MD"
}
},
{
"value": "7",
"label": {
"value": "\"North Takoma\"",
"type": "VTL|MD"
}
},
{
"value": "8",
"label": {
"value": "\"California\"",
"type": "VTL|MD"
}
},
{
"value": "9",
"label": {
"value": "\"Texas\"",
"type": "VTL|MD"
}
},
{
"value": "10",
"label": {
"value": "\"Massachusetts\"",
"type": "VTL|MD"
}
},
{
"value": "11",
"label": {
"value": "\"Nevada\"",
"type": "VTL|MD"
}
},
{
"value": "12",
"label": {
"value": "\"Illinois\"",
"type": "VTL|MD"
}
},
{
"value": "13",
"label": {
"value": "\"Not in any state, you fool!\"",
"type": "VTL|MD"
}
}
]
},
{
"id": "j4nw5cqz-bis",
"componentType": "Dropdown",
"mandatory": false,
"page": "1",
"label": {
"value": "\"In which state do The Simpsons reside?\"",
"type": "VTL|MD"
},
"response": {
"name": "STATE2"
},
"options": [
{
"value": "1",
"label": {
"value": "\"Washington\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"label": {
"value": "\"Kentucky\"",
"type": "VTL|MD"
}
},
{
"value": "3",
"label": {
"value": "\"Ohio\"",
"type": "VTL|MD"
}
},
{
"value": "4",
"label": {
"value": "\"Maine\"",
"type": "VTL|MD"
}
},
{
"value": "5",
"label": {
"value": "\"North Dakota\"",
"type": "VTL|MD"
}
},
{
"value": "6",
"label": {
"value": "\"Florida\"",
"type": "VTL|MD"
}
},
{
"value": "7",
"label": {
"value": "\"North Takoma\"",
"type": "VTL|MD"
}
},
{
"value": "8",
"label": {
"value": "\"California\"",
"type": "VTL|MD"
}
},
{
"value": "9",
"label": {
"value": "\"Texas\"",
"type": "VTL|MD"
}
},
{
"value": "10",
"label": {
"value": "\"Massachusetts\"",
"type": "VTL|MD"
}
},
{
"value": "11",
"label": {
"value": "\"Nevada\"",
"type": "VTL|MD"
}
},
{
"value": "12",
"label": {
"value": "\"Illinois\"",
"type": "VTL|MD"
}
},
{
"value": "13",
"label": {
"value": "\"Not in any state, you fool!\"",
"type": "VTL|MD"
}
}
]
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "STATE",
"componentRef": "j4nw5cqz",
"values": {
"PREVIOUS": null,
"COLLECTED": "2",
"FORCED": "3",
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "STATE2",
"componentRef": "j4nw5cqz-bis",
"values": {
"PREVIOUS": null,
"COLLECTED": "3",
"FORCED": "2",
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/duration.html b/website/components/fields/duration.html new file mode 100644 index 000000000..30db97ab9 --- /dev/null +++ b/website/components/fields/duration.html @@ -0,0 +1,30 @@ + + + + + +Duration | @inseefr/lunatic + + + + +

Duration

+

Le composant Duration permet à l'utilisateur de renseigner une durée. Elle peut être définie en :

+
    +
  • années / mois (format : PnYnM)
  • +
  • heures / minutes (format : PTnHnM)
  • +
+

Le composant présente deux champs de saisie, mais la donnée est enregistrée dans une variable commune. +Par exemple en renseignant respectivement dans les champs 10 et 7, la valeur de la donnée sera :

+
    +
  • année / mois : "PT10H7M"
  • +
  • heures / minutes : "P10Y7M"
  • +
+

Si une seule des deux valeurs est renseignée, la seconde prend pour valeur 0 (ex : P0Y5M).

+

Il est impossible de renseigner une valeur supérieure à 59 minutes (resp. 11 mois).

+ +
{
"components": [
{
"id": "kxi788",
"componentType": "Duration",
"mandatory": false,
"format": "PTnHnM",
"page": "1",
"maxPage": "1",
"label": {
"value": "\"➡ 1. \" || \"Duration (format: PTnHnM) \"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "DUREE"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "DUREE",
"values": {
"PREVIOUS": null,
"COLLECTED": "PT12H50M",
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ +
{
"components": [
{
"id": "kxi788",
"componentType": "Duration",
"mandatory": false,
"format": "PnYnM",
"page": "1",
"maxPage": "1",
"label": {
"value": "\"➡ 1. \" || \"Duration (format: PnYnM) \"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"response": {
"name": "DUREE"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "DUREE",
"values": {
"PREVIOUS": null,
"COLLECTED": "P4Y0M",
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/input-number.html b/website/components/fields/input-number.html new file mode 100644 index 000000000..a2aef0eea --- /dev/null +++ b/website/components/fields/input-number.html @@ -0,0 +1,21 @@ + + + + + +InputNumber | @inseefr/lunatic + + + + +

InputNumber

+

Le composant InputNumber permet d'afficher un champ numérique.

+
    +
  • min, valeur minimale (au niveau HTML seulement, un contrôle est nécessaire si on souhaite valider la longueur)
  • +
  • max, valeur maximale (au niveau HTML seulement, un contrôle est nécessaire si on souhaite valider la longueur)
  • +
  • decimals, nombre de décimales autorisées (au niveau HTML seulement, un contrôle est nécessaire si on souhaite valider la longueur)
  • +
+ +
{
"$schema": "../../../lunatic-schema.json",
"components": [
{
"id": "kze792d8",
"componentType": "InputNumber",
"page": "1",
"min": 0,
"max": 100000,
"decimals": 2,
"label": {
"value": "\"➡ 1. \" || \"Input number (between 0 and 100 000)\"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description\"",
"type": "VTL|MD"
},
"response": {
"name": "NB"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NB",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/input.html b/website/components/fields/input.html new file mode 100644 index 000000000..f05c0a6bb --- /dev/null +++ b/website/components/fields/input.html @@ -0,0 +1,19 @@ + + + + + +Input | @inseefr/lunatic + + + + +

Input

+

Le composant Input permet d'afficher un simple champ texte.

+
    +
  • maxLength, permet de définir la longueur maximale du texte (au niveau HTML seulement, un contrôle est nécessaire si on souhaite valider la longueur)
  • +
+ +
{
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Nom de l'occupant principal.\"",
"type": "VTL|MD"
},
"maxLength": 30,
"id": "surname",
"description": {
"value": "\"For example, Bob.\"",
"type": "VTL|MD"
},
"response": {
"name": "NOM"
},
"page": "1"
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NOM",
"componentRef": "name",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/radio.html b/website/components/fields/radio.html new file mode 100644 index 000000000..4b9d7c1e0 --- /dev/null +++ b/website/components/fields/radio.html @@ -0,0 +1,27 @@ + + + + + +Radio | @inseefr/lunatic + + + + +

Radio

+

Permet de sélectionner une valeur parmi une liste d'option

+
    +
  • options, liste des options sélectionnables +
      +
    • value, valeur a associé à la réponse
    • +
    • label, libellé de l'option (expression VTL)
    • +
    • description, libellé de l'option (expression VTL)
    • +
    +
  • +
+ +Voir le type + +
{
"components": [
{
"id": "radio",
"componentType": "Radio",
"mandatory": false,
"page": "3",
"label": {
"value": "\"Label for a Radio component\"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description of a Radio component\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"options": [
{
"value": "1",
"description": {
"value": "\"Déclaration oui\"",
"type": "VTL|MD"
},
"label": {
"value": "\"oui\"",
"type": "VTL|MD"
}
},
{
"value": "2",
"description": {
"value": "\"Déclaration non\"",
"type": "VTL|MD"
},
"label": {
"value": "\"non\"",
"type": "VTL|MD"
}
}
],
"response": {
"name": "Q2"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "Q2",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/suggester.html b/website/components/fields/suggester.html new file mode 100644 index 000000000..7bcb728c2 --- /dev/null +++ b/website/components/fields/suggester.html @@ -0,0 +1,42 @@ + + + + + +Suggester | @inseefr/lunatic + + + + +

Suggester

+

Le composant de Suggester permet d'avoir un menu déroulant avec une option de recherche.

+ +
{
"$schema": "../../../lunatic-schema.json",
"suggesters": [
{
"responseNames": [
"VARIABLE_COMMUNE"
],
"name": "L_COMMUNEPASSEE-1-2-0",
"fields": [
{
"name": "label",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false
},
{
"name": "id",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false
}
],
"queryParser": {
"type": "tokenized",
"params": {
"language": "French",
"pattern": "[\\w.]+",
"min": 3,
"stemmer": false
}
},
"version": "1"
},
{
"responseNames": [
"VARIABLE_PAYS"
],
"name": "L_PAYS-1-2-0",
"fields": [
{
"name": "label",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false
}
],
"queryParser": {
"type": "tokenized",
"params": {
"language": "French",
"pattern": "[\\w.]+",
"min": 3,
"stemmer": false
}
},
"version": "1"
},
{
"responseNames": [
"VARIABLE_NATIONALITE"
],
"name": "L_NATIONALITE-1-2-0",
"fields": [
{
"name": "label",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false
}
],
"queryParser": {
"type": "tokenized",
"params": {
"language": "French",
"pattern": "[\\w.]+",
"min": 3,
"stemmer": false
}
},
"version": "1"
},
{
"responseNames": [
"VARIABLE_PCS"
],
"name": "L_PCS_HOMMES-1-5-0",
"fields": [
{
"name": "label",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false,
"synonyms": {
"accueil": [
"ACCEUIL"
],
"échafaudage": [
"ECHAFFAUDAGE"
],
"URSSAF": [
"URSAF",
"URSAFF"
],
"ingénierie": [
"INGENIEURIE",
"INGENERIE",
"INGIENERIE"
],
"construction": [
"CONSTRUCTEUR"
],
"distribution": [
"DISTRIBUTEUR"
],
"fabrication": [
"FABRICANT"
],
"abattoir": [
"ABATOIR",
"ABBATOIR",
"ABATOIRE",
"ABATTOIRE"
],
"ascenseur": [
"ASCENCEUR"
],
"ascenseurs": [
"ASCENCEURS"
],
"assenseur": [
"ASSENCEUR"
],
"joaillerie": [
"JOAILLIER"
],
"agroalimentaire": [
"AGGROALIMANTAIRE",
"AGROALIMANTAIRE"
],
"alimentaires": [
"ALIMANTAIRE"
],
"agroalimentaires": [
"AGGROALIMANTAIRES",
"AGROALIMENTAIRES"
]
}
}
],
"queryParser": {
"type": "tokenized",
"params": {
"language": "French",
"pattern": "[\\w.]+",
"min": 3,
"stemmer": false
}
},
"version": "1",
"meloto": true,
"stopWords": [
"a",
"au",
"dans",
"de",
"des",
"du",
"en",
"er",
"la",
"le",
"ou",
"sur",
"d",
"l",
"aux",
"dans",
"un",
"une",
"pour",
"avec",
"chez",
"par",
"les"
]
},
{
"responseNames": [
"VARIABLE_BAILLEURS_SOCIAUX"
],
"name": "bailleurs_sociaux-1-5-0",
"fields": [
{
"name": "label",
"rules": [
"[\\w]+"
],
"language": "French",
"min": 3,
"stemmer": false
}
],
"queryParser": {
"type": "tokenized",
"params": {
"language": "French",
"pattern": "[\\w.]+",
"min": 3,
"stemmer": false
}
},
"version": "1"
}
],
"components": [
{
"componentType": "Suggester",
"response": {
"name": "VARIABLECO"
},
"optionResponses": [
{
"name": "VARIABLECO_NAME",
"attribute": "label"
}
],
"storeName": "L_COMMUNEPASSEE-1-2-0",
"hierarchy": {
"sequence": {
"id": "lt4fhgd6",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"I - \" || \"Sequence\""
}
}
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lt4ezymk",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"➡ 1. \" || \"Variable Commune\""
},
"optionLabel": {
"type": "VTL",
"value": "\"id || \" - \" || label\""
},
"mandatory": false,
"maxLength": 249
},
{
"componentType": "Suggester",
"response": {
"name": "VARIABLEPA"
},
"storeName": "L_PAYS-1-2-0",
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lt4fjoev",
"page": "2",
"label": {
"type": "VTL|MD",
"value": "\"➡ 2. \" || \"Variable Pays\""
},
"mandatory": false,
"maxLength": 249
},
{
"componentType": "Suggester",
"storeName": "L_NATIONALITE-1-2-0",
"response": {
"name": "VARIABLENA"
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lt4f6i2y",
"page": "3",
"label": {
"type": "VTL|MD",
"value": "\"➡ 3. \" || \"Variable Nationalité\""
},
"mandatory": false,
"maxLength": 249
},
{
"componentType": "Suggester",
"storeName": "L_PCS_HOMMES-1-5-0",
"response": {
"name": "VARIABLE_P"
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lt4f9q1o",
"page": "4",
"label": {
"type": "VTL|MD",
"value": "\"➡ 4. \" || \"VARIABLE_PCS\""
},
"mandatory": false,
"maxLength": 249
},
{
"componentType": "Suggester",
"storeName": "bailleurs_sociaux-1-5-0",
"response": {
"name": "VARIABLE_B"
},
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lt4f8uba",
"page": "5",
"label": {
"type": "VTL|MD",
"value": "\"➡ 5. \" || \"VARIABLE_BAILLEURS_SOCIAUX\""
},
"mandatory": false,
"maxLength": 249
}
],
"pagination": "question",
"resizing": {},
"label": {
"type": "VTL|MD",
"value": "Suggester"
},
"lunaticModelVersion": "2.5.0",
"modele": "SUGGESTER",
"enoCoreVersion": "2.7.1",
"generatingDate": "27-02-2024 13:43:43",
"missing": false,
"id": "lt4f6mib",
"maxPage": "5",
"variables": [
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "COMMENT_QE"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLECO"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLECO_NAME"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLEPA"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLENA"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLE_P"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"INPUTTED": null,
"FORCED": null,
"PREVIOUS": null
},
"name": "VARIABLE_B"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_VARIABLECO",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_VARIABLEPA",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_VARIABLENA",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_VARIABLE_P",
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_VARIABLE_B",
"inFilter": "false"
}
]
}
Loading...
+

Indexation

+

Dans le fichier source la liste des données à rendre disponible et définit dans la propriété suggesters. Vous pouvez retrouver les détails sur le format de cette définition en regardant le type SuggesterType dans le code source. Il y a 3 parties importantes :

+
    +
  • fields, permet de définir les champs qui vont être indexé pour la recherche.
  • +
  • queryParser, permet de définir les règles à appliquer à la chaine de recherche.
  • +
  • name, nom de la nomenclature, qui sera utilisé dans la propriété storeName du composant mais aussi pour la récupération de la nomenclature dans getReferentiel() .
  • +
+

Lors de l'initialisation de Lunatic à l'aide du hook useLunatic() il faut préciser l'option getReferentiel() qui permet d'indiquer comment charger les données associées au référentiel :

+
const {} = useLunatic(source, data, {
//...
getReferentiel: async (name) => {
return fetch(`https://insee.fr/referentiel/${name}.json`).then((r) => r.json());
}
})
+

La nomenclature doit nécessairement contenir un champ id qui doit être unique pour chaque enregistrement et label qui sert à l'affichage des options dans le suggester mais peut aussi contenir d'autre champs.

+

Récupération des données de la nomenclature

+

Lors de la sélection on peut vouloir récupérer des informations supplémentaires dans la nomenclature (catégorie d'un produit, unité, prix...).

+
[
{
"id": "brosse",
"label": "Brosse à cheveux",
"price": 20
},
{
"id": "balle",
"label": "Balle rebondissante",
"price": 10
}
]
+

Dans ce cas, il est possible d'ajoute une option dans le JSON afin d'envoyer la données de certains champs dans des variables spécifique lors d'un choix.

+
{
"componentType": "Suggester",
"response": {
"name": "PRODUCT"
},
"optionResponses": [
{
"name": "PRODUCT_NAME",
"attribute": "label"
},
{
"name": "PRODUCT_PRICE",
"attribute": "price"
}
]
}
+

Lors de la sélection d'un élément

+
    +
  • PRODUCT recevra l'ID du produit
  • +
  • PRODUCT_NAME recevra son libellé
  • +
  • PRODUCT_PRICE recevra son prix
  • +
+

Valeur arbitraire

+

Il est possible de permettre à l'utilisateur de rentrer une valeur arbitraire si aucune option ne correspond à sa recherche. +Dans ce cas-là, il faudra ajouter un champ arbitrary pour permettre de sauvegarder cette valeur arbitraire.

+
{
"componentType": "Suggester",
"response": {
"name": "PRODUCT"
},
"arbitrary": {
"response": { "name": "PRODUCT_OTHER" }
}
}
+

Le champ arbitrary.response définit la variable qui recevra la valeur arbitraire.

+ + \ No newline at end of file diff --git a/website/components/fields/table.html b/website/components/fields/table.html new file mode 100644 index 000000000..1b598ddc0 --- /dev/null +++ b/website/components/fields/table.html @@ -0,0 +1,24 @@ + + + + + +Table | @inseefr/lunatic + + + + +

Table

+

Le composant Table est un composant permettant d'afficher un tableau d'information à l'utilisateur.

+
    +
  • header, tableau contenant le contenu des cellules en en-tête
  • +
  • body, tableau contenant lignes du tableau (sous forme de tableau de cellule) +^
  • +
+ +
{
"$schema": "../../../lunatic-schema.json",
"variables": [],
"components": [
{
"page": "1",
"id": "j6p29i81",
"componentType": "Table",
"mandatory": false,
"header": [
{
"label": {
"value": "\"<=>\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Header 1\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Header 2\"",
"type": "VTL|MD"
}
}
],
"body": [
[
{
"label": {
"value": "\"Line 1\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 11\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 12\"",
"type": "VTL|MD"
}
}
],
[
{
"label": {
"value": "\"Line 2\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 21\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 22\"",
"type": "VTL|MD"
}
}
],
[
{
"label": {
"value": "\"Line 3\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 31\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Cell 32\"",
"type": "VTL|MD"
}
}
]
]
}
]
}
Loading...
+

Il est possible de regrouper les lignes ou des colonnes via les propriété colspan et rowspan. Enfin, les cellules peuvent contenir un autre composant, comme un input par exemple.

+ +
{
"$schema": "../../../lunatic-schema.json",
"components": [
{
"page": "1",
"id": "j4nwc63q",
"componentType": "Table",
"mandatory": false,
"label": {
"value": "\"➡ \" || \"Please, specify the percentage of Jay’s expenses in the Kwik-E-Mart for each product?\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"missingResponse": {
"name": "PERCENTAGE_EXPENSES_MISSING"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES_MISSING",
"PERCENTAGE_EXPENSES11",
"PERCENTAGE_EXPENSES21",
"PERCENTAGE_EXPENSES31",
"PERCENTAGE_EXPENSES41",
"PERCENTAGE_EXPENSES51",
"PERCENTAGE_EXPENSES61",
"PERCENTAGE_EXPENSES71"
],
"header": [
{
"colspan": 2,
"label": {
"value": "",
"type": "VTL|MD"
}
},
{
"label": {
"value": "\"Percentage\"",
"type": "VTL|MD"
}
}
],
"body": [
[
{
"rowspan": 2,
"value": "A",
"label": {
"value": "\"Frozen products\"",
"type": "VTL|MD"
}
},
{
"value": "A1",
"label": {
"value": "\"Ice creams\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewv2h3o",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES11"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES11"
]
}
],
[
{
"value": "A2",
"label": {
"value": "\"Jasper Beardly\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewvka2j",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES21"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES21"
]
}
],
[
{
"rowspan": 3,
"value": "B",
"label": {
"value": "\"Meat\"",
"type": "VTL|MD"
}
},
{
"value": "B1",
"label": {
"value": "\"Bacon\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewv1f2a",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES31"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES31"
]
}
],
[
{
"value": "B2",
"label": {
"value": "\"Pork chop\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewvb2ql",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES41"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES41"
]
}
],
[
{
"value": "B3",
"label": {
"value": "\"Chicken\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewvbxla",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES51"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES51"
]
}
],
[
{
"value": "C",
"label": {
"value": "\"Compote\"",
"type": "VTL|MD"
}
},
{
"value": "C1",
"label": {
"value": "\"Powersauce\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewvkjp0",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES61"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES61"
]
}
],
[
{
"colspan": 2,
"value": "D",
"label": {
"value": "\"Other\"",
"type": "VTL|MD"
}
},
{
"componentType": "InputNumber",
"min": 0,
"max": 100,
"decimals": 1,
"id": "j4nwc63q-QOP-kewv2cyx",
"unit": "%",
"response": {
"name": "PERCENTAGE_EXPENSES71"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES71"
]
}
],
[
{
"colspan": 2,
"value": "E",
"label": {
"value": "\"Total\"",
"type": "VTL|MD"
}
},
{
"label": {
"value": "SUM_EXPENSES",
"type": "VTL|MD"
}
}
]
]
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES11",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES21",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES31",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES41",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES51",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES61",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES71",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "COLLECTED",
"name": "PERCENTAGE_EXPENSES81",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
},
{
"variableType": "CALCULATED",
"name": "FILTER_RESULT_PERCENTAGE_EXPENSES",
"expression": {
"value": "true",
"type": "VTL"
},
"inFilter": "false"
},
{
"variableType": "CALCULATED",
"name": "SUM_EXPENSES",
"expression": {
"value": "nvl(PERCENTAGE_EXPENSES11,0) + nvl(PERCENTAGE_EXPENSES21,0) + nvl(PERCENTAGE_EXPENSES31,0) + nvl(PERCENTAGE_EXPENSES41,0) + nvl(PERCENTAGE_EXPENSES51,0) + nvl(PERCENTAGE_EXPENSES61,0), + nvl(PERCENTAGE_EXPENSES71,0)",
"type": "VTL"
},
"bindingDependencies": [
"PERCENTAGE_EXPENSES11",
"PERCENTAGE_EXPENSES21",
"PERCENTAGE_EXPENSES31",
"PERCENTAGE_EXPENSES41",
"PERCENTAGE_EXPENSES51",
"PERCENTAGE_EXPENSES61",
"PERCENTAGE_EXPENSES71"
],
"inFilter": "false"
}
],
"cleaning": {},
"resizing": {}
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/text.html b/website/components/fields/text.html new file mode 100644 index 000000000..de05fa199 --- /dev/null +++ b/website/components/fields/text.html @@ -0,0 +1,24 @@ + + + + + +Text | @inseefr/lunatic + + + + +

Text

+

Le composant Text permet d'afficher du texte. L'objectif de ce composant est d'être réutilisé en tant qu'enfant d'autres composants.

+

Il a était créé pour être utilisé dans des tableaux, mais peut très bien s'utiliser seul ou comme enfant d'autre composants.

+

Composant seul

+ +
{
"components": [
{
"componentType": "Text",
"label": {
"value": "Mon texte",
"type": "TXT"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id"
}
],
"variables": []
}
Loading...
+

Dans un tableau

+ +
{
"componentType": "Questionnaire",
"variables": [
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA11"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA21"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA31"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA12"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA22"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA32"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA13"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA23"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": null,
"EDITED": null,
"FORCED": null,
"INPUTTED": null,
"PREVIOUS": null
},
"name": "TABLEAUCLA33"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_LIBELLEDUT"
},
{
"variableType": "CALCULATED",
"expression": {
"type": "VTL",
"value": "true"
},
"name": "FILTER_RESULT_TABLEAUCLA"
}
],
"components": [
{
"componentType": "Table",
"header": [
{
"label": {
"type": "VTL|MD",
"value": ""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Domaines\""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Activité\""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Chiffre d'affaire\""
}
}
],
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "luwhnbxk",
"page": "1",
"label": {
"type": "VTL|MD",
"value": "\"Tableau classique\""
},
"body": [
[
{
"componentType": "Text",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id-text-1",
"label": {
"type": "TXT",
"value": "Libelle 1"
}
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA11"
},
"id": "luwhnbxk-RDOP-luwhcrpg",
"maxLength": 249,
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL",
"value": "\"Le domaine ne doit pas être vide\""
},
"typeOfControl": "",
"control": {
"type": "VTL",
"value": "not(isnull(TABLEAUCLA11))"
}
}
]
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA12"
},
"id": "luwhnbxk-RDOP-luwhnkls",
"maxLength": 249
},
{
"componentType": "InputNumber",
"unit": "€",
"min": 0,
"max": 9999,
"response": {
"name": "TABLEAUCLA13"
},
"decimals": 0,
"id": "luwhnbxk-RDOP-luwh7btb"
}
],
[
{
"componentType": "Text",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id-text-2",
"label": {
"type": "TXT",
"value": "Libelle 2"
}
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA21"
},
"id": "luwhnbxk-RDOP-luwhmbp1",
"maxLength": 249
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA22"
},
"id": "luwhnbxk-RDOP-luwhlejc",
"maxLength": 249
},
{
"componentType": "InputNumber",
"unit": "€",
"min": 0,
"max": 9999,
"response": {
"name": "TABLEAUCLA23"
},
"decimals": 0,
"id": "luwhnbxk-RDOP-luwh4tva"
}
],
[
{
"componentType": "Text",
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id-text-3",
"label": {
"type": "TXT",
"value": "Libelle 3"
}
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA31"
},
"id": "luwhnbxk-RDOP-luwhalhn",
"maxLength": 249
},
{
"componentType": "Input",
"response": {
"name": "TABLEAUCLA32"
},
"id": "luwhnbxk-RDOP-luwhd3mk",
"maxLength": 249
},
{
"componentType": "InputNumber",
"unit": "€",
"min": 0,
"max": 9999,
"response": {
"name": "TABLEAUCLA33"
},
"decimals": 0,
"id": "luwhnbxk-RDOP-luwhcilc"
}
]
],
"mandatory": false
}
],
"maxPage": "1"
}
Loading...
+

Dans une tableau dynamique

+ +
{
"variables": [
{
"variableType": "EXTERNAL",
"name": "VARIABLE_EXT"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": [],
"EDITED": [],
"FORCED": [],
"INPUTTED": [],
"PREVIOUS": []
},
"name": "PREMIERTAB2"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": [],
"EDITED": [],
"FORCED": [],
"INPUTTED": [],
"PREVIOUS": []
},
"name": "PREMIERTAB3"
},
{
"variableType": "COLLECTED",
"values": {
"COLLECTED": [],
"EDITED": [],
"FORCED": [],
"INPUTTED": [],
"PREVIOUS": []
},
"name": "PREMIERTAB4"
}
],
"components": [
{
"componentType": "RosterForLoop",
"components": [
{
"componentType": "Text",
"label": {
"type": "VTL",
"value": "VARIABLE_EXT"
},
"id": "lvp6l8rw-RDOP-lvp7mld9",
"maxLength": 249
},
{
"componentType": "Input",
"response": {
"name": "PREMIERTAB2"
},
"id": "lvp6l8rw-RDOP-lvp75ug8",
"maxLength": 5
},
{
"componentType": "InputNumber",
"min": 0,
"max": 10000,
"response": {
"name": "PREMIERTAB3"
},
"decimals": 0,
"id": "lvp6l8rw-RDOP-lvp7i2ub"
},
{
"componentType": "InputNumber",
"min": 0,
"max": 10000,
"response": {
"name": "PREMIERTAB4"
},
"decimals": 0,
"id": "lvp6l8rw-RDOP-lvp74mc4"
}
],
"controls": [
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\" La valeur doit être comprise entre 0 et 10000.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(PREMIERTAB3)) and (0>PREMIERTAB3 or 10000<PREMIERTAB3))"
},
"id": "lvp6l8rw-RDOP-lvp7i2ub-format-borne-inf-sup"
},
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(PREMIERTAB3)) and round(PREMIERTAB3,0)<>PREMIERTAB3)"
},
"id": "lvp6l8rw-RDOP-lvp7i2ub-format-decimal"
},
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\" La valeur doit être comprise entre 0 et 10000.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(PREMIERTAB4)) and (0>PREMIERTAB4 or 10000<PREMIERTAB4))"
},
"id": "lvp6l8rw-RDOP-lvp74mc4-format-borne-inf-sup"
},
{
"criticality": "ERROR",
"errorMessage": {
"type": "VTL|MD",
"value": "\"Le nombre doit comporter au maximum 0 chiffre(s) après la virgule.\""
},
"typeOfControl": "FORMAT",
"control": {
"type": "VTL",
"value": "not(not(isnull(PREMIERTAB4)) and round(PREMIERTAB4,0)<>PREMIERTAB4)"
},
"id": "lvp6l8rw-RDOP-lvp74mc4-format-decimal"
}
],
"header": [
{
"label": {
"type": "VTL|MD",
"value": "\"Nom (LS)\""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Code postal (LS)\""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Capacité 2023 (LS)\""
}
},
{
"label": {
"type": "VTL|MD",
"value": "\"Capacité 2024\""
}
}
],
"conditionFilter": {
"type": "VTL",
"value": "true"
},
"id": "lvp6l8rw",
"page": "1",
"lines": {
"min": {
"type": "VTL",
"value": "2"
},
"max": {
"type": "VTL",
"value": "5"
}
},
"mandatory": false
}
],
"pagination": "question",
"lunaticModelVersion": "3.8.0",
"enoCoreVersion": "3.21.0-SNAPSHOT",
"resizing": {},
"maxPage": "1"
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/fields/textarea.html b/website/components/fields/textarea.html new file mode 100644 index 000000000..5e74ad07d --- /dev/null +++ b/website/components/fields/textarea.html @@ -0,0 +1,19 @@ + + + + + +Textarea | @inseefr/lunatic + + + + +

Textarea

+

Le composant Textarea permet d'afficher un champ texte multiligne.

+
    +
  • maxLength, permet de définir la longueur maximale du texte (au niveau HTML seulement, un contrôle est nécessaire si on souhaite valider la longueur)
  • +
+ +
{
"components": [
{
"page": "1",
"id": "name",
"componentType": "Textarea",
"label": {
"value": "\"Label\"",
"type": "VTL|MD"
},
"description": {
"value": "\"Description\"",
"type": "VTL|MD"
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"maxLength": 30,
"response": {
"name": "SOMETHING"
}
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "SOMETHING",
"componentRef": "name",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/components/lunatic-components.html b/website/components/lunatic-components.html new file mode 100644 index 000000000..11f820d8c --- /dev/null +++ b/website/components/lunatic-components.html @@ -0,0 +1,25 @@ + + + + + +Afficher le formulaire | @inseefr/lunatic + + + + +

Afficher le formulaire

+

Le hook useLunatic() renvoie une méthode getComponents() qui permet de récupérer les composants à afficher dans l'application. Cette méthode renvoie un tableau contenant les propriétés des différents composants et c'est à l'orchestrateur de gérer leur affichage en utilisant la propriété componentType pour sélectionner le bon composant.

+
attention

Depuis la V3, la feuille de style css de la librarie n'est plus importée par défaut. Pour l'utiliser il faut l'importer de cette façon

import '@inseefr/lunatic/lib/main.css'
+

En plus du hook useLunatic(), @inseefr/lunatic offre une librairie de composant qui peut être utilisé pour le rendu. Pour ne pas avoir à boucler manuellement sur chaque élément un composant LunaticComponents est fourni et permet de se charger de l'affichage.

+
import {LunaticComponents, useLunatic} from "@inseefr/lunatic";

function App () {
const {getComponents, Provider} = useLunatic(source, data, {initialPage: '1'})

return <Provider>
<LunaticComponents components={getComponents()}/>
</Provider>
}
+

Ce composant peut aussi recevoir des propriétés supplémentaires afin d'ajouter des comportements plus poussés :

+
    +
  • componentProps, est une fonction qui permet de passer des propriétés supplémentaires à chaque composant
  • +
  • autoFocusKey, est une chaine de caractère qui déclenche un focus du premier champ lorsque sa valeur change
  • +
  • wrapper, permet de définir un élément qui va venir entourer chaque élément du formulaire
  • +
+
<LunaticComponents
autoFocusKey={pageTag}
components={components}
componentProps={() => ({
errors: currentErrors,
disabled: true,
})}
wrapper={({ children, id }) => (
<div className="lunatic lunatic-component">{children}</div>
)}
/>
+

Le reste de l'interface (navigation, affichage des erreurs) est à la charge de l'orchestrateur.

+ + \ No newline at end of file diff --git a/website/components/personnalisation.html b/website/components/personnalisation.html new file mode 100644 index 000000000..5502ea5a6 --- /dev/null +++ b/website/components/personnalisation.html @@ -0,0 +1,17 @@ + + + + + +Personnalisation | @inseefr/lunatic + + + + +

Personnalisation

+

Par défaut, les composants proposés par @inseefr/lunatic sont assez simples avec un style minimal. Vous pouvez personnaliser les champs avec votre propre CSS, mais pour des cas plus complexes, vous pouvez remplacer les composants de bases par vos propres composants à l'aide de l'option slots.

+
const slots = {
Input: MyCustomInput,
InputNumber: MyCustomInputNumber,
};

<LunaticComponents slots={slots} />
+

Si vous utilisez TypeScript, vous pouvez utiliser le type LunaticSlotComponents pour typer vos composants (l'objet contient en index tous les composants personnalisables).

+

Pour un exemple d'implémentation vous pouvez regarder les composants du DSFR.

+ + \ No newline at end of file diff --git a/website/hook/controls.html b/website/hook/controls.html new file mode 100644 index 000000000..52d85bbd0 --- /dev/null +++ b/website/hook/controls.html @@ -0,0 +1,31 @@ + + + + + +Gestion des contrôles | @inseefr/lunatic + + + + +

Gestion des contrôles

+

Les contrôles permettent de définir les règles de validation dans le questionnaire (sous forme d'expression VTL). Le hook useLunatic fournit une fonction compileControls permettant d'exécuter ces contrôles et de récupérer les erreurs.

+

Structure d'un contrôle

+

Les contrôles sont définis au niveau des composants dans la source. Chaque contrôle possède les caractéristiques suivantes :

+
    +
  • Criticité : Peut être définie comme information, avertissement ou erreur.
  • +
  • Type de contrôle : Peut être de format ou de cohérence.
  • +
  • Expression : Définit la condition d'affichage du contrôle.
  • +
  • Message d'erreur : Message affiché en cas de non-validation du contrôle.
  • +
+

L'expression et le message d'erreur peuvent être dynamiques et personnalisées via le VTL. La structure TypeScript d'un contrôle est la suivante :

+
export type ControlType = {
id: string;
criticality: 'INFO' | 'WARN' | 'ERROR';
typeOfControl: 'FORMAT' | 'CONSISTENCY';
control: {value: string, type: 'VTL'};
errorMessage: {value: string, type: 'VTL' | 'VTL|MD' | 'TXT'};
bindingDependencies?: string[];
type?: 'roundabout' | 'ROW' | 'simple';
iterations?: number;
};
+

Les types 'roundabout' et 'ROW' définissent des contrôles spécifiques. 'ROW' est utilisé uniquement dans un tableau pour définir un contrôle de ligne, tandis que 'roundabout' est utilisé dans le composant rond-point.

+

Utilisation des contrôles dans les orchestrateurs

+

Le hook Lunatic fournit la fonction compileControls, qui permet de récupérer la liste des erreurs courantes ainsi qu'un booléen isCritical. Ce dernier vaut true lorsqu'il y a une erreur avec une criticité ERROR ou de type de contrôle FORMAT.

+

Les composants peuvent ensuite utiliser ces erreurs en tant que propriétés pour les afficher.

+

Par exemple, en utilisant compileControls à chaque changement de page :

+
const [errors, setErrors] = useState();

const handleGoNext = () => {
const { currentErrors } = compileControls();
setErrors(currentErrors);
if (!currentErrors) {
goNextPage();
}
};

return (
<>
{/* ... */}
<LunaticComponents
components={components}
componentProps={() => ({
errors: errors,
})}
/>
{/* ... */}
</>
);
+

Dans cet exemple, currentErrors contient les erreurs actuelles retournées par compileControls. Si aucune erreur n'est présente, la fonction goNextPage() est appelée pour passer à la page suivante.

+ + \ No newline at end of file diff --git a/website/hook/navigation.html b/website/hook/navigation.html new file mode 100644 index 000000000..5d86472e4 --- /dev/null +++ b/website/hook/navigation.html @@ -0,0 +1,49 @@ + + + + + +Navigation | @inseefr/lunatic + + + + +

Navigation

+

Par défaut le formulaire est décomposé en plusieurs pages qui peuvent être atteinte par le biais d'une navigation. L'interface visuelle de la navigation n'est pas incluse dans @inseefr/lunatic et c'est à l'orchestrateur d'ajouter les éléments de navigations. Le hook fournit plusieurs méthodes pour simplifier le travail.

+
    +
  • goPreviousPage(), permet de revenir en arrière d'une page
  • +
  • goNextPage(), permet d'aller à la page suivante
  • +
  • goToPage(params: {page: string; iteration?: number; nbIterations?: number; subPage?: number;}), permet d'aller à une page spécifique
  • +
  • isFirstPage, indique si on est à la première page
  • +
  • isLastPage, indique si on est à la dernière page du formulaire (on a atteind maxPage)
  • +
  • pageTag, chaine de caractère représentant la page courante
  • +
  • pager, objet contenant l'état de la navigation
  • +
+

PageTag

+

Le page tag est une chaine de caractère permettant de représenter la position de l'utilisateur dans le formulaire et se présente de la manière suivante.

+
    +
  • [page].[sous-page]#[iteration], quand on est dans une boucle / rond-point
  • +
  • [page]
  • +
+
info

Les numéros de page, de sous-page et d'itérations commencent à 1 dans le pageTag

+

Pager

+

Le pager est un objet qui contient les informations concernant la navigation. C'est cet objet qui est utilisé en interne pour déterminer où on se trouve dans la navigation.

+
    +
  • lastReachedPage : Dernière page atteinte (optionnelle, chaîne de caractères, même format que pageTag)
  • +
  • maxPage : Dernière page du formulaire (chaine de caractère)
  • +
  • page : Page courante (obligatoire, chaîne de caractères)
  • +
+

Quand on est dans une boucle le pager aura des propriétés supplémentaires

+
    +
  • subPage, Sous-page courante
  • +
  • iteration, Index d'itération (nombre, commençant à 0)
  • +
  • nbSubPages, Nombre de pages dans la boucle
  • +
  • nbIterations, Nombre d'itérations (ex: nbre de personnes)
  • +
  • shallowIteration, TODO
  • +
  • linksIterations, TODO
  • +
+ +

Afin de mieux comprendre la navigation voici un flow chart permettant de détailler l'arbre de décision lors d'une navigation vers l'avant.

+
+ + \ No newline at end of file diff --git a/website/hook/parameters.html b/website/hook/parameters.html new file mode 100644 index 000000000..aa70caea9 --- /dev/null +++ b/website/hook/parameters.html @@ -0,0 +1,100 @@ + + + + + +Paramètres | @inseefr/lunatic + + + + +

Paramètres

+ +

Le premier point d'entrée avec la librairie est le hook useLunatic(source, data, options) qui prend 3 arguments :

+
    +
  1. Un objet source correspondant à un modèle lunatic. Voir le type
  2. +
  3. Un objet contenant les données du formulaire (s'il a été prérempli par exemple) Voir le type
  4. +
  5. Un objet d'option pour définir des comportements spécifique Voir le type
  6. +
+

Options Voir le type

+

Toutes les options sont optionnelles.

+
    +
  • disableFilters, désactive les filtres de composants dans le questionnaire (défaut false)
  • +
  • features, active le support du VTL et du Markdown (défaut ['VTL', 'MD'])
  • +
  • preferences (défaut ['COLLECTED']), non utilisé
  • +
  • savingType, définit dans quelle clef sauvegarder les données (défaut 'COLLECTED')
  • +
  • onChange, méthode appelée lorsqu'une variable change suite à une action utilisateur (doit être mémoïsé car utilisé en dépendance d'un useCallback en interne). (optionnel (response: {name: string}, value: any, args?: {iteration?: number}) => {})
  • +
  • management, active le mode management (défaut false)
  • +
  • shortcut, active les racourcis clavier pour les cases à cocher / radio et boutons ne sait pas / refus (défaut false)
  • +
  • initialPage, définit la page de démarrage (défaut '1')
  • +
  • lastReachedPage, définit la dernière page atteinte (défaut undefined)
  • +
  • autoSuggesterLoading, active le préchargement des données du suggester à l'initialisation de Lunatic (défaut false)
  • +
  • getReferentiel promesse appelée pour récupérer les nomenclatures necessaire au fonctionnement des suggesters ((name: string) => Promise<Array<unknown>>)
  • +
  • activeControls active les controles (default false)
  • +
  • withOverview, active le système de vue d'ensemble (défaut false)
  • +
  • missing, active le système de missing (Ne sait pas / Refus) (défault false)
  • +
  • missingStrategy fonction exécutée au clique sur un button missing (défaut emptyFn)
  • +
  • missingShortcut raccourcis clavier déclanchant les boutons missing (défaut { dontKnow: '', refused: '' })
  • +
  • dontKnowButton label du bouton "Ne sait pas" (défaut { fr: 'Ne sais pas', en: "Don't know" })
  • +
  • refusedButton label du bouton "Refus" (défaut { fr: 'Refus', en: 'Refused' })
  • +
  • trackChanges, active le suivi des changements (défaut false),
  • +
  • componentsOptions permet de définir des options sur le fonctionnement des composants. Toutes les options sont optionnelles (défaut objet contenant la valeur par défaut de chaque paramètre) +
      +
    • detailAlwaysDisplayed permet d'afficher par défaut les modalités 'detail' associées aux modalités de réponse
    • +
    +
  • +
+

Vue d'ensemble

+
    +
  • withOverview, active le système de vue d'ensemble (défaut false)
  • +
+

Utilisation

+

Pour activer le système de vue d'ensemble, définissez withOverview sur true lors de l'appel à useLunatic :

+
const {
overview
} = useLunatic(source, data, {withOverview: true})
+

Structure des données de vue d'ensemble

+

Lorsque l'option withOverview est activée, le retour de useLunatic inclura une propriété overview, qui est un tableau d'objets de type InterpretedLunaticOverviewItem. L'overview est constitué de l'ensemble des séquences du questionnaire, chaque sequence peut contenir des sous séquence qui seront disponible dans children.

+

Chaque élément de la vue d'ensemble a la structure suivante :

+
    +
  • id: Identifiant unique de l'élément.
  • +
  • type: Type de l'élément.
  • +
  • page: Tag de la page où se trouve l'élément.
  • +
  • label: Libellé de l'élément, rendu avec React.
  • +
  • description: Description de l'élément, rendue avec React.
  • +
  • reached: Indique si l'élément a été atteint.
  • +
  • current: Indique si nous sommes actuellement dans cet élément ou dans un de ses enfants.
  • +
  • children: Tableau des sous-éléments de l'élément.
  • +
+

La propriété children contient les sous-séquences de la séquence principale.

+

Suivi des changements

+
    +
  • trackChanges, active le suivi des changements (défaut false),
  • +
+

Afin de simplifier le suivi des changements @inseefr/lunatic offre un système intégré permettant d'obtenir les variables modifiées entre 2 étapes. Cela permet par exemple de mettre en place une synchronisation partielle des données au fil du remplissage du formulaire (plutôt que d'attendre la finalisation du formulaire).

+

Pour activer ce mode de suivi, passez l'option trackChanges à true. Le hook useLunatic() renverra alors 2 méthodes supplémentaires permettant de contrôler le suivi des changements.

+
const {
getChangedData,
resetChangedData,
} = useLunatic(source, data, {trackChanges: true})
+
    +
  • getChangedData(reset: boolean = false), récupère les données qui ont changé depuis le dernier reset. Le format de retour est le même que getData().
  • +
  • resetChangedData(), vide le dictionnaire des variables changée
  • +
+

Mode "Ne sais pas" / "Refus"

+
    +
  • missing (défaut false)
  • +
+

Ce mode permet à l'utilisateur d'indiquer qu'il ne connait pas la réponse à une question ou qu'il souhaite ne pas y répondre. Des options supplémentaires permettent de définir le comportement des boutons.

+
    +
  • missingStrategy fonction exécutée au clique sur un button missing (défaut emptyFn)
  • +
  • missingShortcut raccourcis clavier déclanchant les boutons missing (défaut { dontKnow: '', refused: '' })
  • +
  • dontKnowButton label du bouton "Ne sait pas" (défaut { fr: 'Ne sais pas', en: "Don't know" })
  • +
  • refusedButton label du bouton "Refus" (défaut { fr: 'Refus', en: 'Refused' })
  • +
+

Pour chaque champ une clef missingResponse doit enregistrer le choix fait par l'utilisateur.

+
{
"missingResponse": { "name": "READY_MISSING" }
}
+

La valeur de cette réponse sera RF en cas de refus, DK en cas de "Je ne sais pas".

+

Mode "management"

+
    +
  • management, active le mode management (défaut false)
  • +
+

Ce mode permet de gérer plusieurs états de la même variable (utilisé par les positions de récupération). L'administrateur pourra osciller entre le mode COLLECTED, EDITED, INPUTTED...

+
attention

Ce mode n'est pas encore implémenté, l'option management n'a pas donc pas d'effet pour le moment.

+ + \ No newline at end of file diff --git a/website/hook/return.html b/website/hook/return.html new file mode 100644 index 000000000..fe4e10112 --- /dev/null +++ b/website/hook/return.html @@ -0,0 +1,42 @@ + + + + + +Retour | @inseefr/lunatic + + + + +

Retour

+

Le hook useLunatic retourne un objet de type LunaticState

+

Cet objet contient des paramètres, méthodes et composants

+

Les paramètres

+
    +
  • pageTag : string, correspondant à la numérotation de la page courrante (cf section PageTag)
  • +
  • isFirstPage : boolean,
  • +
  • isLastPage : boolean,
  • +
  • updatedAt : number, correspondant à la date du dernier appel à la fonction handleChange
  • +
  • pager : `LunaticPage contenant toutes les informations concernant les pages (dernière page atteinte, nombre de page, de sous page etc..)
  • +
  • isInLoop : boolean
  • +
  • overview cf section vue d'ensemble
  • +
  • loopVariables : liste des variables de la boucle courrante
  • +
+

Les méthodes

+
    +
  • getComponents permet de récupérer les composants à afficher (cf section affichage)
  • +
  • goPreviousPage, permet de naviguer à la page précédente (cf section navigation)
  • +
  • goNextPage, permet de naviguer à la page suivante (cf section navigation)
  • +
  • goToPage, permet de naviguer directement à une page (cf section navigation)
  • +
  • compileControls, permet de récupérer les contrôles
  • +
  • getData, permet de récupérer les données du questionnaire
  • +
  • getChangedData, permet de récupérer les données qui ont changées (cf section "suivi des changements")
  • +
  • resetChangedData, vide le dictionnaire des variables changée (cf section "suivi des changements")
  • +
  • hasPageResponse, methode renvoyant true dès que la page courante contient au moins une réponse.
  • +
+

Le composant

+
    +
  • Provider, composant nécéssaire au fonctionnement de la librarie devant entourer LunaticComponents
  • +
+ + \ No newline at end of file diff --git a/website/hook/track-changes.html b/website/hook/track-changes.html new file mode 100644 index 000000000..394c31cda --- /dev/null +++ b/website/hook/track-changes.html @@ -0,0 +1,20 @@ + + + + + +Suivi des changements | @inseefr/lunatic + + + + +

Suivi des changements

+

Afin de simplifier le suivi des changements @inseefr/lunatic offre un système intégré permettant d'obtenir les variables modifiées entre 2 étapes. Cela permet par exemple de mettre en place une synchronisation partielle des données au fil du remplissage du formulaire (plutôt que d'attendre la finalisation du formulaire).

+

Pour activer ce mode de suivi, passez l'option trackChanges à true. Le hook useLunatic() renverra alors 2 méthodes supplémentaires permettant de contrôler le suivi des changements.

+
const {
getChangedData,
resetChangedData,
} = useLunatic(source, data, {trackChanges: true})
+
    +
  • getChangedData(reset: boolean = false), récupère les données qui ont changé depuis le dernier reset. Le format de retour est le même que getData().
  • +
  • resetChangedData(), vide le dictionnaire des variables changée
  • +
+ + \ No newline at end of file diff --git a/website/img/clipboard.png b/website/img/clipboard.png new file mode 100644 index 0000000000000000000000000000000000000000..8ddb5abcf8dc7ac5e02991b21919defdb0e4dd5d GIT binary patch literal 15365 zcmV+gJo>|lP) zjVM)buGZ^7YlJ^=i>uV?97SC|YlIj+R;||TB1~fyJ5x4dd~KDlZE&=J)?=T`f{<{`>s?`TP9)|NU)a#p(M0aAy1b z`N-(|;PLqXZEE%Y|NmxU96eM2W?skW_5WjF|7~9*JyHGq`5!q^#O3$${r>s=`2TBV z`)Xmp>HFO9_y79&B0^lp>HHx7AU#zm zOk^KGTITosDo<(rY+U*M|0+B`7d=)RI#J2x^A78#r3y^ZLu^ z`6)e7{@&vK`19)c{r>m({BB_TYiH|ORM_kF`g3R7JvtdOR~bK8Bu8P?OG(M<`_Ae0 zAv{^l>iPD1anI@U%jom;YGm%BmnS<_$DW+i=kTUeSgll87dKM>W?0ZaJGk>X`1{V}?@~)%pwHr_)a?A+-{6vo z!Rh`NJy7<%wIV!Wt<~u=H$U@gUz*63nkEva;KXg7sWew9(t4jF#e2OzPd* zZ(nDRba~Nmah0#WfS<9gfr+lZ$lS=f*yHHZ!^7{)#?RXMVgLXDB6LztQvkBcR*HjS$6?JJ9v+C@+$c^?|VMML9bIfk* zv}4UmG!Zgi6lY{9ec*^uDQ565<6#=6X*!Hna{@^LF3yuz%)Ay$5z&l8-#_(3FAUR* zF~*B31bMdKi_E!oN_iAfhhBJk8V-l?r4+1S6eA)bZf=UKxz(%`#yIwaJcqH`?aEy# z)OBr55`_Sf&}Hpuwmr?;Gz`NumX$aX#8V}*swB#Ij4dJL?CHuySjAWm5+w1^kfauR}+A%W{p-+-d`-v$uU6>WQapkr0FiBl9HW81S-2J=d z-PL^g$#Dn>Ml4lT(xix}37?DHc&Ax$EhA@a%8XZS+rVa7ymI$B1R_-@O~Wj0z_yOg3Q@LQB`b-z|MwQ($A0r4%O*&@^psU3{*BinbpPrc53@69CTt6xmUb zI8`>`4MW@P?~AmeUV%&E>U;D2l^^f)yWFMG;Z| zfI>P9aWMhuEX0L4C5A4{Vz`T`N(>EJBqC&EM3@Lc(1>-!M|_ZhM6F>OT)2=JDrhy@ zXhUN#iZPUGt0?M15&Yeo8BL<83brDCY0{<*ncFYtoO|w_SxPk(6R8J+fKD5lq~6}% zMoq18sgNiLf~iS?CMo@2wFE8DAc$|X9wET9z}WB!jA91BWCA)kKO3Ea>P4 zxYa#&OOpDvKrdUZV_%nUvqViz!j5VMgQi}91)da%L=55$SMh$2X-`!ZFCnde=bXdB zd7%&_VH~@6XBr5b$OZ#i6bdw1Na6r3&!#5o$*W3nDZP5tLYl{mBt(Jq0PzM*Op>h{ zPO8)^ebq#-IKaW0kg1{oRZ$T0E0@ojah5CepYINPB9Sv;6OUw)2Kc4|`k`hhNIMx2 z5Fup8Kmw7%5ZRUzLIpd!_<{m#&k;|=RZJvkFxgB^HoQhrQNy4q4o#8p-iwH1BkZXn zeTND>fXJ$%(v80PGhL*X($K(18M*UhYqnG>U28_o-*y;Y521K;SV{~OMN1R)gb5#X zx#&q0T2Z=0oGmX#;m1NSJwX#h#Y-mFrlyq5KDiU=Rx)9{sdr}Q$vFx;z3;zs?aj$& z&u%s0naL;c`SZsS!%HXZ z_mnG>IR2Can4CQM=Gvg&Fz^Ww^sqC>(h!2l2*lpO(Typ1Zh{|9z8{R~Y@Q=}A(g@u zCiYY{3DlEKgeD}Ogc^;T)PplFDVlOoQLOhwix}vN@7y{*_UiuqBjrk^GR47f;Lnqj zN8b$wV#MPmtuwdUS*`#hP~=dI%^#sjd;Q^VHlT+L zgH*5e0uO{bO#*$&*1%Ou0(vUid199Po}LheAfo(!Pa2;3u53JfxZUBfTXb630S3dn zuM8hLG&J<#MK9l=K+31^#9BSmxZVQZqvQq|-&^)(8f{Qg+{$&1{<1Mc-WFb6to_^Jvx z9lqCZb1(d8f_F`SJC5yHX!<-^J~zCfZN1y=;CZ{<@`I7F?`DNqpB#NO7E=s5bq#* zs~nj)u!UA5JC9ImqAAIZe#jD4)_06xX;P@B6Ye!kt*JRtmU+4!$me5ugi~(Yx~Vh) z&f(x*-|l+>ObuW2k4%Ot%oAk&=6IENyG2z z^?XA_=Zc4H{A|9&zW>`4z7Lw!KYbucR0Rc*7Pz5yGh32 zv+|LN4Q*}f+pQrulANY#osDx0Km5W_U4h~VVoB(U{&7uWNGC3TEWhi$$g*G}mijmZ5;t%G=U3<@@r~4%PN)nO-?<;#I z4yB^dGkKs#JHh&6|o?q zrT#5Vji#DvBChe4?n} zTh~`aT@je#hcHAO2x;n;=$i!(l&{$b(QD}er;wlGliXg`_E)DNn4LJH9UCn z^i+0i{X(V*C$&-8Pwmg2J%74o%a(RKZS8Fzu(&w02@f$<)l?m~CNK}dl)Dpq@b2^H z&mTXw+c`*k)0W-rcW7F3^5v~%hpu1u_EguWwY90~!PckuvSU{*434lgMc+P4B@B`( z@`{1HLrKS**5PR`uQbKuN8`!H{Fh87^W|#_ID2v9b<|(dGYRH{x@C7$PNYmo?gBofhe-4IgC54ULRv<9kae`#X$+l)5BVuF^8 z=US5YGbXnsF+v0&iZmrePQ7}5Iy7upnEpGhXxct|)^V?I9`|j~TGJ19pSpKC6b?hv zl%X}NCar$^UKR{VlF&6cLjMXR67s_wmJIRyjco*X*mCD?7c6tuS(31j*OXM^xt!8z zX;MWWaiHt(v#TdzqHAfId;*&09#^hA9y#+uQ#!q9_o=-lO=qYk(kua3G7)T=z8;Qg zN~1D!{rY*o$bxcp0Qao0Ca%R}jiWP+JT%ENv7p8x`m1iCX=2Tpn$>OZ<&lOYNCNND z6d=UtJRD0Z6pSKC#!(YivgdAgn#={sxs1hl6@Vj!-u#Uz9T{*1n(9Q+scDS9A{+I8 zr)ieQntC=gmNbQG5KTi@1^2W~mnBftB>DjDXn@F4-J@JAxe@G(Cz**j^H14^2b; zxcp_Bn#*en_+-O)luPfMwQLzYm4T_jhTKJxQ7o3Ch}COxMbQ-P+!fOi(!5$*E74G9 zp0E>%tjMnZPScWEi@nyQeWxk3r=4jMB$uW@07qRjkvm#iXf$oKDTuL5i&v!-WQqwa zVFOx{-szp!2}5`T4B^luIW*}NH1)E7E3Y*Lp=oXCaeIYm3QP+iO%UVkv6iDsBYq~p z&@_!jmbr@p+u{~DK+}QK z(fV-EsR_uk%yA+tm0%}4W5(An9i8U~4IVrQAOqMvUxj03D^1YU* zO)_M01e&JMXbSrML9B^QUc;ivb4>~~ZKaw*;ZbEZ`J51dV-G`=I(0xF_iVLq&mltw z^zT1#X*sUA%I?-HPV!S#Oi3J?WQQgslhS}?dcvAu13r+Q*P%t`S?AozZlT;d;d~QTcIDJG1tJ&MJ9ztE|3UBB7$VBoO*fJu3b-x+`df{J1DXW7ln^I zt1fIhJAP#yCLu(iJxCN47x#2Z)8W%i1cz zKFyYKWX`6E5dGSm=%``gus;~|gBobMyTpB_^IB7gYKm6W>#{N}<|~H65TsxTR_A#fqAS(|1)k7d~K9 z)dfv#P0)T#7r8cPN-*r!w5(fcLcg2ou=-!q4>j>4C8-&k*fmXEX$H2_>c6FFxX8ZV zNcGbA@#8P4w83*t!+DX?Z8VvezMDhP^o^bK=}{U8PqVhT2eG_f%a zMGF!`{Bt34XriQQhzSQ1$fjI8dH3W+4n#QN!HeI*i=V?^nHE|UMU7e$pN8Fb%9foc zGjHFS>F$lo*}SQgw4#FE?V1(0dDe=sJ7bp>o&7wN={Q|o|M*d-)Vkd+7WQ=M$IxpO zJ*K4NI#RtrGMb*=yP1S=eBEk#ofA!^f?gxT{$knU$`O7TxD3(vnoJ@f;pRal!ulyH zF}r=9hz==~zNP6>o;0Bc)Q9~SOI1-cMe#gNoj0w5q>~t7XpNhb(dY$b9TA4%iytG* zG74O4JB{-XX)0CR$A z*sYel^aD$9(wYQ>aA?|w@Jkp0Z#CV8rsuiP1ol_+mYG+|8l zTmK9Sn(*K(O)s;W__QV>xuG11SPq!tYCL<~Km=Nj`FLm%C>+;lq=Glcm6h^$kyHB| zD1%Iq;>jb65t9K-N)rrSfu<;ge~8k{`?=7>ux_Yo8mHQW)v7=6tK4SeEeAYHEAUq4 zkSU}!f#Z6-cmv>+~^syt;$jFQ|)j(Oe)~6=PgY$8md9zj-aIQ&`-H< zqG;-T9sE<8^r97v9#0#bAsYrlxoSs)Iz6rc-<;c!(`cNo37n#7(YFdDPnwWkKD&DE z$b1tcF@hC@kEfc3OkC?3x7Q0d(nu?S!Ae+FQ8Sey8x)12d0%Iv#YFD`21wa6rt=qX zD*}6<31d2p<}O~j2(Fwz|L5|iCtFSDu0zwsY!;qq;(10SF4|MCr@>NVy6m_t<}wpa zt5vX=olU26icL|gFvViZvbtogK|zBDu%_Jx)4RQ)aO8*EA7mVk+*qvv@HH2CgNT zVoFm9%l)hUdN(h`v?D6~NNfL3ophlRsz?#I2SECY5 zA}SQ&0PHhGiV#Dxlw#O}M-GaVLY;yJ>^S6Wnl62z=}ta05eU(1fMHk|D*;r9A$v`= zXsN&fbm=HVF(K=rAW#ZflG752*G~T#O-`*QMZdpZBhXaS3xF@OdreSN2W*VFg-9{1 zkU>f?DW!vBmLk>h`BF|a-GZj~pB^D^y8i5PT2nf`gdV8`B*GRY37RTcK|#DC35ena zz{VUrX<%j{M@S-8JHl)uBH|;zs)>g1OMfsSz`xX@ny!CM6UoB1i}kwhIBa2vlY31x z?*2ZGYr2rkUgk*?vH-*<-19_q5uE(5=`(xh(yKfXhjF8E?`Pl^Ek~r7MjQ69TM`3tjsaT=_M8X4)xjp}VHquFZ(p<_$5n8)MMKMujA976BO=91WN{Y zfV-oqiTh3G+g7jE#XMUpiE6p_zou<_la5N$U_P(T=bsIlN%_C2iL_00Ed2g3O}xIG zc1UqIZgjd$QP&D8w?@7Oy3L-=do`UOPt(mGJ@U;rKY#q%mv+DDzQ-T<;{N+T2!8eD zI8m->)~sWfA>-vq%@Rq2?x2y5cP^A<0L6wqY&(d4GUQW&unyCapqQ)aF2rroZz6LD zzJB(`u0sG#-*`2>9jYnE3B7rhl7gpcv(0&tiKR>kf&Hf7Ao%wpj*(^T)AR(QJ+`J- zBB4pEAoJ87RMXT_D*t5pvsNf5RK(HJ4y*`MNM4xZGL(j-dOEOC_rL{om! zOS+z5h-9Tj%*y;bu_rDbs_E97ZX`GV$TU5?OOqyvIc1i3l4%;Qf|~U9a#0&>G6U{? zKZ9M=S|-|T8Jcjjp$QA7ol{MBMM)C}O_DOJrm3Z3KHXpkovTS)3|5y0xU?}GJooW{ zT?cW;!q=~SzhtRGHgkZc=OUwtBT>@Qyhtq-hxvxD370Wq-L8!;60Agt!e`8f5i8mk z8{B#}c&nbQe03JP=vu0t%|=<%hnt!tO+&ZIwlr)^N~A-ext_FwIU8PG4TnRR3}Rfm z7|ykUEBg*e!A;yl8GmLtOih;&()0ou3;+BztV8fHrdr&`G;R5^!t;wM3cnYyG@eibO9%EaA!ctb3y_z(2xnRXeFK&(UI^g9PhLA);L^QFz>7HF}6QjT@rurDhFac^S zoQ*&Eq$B?Z)IhwNl}E8)5H-?Qb9w7mb`_WN0Y?kSr@*5jW#M27I?Bn!!@}L zmRB@}|1nx6s!5HMru)J*v2+`LuCSz%k2qq; zriY*j{U&Jo_J|z`kob83G6J%3vXa zt&y@Gmb>@d(S$mke}v%pn%KA-E$TBWnOsixY67}0w>=QA8_-Sea9ju?z$?i=9z9L> z?9fD}6{1Gqp`ImaI}HJL#!}br#B&JHrYB@ zztok?Hgo*O-o*R6myy#{sAMDyvoAj*jB9;U&DLda(}kf+GbtW~;;`$eBYh@l(oas4 z+-?r$7!<;=P#n3*r0&xsCaq?_-}+nV+bmH)jm+M}`c13=wN(=ua9A48<4{B>&sU|S z#I5^-N`KZljQN2tL(z0vY9>XrU|XB;+mEX0whc}1e6gu1ThHW{vw8fin2MJ{)i6e_ zB*$`-6}>k>os$hgZiaNK?1En|Y*Y0tgqShtlPWyhrRlJotLgT;?j$9HNNK{vufb== zlZj%g3{vr8v4fF0R?gHH(>V)%#jZ;+xPeJdq>awNYG=5U(WK`{))#r+Sc+u8Q`LCP zz+qQlS>I^~x!wfbFJgZkrs>IedDTh^(bDwrE=_F{CEv3v{D8;Zu8~51ElzAjD6~}ep}!ui&zYqAB1ua(}Z^W zKurmwdrF$>nzcg0$tcekOALswI*umU{>Hl~7US`JA`MM{C;4GDRfw_u9>rWxdFPZey`ghSukkI$t>%e!mboE;`u=CFrev4KS50~ z2e$}pCuMbKxX#xLNAS>IlQ&YD5WxJbjEdUjWHy*K-X}ZLd}gxDN^{<*rV%2{lX@h> z0B)gjJHhI(gY%HYGdm?qI2}zDP3ezGBs$iZjIdZk41IC*o7}ALtW!>70f%(pt?#r1 zQsI=LDVNu0<-|7*7|9lY9f#Vlcim;19$=o^Y{2K+8pt z{2KfnjnNoIc+?@bX`)|!qozrfWMu41t4RYhMH;AHuLes|%CWYILnwNIviS^4dd&#k z00W!uwHToAtMd3)PDxWe%UiAP2p@K%$z)ox+Tw4btLZIXBohiv%R}?pSV73@&N9;k zf|~9=YTNV;)pQTZ(*-n%0)zUHtk!Hcoz+T9Ns>v)i3j!wuPAwt#Z4p|?_);TOYMJ_ z4gRe){ooAC-EqD?Gse4{C4=K@VyR?Nu?PxTC|3qd6OeG%)#PwZO|k>~TR6rpP2WXO zlbn&sbxwyBPY{5;x&JjerxpSk{DvmUtBLV%*F>_u`!oR>mdBL@LiVO0BJkZm7#@U_ z3<8>-kC-ME8C*nh)&Di^)}*3JE~x)`P4|Rr(t#k#Sro0s=xDm@=$h`qcvDE8j+S+S zoX!1)sVEgXONZM)4(JgML)vc7t))7s97<8nc+;o&Qb)U&wx+MYdeAq&=|*b`PiM*` z5Qycj5s603m!nIFYyYsO7n!ElBcq9+RWzvFi~EB`l7}Z*ls7f8eq~S-?}u$;nznQ^eFvRWGT=E{ zGGJL>N7Ks@(u9HDX17YJyRquDXX@Plnzm`e5jU8_($$lRi%Tp}EoGSuH zUbtP(RJ`3w#3{Hp^+5`Y#DaYKs@Po!WUVfT#~!1TSSwDeF(W944(-VmHKogF+Et*t?*VJkJ%2_e?Dz@s01Tj#m*Bv$-hM{uXFlik|S0z(-0G z=7mF(cMd@yIgW{7XIFOBB%K~&@+ELJ)peymoi|X6Yycxbd5sZ51C(th_Ps_gspNEI zKn38}bpFq2`sL1mCMBpz?9DG|+!-JeofO+_K}Q*>v1F~2$|tT(8nD~EhbQy-uBDL0 z>GR z=5KNZ!&@h$33<#n_1=gm0wYvoHL^H|qe&7}b9#xBulyxa3~Fl#O}Qv(!u%$(FcCSU z*xPFy?)?quUl;lpyr*F+0-W?R>JKB!4odRvR%V?b|1=x#EdfkDf{k*1%d zrfgk%Oeoar_z!zMNhA_2A&%kD_gwbU-+cKJQ}ULk!k?ffik#Ky=f4h19%PXw$0fx< zauE06d5L$Zd_9P;i(Dczkn(PJ7MS6ppX3q0m zhMqlji>6EvylxZrGTjTO(~hMs=9umcP3VQ+;ePcES@-g|nt)D60!Z6h2iXc97uLhD zssO~l6+tV|pN@Pon#kgDpg>omq-$Z*^%e!DNd=D;w1VhEz9ym{y;8}L)!d_?37M6T z_Owl`V^n!eZ6~dMZ_!M)MY8Mww%X_bLvtI{uSX?7Cc_l@HT@7JO-i7$0!wDUM(T8( zQO{I#Xj-Q??P$Gk%}))N4WQycw2Ch9y6!)(Z^Sjp(DazvtaZ-PB+^?ox=ls*R94Ux z6eR^a;NOX9D)f9VC#9*NB41ynC!s|)v$$G#H0h72$>pL~vZ=Y3>r(SwN{gncs@OlH zp$SbmTfd3r={7WFWTiQ_PjMVSBbjew)l#^+vr3AfF0lBsgW-a^hf%c&Je+qXHDoa| z*)UD_t~EV+gZoWP)30RoGE`GG!&}JLKY5inD_4;mM_IGl>FZ3B+NUS|J*x&2@;>0! ze_}M^i>_m*&P zx0T3O=VVSt1T@`(Cj6t9K8B`;iKe%=_nR`g)=fca(l24tL&DFV?J1)eBbvgRaHi>Zs_Di~+_{C0 zH?c+f9}k&6uk%<*rVNIYQmb38A`<;1R<&@G%i^BHy~mK=wsG(^R=6Ay4^ z!yd*$X>>{^U)Zkc#pr3`enTgGlFFy^sYV$yD)M;*?0ZR$CC9s+_{9~?OH;~wNI8T& z%WB8zVgm*8$4*ESCz-Vg!r}SY5VdUFmM2roO^z$ARRgnmAkiVeN!$bbzz=~voobA0 z2(oIC(uA+RkF#h`V5$Yrp;*}*bS~q0D8d_v!xE~p>P5123q+&APo0__8)kg1MPR4^4c>}Vv4%o}0l2lX| z$&c!X7R42?`D!;pinRomiDzU9c*}VF zI;+I-e+k)vey^7O0ejU`GI;pKhwWZC>U2ldbiPXyP#svzFswMv|0RNdV?YyI=IZvh zqpFFX3quujSJRE=G&PaKfCv9QO@FX=Ha$v1Q5bgT!iE1qTEReYQelXE7#tC>iH#EK z2TBMrx*;K^E)YyGk%f_ofkelTOkBFu#4(v53*$x?uKWx0Pkc|?1LfL+Um&ROOek$( zGJSHn+}?BFbFMO`bF|bVIir?AU{Z@LSnKl%%fJXz#9ZI>>_4Ve#3b4J_b|OZ|7bQQ zRCvISBCTC1D0>J1D*k(WbH}s+ z$+9A)ulP3nl2T96RK#?5gz2c|S$SZFGlg0Pe+H96O$U-=YI}fS zY!FGVa5>U{OcR)-EIw%`l?}BvM2`O9PFoGiKY=MQDP{FAp>LXkDSLs+UdaBAf!fEE z%&|#j{M<1)?l$DaT8ct7Nu6rVRSjiC#e-t!Vw8`JCM!KA?4lMS}F5z;gMF;c#N)yWi+B`4no6Y;tSg9&D}mL) zMBYp_Z{#v&cJK0s%w~Ix3ChC6S}`+#Cm=2nUAD!~8H7MncxgsMK(L(Y!galOs89$f z%Ycb*eWznW>!;-W{dgG^a@}&gQH=%oX2ry$ceD>5_OI`9#=-bpqGq9!r@$P+0Ink z>&(x)q68x=sZ!~pF+JSTgLQ6Aj48yJ!WO15W4gHvn9Tk`3aUH3hltYkdOI~e7(md2 zIpK7u)@ZTUw*oyBw0G*>e%n7-+9 zW&^tbdA!6kT<46_@eILPj4UHz`lhom-B3SS8XUic zw#$tvd73eCobFd7{g_1PLYh#XmizR^!W8~nG0B$xWBPY6op#4Wm!V+GSCe&4#PYyE zkSiu{P7}^?pG1hLT!M({I$=7&n0P?2nDtFxrWUMKOdB^0;-;-P3#&KwVbS26i+Ey| zoUdDo2@-0K3*wgt1;t`AtmcKatfSgt$eNaW{`^EZa@2w8_WfnR6bNLq)D~jZJd)uw zVfK|2g2kA4o}VR#P-e)EyJRONp;#?)*SKRkx{R14YDs>z+969I%)Xtr8c1ImhX^Py z0mb3ir~CaXK>TO;*tmlC$&&@_tqi762&VdatzU!-3cu@Gueq^-Bt_%0zjBPEx+^$c zG1Wssnn%tqMQgIwH_hssBs7=yHu(cgQ(#ov&dcbp`1B!J9hA1VhuhONgscs=Gqr`( zmws3=6af>5Ga1tpk9)esW0Lj)^>;%9HdV`u8;u*onvR9-wos0I8=uAE45c7@gDrli z3K_TaY8^hYmBAF)^TX?#!^(D==Z{8nF#I;Eb;cxDcPRHWY~_}Yi1MnJT`c01mo7(l zhs~Jp%G%0cN~aOa)QSig#9Jv?EvNvpmJg=6N_1x%c4>cRHS~R$=A5qK zdoc}7Ot3`z-qm)CFvn+h+wvGwc|Mr>TdHpvFij3GF&FOHnzRHw(YsV7y0i;xAhj%+ zO{@k!b7Zjp{g`%C$!TKs#w6rO`6HMR^6jM75r5PgwE?O`Yg#I<^{RXUgWdSy|CoR& ztu~DusnSEtsMR+Nt=~}7_64-jH#v%7|B%hzjSmZ$s0&{rOvt#COnPHFDOVe*xb?5c zTRF`z`Y7P+@cJJ9jcF~YdNjsbnFMmA)PmUwOgtbs9)VYk@97BBfqionW8$@!kyCE7 zmo$+m54N<#<(ws0eTTS_;0p*1wu~|`ITuglV7Pa&@tO~1TP}9s42duu?nV=c{K5mu z!%N4y@DuQ?P(3j`zWPjGZh`mqvMp-NI#i&i=B zn-jIMl=k9({xBv-VQV+!<4it|0 z$Z}{IP4HyDdbFm66Qqf_1fC2tSs3Rli(^dRQ6It?V_mKj9iSjU^N)&t@mMFCQd>hj zJ%YfxYr;hrpQaBzHMs`W4O2&J(yXMG&g*g&WIso8 zFHJvU&~&yV!?P1;x))BLjt246&d8n0z@>oMlW;kHpef;YLXJ+b+H@${EPjeN{P?Dk zkt2jOAFKRe!TlEy5Ee?nwcrk_7}p=@q7F$k*fuO@khr zz;sBH<7J$(lkrNe_QvjRrBcD)xWcLWRQjVDK}2z-H@my*&81miQ#r@pZ=9Omb!xK9 z^*ei;&1Q3z(Qda_d(#v|mj%dE>gg`D0k5>zs@1YK*W`Gf<^95cx_C5Q+xp2g{IU#Q7g}P0d+~flX@>cwpy*)h}7gTO_zO5(}ULZr@H%T zZ5oW@03Huh$L#!vLq&Z7Jt!r+6ufzCN(i~^AU!nFhJx52O2Kn1Lhw@1w3kxBvKDcc zzJfUFA+ANkh`DHsV@O-12r78<_ay0>JzLtfBbk2E?csUyWY3c?PoC|vma4|6#-FXV zHxScx2xusT1VeT~LV#dcl6ysh0QEIXcP?G=G(+xV|_vivU?Z)nM(`GIuYmO0mAgZeyD5mp-r%o~g z-}t$`_H-qT_9mB@9J93>{D;RBf#pQ^lWMaJF~yb$Pt6H2w)_QRs@(|x`!Ov8M@(TO znJjeK`|IiWCBjqZvOH71^ZnuHckpXA619cK3j+ThI(#)*Af{TrpG;~k>g9U&Ea9y{ z<~Ca{|JeHQ5n>8m|BqrKqfw(Ts-2B=N{TNM9=pmjdhX}jhfh~-kghQu?G|oZ2F`~r zYM{l`%%!tZ{2Jl0Yej}(zkJ<#Q9Jl*A^{c?;u_QJLL=cJh$sj%HRwKU;98eUXY26* z;jzH06w5Szz5Vd?-7~n*MhzYlQRMKQbjX_d{XRcc<^0D{@!gGOF z#hg;^ZNC^8`Fy@st3_!#Y9WVc3kl590lLxn4S~o3k?ycj9CLx^&OlF``nuatSU$Bt z_~3l1UW{$_eiy{PVdU?km~hURTtv`8&SG+6_@J8MeKU|h_lya}9 z6(Fd=z=%eIJIlur5j~kg`hd)g;8lT?bhgOEt`NRB^Gf0=rqO+- z6)F``tW?zG>_kya9-27jC#hEJ6Rp#2>-q!qcDz2hmgXgiDz}=?HLZYh5=Rq8P~lXu zVRaE5vw&D^;zTeQMD<$hG+QM_VHsh8@XcIIk|gF{qucCg1w=(Eg&9@$f>yUS{3=`l zqpAh1)9bc36^>Js#Q@=-h1>PqBSvQ)-1*Y$HCLPCt&aC;g4L-x2W|Fx-Bx>3uL>+| z-&X^KpXTHB9K%pljL|noblt3#CTh3arP2nbWZS8?EhP-zZTxxj`i(MMWm!R*4-o!3 zcQIAZ#i$s?b6f^_JUy0WtFkORS~&D2+a4bZXGv5AK~5ynS%IfcULgFpbTKZ0R3;No z>_{hMi&>Lh2y#`f3bFtkT@x72W>@8d5$xUx1->gNpfo~J$FC4aW9h{Dy2MeGEM;Ix zSvbTjaLz7|k<828(5Va<)%V3&M%}Pcu=8d{{N=ez#1T5Zbbfwu@%Vm@jf3|^$J7?! j1qWu&EavB~95$oBtyehMdJjKM00000NkvXXu0mjf!jq-^ literal 0 HcmV?d00001 diff --git a/website/img/favicon.ico b/website/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a2f6c301401f3573c7526c6d6dc2d0266d13864c GIT binary patch literal 15406 zcmeHOXK-BCbzazUCNoJUcAUf>N+Q8x7N}Se%?1)6uwVxZ79faT7X;B3g(M0IN}{Pk zNpuoPo{XbnIb%nZ#*$oQ%5v;vVoA1a$yTvtb&-@TkthT~5^Y~u@aFr@eQ)>e0-!*9 z^2^zogInHv_k8!hKJOlyKI%0Rnjfr@sHC$6TiO~-&>|K z#|GqGW28rs%#qWe9%WmWx&`0oW|i*ehwkT0TWVVO-1Su(@0iLOJ*zA`tgNwN(2%mg zS5n&se+%E2?PvF;1*ehb>ejtS?zQpWd1VZ~1^g$J+5d_%KxY5TIt`x(|A@-e*ZTaMT&U-*-&`@{F(&+p0CIQI_lA6Mp?m!%KHPqOgr7W7~9NAH~`CvECo0?(Dr|Py=vov*9+2TEsB>G z8{jYYmD9{+C$uxkpbSuw$`*2dIEYg1~IxoJg6 zQ)&~+AyBiK4cfG##Y9;s+etUAK>bR5m)2-(UFCl!KYiBh7<-o!YCKuDP`M@Z@#^|P zRZ)9URg!kDUDRE<-OA zIXk^_#2q>usfW?Hs-%I{Jyd-d;mL$l!SFb=T9mV^(4y}7F+k|6Q(Mw z2Y-Kw!#{zkYim3hLczA4nx=7e4E!VLyNUM0XRy|sKdFpi*sjyhD)aPnNJ-B+sZ&1n zoHBcmhn=xtYae;s0{?N^#u2b^m?vNm-m$t+5d8;#_MdH7W*GMVLuDGeY{K4>Xa`N& zKPl@x%Tg!y-3EX3ziu3BV;RR^GvQy!#drz?=TCER_h~KvF+Kih%N&ACE%2v2XhR_j z>jKs?hYYT3(enF{J#D`3e>wV}=XdzKEZx-M>B3=3{?$(ZMgM5?`+o&FV7>D1 zdAW{O3 zoOkdYZF5ZeD?S`-tINYp#V(_s&!zv6!BLt2TK~XFbDfg6e!%|6_>&LXGe&f~kTY$5 z1oJ`LeM9mbAJ)0g;^dEY5%zET^UvFV^u>Um7>3Rn!ym~UH~U^tM(;0`Df9x;UpN%2 zvqnx~tW5PN`d`8IC(3_f=VMENe%4a6yD!>*@`v9V?!&yIZJ~X|_?iR1o0`tzSr|45 zvU&vTPr0}MWDy4;t{}?Lva_u}*bvd{pEH&={dduEj0N?Py5NwkiPTMlbx2X~>VRwi zV*Q_}Z*hPC2ll7mU4J5+Z(M)-Uc@>>UmN;A_%7xEeCGlB(QoR!l<80ZPWCzU52XK) zKl>lI{x}dO_FNt$wFGyc(et0{59c+;0Q();v!JZ&^nB+t+GVlLj;zEMIN!PJU%t%$ zc*#d4K_D?ONln$Q11^8sUzvAY&mGy)9@8d9_b=E-TC$ha`$^_qTS5J!|AYRIg2m+a zC&rtQlA43916uxi{Wam^7_hh21?;_OgL~;?{7n1~`Wj{reGu)FNEv_y1z- z1dtb1Qfp1?nP5{yJ^A#Q-m7vfL8fKe#^~Vp$Af5(Zwr zZeCKSfFwWP_sNnqUkL5W$#}9p;Q!CMoXnr>3S|6v=hiR%xOmN+=WpD(T6pb9n|W`= zhJ|104z5%?v*)Yrt7iPVblsPp#(wxmyK+JNCMW%eg_(0ZYIiOE)FnF|?Y%eS0@QUZ zHRPxKReRZrvFeTURYCey>q`7rrPt?Nqe`>p*k$WJ_YaeQ9qZeq&*Ry6Uy*#`rCHa!^cdDOPqTalIzj)Qm&lF`| zdsF`EWhVluOUDAsmxKe$mV|SbEg8#Mx@0tGiI@0%SvYsuQqpJu#58y5($Soy%SHoC zmoSfKB)$`?8_Qje@0O!()#CSZ(-(A?FTLWkQ=y)`-qi#B6!YdU3o{oySe$$K;}jf0A$es^qH9)_X>) z8f;YweyyH28-=7{2Rd4|0Ej!sc#n~3$db%PiB zT2V8uvNI3brK@M`oeJ?p`N!83q|K|@-~Ml7mGGHs;Wxba(x^IjF02MUbk>vC^+xnL z-*t)4+`OB5+hLw+ZZ3-|#n9$R9cCVN_tzOZ&*$Nhr8VYjW0 zpU`n9uOCZa#!C^DHR%|f-gix&m%RXd5gosS{|=w_jkhhqPv2zQ+QT0FiHJSr$-v`r zVa9?w;15?JX3+@zC*FtO1bo_0$DV|7nJ~^CxF_IV68@x(y+n+7uAzzVai0+@GrpzC z=Dvq=Ks#>&e+BfFvAvx2)5P!TiZ@%BrSVrocbfJR|EL-#PVg}X-%(+l)r|GO3LH3l z!CuJhN9==p&YtI$*$3)%=rmH+Ic1~w=TbIMCxr78*{fqL-h2yjQQ&86jQC5_KHmvU z6D2&c#tU8Yh5iL~`#bLs(`OC|{;?STGrvWQ=w&sA_zmS~%3cn!9N8~8u}j1(C6>v! zr5o2|p7k!FK8(1ByRRqyiaN+2vBjMAx7#JDpYPDXrU5vi2ZF!jfpARzT7M+A!#F4Q z+6Lpg)M4%gaNc5KPtN^@F|79;+@ot6a8j20^gDbHB>QE4kA3tTZ!sqYf=t?<2ga%!BdT$a)_)yKB0uc?&mx{R{DIz6u@Bt;;p|n% z0TJsP05K+rIl@$8VvLtFk7rC7GmCKkOAG_{hx$YNiG7yfPn$yi(-;)We_#6pus^`> z=)ds77#KYB);TytmdHzAC#HJca_ikb zAa(3#1@S|F0vm3N#~&}=k1e_Dm)HJ`i~K12Q;2>2O5$3y{j?#}3C;67TxO`78Ek!>x9H+U4VSb*a?9puQXH zmpgw?I{pLo#~A)SV!gjWAHbXPhaKek6Yo+OgKr}i8BeT}`g2VAPK+$dpE~L4kApu4 z`m-Z#Mu&^%V-+Uhg_5<48uxeHZ&cBKdgrgB|MXkrOw^qZZaq?cP8LC`$&z$DTDEQE z`JU$+>X18sDSzTG0{#S8(c;JTi}?4o1Am77Yf*<7z9~6OS;A5FsEu4MD&bwfkqUC5k`oO$< zH-cwluIyd=BlvMYgzHyP)c?6GEt1|5e;4sP@{ih2VC6YI&(6nqejww3{R?d(&y6uJ z%w7;vp%-Os;QGL_Ja&>x$72EcYR{&u4T;IEb~2w=!@$0D`r0{o&8HG{C}_Hz4>^w6HC;8!5`f} zy89RC%NWiMVQa$JM~eSRJ>c09?@I{5zr+~1#CsIH>muVO_4+;DJ(2!9HrciRoWI@kRtnY$8o3eJrL!cK&+Ez@8UVm zJFy>-KCoS}Kis=x{c`Y6xqtjP@OWOBb#-Ic-UnsW zdrs$h9~NhWPU`04%b5SvBk%sjwA34KTG+qC|AhW<|5Xr`zgK^}`KdcnvMwdmx#t1x zKS2H`5kHCAf5<<~vtis{68X#cyMB*1oBGG~L+hcezg)lQ{{VkU znj3$Z8s}6`%7MRQ&;2I#-`)R4@q?ec$CCXQFh+4WI!3&vLwbECPOX2s?DosW@A&_W zU&;JE94THU@t>(6Ub0@}zb_6y_b-AQ@idcr58TZX|A%{Eo*|!qNAC0TPOseSg}-ci z$ddd!sEZMGQTl~>#QlrJKQ(^)^6-20D#=Iuo$ZwWcr^aTxyCyW^t%|pGWvP{fcqER z1Bd-LdL3IYwjJl)&iS|HoQKoqyX%6s|A=344W#`=+iv_p;-Bjfzq*9}c+o}&!c$qf zeqjjfZvuWj{wB`Nxz_S-kYyl#$o=Cv+yloQYTd8N)39@=NZxVY<(d$aKjyFapE~|o zs`Uq`G_dGj56&p|giPhSg(3L=qCal@(~X}{UN+V+%fKE$bei*zaVzeHaW8 zZkplKrZMs%=p!RM)EgchFv24PDvbDHcof8R5;DdvMD0JB& zr>HOU&xikZAMB^C>JfiCPW%zZ1*t>CZK>W#UNjx#x=g z^9D=T%)3yrZb2A#DJ}-HuU5g$q!d+yl(ZA~7;2=PqW0JL)hqvXw;K59WypkUIP?ej zE5NTz`~Q&wjb8(v0%t;RqQxTroT~2je;KU-cFN=KuZ^m2f6q`yad+!s+@JjCBi{v{ z6cx(j9Sh#SxCVDGoO>6%d*LD8g^>FYsN*{gIVoyK<~((%<1Y2}hmNa<(dHvh80yGZ z4cLCA%6LC~-Hle^>MPo&13ucdXvXI&&zhClR$1ED{pDet-(3`)EXP@)5bl1Il|84L z3V1hVwcH_LKU~bbL&Ezcx<9&4Ui`J27plPO>r`OdF<>1BY0TxoO)9DyQh|)X;EvTZ zw@e3rROp^eWk&K}1lKQmU~j`s>b5)kRQDlE?U(aMOU@TN51doGo9|P#fmGF1ovsen zWvVvk4hrSV`w#8q%hipz2cqSFt!mhYdoXL~s{G7r)Xs{psP^sw)rGUn&KoV&bu-%k zvZ-$Ta-S;Oev>N7nDw_Mv?3+`B6`E_ttM`{vWlJGS>xva6nKM@wWz1Z~wA4Q%sERUYJsrrp z;T*Dt}q;>z8>)t!&-gYpSvr9I4#6@WryV^Ij + + + + +Démarrage | @inseefr/lunatic + + + + +

Démarrage

+

Lunatic est une bibliothèque React pour afficher des questionnaires conçus sur l'outil Pogues et générés au format Lunatic-Model via Eno.

+

Pour commencer

+

Pour commencer à utiliser Lunatic dans votre application il faut télécharger la dépendance depuis npm.

+
npm install @inseefr/lunatic
+

Ensuite la librairie se décompose en 2 parties :

+
    +
  • un hook useLunatic() qui permet de lire un fichier Lunatic-Model et d'offrir les différentes fonctionnalités permettant de naviguer dans les composants.
  • +
  • un composant <LunaticComponents/> qui permet d'afficher la liste des composants.
  • +
+

Exemple

+ +
{
"components": [
{
"componentType": "Input",
"label": {
"value": "\"Nom de l'occupant principal.\"",
"type": "VTL|MD"
},
"maxLength": 30,
"id": "surname",
"description": {
"value": "\"For example, Bob.\"",
"type": "VTL|MD"
},
"response": {
"name": "NOM"
},
"page": "1"
}
],
"variables": [
{
"variableType": "COLLECTED",
"name": "NOM",
"componentRef": "name",
"values": {
"PREVIOUS": null,
"COLLECTED": null,
"FORCED": null,
"EDITED": null,
"INPUTTED": null
}
}
]
}
Loading...
+ + \ No newline at end of file diff --git a/website/internal/cleaning.html b/website/internal/cleaning.html new file mode 100644 index 000000000..c1cc784a8 --- /dev/null +++ b/website/internal/cleaning.html @@ -0,0 +1,17 @@ + + + + + +Cleaning | @inseefr/lunatic + + + + +

Cleaning

+

Le cleaning permet de nettoyer des variables lors d'un changement d'une autre variable. Cela permet de supprimer les valeurs associées à des composants qui seraient sautés par exemple.

+
{
"cleaning": {
"ORIGIN": {
"CITY": "ORIGIN = \"FR\""
}
}
}
+

On observe les changements de la variable ORIGIN et lorsque sa valeur change, on va réinitialiser les variables définit dans l'objet (ici CITY). Si l'expression VTL est interprété avec la valeur true alors le cleaning n'est pas effectué.

+
info

Vous ne pouvez observer que des variables collectées.

+ + \ No newline at end of file diff --git a/website/internal/missing.html b/website/internal/missing.html new file mode 100644 index 000000000..6c324ec49 --- /dev/null +++ b/website/internal/missing.html @@ -0,0 +1,17 @@ + + + + + +Missing | @inseefr/lunatic + + + + +

Missing

+

Le système de missing permet à l'utilisateur d'indiquer qu'il ne connait pas ou ne souhaite pas répondre à la question. Le choix de ne pas répondre est sauvegardé dans une variable distincte, mais doit aussi vider la valeur entrée pour la variable originale. Ce système est semblable à celui du cleaning mais la déclaration se fait différemment au travers de la propriété missingBlock.

+
{
"missingBlock": {
"CADR_MISSING": ["CADR"],
"CADR": ["CADR_MISSING"]
}
}
+

Cette propriété prend en clef les variables à observer et en valeur la liste des variables à nettoyer lorsque la valeur change.

+
info

Vous ne pouvez observer que des variables collectées.

+ + \ No newline at end of file diff --git a/website/internal/reducer.html b/website/internal/reducer.html new file mode 100644 index 000000000..6920e3c3d --- /dev/null +++ b/website/internal/reducer.html @@ -0,0 +1,35 @@ + + + + + +État & Reducer | @inseefr/lunatic + + + + +

État & Reducer

+

Cette partie est destinée aux personnes qui explorent le code de Lunatic. L'objectif est d'offrir une version généraliste du fonctionnement de la bibliothèque.

+

Le reducer

+

En son cœur Lunatic repose sur un système de reducer qui peut recevoir plusieurs actions. L'état lié à ce reducer est documenté via un type TypeScript.

+

Initialisation

+

Cette action (ActionKind.On_INIT) est lancée lorsque le composant utilisant useLunatic() est monté et permet d'effectuer plusieurs opérations pour initialiser les données qui vont servir pour la suite.

+
    +
  • Boucle sur les variables définies dans la source pour les sauvegarder dans un dictionnaire (LunaticVariableStore)
  • +
  • Extrait depuis les composants les différentes pages et crée un objet contenant la liste des composants groupé par nom de page.
  • +
  • Décompose la valeur d'initialPage pour générer l'objet qui représentera l'état de la navigation (pager).
  • +
  • Génère une fonction executeExpression() qui permettra d'exécuter les expressions VTL
  • +
+ +

Ces actions (ActionKind.GO_PREVIOUS_PAGE, ActionKind.GO_NEXT_PAGE, ActionKind.GO_TO_PAGE) sont déclenchées par les méthodes de navigation. Lors de cette opération un nouveau pager va être calculé en fonction de la position dans le formulaire. Cette action est appelé avec les données suivantes :

+
    +
  • name, nom de la variable modifiée
  • +
  • value, nouvelle valeur
  • +
  • iteration, l'itération sur laquelle on se trouve (cette itération est représentée sous forme d'un tableau, car dans le cas du PairWise il y a 2 niveaux de profondeur)
  • +
+

Changement de valeurs

+

Cette action (ActionKind.HANDLE_CHANGES) est déclenchée lorsque l'utilisateur modifie une ou plusieurs valeurs dans le formulaire. Lors de cette opération les valeurs changées vont être enregistrées par le dictionnaire.

+

Génération des composants

+

Lorsque l'état change Lunatic va régénérer la liste des composants à afficher. Cette génération se fait au travers de la fonction getComponentsFromState() qui prendra l'état en paramètre et renverra la liste des composants (de leurs propriétés). Pour comprendre comment se passe ce remplissage, vous pouvez regarder le code de la méthode fillComponent qui sépare la logique.

+ + \ No newline at end of file diff --git a/website/internal/resizing.html b/website/internal/resizing.html new file mode 100644 index 000000000..dfa70ec95 --- /dev/null +++ b/website/internal/resizing.html @@ -0,0 +1,17 @@ + + + + + +Resizing | @inseefr/lunatic + + + + +

Resizing

+

Le resizing permet de synchroniser la taille de plusieurs variables. Par exemple lorsque l'on rajoute des personnes, on va ajuster la liste des ages. Ce processus est déclaré dans la propriété resizing.

+
{
"resizing": {
"NB": {
"variables": ["PRENOM", "AGE"],
"size": "cast(NB,integer)"
}
}
}
+

On observe les changements de la variable NB et lorsqu'elle change, on va calculer la taille associée gràce à l'expression dans la propriété size. Les variables listées dans variables seront automatiquement dimensionnées à la bonne taille.

+
info

Vous ne pouvez observer que des variables collectées.

+ + \ No newline at end of file diff --git a/website/search-index-default.json b/website/search-index-default.json new file mode 100644 index 000000000..e2e3cb348 --- /dev/null +++ b/website/search-index-default.json @@ -0,0 +1 @@ +{"documents":[{"id":29,"pageTitle":"","sectionTitle":"3.4.10","sectionRoute":"/Lunatic/docs/changelog#3410","type":"docs"},{"id":30,"pageTitle":"","sectionTitle":"3.4.9","sectionRoute":"/Lunatic/docs/changelog#349","type":"docs"},{"id":31,"pageTitle":"","sectionTitle":"3.4.8","sectionRoute":"/Lunatic/docs/changelog#348","type":"docs"},{"id":32,"pageTitle":"","sectionTitle":"3.0.0","sectionRoute":"/Lunatic/docs/changelog#300","type":"docs"},{"id":33,"pageTitle":"","sectionTitle":"2.7.23","sectionRoute":"/Lunatic/docs/changelog#2723","type":"docs"},{"id":34,"pageTitle":"","sectionTitle":"2.7.22","sectionRoute":"/Lunatic/docs/changelog#2722","type":"docs"},{"id":35,"pageTitle":"","sectionTitle":"2.7.4","sectionRoute":"/Lunatic/docs/changelog#274","type":"docs"},{"id":36,"pageTitle":"","sectionTitle":"2.7.3","sectionRoute":"/Lunatic/docs/changelog#273","type":"docs"},{"id":37,"pageTitle":"","sectionTitle":"2.7.2","sectionRoute":"/Lunatic/docs/changelog#272","type":"docs"},{"id":38,"pageTitle":"","sectionTitle":"2.7.0","sectionRoute":"/Lunatic/docs/changelog#270","type":"docs"}],"index":{"version":"2.3.9","fields":["title","content","tags"],"fieldVectors":[["title/29",[0,1.992]],["content/29",[1,0.047]],["tags/29",[]],["title/30",[2,1.992]],["content/30",[1,0.047]],["tags/30",[]],["title/31",[3,1.992]],["content/31",[1,0.047]],["tags/31",[]],["title/32",[4,1.992]],["content/32",[1,0.047]],["tags/32",[]],["title/33",[5,1.992]],["content/33",[1,0.047]],["tags/33",[]],["title/34",[6,1.992]],["content/34",[1,0.047]],["tags/34",[]],["title/35",[7,1.992]],["content/35",[1,0.047]],["tags/35",[]],["title/36",[8,1.992]],["content/36",[1,0.047]],["tags/36",[]],["title/37",[9,1.992]],["content/37",[1,0.047]],["tags/37",[]],["title/38",[10,1.992]],["content/38",[1,0.047]],["tags/38",[]]],"invertedIndex":[["",{"_index":1,"title":{},"content":{"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{}},"tags":{}}],["2.7.0",{"_index":10,"title":{"38":{}},"content":{},"tags":{}}],["2.7.2",{"_index":9,"title":{"37":{}},"content":{},"tags":{}}],["2.7.22",{"_index":6,"title":{"34":{}},"content":{},"tags":{}}],["2.7.23",{"_index":5,"title":{"33":{}},"content":{},"tags":{}}],["2.7.3",{"_index":8,"title":{"36":{}},"content":{},"tags":{}}],["2.7.4",{"_index":7,"title":{"35":{}},"content":{},"tags":{}}],["3.0.0",{"_index":4,"title":{"32":{}},"content":{},"tags":{}}],["3.4.10",{"_index":0,"title":{"29":{}},"content":{},"tags":{}}],["3.4.8",{"_index":3,"title":{"31":{}},"content":{},"tags":{}}],["3.4.9",{"_index":2,"title":{"30":{}},"content":{},"tags":{}}]],"pipeline":["stemmer"]}} \ No newline at end of file diff --git a/website/search-index-docs-default-current.json b/website/search-index-docs-default-current.json new file mode 100644 index 000000000..d946f8a29 --- /dev/null +++ b/website/search-index-docs-default-current.json @@ -0,0 +1 @@ +{"documents":[{"id":9,"pageTitle":"@inseefr/lunatic","sectionTitle":"@inseefr/lunatic","sectionRoute":"/Lunatic/docs/api","type":"docs"},{"id":10,"pageTitle":"@inseefr/lunatic","sectionTitle":"Classes","sectionRoute":"/Lunatic/docs/api#classes","type":"docs"},{"id":11,"pageTitle":"@inseefr/lunatic","sectionTitle":"Interfaces","sectionRoute":"/Lunatic/docs/api#interfaces","type":"docs"},{"id":12,"pageTitle":"@inseefr/lunatic","sectionTitle":"Type Aliases","sectionRoute":"/Lunatic/docs/api#type-aliases","type":"docs"},{"id":13,"pageTitle":"@inseefr/lunatic","sectionTitle":"Variables","sectionRoute":"/Lunatic/docs/api#variables","type":"docs"},{"id":14,"pageTitle":"@inseefr/lunatic","sectionTitle":"Functions","sectionRoute":"/Lunatic/docs/api#functions","type":"docs"},{"id":1,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Class: VTLExpressionError","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError","type":"docs"},{"id":2,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Extends","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#extends","type":"docs"},{"id":3,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Extended by","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#extended-by","type":"docs"},{"id":4,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Constructors","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#constructors","type":"docs"},{"id":5,"pageTitle":"Class: VTLExpressionError","sectionTitle":"new VTLExpressionError()","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#new-vtlexpressionerror","type":"docs"},{"id":6,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Properties","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#properties","type":"docs"},{"id":7,"pageTitle":"Class: VTLExpressionError","sectionTitle":"Methods","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#methods","type":"docs"},{"id":8,"pageTitle":"Class: VTLExpressionError","sectionTitle":"captureStackTrace()","sectionRoute":"/Lunatic/docs/api/classes/VTLExpressionError#capturestacktrace","type":"docs"},{"id":15,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"Class: VTLInterpretationError","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError","type":"docs"},{"id":16,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"Extends","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#extends","type":"docs"},{"id":17,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"Constructors","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#constructors","type":"docs"},{"id":18,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"new VTLInterpretationError()","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#new-vtlinterpretationerror","type":"docs"},{"id":19,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"Properties","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#properties","type":"docs"},{"id":20,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"Methods","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#methods","type":"docs"},{"id":21,"pageTitle":"Class: VTLInterpretationError","sectionTitle":"captureStackTrace()","sectionRoute":"/Lunatic/docs/api/classes/VTLInterpretationError#capturestacktrace","type":"docs"},{"id":48,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"Class: VTLMissingDependencies","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies","type":"docs"},{"id":49,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"Extends","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#extends","type":"docs"},{"id":50,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"Constructors","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#constructors","type":"docs"},{"id":51,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"new VTLMissingDependencies()","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#new-vtlmissingdependencies","type":"docs"},{"id":52,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"Properties","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#properties","type":"docs"},{"id":53,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"Methods","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#methods","type":"docs"},{"id":54,"pageTitle":"Class: VTLMissingDependencies","sectionTitle":"captureStackTrace()","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependencies#capturestacktrace","type":"docs"},{"id":22,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"Class: VTLMissingDependency","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency","type":"docs"},{"id":23,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"Extends","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#extends","type":"docs"},{"id":24,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"Constructors","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#constructors","type":"docs"},{"id":25,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"new VTLMissingDependency()","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#new-vtlmissingdependency","type":"docs"},{"id":26,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"Properties","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#properties","type":"docs"},{"id":27,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"Methods","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#methods","type":"docs"},{"id":28,"pageTitle":"Class: VTLMissingDependency","sectionTitle":"captureStackTrace()","sectionRoute":"/Lunatic/docs/api/classes/VTLMissingDependency#capturestacktrace","type":"docs"},{"id":39,"pageTitle":"Function: LunaticComponents()","sectionTitle":"Function: LunaticComponents()","sectionRoute":"/Lunatic/docs/api/functions/LunaticComponents","type":"docs"},{"id":40,"pageTitle":"Function: LunaticComponents()","sectionTitle":"Type Parameters","sectionRoute":"/Lunatic/docs/api/functions/LunaticComponents#type-parameters","type":"docs"},{"id":41,"pageTitle":"Function: LunaticComponents()","sectionTitle":"Parameters","sectionRoute":"/Lunatic/docs/api/functions/LunaticComponents#parameters","type":"docs"},{"id":42,"pageTitle":"Function: LunaticComponents()","sectionTitle":"Returns","sectionRoute":"/Lunatic/docs/api/functions/LunaticComponents#returns","type":"docs"},{"id":43,"pageTitle":"Function: LunaticComponents()","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/functions/LunaticComponents#defined-in","type":"docs"},{"id":44,"pageTitle":"Function: ModalControls()","sectionTitle":"Function: ModalControls()","sectionRoute":"/Lunatic/docs/api/functions/ModalControls","type":"docs"},{"id":45,"pageTitle":"Function: ModalControls()","sectionTitle":"Parameters","sectionRoute":"/Lunatic/docs/api/functions/ModalControls#parameters","type":"docs"},{"id":46,"pageTitle":"Function: ModalControls()","sectionTitle":"Returns","sectionRoute":"/Lunatic/docs/api/functions/ModalControls#returns","type":"docs"},{"id":47,"pageTitle":"Function: ModalControls()","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/functions/ModalControls#defined-in","type":"docs"},{"id":55,"pageTitle":"Function: useLunatic()","sectionTitle":"Function: useLunatic()","sectionRoute":"/Lunatic/docs/api/functions/useLunatic","type":"docs"},{"id":56,"pageTitle":"Function: useLunatic()","sectionTitle":"Parameters","sectionRoute":"/Lunatic/docs/api/functions/useLunatic#parameters","type":"docs"},{"id":57,"pageTitle":"Function: useLunatic()","sectionTitle":"Returns","sectionRoute":"/Lunatic/docs/api/functions/useLunatic#returns","type":"docs"},{"id":58,"pageTitle":"Function: useLunatic()","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/functions/useLunatic#defined-in","type":"docs"},{"id":59,"pageTitle":"Interface: LunaticExtraProps","sectionTitle":"Interface: LunaticExtraProps","sectionRoute":"/Lunatic/docs/api/interfaces/LunaticExtraProps","type":"docs"},{"id":68,"pageTitle":"Type Alias: LunaticChangesHandler()","sectionTitle":"Type Alias: LunaticChangesHandler()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler","type":"docs"},{"id":69,"pageTitle":"Type Alias: LunaticChangesHandler()","sectionTitle":"Parameters","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler#parameters","type":"docs"},{"id":70,"pageTitle":"Type Alias: LunaticChangesHandler()","sectionTitle":"Returns","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler#returns","type":"docs"},{"id":71,"pageTitle":"Type Alias: LunaticChangesHandler()","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticChangesHandler#defined-in","type":"docs"},{"id":60,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"Type Alias: LunaticCollectedValue","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue","type":"docs"},{"id":61,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#type-declaration","type":"docs"},{"id":62,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"COLLECTED","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#collected","type":"docs"},{"id":63,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"EDITED","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#edited","type":"docs"},{"id":64,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"FORCED","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#forced","type":"docs"},{"id":65,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"INPUTTED","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#inputted","type":"docs"},{"id":66,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"PREVIOUS","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#previous","type":"docs"},{"id":67,"pageTitle":"Type Alias: LunaticCollectedValue","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticCollectedValue#defined-in","type":"docs"},{"id":72,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"Type Alias: LunaticComponentDefinition","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition","type":"docs"},{"id":73,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition#type-declaration","type":"docs"},{"id":74,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"componentType","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition#componenttype","type":"docs"},{"id":75,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"page?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition#page","type":"docs"},{"id":76,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"Type Parameters","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition#type-parameters","type":"docs"},{"id":77,"pageTitle":"Type Alias: LunaticComponentDefinition","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentDefinition#defined-in","type":"docs"},{"id":78,"pageTitle":"Type Alias: LunaticComponentProps","sectionTitle":"Type Alias: LunaticComponentProps","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentProps","type":"docs"},{"id":79,"pageTitle":"Type Alias: LunaticComponentProps","sectionTitle":"Type Parameters","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentProps#type-parameters","type":"docs"},{"id":80,"pageTitle":"Type Alias: LunaticComponentProps","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticComponentProps#defined-in","type":"docs"},{"id":81,"pageTitle":"Type Alias: LunaticControl","sectionTitle":"Type Alias: LunaticControl","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticControl","type":"docs"},{"id":82,"pageTitle":"Type Alias: LunaticControl","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticControl#defined-in","type":"docs"},{"id":83,"pageTitle":"Type Alias: LunaticData","sectionTitle":"Type Alias: LunaticData","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticData","type":"docs"},{"id":84,"pageTitle":"Type Alias: LunaticData","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticData#defined-in","type":"docs"},{"id":87,"pageTitle":"Type Alias: LunaticError","sectionTitle":"Type Alias: LunaticError","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticError","type":"docs"},{"id":88,"pageTitle":"Type Alias: LunaticError","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticError#type-declaration","type":"docs"},{"id":89,"pageTitle":"Type Alias: LunaticError","sectionTitle":"errorMessage","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticError#errormessage","type":"docs"},{"id":90,"pageTitle":"Type Alias: LunaticError","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticError#defined-in","type":"docs"},{"id":85,"pageTitle":"Type Alias: LunaticExpression","sectionTitle":"Type Alias: LunaticExpression","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticExpression","type":"docs"},{"id":86,"pageTitle":"Type Alias: LunaticExpression","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticExpression#defined-in","type":"docs"},{"id":120,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"Type Alias: LunaticOptions","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions","type":"docs"},{"id":121,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#type-declaration","type":"docs"},{"id":122,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"activeControls?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#activecontrols","type":"docs"},{"id":123,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"autoSuggesterLoading?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#autosuggesterloading","type":"docs"},{"id":124,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"componentsOptions?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#componentsoptions","type":"docs"},{"id":125,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"componentsOptions.detailAlwaysDisplayed?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#componentsoptionsdetailalwaysdisplayed","type":"docs"},{"id":126,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"disableFilters?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#disablefilters","type":"docs"},{"id":127,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"dontKnowButton?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#dontknowbutton","type":"docs"},{"id":128,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"features?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#features","type":"docs"},{"id":129,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"getReferentiel()?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#getreferentiel","type":"docs"},{"id":130,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"initialPage?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#initialpage","type":"docs"},{"id":131,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"lastReachedPage?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#lastreachedpage","type":"docs"},{"id":132,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"logger?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#logger","type":"docs"},{"id":133,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"management?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#management","type":"docs"},{"id":134,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"missing?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#missing","type":"docs"},{"id":135,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"missingShortcut?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#missingshortcut","type":"docs"},{"id":136,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"missingShortcut.dontKnow","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#missingshortcutdontknow","type":"docs"},{"id":137,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"missingShortcut.refused","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#missingshortcutrefused","type":"docs"},{"id":138,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"missingStrategy()?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#missingstrategy","type":"docs"},{"id":139,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"onChange?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#onchange","type":"docs"},{"id":140,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"onVariableChange()?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#onvariablechange","type":"docs"},{"id":141,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"preferences?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#preferences","type":"docs"},{"id":142,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"refusedButton?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#refusedbutton","type":"docs"},{"id":143,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"savingType?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#savingtype","type":"docs"},{"id":144,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"shortcut?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#shortcut","type":"docs"},{"id":145,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"trackChanges?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#trackchanges","type":"docs"},{"id":146,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"withOverview?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#withoverview","type":"docs"},{"id":147,"pageTitle":"Type Alias: LunaticOptions","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticOptions#defined-in","type":"docs"},{"id":108,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"Type Alias: LunaticPager","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager","type":"docs"},{"id":109,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#type-declaration","type":"docs"},{"id":110,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"iteration?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#iteration","type":"docs"},{"id":111,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"lastReachedPage?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#lastreachedpage","type":"docs"},{"id":112,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"linksIterations?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#linksiterations","type":"docs"},{"id":113,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"maxPage","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#maxpage","type":"docs"},{"id":114,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"nbIterations?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#nbiterations","type":"docs"},{"id":115,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"nbSubPages?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#nbsubpages","type":"docs"},{"id":116,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"page","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#page","type":"docs"},{"id":117,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"shallowIteration?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#shallowiteration","type":"docs"},{"id":118,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"subPage?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#subpage","type":"docs"},{"id":119,"pageTitle":"Type Alias: LunaticPager","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticPager#defined-in","type":"docs"},{"id":176,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Type Alias: LunaticSlotComponents","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents","type":"docs"},{"id":177,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#type-declaration","type":"docs"},{"id":178,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Accordion","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#accordion","type":"docs"},{"id":179,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Button","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#button","type":"docs"},{"id":180,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"CheckboxBoolean","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#checkboxboolean","type":"docs"},{"id":181,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"CheckboxGroup","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#checkboxgroup","type":"docs"},{"id":182,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"CheckboxOption","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#checkboxoption","type":"docs"},{"id":183,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Combobox","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#combobox","type":"docs"},{"id":184,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxClearButton","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxclearbutton","type":"docs"},{"id":185,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxContainer","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxcontainer","type":"docs"},{"id":186,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxContentBox","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxcontentbox","type":"docs"},{"id":187,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxInput","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxinput","type":"docs"},{"id":188,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxLabelSelection","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxlabelselection","type":"docs"},{"id":189,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxOption","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxoption","type":"docs"},{"id":190,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComboboxPanelContainer","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#comboboxpanelcontainer","type":"docs"},{"id":191,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"ComponentWrapper","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#componentwrapper","type":"docs"},{"id":192,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Datepicker","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#datepicker","type":"docs"},{"id":193,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#declaration","type":"docs"},{"id":194,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Declarations","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#declarations","type":"docs"},{"id":195,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Dropdown","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#dropdown","type":"docs"},{"id":196,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Duration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#duration","type":"docs"},{"id":197,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Fieldset","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#fieldset","type":"docs"},{"id":198,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Input","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#input","type":"docs"},{"id":199,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"InputNumber","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#inputnumber","type":"docs"},{"id":200,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Label","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#label","type":"docs"},{"id":201,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Loop","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#loop","type":"docs"},{"id":202,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"MarkdownLink","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#markdownlink","type":"docs"},{"id":203,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Notification","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#notification","type":"docs"},{"id":204,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Question","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#question","type":"docs"},{"id":205,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Radio","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#radio","type":"docs"},{"id":206,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"RadioGroup","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#radiogroup","type":"docs"},{"id":207,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"RadioOption","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#radiooption","type":"docs"},{"id":208,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Roundabout","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#roundabout","type":"docs"},{"id":209,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"RouterLink","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#routerlink","type":"docs"},{"id":210,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Sequence","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#sequence","type":"docs"},{"id":211,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Subsequence","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#subsequence","type":"docs"},{"id":212,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Suggester","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#suggester","type":"docs"},{"id":213,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"SuggesterNotification","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#suggesternotification","type":"docs"},{"id":214,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"SummaryResponses","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#summaryresponses","type":"docs"},{"id":215,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"SummaryTitle","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#summarytitle","type":"docs"},{"id":216,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Switch","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#switch","type":"docs"},{"id":217,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Table","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#table","type":"docs"},{"id":218,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Tbody","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#tbody","type":"docs"},{"id":219,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Td","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#td","type":"docs"},{"id":220,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Textarea","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#textarea","type":"docs"},{"id":221,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Th","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#th","type":"docs"},{"id":222,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Thead","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#thead","type":"docs"},{"id":223,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Tr","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#tr","type":"docs"},{"id":224,"pageTitle":"Type Alias: LunaticSlotComponents","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSlotComponents#defined-in","type":"docs"},{"id":91,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"Type Alias: LunaticSource","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource","type":"docs"},{"id":92,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#type-declaration","type":"docs"},{"id":93,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"cleaning?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#cleaning","type":"docs"},{"id":94,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"components","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#components","type":"docs"},{"id":95,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"enoCoreVersion?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#enocoreversion","type":"docs"},{"id":96,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"generatingDate?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#generatingdate","type":"docs"},{"id":97,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"id?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#id","type":"docs"},{"id":98,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"label?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#label","type":"docs"},{"id":99,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"lunaticModelVersion?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#lunaticmodelversion","type":"docs"},{"id":100,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"maxPage?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#maxpage","type":"docs"},{"id":101,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"missingBlock?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#missingblock","type":"docs"},{"id":102,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"modele?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#modele","type":"docs"},{"id":103,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"pagination?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#pagination","type":"docs"},{"id":104,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"resizing?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#resizing","type":"docs"},{"id":105,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"suggesters?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#suggesters","type":"docs"},{"id":106,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"variables","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#variables","type":"docs"},{"id":107,"pageTitle":"Type Alias: LunaticSource","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticSource#defined-in","type":"docs"},{"id":150,"pageTitle":"Type Alias: LunaticState","sectionTitle":"Type Alias: LunaticState","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState","type":"docs"},{"id":151,"pageTitle":"Type Alias: LunaticState","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#type-declaration","type":"docs"},{"id":152,"pageTitle":"Type Alias: LunaticState","sectionTitle":"compileControls()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#compilecontrols","type":"docs"},{"id":153,"pageTitle":"Type Alias: LunaticState","sectionTitle":"currentErrors?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#currenterrors-1","type":"docs"},{"id":154,"pageTitle":"Type Alias: LunaticState","sectionTitle":"errors?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#errors","type":"docs"},{"id":155,"pageTitle":"Type Alias: LunaticState","sectionTitle":"getChangedData()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#getchangeddata","type":"docs"},{"id":156,"pageTitle":"Type Alias: LunaticState","sectionTitle":"getComponents()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#getcomponents","type":"docs"},{"id":157,"pageTitle":"Type Alias: LunaticState","sectionTitle":"getData()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#getdata","type":"docs"},{"id":158,"pageTitle":"Type Alias: LunaticState","sectionTitle":"goNextPage()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#gonextpage","type":"docs"},{"id":159,"pageTitle":"Type Alias: LunaticState","sectionTitle":"goPreviousPage()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#gopreviouspage","type":"docs"},{"id":160,"pageTitle":"Type Alias: LunaticState","sectionTitle":"goToPage()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#gotopage","type":"docs"},{"id":161,"pageTitle":"Type Alias: LunaticState","sectionTitle":"hasPageResponse()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#haspageresponse","type":"docs"},{"id":162,"pageTitle":"Type Alias: LunaticState","sectionTitle":"isFirstPage","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#isfirstpage","type":"docs"},{"id":163,"pageTitle":"Type Alias: LunaticState","sectionTitle":"isInLoop","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#isinloop","type":"docs"},{"id":164,"pageTitle":"Type Alias: LunaticState","sectionTitle":"isLastPage","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#islastpage","type":"docs"},{"id":165,"pageTitle":"Type Alias: LunaticState","sectionTitle":"loopVariables","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#loopvariables","type":"docs"},{"id":166,"pageTitle":"Type Alias: LunaticState","sectionTitle":"modalErrors?","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#modalerrors","type":"docs"},{"id":167,"pageTitle":"Type Alias: LunaticState","sectionTitle":"overview","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#overview","type":"docs"},{"id":168,"pageTitle":"Type Alias: LunaticState","sectionTitle":"pager","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#pager","type":"docs"},{"id":169,"pageTitle":"Type Alias: LunaticState","sectionTitle":"pageTag","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#pagetag","type":"docs"},{"id":170,"pageTitle":"Type Alias: LunaticState","sectionTitle":"Provider","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#provider","type":"docs"},{"id":171,"pageTitle":"Type Alias: LunaticState","sectionTitle":"resetChangedData()","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#resetchangeddata","type":"docs"},{"id":172,"pageTitle":"Type Alias: LunaticState","sectionTitle":"testing","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#testing","type":"docs"},{"id":173,"pageTitle":"Type Alias: LunaticState","sectionTitle":"testing.handleChanges","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#testinghandlechanges","type":"docs"},{"id":174,"pageTitle":"Type Alias: LunaticState","sectionTitle":"updatedAt","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#updatedat","type":"docs"},{"id":175,"pageTitle":"Type Alias: LunaticState","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticState#defined-in","type":"docs"},{"id":148,"pageTitle":"Type Alias: LunaticStateVariable","sectionTitle":"Type Alias: LunaticStateVariable","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticStateVariable","type":"docs"},{"id":149,"pageTitle":"Type Alias: LunaticStateVariable","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticStateVariable#defined-in","type":"docs"},{"id":229,"pageTitle":"Type Alias: LunaticValues","sectionTitle":"Type Alias: LunaticValues","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticValues","type":"docs"},{"id":230,"pageTitle":"Type Alias: LunaticValues","sectionTitle":"Index Signature","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticValues#index-signature","type":"docs"},{"id":231,"pageTitle":"Type Alias: LunaticValues","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticValues#defined-in","type":"docs"},{"id":227,"pageTitle":"Type Alias: LunaticVariable","sectionTitle":"Type Alias: LunaticVariable","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticVariable","type":"docs"},{"id":228,"pageTitle":"Type Alias: LunaticVariable","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/type-aliases/LunaticVariable#defined-in","type":"docs"},{"id":225,"pageTitle":"Variable: Button","sectionTitle":"Variable: Button","sectionRoute":"/Lunatic/docs/api/variables/Button","type":"docs"},{"id":226,"pageTitle":"Variable: Button","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/variables/Button#defined-in","type":"docs"},{"id":239,"pageTitle":"Variable: components","sectionTitle":"Variable: components","sectionRoute":"/Lunatic/docs/api/variables/components","type":"docs"},{"id":240,"pageTitle":"Variable: components","sectionTitle":"Type declaration","sectionRoute":"/Lunatic/docs/api/variables/components#type-declaration","type":"docs"},{"id":241,"pageTitle":"Variable: components","sectionTitle":"Accordion","sectionRoute":"/Lunatic/docs/api/variables/components#accordion","type":"docs"},{"id":242,"pageTitle":"Variable: components","sectionTitle":"CheckboxBoolean()","sectionRoute":"/Lunatic/docs/api/variables/components#checkboxboolean","type":"docs"},{"id":243,"pageTitle":"Variable: components","sectionTitle":"CheckboxGroup()","sectionRoute":"/Lunatic/docs/api/variables/components#checkboxgroup","type":"docs"},{"id":244,"pageTitle":"Variable: components","sectionTitle":"CheckboxOne()","sectionRoute":"/Lunatic/docs/api/variables/components#checkboxone","type":"docs"},{"id":245,"pageTitle":"Variable: components","sectionTitle":"Datepicker()","sectionRoute":"/Lunatic/docs/api/variables/components#datepicker","type":"docs"},{"id":246,"pageTitle":"Variable: components","sectionTitle":"Dropdown()","sectionRoute":"/Lunatic/docs/api/variables/components#dropdown","type":"docs"},{"id":247,"pageTitle":"Variable: components","sectionTitle":"Duration()","sectionRoute":"/Lunatic/docs/api/variables/components#duration","type":"docs"},{"id":248,"pageTitle":"Variable: components","sectionTitle":"FilterDescription()","sectionRoute":"/Lunatic/docs/api/variables/components#filterdescription","type":"docs"},{"id":249,"pageTitle":"Variable: components","sectionTitle":"Input()","sectionRoute":"/Lunatic/docs/api/variables/components#input","type":"docs"},{"id":250,"pageTitle":"Variable: components","sectionTitle":"InputNumber()","sectionRoute":"/Lunatic/docs/api/variables/components#inputnumber","type":"docs"},{"id":251,"pageTitle":"Variable: components","sectionTitle":"Loop()","sectionRoute":"/Lunatic/docs/api/variables/components#loop","type":"docs"},{"id":252,"pageTitle":"Variable: components","sectionTitle":"PairwiseLinks()","sectionRoute":"/Lunatic/docs/api/variables/components#pairwiselinks","type":"docs"},{"id":253,"pageTitle":"Variable: components","sectionTitle":"Question()","sectionRoute":"/Lunatic/docs/api/variables/components#question","type":"docs"},{"id":254,"pageTitle":"Variable: components","sectionTitle":"Radio","sectionRoute":"/Lunatic/docs/api/variables/components#radio","type":"docs"},{"id":255,"pageTitle":"Variable: components","sectionTitle":"RosterForLoop()","sectionRoute":"/Lunatic/docs/api/variables/components#rosterforloop","type":"docs"},{"id":256,"pageTitle":"Variable: components","sectionTitle":"Roundabout()","sectionRoute":"/Lunatic/docs/api/variables/components#roundabout","type":"docs"},{"id":257,"pageTitle":"Variable: components","sectionTitle":"Sequence","sectionRoute":"/Lunatic/docs/api/variables/components#sequence","type":"docs"},{"id":258,"pageTitle":"Variable: components","sectionTitle":"Subsequence","sectionRoute":"/Lunatic/docs/api/variables/components#subsequence","type":"docs"},{"id":259,"pageTitle":"Variable: components","sectionTitle":"Suggester()","sectionRoute":"/Lunatic/docs/api/variables/components#suggester","type":"docs"},{"id":260,"pageTitle":"Variable: components","sectionTitle":"Summary()","sectionRoute":"/Lunatic/docs/api/variables/components#summary","type":"docs"},{"id":261,"pageTitle":"Variable: components","sectionTitle":"Switch","sectionRoute":"/Lunatic/docs/api/variables/components#switch","type":"docs"},{"id":262,"pageTitle":"Variable: components","sectionTitle":"Table()","sectionRoute":"/Lunatic/docs/api/variables/components#table","type":"docs"},{"id":263,"pageTitle":"Variable: components","sectionTitle":"Text()","sectionRoute":"/Lunatic/docs/api/variables/components#text","type":"docs"},{"id":264,"pageTitle":"Variable: components","sectionTitle":"Textarea()","sectionRoute":"/Lunatic/docs/api/variables/components#textarea","type":"docs"},{"id":265,"pageTitle":"Variable: components","sectionTitle":"Defined in","sectionRoute":"/Lunatic/docs/api/variables/components#defined-in","type":"docs"},{"id":232,"pageTitle":"","sectionTitle":"📄️ Loop","sectionRoute":"/Lunatic/docs/category/agrégateurs","type":"docs"},{"id":233,"pageTitle":"","sectionTitle":"📄️ RosterForLoop","sectionRoute":"/Lunatic/docs/category/agrégateurs","type":"docs"},{"id":234,"pageTitle":"","sectionTitle":"📄️ Roundabout","sectionRoute":"/Lunatic/docs/category/agrégateurs","type":"docs"},{"id":235,"pageTitle":"","sectionTitle":"📄️ PairwiseLinks","sectionRoute":"/Lunatic/docs/category/agrégateurs","type":"docs"},{"id":236,"pageTitle":"","sectionTitle":"📄️ Sequence & SubSequence","sectionRoute":"/Lunatic/docs/category/balisage","type":"docs"},{"id":237,"pageTitle":"","sectionTitle":"📄️ Question","sectionRoute":"/Lunatic/docs/category/balisage","type":"docs"},{"id":238,"pageTitle":"","sectionTitle":"📄️ FilterDescription","sectionRoute":"/Lunatic/docs/category/balisage","type":"docs"},{"id":270,"pageTitle":"","sectionTitle":"📄️ Input","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":271,"pageTitle":"","sectionTitle":"📄️ InputNumber","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":272,"pageTitle":"","sectionTitle":"📄️ Textarea","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":273,"pageTitle":"","sectionTitle":"📄️ Datepicker","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":274,"pageTitle":"","sectionTitle":"📄️ Duration","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":275,"pageTitle":"","sectionTitle":"📄️ Dropdown","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":276,"pageTitle":"","sectionTitle":"📄️ Suggester","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":277,"pageTitle":"","sectionTitle":"📄️ Radio","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":278,"pageTitle":"","sectionTitle":"📄️ CheckboxOne","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":279,"pageTitle":"","sectionTitle":"📄️ CheckboxBoolean","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":280,"pageTitle":"","sectionTitle":"📄️ CheckboxGroup","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":281,"pageTitle":"","sectionTitle":"📄️ Table","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":282,"pageTitle":"","sectionTitle":"📄️ Text","sectionRoute":"/Lunatic/docs/category/champs","type":"docs"},{"id":266,"pageTitle":"","sectionTitle":"📄️ Propriétés de base","sectionRoute":"/Lunatic/docs/category/composants","type":"docs"},{"id":267,"pageTitle":"","sectionTitle":"🗃️ Balisage","sectionRoute":"/Lunatic/docs/category/composants","type":"docs"},{"id":268,"pageTitle":"","sectionTitle":"🗃️ Champs","sectionRoute":"/Lunatic/docs/category/composants","type":"docs"},{"id":269,"pageTitle":"","sectionTitle":"🗃️ Agrégateurs","sectionRoute":"/Lunatic/docs/category/composants","type":"docs"},{"id":287,"pageTitle":"","sectionTitle":"📄️ État & Reducer","sectionRoute":"/Lunatic/docs/category/fonctionnement-interne","type":"docs"},{"id":288,"pageTitle":"","sectionTitle":"📄️ Resizing","sectionRoute":"/Lunatic/docs/category/fonctionnement-interne","type":"docs"},{"id":289,"pageTitle":"","sectionTitle":"📄️ Cleaning","sectionRoute":"/Lunatic/docs/category/fonctionnement-interne","type":"docs"},{"id":290,"pageTitle":"","sectionTitle":"📄️ Missing","sectionRoute":"/Lunatic/docs/category/fonctionnement-interne","type":"docs"},{"id":283,"pageTitle":"","sectionTitle":"📄️ Paramètres","sectionRoute":"/Lunatic/docs/category/hook-uselunatic","type":"docs"},{"id":284,"pageTitle":"","sectionTitle":"📄️ Retour","sectionRoute":"/Lunatic/docs/category/hook-uselunatic","type":"docs"},{"id":285,"pageTitle":"","sectionTitle":"📄️ Navigation","sectionRoute":"/Lunatic/docs/category/hook-uselunatic","type":"docs"},{"id":286,"pageTitle":"","sectionTitle":"📄️ Gestion des contrôles","sectionRoute":"/Lunatic/docs/category/hook-uselunatic","type":"docs"},{"id":291,"pageTitle":"Loop","sectionTitle":"Loop","sectionRoute":"/Lunatic/docs/components/aggregators/loop","type":"docs"},{"id":292,"pageTitle":"Loop","sectionTitle":"Boucle non paginée","sectionRoute":"/Lunatic/docs/components/aggregators/loop#boucle-non-paginée","type":"docs"},{"id":293,"pageTitle":"Loop","sectionTitle":"Boucle paginée","sectionRoute":"/Lunatic/docs/components/aggregators/loop#boucle-paginée","type":"docs"},{"id":297,"pageTitle":"PairwiseLinks","sectionTitle":"PairwiseLinks","sectionRoute":"/Lunatic/docs/components/aggregators/pairwise","type":"docs"},{"id":298,"pageTitle":"PairwiseLinks","sectionTitle":"symLinks","sectionRoute":"/Lunatic/docs/components/aggregators/pairwise#symlinks","type":"docs"},{"id":299,"pageTitle":"PairwiseLinks","sectionTitle":"xAxis et yAxis","sectionRoute":"/Lunatic/docs/components/aggregators/pairwise#xaxis-et-yaxis","type":"docs"},{"id":300,"pageTitle":"PairwiseLinks","sectionTitle":"Format des données","sectionRoute":"/Lunatic/docs/components/aggregators/pairwise#format-des-données","type":"docs"},{"id":294,"pageTitle":"RosterForLoop","sectionTitle":"RosterForLoop","sectionRoute":"/Lunatic/docs/components/aggregators/rosterForLoop","type":"docs"},{"id":305,"pageTitle":"Roundabout","sectionTitle":"Roundabout","sectionRoute":"/Lunatic/docs/components/aggregators/roundabout","type":"docs"},{"id":306,"pageTitle":"Roundabout","sectionTitle":"Navigation","sectionRoute":"/Lunatic/docs/components/aggregators/roundabout#navigation","type":"docs"},{"id":302,"pageTitle":"Propriétés de base","sectionTitle":"Propriétés de base","sectionRoute":"/Lunatic/docs/components/base","type":"docs"},{"id":303,"pageTitle":"Propriétés de base","sectionTitle":"Déclarations Voir le type","sectionRoute":"/Lunatic/docs/components/base#déclarations-","type":"docs"},{"id":304,"pageTitle":"Propriétés de base","sectionTitle":"Contrôles Voir le type","sectionRoute":"/Lunatic/docs/components/base#contrôles-","type":"docs"},{"id":295,"pageTitle":"FilterDescription","sectionTitle":"FilterDescription","sectionRoute":"/Lunatic/docs/components/decorations/filter-description","type":"docs"},{"id":296,"pageTitle":"FilterDescription","sectionTitle":"Pourquoi ?","sectionRoute":"/Lunatic/docs/components/decorations/filter-description#pourquoi-","type":"docs"},{"id":301,"pageTitle":"Question","sectionTitle":"Question","sectionRoute":"/Lunatic/docs/components/decorations/question","type":"docs"},{"id":307,"pageTitle":"Sequence & SubSequence","sectionTitle":"Sequence & SubSequence","sectionRoute":"/Lunatic/docs/components/decorations/sequence","type":"docs"},{"id":308,"pageTitle":"CheckboxBoolean","sectionTitle":"CheckboxBoolean","sectionRoute":"/Lunatic/docs/components/fields/checkboxBoolean","type":"docs"},{"id":310,"pageTitle":"CheckboxGroup","sectionTitle":"CheckboxGroup","sectionRoute":"/Lunatic/docs/components/fields/checkboxGroup","type":"docs"},{"id":311,"pageTitle":"CheckboxOne","sectionTitle":"CheckboxOne","sectionRoute":"/Lunatic/docs/components/fields/checkboxOne","type":"docs"},{"id":309,"pageTitle":"Datepicker","sectionTitle":"Datepicker","sectionRoute":"/Lunatic/docs/components/fields/datepicker","type":"docs"},{"id":313,"pageTitle":"Dropdown","sectionTitle":"Dropdown","sectionRoute":"/Lunatic/docs/components/fields/dropdown","type":"docs"},{"id":316,"pageTitle":"Duration","sectionTitle":"Duration","sectionRoute":"/Lunatic/docs/components/fields/duration","type":"docs"},{"id":312,"pageTitle":"Input","sectionTitle":"Input","sectionRoute":"/Lunatic/docs/components/fields/input","type":"docs"},{"id":314,"pageTitle":"InputNumber","sectionTitle":"InputNumber","sectionRoute":"/Lunatic/docs/components/fields/input-number","type":"docs"},{"id":315,"pageTitle":"Radio","sectionTitle":"Radio","sectionRoute":"/Lunatic/docs/components/fields/radio","type":"docs"},{"id":319,"pageTitle":"Suggester","sectionTitle":"Suggester","sectionRoute":"/Lunatic/docs/components/fields/suggester","type":"docs"},{"id":320,"pageTitle":"Suggester","sectionTitle":"Indexation","sectionRoute":"/Lunatic/docs/components/fields/suggester#indexation","type":"docs"},{"id":321,"pageTitle":"Suggester","sectionTitle":"Récupération des données de la nomenclature","sectionRoute":"/Lunatic/docs/components/fields/suggester#récupération-des-données-de-la-nomenclature","type":"docs"},{"id":322,"pageTitle":"Suggester","sectionTitle":"Valeur arbitraire","sectionRoute":"/Lunatic/docs/components/fields/suggester#valeur-arbitraire","type":"docs"},{"id":317,"pageTitle":"Table","sectionTitle":"Table","sectionRoute":"/Lunatic/docs/components/fields/table","type":"docs"},{"id":325,"pageTitle":"Text","sectionTitle":"Text","sectionRoute":"/Lunatic/docs/components/fields/text","type":"docs"},{"id":326,"pageTitle":"Text","sectionTitle":"Composant seul","sectionRoute":"/Lunatic/docs/components/fields/text#composant-seul","type":"docs"},{"id":327,"pageTitle":"Text","sectionTitle":"Dans un tableau","sectionRoute":"/Lunatic/docs/components/fields/text#dans-un-tableau","type":"docs"},{"id":328,"pageTitle":"Text","sectionTitle":"Dans une tableau dynamique","sectionRoute":"/Lunatic/docs/components/fields/text#dans-une-tableau-dynamique","type":"docs"},{"id":318,"pageTitle":"Textarea","sectionTitle":"Textarea","sectionRoute":"/Lunatic/docs/components/fields/textarea","type":"docs"},{"id":323,"pageTitle":"Afficher le formulaire","sectionTitle":"Afficher le formulaire","sectionRoute":"/Lunatic/docs/components/lunatic-components","type":"docs"},{"id":324,"pageTitle":"Personnalisation","sectionTitle":"Personnalisation","sectionRoute":"/Lunatic/docs/components/personnalisation","type":"docs"},{"id":333,"pageTitle":"Gestion des contrôles","sectionTitle":"Gestion des contrôles","sectionRoute":"/Lunatic/docs/hook/controls","type":"docs"},{"id":334,"pageTitle":"Gestion des contrôles","sectionTitle":"Structure d'un contrôle","sectionRoute":"/Lunatic/docs/hook/controls#structure-dun-contrôle","type":"docs"},{"id":335,"pageTitle":"Gestion des contrôles","sectionTitle":"Utilisation des contrôles dans les orchestrateurs","sectionRoute":"/Lunatic/docs/hook/controls#utilisation-des-contrôles-dans-les-orchestrateurs","type":"docs"},{"id":329,"pageTitle":"Navigation","sectionTitle":"Navigation","sectionRoute":"/Lunatic/docs/hook/navigation","type":"docs"},{"id":330,"pageTitle":"Navigation","sectionTitle":"PageTag","sectionRoute":"/Lunatic/docs/hook/navigation#pagetag","type":"docs"},{"id":331,"pageTitle":"Navigation","sectionTitle":"Pager","sectionRoute":"/Lunatic/docs/hook/navigation#pager","type":"docs"},{"id":332,"pageTitle":"Navigation","sectionTitle":"Navigation","sectionRoute":"/Lunatic/docs/hook/navigation#navigation-1","type":"docs"},{"id":340,"pageTitle":"Paramètres","sectionTitle":"Paramètres","sectionRoute":"/Lunatic/docs/hook/parameters","type":"docs"},{"id":341,"pageTitle":"Paramètres","sectionTitle":"Options Voir le type","sectionRoute":"/Lunatic/docs/hook/parameters#options","type":"docs"},{"id":342,"pageTitle":"Paramètres","sectionTitle":"Vue d'ensemble","sectionRoute":"/Lunatic/docs/hook/parameters#vue-densemble","type":"docs"},{"id":343,"pageTitle":"Paramètres","sectionTitle":"Suivi des changements","sectionRoute":"/Lunatic/docs/hook/parameters#trackChanges","type":"docs"},{"id":344,"pageTitle":"Paramètres","sectionTitle":"Mode \"Ne sais pas\" / \"Refus\"","sectionRoute":"/Lunatic/docs/hook/parameters#missing","type":"docs"},{"id":345,"pageTitle":"Paramètres","sectionTitle":"Mode \"management\"","sectionRoute":"/Lunatic/docs/hook/parameters#management","type":"docs"},{"id":336,"pageTitle":"Retour","sectionTitle":"Retour","sectionRoute":"/Lunatic/docs/hook/return","type":"docs"},{"id":337,"pageTitle":"Retour","sectionTitle":"Les paramètres","sectionRoute":"/Lunatic/docs/hook/return#les-paramètres","type":"docs"},{"id":338,"pageTitle":"Retour","sectionTitle":"Les méthodes","sectionRoute":"/Lunatic/docs/hook/return#les-méthodes","type":"docs"},{"id":339,"pageTitle":"Retour","sectionTitle":"Le composant","sectionRoute":"/Lunatic/docs/hook/return#le-composant","type":"docs"},{"id":346,"pageTitle":"Suivi des changements","sectionTitle":"Suivi des changements","sectionRoute":"/Lunatic/docs/hook/track-changes","type":"docs"},{"id":347,"pageTitle":"Cleaning","sectionTitle":"Cleaning","sectionRoute":"/Lunatic/docs/internal/cleaning","type":"docs"},{"id":348,"pageTitle":"Missing","sectionTitle":"Missing","sectionRoute":"/Lunatic/docs/internal/missing","type":"docs"},{"id":350,"pageTitle":"État & Reducer","sectionTitle":"État & Reducer","sectionRoute":"/Lunatic/docs/internal/reducer","type":"docs"},{"id":351,"pageTitle":"État & Reducer","sectionTitle":"Le reducer","sectionRoute":"/Lunatic/docs/internal/reducer#le-reducer","type":"docs"},{"id":352,"pageTitle":"État & Reducer","sectionTitle":"Initialisation","sectionRoute":"/Lunatic/docs/internal/reducer#initialisation","type":"docs"},{"id":353,"pageTitle":"État & Reducer","sectionTitle":"Navigation","sectionRoute":"/Lunatic/docs/internal/reducer#navigation","type":"docs"},{"id":354,"pageTitle":"État & Reducer","sectionTitle":"Changement de valeurs","sectionRoute":"/Lunatic/docs/internal/reducer#changement-de-valeurs","type":"docs"},{"id":355,"pageTitle":"État & Reducer","sectionTitle":"Génération des composants","sectionRoute":"/Lunatic/docs/internal/reducer#génération-des-composants","type":"docs"},{"id":349,"pageTitle":"Resizing","sectionTitle":"Resizing","sectionRoute":"/Lunatic/docs/internal/resizing","type":"docs"},{"id":356,"pageTitle":"VTL","sectionTitle":"VTL","sectionRoute":"/Lunatic/docs/vtl","type":"docs"},{"id":357,"pageTitle":"VTL","sectionTitle":"Markdown","sectionRoute":"/Lunatic/docs/vtl#markdown","type":"docs"},{"id":358,"pageTitle":"VTL","sectionTitle":"Variable spéciale","sectionRoute":"/Lunatic/docs/vtl#variable-spéciale","type":"docs"},{"id":359,"pageTitle":"Démarrage","sectionTitle":"Démarrage","sectionRoute":"/Lunatic/docs/","type":"docs"},{"id":360,"pageTitle":"Démarrage","sectionTitle":"Pour commencer","sectionRoute":"/Lunatic/docs/#pour-commencer","type":"docs"},{"id":361,"pageTitle":"Démarrage","sectionTitle":"Exemple","sectionRoute":"/Lunatic/docs/#exemple","type":"docs"}],"index":{"version":"2.3.9","fields":["title","content","tags"],"fieldVectors":[["title/9",[0,2.549]],["content/9",[]],["tags/9",[]],["title/10",[1,4.598]],["content/10",[1,6.359,2,3.795,3,6.131,4,6.625,5,6.881]],["tags/10",[]],["title/11",[6,5.311]],["content/11",[2,3.91,6,7.567,7,4.308]],["tags/11",[]],["title/12",[8,0.943,9,4.766]],["content/12",[2,2.266,8,1.789,10,2.855,11,3.956,12,2.011,13,4.706,14,3.661,15,4.386,16,3.034,17,5.112,18,6.124,19,4.386,20,5.192,21,4.706,22,4.386,23,2.327,24,4.665,25,1.946,26,3.797,27,2.46,28,2.062,29,3.098,30,3.843,31,1.828,32,4.147,33,2.081,34,3.542,35,3.341,36,3.034,37,4.386,38,4.147,39,3.956,40,4.386,41,1.282,42,2.182,43,3.956,44,6.124,45,2.855,46,2.575,47,3.661,48,2.233,49,3.797,50,2.616,51,3.797,52,4.386,53,4.147,54,4.706,55,1.967,56,2.358,57,2.905,58,3.797,59,2.802,60,4.386,61,4.386,62,4.386,63,1.516,64,2.266,65,4.706,66,2.105,67,3.436,68,3.956,69,4.386]],["tags/12",[]],["title/13",[63,1.836]],["content/13",[2,3.871,55,3.36,63,2.59,70,4.62]],["tags/13",[]],["title/14",[12,2.435]],["content/14",[2,3.427,12,3.041,29,3.521,30,4.161,36,4.587,55,2.975,71,3.341,72,7.116,73,4.921,74,6.632,75,3.221,76,6.27,77,5.052,78,6.632,79,5.741,80,7.116]],["tags/14",[]],["title/1",[1,3.485,3,3.36]],["content/1",[]],["tags/1",[]],["title/2",[81,4.433]],["content/2",[27,4.332]],["tags/2",[]],["title/3",[81,4.433]],["content/3",[4,6.825,5,7]],["tags/3",[]],["title/4",[82,5.022]],["content/4",[]],["tags/4",[]],["title/5",[3,3.36,83,3.251]],["content/5",[3,6.659,8,1.54,28,2.214,35,6.077,42,3.271,83,5.309,84,7.782,85,3.502,86,3.921,87,3.699,88,5.309,89,7.782,90,3.921,91,7.782]],["tags/5",[]],["title/6",[92,3.674]],["content/6",[2,2.549,8,1.156,27,2.767,35,3.758,41,1.441,42,2.454,50,2.942,86,2.942,87,3.721,88,3.984,90,2.942,92,3.412,93,4.271,94,3.984,95,4.664,96,7.587,97,3.412,98,5.84,99,4.664,100,4.271,101,5.84,102,5.84,103,4.664,104,2.454,105,5.84,106,4.664,107,5.878,108,5.84,109,4.664,110,4.664,111,5.361,112,4.664,113,4.664,114,4.664,115,0.697,116,3.211,117,7.093,118,4.45,119,4.664,120,4.664,121,5.84,122,4.664,123,4.664,124,5.84,125,4.664]],["tags/6",[]],["title/7",[126,4.791]],["content/7",[]],["tags/7",[]],["title/8",[127,5.022]],["content/8",[8,1.488,12,2.912,28,2.139,42,3.16,85,3.429,92,4.393,94,5.129,107,4.976,111,5.129,128,6.005,129,7.386,130,5.655,131,6.005,132,6.005,133,3.256,134,6.005,135,7.519,136,6.005]],["tags/8",[]],["title/15",[1,3.485,4,3.631]],["content/15",[]],["tags/15",[]],["title/16",[81,4.433]],["content/16",[3,6.446]],["tags/16",[]],["title/17",[82,5.022]],["content/17",[]],["tags/17",[]],["title/18",[4,3.631,83,3.251]],["content/18",[4,7.158,8,1.527,28,2.195,42,3.242,83,5.263,85,3.484,86,3.887,87,3.022,88,5.263,90,3.887,97,4.508,137,7.714,138,8.515,139,5.642,140,6.517,141,7.714]],["tags/18",[]],["title/19",[92,3.674]],["content/19",[2,2.437,8,1.105,27,2.646,35,3.593,41,1.378,42,2.347,50,2.813,86,2.813,87,3.653,88,3.809,90,3.84,92,3.262,93,4.083,94,3.809,95,4.459,96,7.448,97,4.454,99,4.459,100,5.574,103,4.459,104,2.347,106,4.459,107,5.744,109,4.459,110,4.459,111,5.2,112,4.459,113,4.459,114,4.459,115,0.666,116,3.07,117,6.932,118,4.254,119,4.459,120,4.459,122,4.459,123,4.459,125,4.459,138,5.061,139,4.083,142,5.583,143,4.716,144,4.716,145,5.583,146,4.716,147,4.716,148,4.716,149,4.716,150,4.716]],["tags/19",[]],["title/20",[126,4.791]],["content/20",[]],["tags/20",[]],["title/21",[127,5.022]],["content/21",[8,1.488,12,2.912,28,2.139,42,3.16,85,3.429,92,4.393,94,5.129,107,4.976,111,5.129,128,6.005,129,7.386,130,5.655,131,6.005,132,6.005,133,3.256,134,6.005,136,6.005,151,6.351]],["tags/21",[]],["title/48",[1,3.485,5,3.251]],["content/48",[]],["tags/48",[]],["title/49",[81,4.433]],["content/49",[3,6.446]],["tags/49",[]],["title/50",[82,5.022]],["content/50",[]],["tags/50",[]],["title/51",[5,3.251,83,3.251]],["content/51",[5,6.442,8,1.54,28,2.214,42,3.271,83,5.309,85,3.502,86,3.921,87,3.699,88,5.309,90,3.921,140,6.574,152,7.782,153,7.978,154,7.782]],["tags/51",[]],["title/52",[92,3.674]],["content/52",[2,2.452,8,1.112,27,2.662,35,3.615,41,1.387,42,2.361,50,2.831,86,2.831,87,3.832,88,3.833,90,3.857,92,3.283,93,4.109,94,3.833,95,4.487,96,7.468,97,3.283,99,4.487,100,5.598,103,4.487,104,2.361,106,4.487,107,5.763,109,4.487,110,4.487,111,5.222,112,4.487,113,4.487,114,4.487,115,0.671,116,3.09,117,6.955,118,4.281,119,4.487,120,4.487,122,4.487,123,4.487,125,4.487,143,4.746,144,4.746,146,4.746,147,4.746,148,4.746,149,4.746,150,4.746,153,4.746,155,5.618,156,5.618]],["tags/52",[]],["title/53",[126,4.791]],["content/53",[]],["tags/53",[]],["title/54",[127,5.022]],["content/54",[8,1.488,12,2.912,28,2.139,42,3.16,85,3.429,92,4.393,94,5.129,107,4.976,111,5.129,128,6.005,129,7.386,130,5.655,131,6.005,132,6.005,133,3.256,134,6.005,136,6.005,151,6.351]],["tags/54",[]],["title/22",[1,3.485,5,3.251]],["content/22",[]],["tags/22",[]],["title/23",[81,4.433]],["content/23",[3,6.446]],["tags/23",[]],["title/24",[82,5.022]],["content/24",[]],["tags/24",[]],["title/25",[5,3.251,83,3.251]],["content/25",[5,6.442,8,1.54,28,2.214,42,3.271,83,5.309,85,3.502,86,3.921,87,3.699,88,5.309,90,3.921,140,6.574,157,7.782,158,7.543,159,7.782]],["tags/25",[]],["title/26",[92,3.674]],["content/26",[2,2.452,8,1.112,27,2.662,35,3.615,41,1.387,42,2.361,50,2.831,86,2.831,87,3.832,88,3.833,90,3.857,92,3.283,93,4.109,94,3.833,95,4.487,96,7.468,97,3.283,99,4.487,100,5.598,103,4.487,104,2.361,106,4.487,107,5.763,109,4.487,110,4.487,111,5.222,112,4.487,113,4.487,114,4.487,115,0.671,116,3.09,117,6.955,118,4.281,119,4.487,120,4.487,122,4.487,123,4.487,125,4.487,143,4.746,144,4.746,146,4.746,147,4.746,148,4.746,149,4.746,150,4.746,158,4.487,160,5.618,161,5.618]],["tags/26",[]],["title/27",[126,4.791]],["content/27",[]],["tags/27",[]],["title/28",[127,5.022]],["content/28",[8,1.488,12,2.912,28,2.139,42,3.16,85,3.429,92,4.393,94,5.129,107,4.976,111,5.129,128,6.005,129,7.386,130,5.655,131,6.005,132,6.005,133,3.256,134,6.005,136,6.005,151,6.351]],["tags/28",[]],["title/39",[12,1.846,71,2.028]],["content/39",[36,4.712,55,3.656,57,3.232,72,7.309,73,5.055,74,6.812,75,3.308,76,6.441,162,8.064,163,4.201,164,8.064,165,8.064,166,8.064]],["tags/39",[]],["title/40",[8,0.943,85,1.767]],["content/40",[8,1.996,85,3.225,97,5.081,167,4.975,168,8.695]],["tags/40",[]],["title/41",[85,2.332]],["content/41",[8,1.755,85,3.289,169,5.074,170,8.868]],["tags/41",[]],["title/42",[28,1.789]],["content/42",[163,4.762]],["tags/42",[]],["title/43",[42,2.643]],["content/43",[171,9.142]],["tags/43",[]],["title/44",[12,1.846,77,3.067]],["content/44",[115,1.058,172,8.868,173,8.038,174,4.084]],["tags/44",[]],["title/45",[85,2.332]],["content/45",[8,1.755,85,3.289,175,4.453]],["tags/45",[]],["title/46",[28,1.789]],["content/46",[115,1.069,173,8.119,174,4.125]],["tags/46",[]],["title/47",[42,2.643]],["content/47",[176,9.142]],["tags/47",[]],["title/55",[12,1.846,29,1.767]],["content/55",[25,3.166,29,3.133,30,4.478,59,4.559,78,7.136,79,6.178,80,7.657,177,3.466,178,7.657]],["tags/55",[]],["title/56",[85,2.332]],["content/56",[2,2.912,8,1.321,24,5.52,25,3.215,38,5.329,39,5.084,40,5.637,41,1.647,56,3.031,57,2.674,58,4.88,66,2.705,85,2.474,97,3.899,115,1.024,133,2.35,139,4.88,167,3.817,178,6.048,179,2.912,180,5.637,181,4.552,182,6.672,183,5.852,184,6.672,185,6.672,186,4.294,187,6.672,188,6.048,189,6.048,190,6.048,191,6.048,192,6.048]],["tags/56",[]],["title/57",[28,1.789]],["content/57",[59,4.934]],["tags/57",[]],["title/58",[42,2.643]],["content/58",[90,4.513,193,8.958,194,8.958]],["tags/58",[]],["title/59",[6,4.026,7,2.292]],["content/59",[]],["tags/59",[]],["title/68",[8,0.759,10,2.11,11,2.924]],["content/68",[11,6.316,12,3.211,13,7.514,14,5.845,15,7.003,16,4.844,17,5.845,18,7.003,115,0.989,130,5.069,195,7.003]],["tags/68",[]],["title/69",[85,2.332]],["content/69",[8,1.755,85,3.289,133,3.123,195,7.492]],["tags/69",[]],["title/70",[28,1.789]],["content/70",[130,5.591]],["tags/70",[]],["title/71",[42,2.643]],["content/71",[90,4.559,196,9.049]],["tags/71",[]],["title/60",[8,0.759,10,2.11,19,3.241]],["content/60",[19,7.644,197,9.049]],["tags/60",[]],["title/61",[8,0.943,198,2.482]],["content/61",[]],["tags/61",[]],["title/62",[199,2.744]],["content/62",[97,5.288,199,3.95]],["tags/62",[]],["title/63",[200,2.937]],["content/63",[97,5.288,200,4.227]],["tags/63",[]],["title/64",[201,3.024]],["content/64",[97,5.288,201,4.352]],["tags/64",[]],["title/65",[31,2.214]],["content/65",[31,3.186,97,5.288]],["tags/65",[]],["title/66",[202,2.979]],["content/66",[97,5.288,202,4.288]],["tags/66",[]],["title/67",[42,2.643]],["content/67",[90,4.559,203,9.049]],["tags/67",[]],["title/72",[8,0.759,10,2.11,204,3.478]],["content/72",[115,1.058,133,3.123,204,8.038,205,8.868]],["tags/72",[]],["title/73",[8,0.943,198,2.482]],["content/73",[]],["tags/73",[]],["title/74",[206,2.78]],["content/74",[206,4.001,207,6.618]],["tags/74",[]],["title/75",[48,1.937]],["content/75",[41,2.211,48,2.76,87,3.509]],["tags/75",[]],["title/76",[8,0.943,85,1.767]],["content/76",[8,1.974,81,6.013,85,3.163,87,3.906,167,4.879,207,6.237]],["tags/76",[]],["title/77",[42,2.643]],["content/77",[90,4.559,208,9.049]],["tags/77",[]],["title/78",[8,0.759,10,2.11,209,3.478]],["content/78",[209,8.202,210,9.049]],["tags/78",[]],["title/79",[8,0.943,85,1.767]],["content/79",[8,1.974,81,6.013,85,3.163,167,4.879,207,6.237,211,9.973]],["tags/79",[]],["title/80",[42,2.643]],["content/80",[212,9.142]],["tags/80",[]],["title/81",[8,0.759,10,2.11,22,3.241]],["content/81",[22,7.644,213,9.049]],["tags/81",[]],["title/82",[42,2.643]],["content/82",[90,4.559,214,9.049]],["tags/82",[]],["title/83",[8,0.759,10,2.11,23,1.719]],["content/83",[23,3.785,24,5.436,25,3.166,97,4.936,115,1.008,133,2.975,139,6.178,199,3.687,215,8.447]],["tags/83",[]],["title/84",[42,2.643]],["content/84",[90,4.559,216,9.049]],["tags/84",[]],["title/87",[8,0.759,10,2.11,26,2.806]],["content/87",[8,1.488,17,5.302,18,6.351,26,5.499,27,3.563,28,2.139,29,2.788,30,3.985,31,2.648,32,6.005,33,3.706,34,6.308,35,4.838,36,4.393,115,1.195,133,2.648,217,7.519,218,5.499]],["tags/87",[]],["title/88",[8,0.943,198,2.482]],["content/88",[]],["tags/88",[]],["title/89",[219,4.289]],["content/89",[219,6.173,220,8.202]],["tags/89",[]],["title/90",[42,2.643]],["content/90",[90,4.559,221,9.049]],["tags/90",[]],["title/85",[8,0.759,10,2.11,37,3.241]],["content/85",[37,7.492,115,1.058,222,8.038,223,8.868]],["tags/85",[]],["title/86",[42,2.643]],["content/86",[90,4.559,224,9.049]],["tags/86",[]],["title/120",[8,0.759,10,2.11,38,3.065]],["content/120",[29,3.163,30,4.521,38,6.812,39,6.498,40,7.204,41,2.105,42,3.584,133,3.003]],["tags/120",[]],["title/121",[8,0.943,198,2.482]],["content/121",[]],["tags/121",[]],["title/122",[225,5.311]],["content/122",[25,3.136,41,2.065,167,4.787,225,7.069,226,4.359,227,5.708,228,5.384,229,5.384,230,5.245,231,3.136]],["tags/122",[]],["title/123",[232,5.311]],["content/123",[25,3.079,41,2.027,57,3.291,167,4.699,188,7.444,226,4.278,227,5.603,231,3.079,232,6.938,233,8.213,234,3.892,235,3.782]],["tags/123",[]],["title/124",[236,5.311]],["content/124",[41,2.211,133,3.154,236,7.567]],["tags/124",[]],["title/125",[237,6.287]],["content/125",[41,2.211,226,4.666,238,8.119]],["tags/125",[]],["title/126",[239,5.311]],["content/126",[41,2.125,167,4.926,226,4.485,231,3.228,239,7.274,240,8.611,241,8.611]],["tags/126",[]],["title/127",[242,5.022]],["content/127",[41,2.125,70,4.485,87,3.373,242,6.878,243,7.274,244,7.274,245,3.411]],["tags/127",[]],["title/128",[246,5.311]],["content/128",[41,2.085,115,1.008,227,5.763,246,7.136,247,7.657,248,4.168,249,6.747,250,7.136]],["tags/128",[]],["title/129",[251,5.022]],["content/129",[8,1.54,12,3.014,28,2.214,41,1.921,67,5.15,85,3.502,87,3.048,104,3.969,115,0.929,235,3.584,251,6.215,252,9.444,253,6.574,254,7.054,255,5.929]],["tags/129",[]],["title/130",[256,2.856]],["content/130",[41,2.105,48,2.627,167,4.879,256,3.874,257,5.346,258,7.73,259,8.528,260,3.874]],["tags/130",[]],["title/131",[261,4.598]],["content/131",[17,6.072,41,2.125,48,2.653,49,6.297,257,5.397,261,6.297,262,8.611]],["tags/131",[]],["title/132",[263,5.699]],["content/132",[41,2.211,263,8.119,264,8.958]],["tags/132",[]],["title/133",[265,4.791]],["content/133",[31,2.582,41,1.81,63,2.141,67,4.853,167,4.195,199,3.201,200,3.425,226,3.82,227,5.002,231,2.749,265,6.938,266,7.333,267,6.026,268,5.857,269,6.646,270,7.333,271,6.646,272,6.646,273,7.333,274,5.002,275,7.333,276,5.587,277,6.646]],["tags/133",[]],["title/134",[278,3.457]],["content/134",[41,2.105,167,4.879,226,4.442,227,5.818,231,3.197,278,5.484,279,7.73]],["tags/134",[]],["title/135",[280,5.022]],["content/135",[41,2.105,70,4.442,133,3.003,278,4.69,280,6.812,281,7.73,282,6.812,283,7.73]],["tags/135",[]],["title/136",[284,6.287]],["content/136",[87,3.544,285,7.644]],["tags/136",[]],["title/137",[286,6.287]],["content/137",[87,3.544,287,7.228]],["tags/137",[]],["title/138",[288,5.022]],["content/138",[12,3.181,28,2.337,41,2.027,70,4.278,115,1.164,130,5.965,278,4.516,283,7.444,288,6.56,289,8.213]],["tags/138",[]],["title/139",[290,5.311]],["content/139",[11,6.144,12,3.123,16,4.712,17,5.686,31,2.84,41,1.991,63,2.355,67,5.337,79,5.898,153,6.812,253,6.812,290,6.812,291,8.064,292,7.309]],["tags/139",[]],["title/140",[293,5.699]],["content/140",[8,1.626,28,2.337,41,2.027,85,3.617,115,0.98,130,5.965,293,7.444,294,9.754,295,8.213]],["tags/140",[]],["title/141",[296,5.311]],["content/141",[41,2.211,199,3.91,296,7.567]],["tags/141",[]],["title/142",[297,5.022]],["content/142",[41,2.146,70,4.529,87,3.406,245,3.445,287,6.945,297,6.945]],["tags/142",[]],["title/143",[298,5.311]],["content/143",[25,3.197,41,2.105,167,4.879,199,4.353,298,7.204,299,7.73,300,8.528]],["tags/143",[]],["title/144",[282,5.022]],["content/144",[41,2.009,70,5.053,167,4.656,226,4.239,227,5.552,231,3.05,278,4.475,281,7.376,282,7.749,301,7.376,302,3.914]],["tags/144",[]],["title/145",[303,4.791]],["content/145",[16,5.608,41,1.973,63,2.334,67,5.289,167,4.572,226,4.163,227,5.452,231,2.996,268,6.383,303,6.089,304,9.597,305,7.992,306,5.845]],["tags/145",[]],["title/146",[307,5.022]],["content/146",[41,2.105,167,4.879,226,4.442,227,5.818,231,3.197,279,7.73,307,6.812,308,6.498]],["tags/146",[]],["title/147",[42,2.643]],["content/147",[90,4.559,309,9.049]],["tags/147",[]],["title/108",[8,0.759,10,2.11,43,2.924]],["content/108",[43,5.778,44,6.406,45,4.17,46,4.61,47,5.347,48,2.864,49,5.546,50,3.821,51,5.546,52,6.406,67,5.018,68,5.778,92,4.431,133,3.273,310,7.583,311,3.593,312,5.018,313,6.873]],["tags/108",[]],["title/109",[8,0.943,198,2.482]],["content/109",[]],["tags/109",[]],["title/110",[314,3.674]],["content/110",[41,2.105,50,4.297,258,7.73,311,4.041,314,5.828,315,5.215,316,5.095]],["tags/110",[]],["title/111",[261,4.598]],["content/111",[41,2.146,47,6.131,48,2.679,49,6.359,257,5.45,261,6.359]],["tags/111",[]],["title/112",[317,5.311]],["content/112",[41,2.189,50,4.468,311,4.203,317,7.492]],["tags/112",[]],["title/113",[318,3.168]],["content/113",[24,5.65,47,6.192,48,2.705,50,4.424,318,4.424]],["tags/113",[]],["title/114",[319,5.022]],["content/114",[41,2.085,50,5.305,189,7.657,311,4.003,314,4.936,319,6.747,320,8.447]],["tags/114",[]],["title/115",[321,5.311]],["content/115",[41,2.125,48,2.653,50,5.053,311,4.753,321,7.274]],["tags/115",[]],["title/116",[48,1.937]],["content/116",[48,3.143,50,4.468,322,5.869]],["tags/116",[]],["title/117",[323,5.311]],["content/117",[41,2.189,50,4.468,311,4.203,323,7.492]],["tags/117",[]],["title/118",[51,4.598]],["content/118",[41,2.146,50,4.381,51,7.377,311,4.12,322,5.755]],["tags/118",[]],["title/119",[42,2.643]],["content/119",[90,4.559,324,9.049]],["tags/119",[]],["title/176",[8,0.759,10,2.11,53,3.065]],["content/176",[8,1.721,44,7.345,53,6.945,54,7.881,55,3.295,133,3.062]],["tags/176",[]],["title/177",[8,0.943,198,2.482]],["content/177",[]],["tags/177",[]],["title/178",[325,5.022]],["content/178",[325,8.196,326,3.358]],["tags/178",[]],["title/179",[70,3.275]],["content/179",[70,5.345,326,3.358]],["tags/179",[]],["title/180",[327,3.22]],["content/180",[326,3.358,327,4.588,328,8.958]],["tags/180",[]],["title/181",[329,3.275]],["content/181",[326,3.358,329,4.666,330,8.958]],["tags/181",[]],["title/182",[331,5.699]],["content/182",[326,3.358,331,9.301]],["tags/182",[]],["title/183",[332,5.699]],["content/183",[326,3.358,332,9.301]],["tags/183",[]],["title/184",[333,5.699]],["content/184",[326,3.358,333,9.301]],["tags/184",[]],["title/185",[334,5.699]],["content/185",[326,3.358,334,9.301]],["tags/185",[]],["title/186",[335,5.699]],["content/186",[326,3.358,335,9.301]],["tags/186",[]],["title/187",[336,5.699]],["content/187",[326,3.358,336,9.301]],["tags/187",[]],["title/188",[337,5.699]],["content/188",[326,3.358,337,9.301]],["tags/188",[]],["title/189",[338,5.699]],["content/189",[326,3.358,338,9.301]],["tags/189",[]],["title/190",[339,5.699]],["content/190",[326,3.358,339,9.301]],["tags/190",[]],["title/191",[340,5.699]],["content/191",[115,1.058,133,3.123,340,8.038,341,8.868]],["tags/191",[]],["title/192",[342,3.22]],["content/192",[326,3.358,342,4.588,343,8.958]],["tags/192",[]],["title/193",[198,3.275]],["content/193",[198,5.345,326,3.358]],["tags/193",[]],["title/194",[198,3.275]],["content/194",[198,5.345,326,3.358]],["tags/194",[]],["title/195",[344,3.22]],["content/195",[326,3.358,344,4.588,345,8.958]],["tags/195",[]],["title/196",[346,3.275]],["content/196",[326,3.358,346,4.666,347,8.958]],["tags/196",[]],["title/197",[348,5.699]],["content/197",[326,3.358,348,9.301]],["tags/197",[]],["title/198",[31,2.214]],["content/198",[31,3.154,326,3.358,349,8.958]],["tags/198",[]],["title/199",[350,2.78]],["content/199",[326,3.358,350,3.961,351,8.958]],["tags/199",[]],["title/200",[245,2.491]],["content/200",[245,4.065,326,3.358]],["tags/200",[]],["title/201",[311,2.979]],["content/201",[311,4.245,326,3.358,352,8.958]],["tags/201",[]],["title/202",[353,5.699]],["content/202",[326,3.358,353,9.301]],["tags/202",[]],["title/203",[354,5.699]],["content/203",[326,3.358,354,9.301]],["tags/203",[]],["title/204",[355,2.78]],["content/204",[326,3.358,355,3.961,356,8.958]],["tags/204",[]],["title/205",[302,3.024]],["content/205",[302,4.935,326,3.358]],["tags/205",[]],["title/206",[357,5.699]],["content/206",[326,3.358,357,9.301]],["tags/206",[]],["title/207",[358,5.699]],["content/207",[326,3.358,358,9.301]],["tags/207",[]],["title/208",[359,3.845]],["content/208",[326,3.358,359,5.478,360,8.958]],["tags/208",[]],["title/209",[361,5.699]],["content/209",[326,3.358,361,9.301]],["tags/209",[]],["title/210",[362,3.275]],["content/210",[326,3.358,362,5.345]],["tags/210",[]],["title/211",[363,3.845]],["content/211",[326,3.358,363,6.275]],["tags/211",[]],["title/212",[235,2.896]],["content/212",[235,4.125,326,3.358,364,8.958]],["tags/212",[]],["title/213",[365,5.699]],["content/213",[326,3.358,365,9.301]],["tags/213",[]],["title/214",[366,5.699]],["content/214",[326,3.358,366,9.301]],["tags/214",[]],["title/215",[367,5.699]],["content/215",[326,3.358,367,9.301]],["tags/215",[]],["title/216",[276,4.791]],["content/216",[276,6.825,326,3.358,368,8.958]],["tags/216",[]],["title/217",[369,3.168]],["content/217",[326,3.358,369,5.17]],["tags/217",[]],["title/218",[370,5.699]],["content/218",[326,3.358,370,9.301]],["tags/218",[]],["title/219",[371,5.699]],["content/219",[326,3.358,371,9.301]],["tags/219",[]],["title/220",[372,3.168]],["content/220",[326,3.358,372,4.513,373,8.958]],["tags/220",[]],["title/221",[374,5.699]],["content/221",[326,3.358,374,9.301]],["tags/221",[]],["title/222",[375,5.699]],["content/222",[326,3.358,375,9.301]],["tags/222",[]],["title/223",[376,5.699]],["content/223",[326,3.358,376,9.301]],["tags/223",[]],["title/224",[42,2.643]],["content/224",[377,9.142]],["tags/224",[]],["title/91",[8,0.759,10,2.11,56,1.743]],["content/91",[24,5.65,56,3.988,57,3.519,58,6.422,133,3.092]],["tags/91",[]],["title/92",[8,0.943,198,2.482]],["content/92",[]],["tags/92",[]],["title/93",[378,3.941]],["content/93",[41,2.105,87,3.34,133,3.512,315,5.215,378,5.346,379,6.237,380,7.204]],["tags/93",[]],["title/94",[55,2.382]],["content/94",[55,3.429,381,9.049]],["tags/94",[]],["title/95",[382,4.598]],["content/95",[41,2.211,87,3.509,382,6.551]],["tags/95",[]],["title/96",[383,4.791]],["content/96",[41,2.211,87,3.509,383,6.825]],["tags/96",[]],["title/97",[33,2.52]],["content/97",[33,3.59,41,2.211,87,3.509]],["tags/97",[]],["title/98",[245,2.491]],["content/98",[41,2.211,222,8.119,245,3.549]],["tags/98",[]],["title/99",[384,4.598]],["content/99",[41,2.211,87,3.509,384,6.551]],["tags/99",[]],["title/100",[318,3.168]],["content/100",[41,2.211,87,3.509,318,4.513]],["tags/100",[]],["title/101",[385,4.433]],["content/101",[41,2.105,87,3.906,133,3.003,315,5.215,379,6.237,380,7.204,385,6.013]],["tags/101",[]],["title/102",[183,4.289]],["content/102",[41,2.211,87,3.509,183,6.111]],["tags/102",[]],["title/103",[386,4.433]],["content/103",[41,2.167,115,1.048,355,3.883,362,4.574,386,6.192]],["tags/103",[]],["title/104",[387,3.457]],["content/104",[41,2.027,87,3.217,115,1.164,133,3.791,315,5.023,379,6.007,380,6.938,387,4.516]],["tags/104",[]],["title/105",[235,2.896]],["content/105",[41,2.211,235,4.125,388,8.958]],["tags/105",[]],["title/106",[63,1.836]],["content/106",[63,3.014]],["tags/106",[]],["title/107",[42,2.643]],["content/107",[389,9.142]],["tags/107",[]],["title/150",[8,0.759,10,2.11,59,2.071]],["content/150",[8,1.688,24,5.488,28,2.426,29,3.163,59,4.603,133,3.003,268,6.812,390,8.528]],["tags/150",[]],["title/151",[8,0.943,198,2.482]],["content/151",[]],["tags/151",[]],["title/152",[391,3.457]],["content/152",[26,5.691,28,2.214,115,1.213,133,3.325,139,5.691,180,6.574,226,4.054,228,5.007,254,7.054,268,6.215,391,4.279,392,7.196,393,8.56]],["tags/152",[]],["title/153",[392,4.791]],["content/153",[26,5.952,27,3.856,33,3.261,41,2.009,48,2.507,87,3.188,115,0.971,133,2.866,314,4.755,315,4.977,322,5.386,379,5.952,392,6.201]],["tags/153",[]],["title/154",[27,2.979]],["content/154",[24,5.384,27,4.674,41,2.065,48,2.578,87,3.278,133,3.473,315,5.117,379,6.12]],["tags/154",[]],["title/155",[306,4.598]],["content/155",[8,1.527,16,4.508,23,4.21,25,2.892,28,2.672,47,5.44,85,3.484,115,0.921,226,4.018,272,6.992,306,5.642,394,8.556,395,7.714,396,5.642]],["tags/155",[]],["title/156",[397,2.856]],["content/156",[0,2.554,12,2.44,15,3.607,21,5.71,25,3.097,28,2.351,29,2.336,31,1.503,36,3.681,48,1.315,55,3.494,64,4.025,66,2.554,67,4.954,71,3.924,74,3.607,92,3.681,115,1.359,118,3.253,177,2.584,206,1.888,269,3.87,322,2.826,350,1.888,397,4.003,398,4.269,399,3.87,400,4.269,401,3.253,402,2.942,403,5.71,404,3.704,405,5.321,406,4.269,407,4.269,408,3.87,409,3.87,410,4.269]],["tags/156",[]],["title/157",[396,4.598]],["content/157",[8,1.554,23,4.254,24,5.052,25,2.943,28,2.233,85,3.521,87,3.075,115,0.937,158,7.583,199,3.427,226,4.089,396,5.741,411,9.494]],["tags/157",[]],["title/158",[412,3.756]],["content/158",[28,2.403,46,4.189,48,2.602,115,1.184,130,6.065,412,5.047,413,8.447]],["tags/158",[]],["title/159",[414,3.845]],["content/159",[28,2.403,46,4.189,48,2.602,115,1.184,130,6.065,202,4.003,414,5.166]],["tags/159",[]],["title/160",[415,5.311]],["content/160",[8,1.463,28,2.103,39,5.634,46,3.666,48,3.062,50,5.234,85,3.394,115,1.092,130,5.597,133,2.604,257,4.634,415,6.246,416,7.394,417,7.394,418,7.394,419,7.394]],["tags/160",[]],["title/161",[420,5.311]],["content/161",[28,2.76,48,2.507,115,1.158,226,5.053,322,5.386,420,6.875,421,3.117,422,8.138,423,6.875,424,8.138]],["tags/161",[]],["title/162",[425,3.845]],["content/162",[24,5.541,48,2.653,78,7.274,226,4.485,425,5.266,426,7.274,427,7.274]],["tags/162",[]],["title/163",[428,5.311]],["content/163",[226,4.574,311,4.161,426,7.418,427,7.418,428,7.418]],["tags/163",[]],["title/164",[429,3.845]],["content/164",[24,5.436,47,5.956,48,2.602,49,6.178,226,4.4,318,4.256,426,7.136,427,7.136,429,5.166]],["tags/164",[]],["title/165",[430,5.311]],["content/165",[63,2.564,87,3.439,322,5.811,430,7.418,431,8.781]],["tags/165",[]],["title/166",[432,5.699]],["content/166",[26,6.359,27,4.12,41,2.146,139,6.359,432,7.881,433,8.695]],["tags/166",[]],["title/167",[308,4.791]],["content/167",[308,6.895,434,8.202]],["tags/167",[]],["title/168",[312,4.161]],["content/168",[43,6.757,312,6.752,322,5.869]],["tags/168",[]],["title/169",[257,3.941]],["content/169",[48,2.705,257,6.358,322,5.811,435,8.781]],["tags/169",[]],["title/170",[64,2.744]],["content/170",[55,3.201,64,3.687,71,3.595,79,6.178,436,8.447,437,8.447,438,8.447,439,8.447,440,8.447]],["tags/170",[]],["title/171",[441,4.791]],["content/171",[16,4.89,28,2.381,63,2.444,69,7.069,115,1.177,130,6.031,192,7.585,441,6.376]],["tags/171",[]],["title/172",[442,5.022]],["content/172",[67,5.811,133,3.092,442,8.102,443,8.781]],["tags/172",[]],["title/173",[444,6.287]],["content/173",[11,6.895,445,7.644]],["tags/173",[]],["title/174",[446,5.311]],["content/174",[12,3.335,47,6.072,50,4.339,253,7.274,445,7.274,446,7.274,447,4.735]],["tags/174",[]],["title/175",[42,2.643]],["content/175",[90,4.559,448,9.049]],["tags/175",[]],["title/148",[8,0.759,10,2.11,60,3.241]],["content/148",[60,7.345,115,1.038,133,3.062,299,7.881,449,10.086]],["tags/148",[]],["title/149",[42,2.643]],["content/149",[90,4.559,450,9.049]],["tags/149",[]],["title/229",[8,0.759,10,2.11,61,3.241]],["content/229",[61,7.644,133,3.186]],["tags/229",[]],["title/230",[315,2.914,379,3.485]],["content/230",[87,3.509,97,5.234,158,7.155]],["tags/230",[]],["title/231",[42,2.643]],["content/231",[90,4.559,451,9.049]],["tags/231",[]],["title/227",[8,0.759,10,2.11,62,3.241]],["content/227",[57,3.353,62,7.069,63,2.88,64,3.652,65,7.585,66,3.393,67,5.538,68,6.376,69,7.069]],["tags/227",[]],["title/228",[42,2.643]],["content/228",[90,4.559,452,9.049]],["tags/228",[]],["title/225",[63,1.392,70,2.482]],["content/225",[70,4.666,404,3.765,453,8.958]],["tags/225",[]],["title/226",[42,2.643]],["content/226",[454,9.142]],["tags/226",[]],["title/239",[55,1.806,63,1.392]],["content/239",[55,3.394,133,3.154,404,3.765]],["tags/239",[]],["title/240",[8,0.943,198,2.482]],["content/240",[]],["tags/240",[]],["title/241",[325,5.022]],["content/241",[7,4.182,115,1.204,133,3.062,325,6.945,455,8.695]],["tags/241",[]],["title/242",[327,3.22]],["content/242",[7,3.843,8,1.582,28,2.274,85,3.559,115,1.227,133,2.814,163,4.999,169,5.49,327,4.093,456,7.992]],["tags/242",[]],["title/243",[329,3.275]],["content/243",[7,3.742,8,1.54,28,2.214,85,3.502,115,1.262,133,2.74,163,4.919,169,5.403,174,3.584,226,4.054,329,4.054,457,7.782]],["tags/243",[]],["title/244",[458,3.333]],["content/244",[7,3.556,8,1.463,28,2.103,32,5.905,41,1.825,85,3.394,87,2.896,115,1.24,133,2.604,163,4.767,169,5.236,301,6.702,302,3.556,423,6.246,458,3.919,459,7.394,460,7.394,461,5.213]],["tags/244",[]],["title/245",[342,3.22]],["content/245",[7,3.775,8,1.554,28,2.233,85,3.521,87,3.075,115,1.266,133,2.764,163,4.946,169,5.432,342,4.021,461,5.536]],["tags/245",[]],["title/246",[344,3.22]],["content/246",[7,3.775,8,1.554,28,2.233,85,3.521,87,3.075,115,1.266,133,2.764,163,4.946,169,5.432,344,4.021,461,5.536]],["tags/246",[]],["title/247",[346,3.275]],["content/247",[7,3.775,8,1.554,28,2.233,85,3.521,87,3.075,115,1.266,133,2.764,163,4.946,169,5.432,346,4.089,461,5.536]],["tags/247",[]],["title/248",[462,4.289]],["content/248",[8,1.641,28,2.358,85,3.637,115,0.989,163,5.109,169,5.612,175,3.618,462,5.655]],["tags/248",[]],["title/249",[31,2.214]],["content/249",[7,3.843,8,1.582,28,2.274,31,2.814,85,3.559,115,1.227,133,2.814,163,4.999,169,5.49,463,6.383]],["tags/249",[]],["title/250",[350,2.78]],["content/250",[7,3.775,8,1.554,28,2.233,50,3.956,85,3.521,115,1.266,133,2.764,163,4.946,169,5.432,350,3.472,461,5.536]],["tags/250",[]],["title/251",[311,2.979]],["content/251",[7,3.526,8,1.451,28,2.086,39,5.587,85,3.377,107,4.853,115,1.271,133,2.582,163,4.743,169,5.209,174,4.193,311,4.315,464,6.646,465,7.333,466,7.333,467,6.194]],["tags/251",[]],["title/252",[468,4.161]],["content/252",[7,3.809,8,1.568,28,2.253,85,3.54,115,1.223,133,2.789,163,4.972,169,5.461,179,3.457,468,5.242,469,7.92]],["tags/252",[]],["title/253",[355,2.78]],["content/253",[2,3.691,7,3.138,8,1.292,27,3.092,28,1.856,33,2.615,85,3.136,100,4.772,115,1.339,133,2.298,163,4.405,175,3.691,198,4.405,245,3.35,313,5.915,355,3.739,470,6.525,471,6.525,472,4.601,473,6.525,474,6.525,475,5.212]],["tags/253",[]],["title/254",[302,3.024]],["content/254",[7,4.101,87,3.34,115,1.262,133,3.003,302,4.101,476,8.528]],["tags/254",[]],["title/255",[477,3.941]],["content/255",[7,3.616,8,1.488,28,2.139,36,4.393,85,3.429,115,1.28,133,2.648,163,4.817,174,4.259,175,4.036,311,3.563,369,3.788,467,6.351,477,4.713]],["tags/255",[]],["title/256",[359,3.845]],["content/256",[7,3.586,8,1.476,17,5.257,28,2.121,55,2.825,85,3.412,115,1.191,133,2.625,163,4.792,175,4.015,311,3.533,314,4.357,359,5.626,399,6.758,463,5.955,478,7.456,479,7.456]],["tags/256",[]],["title/257",[362,3.275]],["content/257",[2,3.488,7,3.843,33,3.203,115,1.322,133,2.814,198,4.163,245,3.166,362,4.163,480,7.244,481,5.009]],["tags/257",[]],["title/258",[363,3.845]],["content/258",[2,3.552,7,3.914,33,3.261,115,1.309,133,2.866,198,4.239,245,3.224,363,4.977,480,7.376]],["tags/258",[]],["title/259",[235,2.896]],["content/259",[7,3.775,8,1.554,28,2.233,85,3.521,87,3.075,115,1.266,133,2.764,163,4.946,169,5.432,235,3.616,461,5.536]],["tags/259",[]],["title/260",[482,5.699]],["content/260",[7,3.647,8,1.501,17,5.347,28,2.157,85,3.447,87,2.97,115,1.251,133,2.67,163,4.842,175,4.057,461,5.347,482,6.873,483,7.583,484,2.97,485,7.583]],["tags/260",[]],["title/261",[276,4.791]],["content/261",[7,4.182,115,1.204,133,3.062,276,6.625,486,8.695]],["tags/261",[]],["title/262",[369,3.168]],["content/262",[7,3.843,8,1.582,28,2.274,85,3.559,115,1.227,133,2.814,163,4.999,175,4.189,369,4.027,467,6.751]],["tags/262",[]],["title/263",[487,2.856]],["content/263",[7,3.843,8,1.582,28,2.274,85,3.559,115,1.227,133,2.814,169,5.49,220,8.698,463,6.383,487,3.63]],["tags/263",[]],["title/264",[372,3.168]],["content/264",[7,3.843,8,1.582,28,2.274,85,3.559,115,1.227,133,2.814,163,4.999,169,5.49,372,4.027,463,6.383]],["tags/264",[]],["title/265",[42,2.643]],["content/265",[488,9.142]],["tags/265",[]],["title/232",[115,0.569,311,2.258]],["content/232",[45,2.683,48,1.503,115,1.152,311,3.288,355,2.157,359,2.983,468,3.229,477,4.349,489,2.067,490,2.71,491,3.717,492,3.44,493,3.717,494,2.63,495,2.109,496,3.717,497,2.403,498,4.44,499,1.978,500,3.568,501,3.717,502,3.614,503,3.568,504,2.458,505,3.717,506,2.346,507,2.915,508,2.279,509,4.349,510,2.216,511,3.058,512,2.735,513,3.229,514,3.058,515,1.978,516,1.651,517,2.186,518,1.735,519,2.541,520,2.983,521,2.05,522,3.717,523,1.933,524,3.717,525,3.717,526,3.44,527,3.44,528,3.568,529,3.195,530,2.586,531,3.568,532,3.717,533,2.915,534,2.586]],["tags/232",[]],["title/233",[115,0.569,477,2.987]],["content/233",[45,2.683,48,1.503,115,1.152,311,3.288,355,2.157,359,2.983,468,3.229,477,4.349,489,2.067,490,2.71,491,3.717,492,3.44,493,3.717,494,2.63,495,2.109,496,3.717,497,2.403,498,4.44,499,1.978,500,3.568,501,3.717,502,3.614,503,3.568,504,2.458,505,3.717,506,2.346,507,2.915,508,2.279,509,4.349,510,2.216,511,3.058,512,2.735,513,3.229,514,3.058,515,1.978,516,1.651,517,2.186,518,1.735,519,2.541,520,2.983,521,2.05,522,3.717,523,1.933,524,3.717,525,3.717,526,3.44,527,3.44,528,3.568,529,3.195,530,2.586,531,3.568,532,3.717,533,2.915,534,2.586]],["tags/233",[]],["title/234",[115,0.569,359,2.914]],["content/234",[45,2.683,48,1.503,115,1.152,311,3.288,355,2.157,359,2.983,468,3.229,477,4.349,489,2.067,490,2.71,491,3.717,492,3.44,493,3.717,494,2.63,495,2.109,496,3.717,497,2.403,498,4.44,499,1.978,500,3.568,501,3.717,502,3.614,503,3.568,504,2.458,505,3.717,506,2.346,507,2.915,508,2.279,509,4.349,510,2.216,511,3.058,512,2.735,513,3.229,514,3.058,515,1.978,516,1.651,517,2.186,518,1.735,519,2.541,520,2.983,521,2.05,522,3.717,523,1.933,524,3.717,525,3.717,526,3.44,527,3.44,528,3.568,529,3.195,530,2.586,531,3.568,532,3.717,533,2.915,534,2.586]],["tags/234",[]],["title/235",[115,0.569,468,3.154]],["content/235",[45,2.683,48,1.503,115,1.152,311,3.288,355,2.157,359,2.983,468,3.229,477,4.349,489,2.067,490,2.71,491,3.717,492,3.44,493,3.717,494,2.63,495,2.109,496,3.717,497,2.403,498,4.44,499,1.978,500,3.568,501,3.717,502,3.614,503,3.568,504,2.458,505,3.717,506,2.346,507,2.915,508,2.279,509,4.349,510,2.216,511,3.058,512,2.735,513,3.229,514,3.058,515,1.978,516,1.651,517,2.186,518,1.735,519,2.541,520,2.983,521,2.05,522,3.717,523,1.933,524,3.717,525,3.717,526,3.44,527,3.44,528,3.568,529,3.195,530,2.586,531,3.568,532,3.717,533,2.915,534,2.586]],["tags/235",[]],["title/236",[115,0.605,362,1.673,363,1.964]],["content/236",[2,2.008,45,2.53,75,1.888,115,1.193,355,3.786,362,3.465,363,4.068,462,4.538,472,4.691,489,1.739,490,2.638,494,1.498,495,2.195,497,2.356,499,1.865,516,2.252,521,1.934,535,3.818,536,3.675,537,3.365,538,3.506,539,1.706,540,3.675,541,2.09,542,3.675,543,1.958,544,3.675,545,3.675,546,5.069,547,2.884,548,3.365,549,3.045,550,3.365,551,1.62,552,3.675,553,3.675,554,2.884,555,2.749,556,2.749,557,1.527,558,3.506,559,3.139,560,2.483,561,3.244,562,2.09,563,3.675,564,1.743,565,2.814,566,1.768,567,2.884,568,3.675,569,2.246,570,2.318,571,2.246,572,3.506,573,3.675,574,3.045]],["tags/236",[]],["title/237",[115,0.569,355,2.107]],["content/237",[2,2.008,45,2.53,75,1.888,115,1.193,355,3.786,362,3.465,363,4.068,462,4.538,472,4.691,489,1.739,490,2.638,494,1.498,495,2.195,497,2.356,499,1.865,516,2.252,521,1.934,535,3.818,536,3.675,537,3.365,538,3.506,539,1.706,540,3.675,541,2.09,542,3.675,543,1.958,544,3.675,545,3.675,546,5.069,547,2.884,548,3.365,549,3.045,550,3.365,551,1.62,552,3.675,553,3.675,554,2.884,555,2.749,556,2.749,557,1.527,558,3.506,559,3.139,560,2.483,561,3.244,562,2.09,563,3.675,564,1.743,565,2.814,566,1.768,567,2.884,568,3.675,569,2.246,570,2.318,571,2.246,572,3.506,573,3.675,574,3.045]],["tags/237",[]],["title/238",[115,0.569,462,3.251]],["content/238",[2,2.008,45,2.53,75,1.888,115,1.193,355,3.786,362,3.465,363,4.068,462,4.538,472,4.691,489,1.739,490,2.638,494,1.498,495,2.195,497,2.356,499,1.865,516,2.252,521,1.934,535,3.818,536,3.675,537,3.365,538,3.506,539,1.706,540,3.675,541,2.09,542,3.675,543,1.958,544,3.675,545,3.675,546,5.069,547,2.884,548,3.365,549,3.045,550,3.365,551,1.62,552,3.675,553,3.675,554,2.884,555,2.749,556,2.749,557,1.527,558,3.506,559,3.139,560,2.483,561,3.244,562,2.09,563,3.675,564,1.743,565,2.814,566,1.768,567,2.884,568,3.675,569,2.246,570,2.318,571,2.246,572,3.506,573,3.675,574,3.045]],["tags/238",[]],["title/270",[31,1.678,115,0.569]],["content/270",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/270",[]],["title/271",[115,0.569,350,2.107]],["content/271",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/271",[]],["title/272",[115,0.569,372,2.401]],["content/272",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/272",[]],["title/273",[115,0.569,342,2.441]],["content/273",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/273",[]],["title/274",[115,0.569,346,2.482]],["content/274",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/274",[]],["title/275",[115,0.569,344,2.441]],["content/275",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/275",[]],["title/276",[115,0.569,235,2.195]],["content/276",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/276",[]],["title/277",[115,0.569,302,2.292]],["content/277",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/277",[]],["title/278",[115,0.569,458,2.526]],["content/278",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/278",[]],["title/279",[115,0.569,327,2.441]],["content/279",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/279",[]],["title/280",[115,0.569,329,2.482]],["content/280",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/280",[]],["title/281",[115,0.569,369,2.401]],["content/281",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/281",[]],["title/282",[115,0.569,487,2.165]],["content/282",[31,1.634,41,0.71,63,0.84,75,2.393,115,1.259,231,1.078,235,2.137,302,2.231,327,1.473,329,1.498,342,2.376,344,1.473,346,2.417,350,2.052,369,2.338,372,2.338,421,1.101,447,1.581,458,1.524,484,1.126,487,3.335,489,2.028,490,2.925,494,2.968,495,2.048,497,2.518,499,1.166,508,1.343,510,1.306,515,2.365,517,1.288,518,1.65,521,1.208,541,1.306,543,2.482,551,2.054,557,0.954,564,1.758,566,1.55,571,1.404,575,3.761,576,1.612,577,1.612,578,1.68,579,3.148,580,1.68,581,1.68,582,1.68,583,2.265,584,1.473,585,1.645,586,2.654,587,2.654,588,1.68,589,1.612,590,2.311,591,2.654,592,2.601,593,1.936,594,1.68,595,1.524,596,1.223,597,1.343,598,4.038,599,1.68,600,2.231,601,3.207,602,1.581,603,2.301,604,1.612,605,1.552,606,1.68,607,1.152,608,1.498,609,1.426,610,1.498,611,1.645,612,1.288,613,1.306,614,1.552,615,1.68,616,1.524,617,1.645,618,1.68,619,1.612,620,1.68,621,1.645]],["tags/282",[]],["title/266",[115,0.383,495,0.682,622,2.013,623,2.264]],["content/266",[55,2.437,57,2.577,66,2.607,115,1.252,181,4.387,489,1.864,490,2.581,495,1.365,497,1.6,515,3.396,516,2.176,523,2.548,557,2.135,560,5.028,566,1.709,569,3.14,584,3.294,622,5.25,623,4.535,624,5.004,625,3.679,626,4.535,627,4.387,628,4.535,629,4.703,630,4.9,631,3.14,632,4.703,633,4.9,634,4.256]],["tags/266",[]],["title/267",[115,0.569,630,3.631]],["content/267",[55,2.437,57,2.577,66,2.607,115,1.252,181,4.387,489,1.864,490,2.581,495,1.365,497,1.6,515,3.396,516,2.176,523,2.548,557,2.135,560,5.028,566,1.709,569,3.14,584,3.294,622,5.25,623,4.535,624,5.004,625,3.679,626,4.535,627,4.387,628,4.535,629,4.703,630,4.9,631,3.14,632,4.703,633,4.9,634,4.256]],["tags/267",[]],["title/268",[115,0.569,515,1.932]],["content/268",[55,2.437,57,2.577,66,2.607,115,1.252,181,4.387,489,1.864,490,2.581,495,1.365,497,1.6,515,3.396,516,2.176,523,2.548,557,2.135,560,5.028,566,1.709,569,3.14,584,3.294,622,5.25,623,4.535,624,5.004,625,3.679,626,4.535,627,4.387,628,4.535,629,4.703,630,4.9,631,3.14,632,4.703,633,4.9,634,4.256]],["tags/268",[]],["title/269",[115,0.569,633,3.631]],["content/269",[55,2.437,57,2.577,66,2.607,115,1.252,181,4.387,489,1.864,490,2.581,495,1.365,497,1.6,515,3.396,516,2.176,523,2.548,557,2.135,560,5.028,566,1.709,569,3.14,584,3.294,622,5.25,623,4.535,624,5.004,625,3.679,626,4.535,627,4.387,628,4.535,629,4.703,630,4.9,631,3.14,632,4.703,633,4.9,634,4.256]],["tags/269",[]],["title/287",[115,0.605,635,2.264,636,2.191]],["content/287",[57,1.418,63,2.372,75,1.452,115,1.132,278,3.006,355,1.565,378,4.187,385,2.495,387,3.673,489,1.91,490,1.09,494,2.447,495,2.153,497,1.36,502,1.843,504,2.754,507,3.266,508,1.653,512,3.065,516,1.85,518,1.945,519,1.843,523,2.166,539,1.312,543,1.506,555,2.114,557,1.815,562,3.034,566,2.521,567,2.218,570,3.365,590,2.166,593,2.696,595,1.876,607,1.418,608,1.843,612,1.586,616,1.876,625,3.128,635,2.495,636,2.414,637,1.783,638,2.495,639,2.588,640,2.414,641,2.696,642,1.545,643,2.588,644,2.696,645,2.588,646,2.495,647,2.696,648,2.356,649,2.025,650,2.588,651,2.696,652,2.218,653,2.696,654,2.277,655,2.696,656,2.696,657,2.588,658,2.114,659,2.068,660,2.068,661,2.025,662,2.342,663,2.414,664,2.495,665,2.342,666,2.696,667,2.696,668,3.194,669,2.342,670,2.588,671,2.588,672,2.164,673,3.855,674,2.414,675,2.414,676,2.696,677,2.068,678,2.342,679,2.696,680,2.588,681,2.696,682,2.696,683,2.414,684,2.696]],["tags/287",[]],["title/288",[115,0.569,387,2.621]],["content/288",[57,1.418,63,2.372,75,1.452,115,1.132,278,3.006,355,1.565,378,4.187,385,2.495,387,3.673,489,1.91,490,1.09,494,2.447,495,2.153,497,1.36,502,1.843,504,2.754,507,3.266,508,1.653,512,3.065,516,1.85,518,1.945,519,1.843,523,2.166,539,1.312,543,1.506,555,2.114,557,1.815,562,3.034,566,2.521,567,2.218,570,3.365,590,2.166,593,2.696,595,1.876,607,1.418,608,1.843,612,1.586,616,1.876,625,3.128,635,2.495,636,2.414,637,1.783,638,2.495,639,2.588,640,2.414,641,2.696,642,1.545,643,2.588,644,2.696,645,2.588,646,2.495,647,2.696,648,2.356,649,2.025,650,2.588,651,2.696,652,2.218,653,2.696,654,2.277,655,2.696,656,2.696,657,2.588,658,2.114,659,2.068,660,2.068,661,2.025,662,2.342,663,2.414,664,2.495,665,2.342,666,2.696,667,2.696,668,3.194,669,2.342,670,2.588,671,2.588,672,2.164,673,3.855,674,2.414,675,2.414,676,2.696,677,2.068,678,2.342,679,2.696,680,2.588,681,2.696,682,2.696,683,2.414,684,2.696]],["tags/288",[]],["title/289",[115,0.569,378,2.987]],["content/289",[57,1.418,63,2.372,75,1.452,115,1.132,278,3.006,355,1.565,378,4.187,385,2.495,387,3.673,489,1.91,490,1.09,494,2.447,495,2.153,497,1.36,502,1.843,504,2.754,507,3.266,508,1.653,512,3.065,516,1.85,518,1.945,519,1.843,523,2.166,539,1.312,543,1.506,555,2.114,557,1.815,562,3.034,566,2.521,567,2.218,570,3.365,590,2.166,593,2.696,595,1.876,607,1.418,608,1.843,612,1.586,616,1.876,625,3.128,635,2.495,636,2.414,637,1.783,638,2.495,639,2.588,640,2.414,641,2.696,642,1.545,643,2.588,644,2.696,645,2.588,646,2.495,647,2.696,648,2.356,649,2.025,650,2.588,651,2.696,652,2.218,653,2.696,654,2.277,655,2.696,656,2.696,657,2.588,658,2.114,659,2.068,660,2.068,661,2.025,662,2.342,663,2.414,664,2.495,665,2.342,666,2.696,667,2.696,668,3.194,669,2.342,670,2.588,671,2.588,672,2.164,673,3.855,674,2.414,675,2.414,676,2.696,677,2.068,678,2.342,679,2.696,680,2.588,681,2.696,682,2.696,683,2.414,684,2.696]],["tags/289",[]],["title/290",[115,0.569,278,2.621]],["content/290",[57,1.418,63,2.372,75,1.452,115,1.132,278,3.006,355,1.565,378,4.187,385,2.495,387,3.673,489,1.91,490,1.09,494,2.447,495,2.153,497,1.36,502,1.843,504,2.754,507,3.266,508,1.653,512,3.065,516,1.85,518,1.945,519,1.843,523,2.166,539,1.312,543,1.506,555,2.114,557,1.815,562,3.034,566,2.521,567,2.218,570,3.365,590,2.166,593,2.696,595,1.876,607,1.418,608,1.843,612,1.586,616,1.876,625,3.128,635,2.495,636,2.414,637,1.783,638,2.495,639,2.588,640,2.414,641,2.696,642,1.545,643,2.588,644,2.696,645,2.588,646,2.495,647,2.696,648,2.356,649,2.025,650,2.588,651,2.696,652,2.218,653,2.696,654,2.277,655,2.696,656,2.696,657,2.588,658,2.114,659,2.068,660,2.068,661,2.025,662,2.342,663,2.414,664,2.495,665,2.342,666,2.696,667,2.696,668,3.194,669,2.342,670,2.588,671,2.588,672,2.164,673,3.855,674,2.414,675,2.414,676,2.696,677,2.068,678,2.342,679,2.696,680,2.588,681,2.696,682,2.696,683,2.414,684,2.696]],["tags/290",[]],["title/283",[115,0.569,685,3.067]],["content/283",[0,1.706,8,0.833,14,2.968,25,1.578,29,2.312,30,4.35,41,1.039,46,4.069,48,1.297,59,2.272,73,2.638,115,1.095,177,1.727,229,2.708,230,2.638,248,1.769,391,2.314,489,2.338,495,2.015,497,1.551,499,2.527,502,3.247,516,2.109,518,1.497,521,1.769,523,2.469,530,2.231,535,2.62,539,1.561,547,2.638,551,1.482,556,2.515,560,2.272,562,1.912,564,1.595,566,1.657,569,2.055,574,2.786,593,2.069,597,1.966,613,1.912,631,2.055,648,2.686,661,2.408,685,2.708,686,3.078,687,2.871,688,2.871,689,2.786,690,2.574,691,2.574,692,3.207,693,2.871,694,2.786,695,3.207,696,3.078,697,3.207,698,3.207,699,2.871,700,2.968,701,4.252,702,2.459,703,2.968,704,3.207,705,3.078,706,3.624,707,3.078,708,2.708,709,2.408,710,2.968,711,3.078,712,2.708,713,2.871]],["tags/283",[]],["title/284",[115,0.569,689,3.154]],["content/284",[0,1.706,8,0.833,14,2.968,25,1.578,29,2.312,30,4.35,41,1.039,46,4.069,48,1.297,59,2.272,73,2.638,115,1.095,177,1.727,229,2.708,230,2.638,248,1.769,391,2.314,489,2.338,495,2.015,497,1.551,499,2.527,502,3.247,516,2.109,518,1.497,521,1.769,523,2.469,530,2.231,535,2.62,539,1.561,547,2.638,551,1.482,556,2.515,560,2.272,562,1.912,564,1.595,566,1.657,569,2.055,574,2.786,593,2.069,597,1.966,613,1.912,631,2.055,648,2.686,661,2.408,685,2.708,686,3.078,687,2.871,688,2.871,689,2.786,690,2.574,691,2.574,692,3.207,693,2.871,694,2.786,695,3.207,696,3.078,697,3.207,698,3.207,699,2.871,700,2.968,701,4.252,702,2.459,703,2.968,704,3.207,705,3.078,706,3.624,707,3.078,708,2.708,709,2.408,710,2.968,711,3.078,712,2.708,713,2.871]],["tags/284",[]],["title/285",[46,2.363,115,0.569]],["content/285",[0,1.706,8,0.833,14,2.968,25,1.578,29,2.312,30,4.35,41,1.039,46,4.069,48,1.297,59,2.272,73,2.638,115,1.095,177,1.727,229,2.708,230,2.638,248,1.769,391,2.314,489,2.338,495,2.015,497,1.551,499,2.527,502,3.247,516,2.109,518,1.497,521,1.769,523,2.469,530,2.231,535,2.62,539,1.561,547,2.638,551,1.482,556,2.515,560,2.272,562,1.912,564,1.595,566,1.657,569,2.055,574,2.786,593,2.069,597,1.966,613,1.912,631,2.055,648,2.686,661,2.408,685,2.708,686,3.078,687,2.871,688,2.871,689,2.786,690,2.574,691,2.574,692,3.207,693,2.871,694,2.786,695,3.207,696,3.078,697,3.207,698,3.207,699,2.871,700,2.968,701,4.252,702,2.459,703,2.968,704,3.207,705,3.078,706,3.624,707,3.078,708,2.708,709,2.408,710,2.968,711,3.078,712,2.708,713,2.871]],["tags/285",[]],["title/286",[115,0.383,495,0.682,705,2.349,706,1.568]],["content/286",[0,1.706,8,0.833,14,2.968,25,1.578,29,2.312,30,4.35,41,1.039,46,4.069,48,1.297,59,2.272,73,2.638,115,1.095,177,1.727,229,2.708,230,2.638,248,1.769,391,2.314,489,2.338,495,2.015,497,1.551,499,2.527,502,3.247,516,2.109,518,1.497,521,1.769,523,2.469,530,2.231,535,2.62,539,1.561,547,2.638,551,1.482,556,2.515,560,2.272,562,1.912,564,1.595,566,1.657,569,2.055,574,2.786,593,2.069,597,1.966,613,1.912,631,2.055,648,2.686,661,2.408,685,2.708,686,3.078,687,2.871,688,2.871,689,2.786,690,2.574,691,2.574,692,3.207,693,2.871,694,2.786,695,3.207,696,3.078,697,3.207,698,3.207,699,2.871,700,2.968,701,4.252,702,2.459,703,2.968,704,3.207,705,3.078,706,3.624,707,3.078,708,2.708,709,2.408,710,2.968,711,3.078,712,2.708,713,2.871]],["tags/286",[]],["title/291",[311,2.979]],["content/291",[45,3.389,55,2.335,115,0.736,231,2.31,311,2.921,355,2.726,489,1.812,490,2.51,491,4.696,492,4.346,493,4.696,494,2.007,495,2.061,496,4.696,497,2.027,498,5.017,499,2.499,500,4.508,501,4.696,502,4.243,503,4.508,504,3.106,505,4.696,506,2.964,507,3.682,510,2.8,511,3.863,517,2.762,564,2.335,566,1.638,596,2.623,612,2.762,637,3.106,677,3.602,714,4.508,715,4.696,716,6.164,717,3.966,718,4.346]],["tags/291",[]],["title/292",[498,2.11,510,1.743,511,2.405]],["content/292",[0,0.677,2,0.729,8,1.714,12,0.647,23,1.314,25,1.767,27,1.858,28,0.475,29,0.62,31,1.381,33,2.151,36,0.976,41,0.968,48,1.208,55,1.111,56,1.332,57,0.669,59,0.902,63,0.488,64,1.711,66,1.59,70,3.079,71,1.248,77,1.887,104,1.982,115,1.369,174,3.416,175,1.28,177,0.685,179,3.635,199,2.058,200,1.37,201,1.411,202,1.39,206,2.373,231,0.626,234,0.792,245,2.126,248,2.679,256,1.332,260,2.141,311,1.39,318,0.842,350,0.739,362,1.528,391,2.156,397,0.759,402,1.37,404,2.485,412,2.342,414,1.022,421,2.056,425,1.022,429,1.022,481,1.047,484,1.149,489,1.049,494,0.544,495,1.353,497,0.976,498,0.919,506,0.803,510,0.759,511,1.047,515,0.677,529,0.769,564,0.633,566,0.444,631,0.816,642,0.729,654,3.453,662,1.106,664,1.178,706,1.432,714,1.222,719,1.671,720,1.514,721,1.411,722,2.068,723,2.523,724,3.132,725,2.235,726,1.752,727,1.411,728,1.794,729,1.514,730,1.022,731,1.022,732,2.145,733,2.343,734,1.178,735,1.334,736,2.581,737,2.749,738,4.033,739,2.458,740,1.14,741,1.222,742,1.714,743,1.941,744,2.343,745,1.454,746,0.78,747,1.106,748,1.075,749,2.001,750,0.792,751,1.14,752,1.14,753,1.14,754,1.106,755,1.106,756,1.14,757,1.14,758,1.14,759,1.14,760,1.14,761,1.14,762,2.001,763,1.14,764,3.12,765,0.792,766,1.075,767,1.14,768,1.14,769,1.14,770,1.14,771,1.14,772,1.14,773,2.001,774,2.001,775,1.14,776,1.14,777,1.075,778,1.14,779,1.14,780,0.919,781,1.14,782,1.14,783,1.14,784,1.14]],["tags/292",[]],["title/293",[498,2.621,511,2.987]],["content/293",[0,0.601,2,0.647,8,1.704,12,0.574,23,1.182,25,1.621,27,1.689,28,0.421,29,0.549,31,1.255,33,2.203,36,0.866,41,0.88,46,0.735,48,2.163,55,1.639,56,1.198,57,0.594,59,0.799,63,0.77,64,1.556,66,1.445,70,2.864,71,1.122,77,1.697,86,0.746,104,1.818,115,1.359,174,3.09,175,1.151,177,0.608,179,3.629,186,0.953,199,1.888,200,1.232,201,1.268,202,1.25,206,2.431,231,0.555,234,0.702,245,1.965,248,3.066,256,1.198,260,2.497,311,2.049,314,1.541,316,1.576,318,1.796,350,0.655,362,1.374,387,0.815,391,1.96,397,0.673,402,1.232,404,2.31,412,2.13,414,0.906,421,2.283,425,0.906,429,0.906,481,0.929,484,1.033,489,0.962,490,0.456,495,1.265,497,1.076,498,1.96,499,0.601,506,1.268,511,0.929,516,0.501,517,0.664,529,0.682,543,0.63,564,0.561,566,1.15,571,0.723,593,0.492,631,1.288,637,0.746,642,0.647,648,0.638,649,0.848,654,2.783,661,0.848,668,0.866,706,0.723,709,2.039,714,1.929,722,1.045,723,0.953,725,1.129,726,1.576,728,1.613,730,0.906,731,0.906,732,1.929,733,2.106,734,1.045,735,1.183,736,2.08,737,2.816,738,4.577,739,1.653,740,1.011,741,1.083,742,0.866,743,0.98,744,2.106,745,1.308,746,0.692,747,0.98,748,0.953,749,1.799,750,0.702,751,1.011,752,1.011,753,1.011,754,0.98,755,0.98,756,1.011,757,1.011,758,1.011,759,1.011,760,1.011,761,1.011,762,1.799,763,1.011,764,2.862,765,0.702,766,0.953,767,1.011,768,1.011,769,1.011,770,1.011,771,1.011,772,1.011,773,1.799,774,1.799,775,1.011,776,1.011,777,0.953,778,1.011,779,1.011,780,0.815,781,1.011,782,1.011,783,1.011,784,1.011,785,1.481,786,1.481,787,0.848,788,1.183,789,1.343,790,1.183,791,1.183,792,1.251,793,2.39,794,1.129,795,1.011,796,1.481,797,1.343,798,1.481,799,1.251,800,1.343,801,1.183,802,2.106,803,1.251,804,1.343,805,1.343,806,1.251,807,1.251,808,1.343,809,1.011,810,1.183,811,1.481,812,1.481]],["tags/293",[]],["title/297",[468,4.161]],["content/297",[55,2.352,75,2.546,115,0.977,355,2.745,489,2.251,490,1.912,494,2.021,495,1.943,500,4.539,506,3.936,528,4.539,529,3.769,530,3.29,531,5.985,532,6.235,533,4.889,534,4.338,539,2.302,547,3.89,548,4.539,566,1.65,603,3.078,723,5.266,813,5.626,814,8.183,815,8.183,816,5.626,817,6.207,818,4.539,819,4.957,820,4.108]],["tags/297",[]],["title/298",[819,5.022]],["content/298",[115,1.237,489,1.266,495,1.86,497,1.416,521,2.392,531,4.162,539,2.11,541,3.507,566,2.052,590,3.472,593,2.563,596,2.421,609,2.822,631,2.778,637,2.867,652,3.567,659,3.325,668,3.325,669,3.766,678,3.766,688,3.882,715,4.336,819,6.167,821,5.158,822,7.721,823,5.69,824,5.69,825,5.69,826,5.158,827,7.721,828,6.678,829,7.404,830,4.545,831,5.69,832,5.69,833,6.999,834,5.445,835,5.69]],["tags/298",[]],["title/299",[535,1.613,836,3.478,837,3.478]],["content/299",[0,0.269,2,0.29,8,1.78,12,0.257,23,0.563,25,0.853,27,0.849,28,0.189,29,0.246,31,1.098,33,1.884,36,0.388,41,0.562,48,1.179,55,1.029,56,0.571,59,0.358,63,0.523,64,0.782,66,0.727,70,1.625,71,0.535,77,0.809,86,1.369,104,2.272,115,1.376,174,3.433,175,0.549,177,0.272,179,4.212,186,1.748,191,2.063,199,2.449,200,1.269,201,1.307,202,1.287,206,2.079,231,0.471,234,0.314,245,2.913,248,3.509,256,0.571,260,2.013,311,1.079,314,0.735,315,0.406,318,0.903,344,0.644,350,0.293,362,0.655,372,0.634,387,0.365,391,0.986,397,0.301,402,0.587,404,1.311,412,1.071,414,0.406,421,1.586,425,0.406,429,0.406,464,0.601,468,0.439,477,0.416,481,0.416,484,1.064,489,0.604,490,0.204,495,0.812,497,0.676,516,0.225,518,0.236,523,0.498,528,1.311,529,1.251,533,0.396,535,0.753,539,0.466,543,0.282,551,0.234,557,0.595,564,0.251,565,0.406,593,0.595,596,0.282,607,0.504,619,0.372,624,0.396,631,1.326,632,1.311,634,1.507,642,0.29,649,0.38,654,2.007,659,1.047,662,0.832,668,0.388,706,0.324,709,0.38,714,0.92,718,0.887,722,0.468,725,0.506,726,0.396,728,0.406,732,0.485,733,1.004,734,0.468,735,0.53,736,1.841,737,2.269,738,4.609,739,1.955,740,1.553,741,0.485,742,0.388,743,0.832,744,1.004,745,2.053,746,0.31,747,0.439,748,0.427,749,0.858,750,0.314,751,0.453,752,0.453,753,0.453,754,0.439,755,0.439,756,0.453,757,0.453,758,0.453,759,0.453,760,0.453,761,0.453,762,0.858,763,0.453,764,1.507,765,0.314,766,0.427,767,0.453,768,0.453,769,0.453,770,0.453,771,0.453,772,0.453,773,0.858,774,0.858,775,0.453,776,0.453,777,0.427,778,0.453,779,0.453,780,0.365,781,0.453,782,0.453,783,0.453,784,0.453,801,1.004,802,2.491,806,0.56,807,0.56,813,0.601,816,0.601,819,0.53,826,3.469,828,2.07,829,1.514,830,0.53,834,0.468,836,3.161,837,3.161,838,1.625,839,0.663,840,0.53,841,0.663,842,0.601,843,0.485,844,0.663,845,0.56,846,0.56,847,0.663,848,0.663,849,0.663,850,0.663,851,0.601,852,0.601,853,2.281,854,0.663,855,1.514,856,1.432,857,1.514,858,1.514,859,1.432,860,1.432,861,1.257,862,1.366,863,1.792,864,2.276,865,1.923,866,4.183,867,2.276,868,3.952,869,2.276,870,2.276,871,1.257,872,1.257,873,0.601,874,0.663,875,0.663,876,2.717,877,2.717,878,1.257,879,0.663,880,1.257,881,1.257,882,0.663,883,1.257,884,0.663,885,0.663,886,0.663,887,0.663,888,0.601,889,0.663,890,0.663,891,0.663,892,0.663,893,0.663,894,0.663,895,0.663,896,0.663,897,0.663,898,0.468,899,0.427,900,0.663,901,0.663,902,0.663,903,0.663,904,0.663,905,0.663,906,1.14,907,0.958,908,0.663,909,0.663,910,0.601,911,0.601,912,0.663]],["tags/299",[]],["title/300",[116,2.11,495,0.814,534,2.034]],["content/300",[115,1.217,174,4.306,229,3.192,355,2.193,489,1.562,495,1.053,517,3.652,518,2.497,523,2.781,529,4.471,534,2.629,535,2.085,539,1.839,551,2.472,566,2.166,571,2.422,590,2.781,593,1.647,596,2.111,624,2.963,631,4.565,659,2.898,672,3.033,709,2.838,715,3.779,718,3.498,780,3.86,828,6.751,829,4.19,830,3.962,833,7.386,834,5.746,910,8.031,911,8.031,913,4.496,914,4.96,915,4.96,916,4.496,917,4.96,918,4.96]],["tags/300",[]],["title/294",[477,3.941]],["content/294",[0,0.534,2,0.575,8,1.736,12,0.51,23,1.064,25,1.486,27,1.535,28,0.375,29,0.488,31,1.396,33,2.228,36,0.769,41,0.8,48,1.41,55,1.502,56,1.078,57,0.528,59,0.711,63,0.693,64,1.414,66,0.962,70,2.658,71,1.01,77,1.527,87,0.516,104,1.924,115,1.37,174,3.052,175,1.036,177,0.54,179,3.728,199,1.73,200,1.109,201,1.141,202,1.125,206,2.635,234,0.624,245,2.361,248,3.01,256,1.078,260,2.318,311,1.535,314,0.769,316,1.418,318,1.196,350,0.582,362,1.236,387,0.724,391,1.782,397,0.598,402,1.109,404,2.145,412,1.936,414,0.805,421,2.647,425,0.805,429,0.805,477,1.488,481,0.825,484,1.269,487,0.598,489,1.237,490,0.731,494,0.429,495,0.971,497,0.806,498,1.305,506,0.633,508,0.615,509,0.825,510,0.598,511,0.825,512,0.738,513,0.871,514,0.825,515,0.534,516,0.446,517,1.452,529,0.606,557,0.437,564,0.499,593,0.437,631,1.159,637,0.663,642,0.575,654,4.062,664,0.929,706,1.159,714,0.963,717,0.847,718,0.929,722,1.673,723,2.085,724,2.588,725,1.808,726,1.936,727,1.112,728,1.981,729,1.194,730,0.805,731,0.805,732,1.736,733,2.588,734,0.929,735,1.052,736,1.558,737,2.848,738,4.307,739,2.031,740,0.898,741,0.963,742,1.387,743,1.571,744,1.896,745,1.177,746,0.615,747,0.871,748,0.847,749,1.619,750,0.624,751,0.898,752,0.898,753,0.898,754,0.871,755,0.871,756,0.898,757,0.898,758,0.898,759,0.898,760,0.898,761,0.898,762,1.619,763,0.898,764,2.623,765,0.624,766,0.847,767,0.898,768,0.898,769,0.898,770,0.898,771,0.898,772,0.898,773,1.619,774,1.619,775,0.898,776,0.898,777,0.847,778,0.898,779,0.898,780,0.724,781,0.898,782,0.898,783,0.898,784,0.898,801,1.052,802,1.896,803,1.112,804,1.194,805,1.194,806,1.112,807,1.112,808,1.194,809,0.898,810,1.052,820,0.871,919,1.896,920,1.317,921,1.194,922,1.317,923,0.847,924,1.003,925,3.24,926,2.469,927,1.317]],["tags/294",[]],["title/305",[359,3.845]],["content/305",[0,0.343,2,0.369,8,1.764,12,0.328,23,0.708,25,1.047,27,1.054,28,0.241,29,0.314,31,1.714,33,2.188,36,0.494,41,0.814,48,1.762,55,1.058,56,0.718,59,0.457,63,0.461,64,0.971,66,0.641,70,1.955,71,0.672,73,0.53,77,1.017,86,2.453,93,0.619,104,2.766,115,1.367,174,2.634,175,0.69,177,0.347,179,4.053,186,1.797,190,1.432,199,2.698,200,1.944,201,2.002,202,1.972,206,2.414,228,0.544,231,1.047,234,0.401,245,2.607,248,3.39,256,0.718,260,1.705,302,1.07,311,0.749,314,0.923,316,0.505,318,0.426,350,0.699,355,1.459,359,0.966,362,0.441,363,0.966,387,0.465,391,1.223,397,0.384,402,0.738,404,1.577,412,1.329,414,0.517,421,2.447,425,0.517,429,0.517,475,0.676,481,0.53,484,1.47,489,1.083,490,0.487,494,0.275,495,0.883,497,0.553,498,0.869,499,0.343,506,1.07,507,0.505,509,0.53,510,0.718,514,0.53,517,0.379,518,0.301,519,0.441,520,0.517,521,0.356,522,0.644,523,0.335,524,0.644,525,0.644,526,0.596,527,0.596,529,1.286,539,0.586,557,1.246,560,0.457,561,0.596,562,0.718,564,0.32,566,0.225,597,0.395,600,0.76,602,0.465,603,0.419,607,0.339,631,0.772,634,1.046,637,0.426,639,0.619,640,1.078,642,0.369,654,2.678,673,0.596,690,0.517,706,0.413,714,0.619,717,1.017,718,0.596,722,0.596,723,0.544,726,0.944,728,0.966,732,0.619,734,0.596,736,2.75,737,2.796,738,3.901,739,1.394,740,0.577,741,0.619,742,1.3,743,0.56,745,2.567,746,0.395,747,0.56,748,0.544,749,1.078,750,0.401,751,0.577,752,0.577,753,0.577,754,0.56,755,0.56,756,0.577,757,0.577,758,0.577,759,0.577,760,0.577,761,0.577,762,1.078,763,0.577,764,1.849,765,0.401,766,0.544,767,0.577,768,0.577,769,0.577,770,0.577,771,0.577,772,0.577,773,1.078,774,1.078,775,0.577,776,0.577,777,0.544,778,0.577,779,0.577,780,0.465,781,0.577,782,0.577,783,0.577,784,0.577,791,0.676,800,0.767,801,0.676,803,0.715,809,0.577,810,0.676,862,1.204,865,1.335,899,0.544,906,1.432,907,1.695,916,0.767,923,0.544,924,0.644,928,0.846,929,0.676,930,0.846,931,1.879,932,1.879,933,2.327,934,0.676,935,2.359,936,1.58,937,0.767,938,1.3,939,0.846,940,0.846,941,0.846,942,0.846,943,4.162,944,0.846,945,0.715,946,0.846,947,0.846,948,0.846,949,1.58,950,0.846,951,0.767,952,0.846,953,0.846,954,0.846,955,0.846,956,0.846,957,2.793,958,1.58,959,1.58,960,0.767,961,4.162,962,0.846,963,0.846,964,1.58,965,0.846,966,0.846,967,0.846,968,0.846,969,0.767,970,2.991,971,0.846,972,0.846,973,0.846,974,0.846,975,0.846,976,0.846,977,1.58,978,1.58,979,1.58,980,0.846]],["tags/305",[]],["title/306",[46,3.118]],["content/306",[46,2.419,48,1.503,73,5.061,115,1.109,489,1.797,495,1.714,497,1.727,498,3.815,506,3.883,508,2.279,509,3.058,511,4.349,516,1.651,518,1.735,519,2.541,520,4.938,527,3.44,529,2.247,537,3.568,543,2.076,551,1.718,557,1.619,560,3.745,562,3.152,566,2.146,570,2.458,596,2.076,597,3.241,627,3.328,648,2.102,658,2.915,659,2.851,661,2.791,672,2.983,780,2.683,787,3.97,788,3.897,789,4.422,790,3.897,888,4.422,929,6.449,951,4.422,981,3.44,982,4.422,983,3.717,984,3.897,985,4.879,986,4.422,987,3.44,988,4.879,989,4.879,990,4.879,991,4.879,992,4.879,993,5.861,994,4.422,995,4.879,996,4.879,997,4.879,998,4.879]],["tags/306",[]],["title/302",[495,0.814,622,2.405,623,2.706]],["content/302",[2,1.39,8,0.63,33,1.276,48,1.923,55,1.206,57,1.276,63,1.47,66,1.291,75,1.306,86,2.536,100,2.329,104,2.116,115,0.847,181,2.172,229,2.049,245,1.261,248,2.623,421,1.22,475,2.543,484,1.247,487,1.446,489,2.171,490,2.185,494,2.516,495,1.949,497,1.923,499,2.531,504,1.604,506,1.531,513,2.107,515,3.616,516,2.112,519,1.659,521,1.338,523,2.81,526,2.245,530,3.76,539,1.867,541,1.446,543,1.355,549,2.107,551,1.121,554,1.996,557,1.671,564,1.907,566,1.885,569,1.555,571,1.555,584,1.631,590,1.261,596,1.355,597,1.487,600,3.002,607,2.017,622,3.155,624,3.729,625,2.88,626,2.245,627,2.172,628,2.245,629,2.329,648,2.169,649,1.822,650,2.329,665,2.107,677,2.941,680,2.329,690,1.947,709,2.88,710,2.245,737,1.631,738,2.172,739,1.996,787,1.822,845,2.69,846,2.69,913,2.886,923,2.049,931,2.69,932,2.69,933,3.549,937,2.886,938,1.861,983,2.426,987,2.245,999,3.184,1000,3.184,1001,2.69,1002,2.543,1003,2.543,1004,3.184,1005,3.184,1006,3.184,1007,3.184,1008,3.184,1009,5.273,1010,3.184,1011,3.184,1012,3.184,1013,2.543,1014,3.184,1015,2.886,1016,2.543,1017,2.69,1018,3.184,1019,2.886,1020,3.184]],["tags/302",[]],["title/303",[8,0.636,489,0.714,555,1.919,923,2.066]],["content/303",[0,1.155,8,1.751,12,1.103,23,2.063,25,2.495,28,0.81,29,1.056,31,2.04,33,2.928,48,0.877,55,1.079,56,2.091,57,1.141,63,0.832,64,2.529,66,2.349,71,1.959,104,3.285,115,1.357,174,4.184,175,2.009,177,1.168,179,3.738,198,2.398,199,2.905,200,2.15,201,2.214,202,2.181,206,1.259,234,1.349,245,2.895,248,1.197,256,1.293,260,2.091,274,4.54,397,1.293,402,2.15,404,1.197,421,1.091,484,1.115,487,1.293,490,0.877,495,0.977,499,1.155,556,1.701,557,0.945,642,1.243,730,1.741,731,1.741,736,3.514,737,1.458,738,3.14,741,2.083,742,1.664,743,1.885,745,2.283,746,1.33,750,1.349,765,1.349,1021,2.848,1022,2.405,1023,2.405,1024,2.581,1025,2.581,1026,5.316,1027,2.274,1028,3.889,1029,5.794,1030,5.794,1031,2.274,1032,3.677,1033,2.274,1034,4.603,1035,2.848,1036,4.603,1037,2.008,1038,3.508,1039,1.537,1040,1.566]],["tags/303",[]],["title/304",[8,0.636,489,0.714,706,1.568,923,2.066]],["content/304",[0,0.19,8,1.783,12,0.182,23,0.404,25,0.629,27,1.115,28,0.133,29,0.174,31,1.037,33,2.92,34,2.831,35,0.302,36,0.274,41,0.414,48,1.562,55,0.178,56,0.41,57,0.673,59,0.253,63,0.592,64,0.569,66,0.529,70,1.226,71,0.384,77,0.58,86,1.185,104,2.262,115,1.36,116,0.717,174,3.246,175,0.394,177,0.192,179,3.996,183,0.32,186,1.514,198,1.056,199,1.9,200,1.242,201,1.278,202,1.26,206,1.421,218,3.035,219,2.831,228,4.112,230,0.294,231,1.704,234,0.222,245,2.531,248,2.73,256,0.41,260,2.445,274,1.605,278,0.258,316,1.406,318,0.236,327,0.24,342,0.668,355,0.399,362,1.932,372,0.236,382,0.343,383,0.357,384,0.343,386,0.33,391,0.923,397,0.213,402,0.421,404,0.989,412,0.779,414,0.287,421,1.812,425,0.287,429,0.287,442,2.352,447,3.876,458,0.248,481,0.294,484,1.041,487,1.575,489,0.591,495,0.499,497,0.661,506,2.275,509,0.294,510,0.213,515,0.19,516,0.159,518,0.167,523,0.186,529,1.084,533,1.211,535,2.061,538,0.357,539,0.174,551,0.165,557,0.557,562,0.762,564,0.636,566,1.046,570,0.657,577,0.263,583,0.229,590,0.186,593,0.433,596,0.384,600,0.225,601,0.717,607,0.188,612,0.21,631,0.819,634,0.597,637,0.236,642,1.811,672,0.287,677,0.762,699,0.32,700,0.33,702,0.274,706,0.637,726,0.779,728,0.798,730,0.287,731,0.287,732,0.954,736,3.608,737,1.646,739,3.074,742,0.527,745,2.058,746,0.219,747,0.31,748,0.302,749,0.615,750,0.222,751,0.32,752,0.32,753,0.32,754,0.31,755,0.31,756,0.32,757,0.32,758,0.32,759,0.32,760,0.32,761,0.32,762,0.615,763,0.32,764,1.111,765,0.222,766,0.302,767,0.32,768,0.32,769,0.32,770,0.32,771,0.32,772,0.32,773,0.615,774,0.615,775,0.32,776,0.32,777,0.302,778,0.32,779,0.32,780,0.258,781,0.32,782,0.32,783,0.32,784,0.32,787,0.268,792,0.396,795,0.32,820,0.31,853,0.66,855,0.762,856,0.374,857,1.102,858,0.762,860,3.143,862,0.357,899,0.302,907,1.793,934,0.374,938,1.553,1026,1.879,1027,1.619,1031,1.34,1032,1.879,1033,0.374,1041,0.396,1042,0.469,1043,0.425,1044,0.469,1045,0.302,1046,0.396,1047,1.182,1048,2.027,1049,1.837,1050,2.353,1051,1.678,1052,2.027,1053,2.027,1054,0.469,1055,0.469,1056,0.469,1057,0.469,1058,0.469,1059,0.469,1060,2.715,1061,2.945,1062,3.708,1063,2.93,1064,0.902,1065,1.182,1066,0.469,1067,0.469,1068,1.521,1069,0.425,1070,2.93,1071,0.902,1072,1.304,1073,3.144,1074,0.469,1075,0.818,1076,0.818,1077,0.357,1078,0.469,1079,0.818,1080,0.425,1081,1.182,1082,0.425,1083,1.521,1084,0.954,1085,0.425,1086,0.818,1087,0.343,1088,0.425,1089,0.425,1090,0.425,1091,1.619,1092,0.818,1093,0.902,1094,2.027,1095,0.469,1096,0.902,1097,0.469,1098,0.469,1099,1.102,1100,0.902,1101,2.133,1102,0.902,1103,0.469,1104,0.902,1105,3.945,1106,3.566,1107,0.469,1108,1.837,1109,0.469,1110,2.027,1111,1.182,1112,1.418,1113,0.902,1114,0.469,1115,0.469,1116,1.182,1117,1.304,1118,0.469,1119,0.469,1120,0.469,1121,0.469,1122,0.902,1123,0.469,1124,0.469,1125,2.658,1126,1.521,1127,2.027,1128,0.469,1129,0.902,1130,0.469,1131,0.469,1132,1.678,1133,0.469,1134,0.902,1135,0.469,1136,0.469,1137,0.902,1138,0.469,1139,0.469,1140,1.678,1141,1.678,1142,0.469,1143,0.469,1144,1.678,1145,0.425,1146,0.469,1147,0.469,1148,0.469,1149,0.469,1150,0.469,1151,0.469,1152,0.425,1153,0.469,1154,0.425,1155,0.425,1156,0.469,1157,0.469,1158,0.469]],["tags/304",[]],["title/295",[462,4.289]],["content/295",[75,2.758,115,1.029,462,4.586,472,4.74,489,1.496,490,2.656,494,2.19,495,2.02,497,1.673,516,2.917,535,2.826,556,4.016,557,2.232,558,5.122,559,4.586,560,3.628,561,4.74,562,3.054,563,5.37,564,2.547,565,4.111,566,2.291,567,4.214,568,5.37,569,3.282,570,3.387,571,3.282,572,5.122,573,5.37,574,4.449]],["tags/295",[]],["title/296",[115,0.569,1159,4.766]],["content/296",[48,1.742,115,1.17,355,2.5,472,3.987,489,1.944,494,1.841,495,1.632,497,1.407,504,2.849,512,3.17,515,2.292,516,2.602,518,2.011,543,2.406,551,1.991,561,3.987,562,2.568,566,2.322,567,3.544,596,2.406,610,2.945,613,2.568,617,3.235,631,2.761,637,2.849,648,2.436,652,3.544,661,4.399,668,3.304,669,3.742,777,3.638,788,4.516,865,4.776,868,4.308,899,3.638,987,3.987,1077,4.308,1145,5.125,1160,5.654,1161,5.654,1162,5.654,1163,5.654,1164,5.654,1165,4.776,1166,3.638,1167,5.654,1168,5.654,1169,5.125,1170,5.125,1171,5.654]],["tags/296",[]],["title/301",[355,2.78]],["content/301",[0,0.454,2,1.78,8,1.73,12,0.434,23,0.918,25,1.312,27,1.341,28,0.318,29,0.415,31,1.232,33,2.839,34,2.387,35,1.318,36,0.654,41,0.699,45,1.126,48,1.078,55,1.073,56,0.93,57,0.449,59,0.604,63,0.598,64,1.236,66,1.148,70,2.386,71,0.872,77,1.318,104,1.471,115,1.358,174,2.803,175,0.894,177,0.459,179,3.73,198,1.475,199,1.527,200,0.957,201,0.985,202,0.971,206,1.547,218,2.559,219,2.387,228,2.948,231,0.768,234,0.531,245,2.525,248,1.926,256,0.93,260,2.081,274,3.125,316,2.436,318,0.564,350,0.495,355,2.552,386,0.789,391,1.557,397,0.509,402,0.957,404,1.926,412,1.691,414,0.685,421,0.785,425,0.685,429,0.685,442,0.894,472,1.996,481,0.702,484,0.802,487,0.509,489,0.779,490,0.345,495,1.225,497,1.015,506,0.538,515,0.454,521,0.471,529,2.11,533,0.669,535,1.714,539,0.76,546,0.853,550,0.819,551,0.394,552,0.894,553,0.894,554,0.702,555,2.436,557,0.68,562,0.509,564,0.424,566,1.441,570,0.564,577,0.628,583,0.547,590,0.444,596,1.205,637,0.564,642,0.489,662,0.741,706,0.547,723,0.72,726,0.669,728,0.685,730,0.685,731,0.685,736,3.592,737,1.049,739,2.872,742,0.654,745,1.016,746,0.523,747,0.741,748,0.72,749,1.397,750,0.531,751,0.764,752,0.764,753,0.764,754,0.741,755,0.741,756,0.764,757,0.764,758,0.764,759,0.764,760,0.764,761,0.764,762,1.397,763,0.764,764,2.316,765,0.531,766,0.72,767,0.764,768,0.764,769,0.764,770,0.764,771,0.764,772,0.764,773,1.397,774,1.397,775,0.764,776,0.764,777,0.72,778,0.764,779,0.764,780,0.616,781,0.764,782,0.764,783,0.764,784,0.764,790,1.636,809,0.764,853,2.07,862,0.853,873,1.015,938,1.197,945,0.946,960,1.856,1026,3.659,1027,0.894,1028,1.73,1032,2.795,1033,3.256,1049,3.695,1063,2.956,1065,1.015,1068,1.856,1070,2.956,1073,3.172,1075,1.015,1076,1.015,1079,1.015,1080,1.015,1081,2.566,1082,1.015,1083,3.172,1084,0.819,1085,1.015,1086,1.015,1087,0.819,1088,1.015,1089,1.015,1090,1.015,1091,1.636,1112,0.946,1172,4.077,1173,4.077,1174,1.119,1175,3.172,1176,2.048,1177,1.119,1178,1.119,1179,1.856,1180,1.119,1181,1.119,1182,1.119,1183,3.499,1184,1.73,1185,1.119,1186,1.119,1187,1.119,1188,1.119,1189,2.048,1190,1.119,1191,1.119,1192,1.119,1193,1.119,1194,1.119,1195,2.048,1196,1.015,1197,2.048]],["tags/301",[]],["title/307",[115,0.458,362,1.999,363,2.346]],["content/307",[0,1.482,8,1.792,12,1.416,23,2.511,25,2.865,28,1.04,29,1.356,33,2.246,45,2.01,48,1.727,55,1.385,56,2.546,57,1.465,63,1.067,64,2.975,66,2.764,71,2.385,115,1.348,175,2.446,177,1.5,179,3.336,206,2.478,234,1.732,245,2.22,248,2.356,256,1.66,260,3.471,318,1.842,355,1.616,362,3.551,363,4.168,397,1.66,401,4.27,402,2.618,404,1.536,421,2.147,489,0.813,490,1.126,495,1.846,497,0.91,499,1.482,535,2.865,536,2.919,537,2.673,538,2.785,539,1.356,540,2.919,541,1.66,542,2.919,543,1.555,544,2.919,545,2.919,546,2.785,547,2.291,548,2.673,549,2.419,642,1.595,730,2.235,731,2.235,736,2.695,737,2.87,746,1.707,750,1.732,765,1.732,1039,1.973,1040,2.01,1198,3.313,1199,3.655]],["tags/307",[]],["title/308",[327,3.22]],["content/308",[0,1.238,2,2.65,8,1.838,12,1.182,23,2.181,25,2.597,28,0.869,29,1.132,31,1.075,32,2.438,33,2.433,41,0.754,48,0.941,55,1.845,56,2.211,63,0.892,64,2.65,66,2.462,71,2.072,104,2.046,115,1.365,174,3.485,175,2.125,177,1.252,179,4.052,198,2.536,199,2.125,200,1.426,201,1.468,202,1.447,206,1.35,231,1.825,234,1.447,245,3.195,248,1.283,256,1.387,260,2.758,274,3.321,327,3.11,397,1.387,402,2.274,404,1.283,421,1.865,484,1.196,497,0.76,510,2.211,529,1.406,598,1.679,600,1.468,601,1.679,602,2.677,642,1.333,736,3.879,737,1.564,745,1.514,746,1.426,750,1.447,765,1.447,938,1.784,1024,4.412,1025,4.412,1026,3.888,1027,2.438,1028,2.579,1032,2.438,1033,2.438,1039,1.648,1040,1.679,1200,3.053,1201,3.053,1202,3.053,1203,4.112]],["tags/308",[]],["title/310",[329,3.275]],["content/310",[0,0.39,8,1.628,12,0.372,23,0.797,25,1.162,28,0.273,29,0.356,31,2.461,33,3.161,41,0.237,48,1.269,55,0.364,56,0.808,57,0.385,63,0.52,64,1.085,66,0.722,71,0.757,75,0.394,104,3.772,115,1.363,174,4.835,175,0.777,177,0.394,179,4.024,199,3.856,200,3.264,201,3.361,202,3.311,206,0.787,231,0.36,234,0.455,245,3.125,248,0.404,256,0.437,260,1.408,329,0.927,362,0.927,363,1.088,397,0.437,402,0.831,404,0.404,421,0.368,484,2.93,487,3.398,489,0.214,495,1.119,497,0.443,512,0.539,529,1.145,551,0.338,555,0.574,562,0.437,566,0.661,571,0.469,590,0.381,598,1.367,600,0.462,601,0.979,603,0.882,604,0.539,605,0.519,606,0.562,607,0.385,608,0.501,609,0.477,610,0.501,611,0.55,612,0.797,613,0.437,614,0.519,642,0.419,648,0.767,730,0.588,731,0.588,739,0.602,745,3.465,746,0.449,750,0.455,765,0.455,923,0.618,924,0.732,926,1.356,1039,0.519,1040,0.528,1060,1.503,1204,0.961,1205,2.485,1206,2.485,1207,1.78,1208,0.961,1209,1.78,1210,1.78,1211,2.253,1212,2.485,1213,2.485,1214,1.503,1215,1.78,1216,3.1,1217,2.81,1218,0.961,1219,1.78,1220,0.961,1221,0.961,1222,1.78,1223,0.961,1224,0.961,1225,0.961,1226,1.78,1227,0.961,1228,0.961,1229,1.78,1230,0.961,1231,0.961,1232,0.871,1233,1.78,1234,0.961,1235,0.961,1236,3.1,1237,3.1,1238,3.1,1239,3.1,1240,3.1,1241,3.1,1242,3.1,1243,3.1,1244,3.1,1245,3.1,1246,3.1,1247,3.1,1248,0.961,1249,0.961,1250,0.961,1251,0.961,1252,0.961,1253,0.961,1254,0.961,1255,0.961,1256,0.961,1257,0.961,1258,0.961]],["tags/310",[]],["title/311",[458,3.333]],["content/311",[0,1.242,2,2.656,8,1.84,12,1.187,23,2.187,25,2.602,28,0.872,29,1.136,31,1.079,33,1.228,41,0.756,48,0.944,55,1.85,56,2.217,57,1.228,63,0.895,64,2.656,66,2.467,71,2.077,75,1.257,104,2.052,115,1.357,174,3.491,175,2.131,177,1.257,179,4.057,199,2.131,200,1.431,201,1.473,202,1.452,206,1.355,231,1.83,234,1.452,245,2.411,248,1.288,256,1.391,260,3.153,302,1.473,318,1.543,397,1.391,402,2.28,404,1.288,421,1.87,423,2.588,458,3.226,484,1.2,489,0.682,494,0.998,495,1.036,497,1.215,508,1.431,510,2.217,518,1.09,529,1.411,541,1.391,555,2.916,564,1.161,566,0.814,579,1.653,583,1.496,590,1.214,591,1.753,592,1.718,593,1.017,594,1.79,595,1.624,596,1.304,597,1.431,598,1.685,599,1.79,602,2.684,642,1.337,730,1.873,731,1.873,736,3.885,737,1.569,745,1.519,746,1.431,750,1.452,765,1.452,938,1.79,1039,1.653,1040,1.685,1203,4.124]],["tags/311",[]],["title/309",[342,3.22]],["content/309",[0,0.838,8,1.605,12,0.8,23,1.58,25,2.043,27,1.671,28,0.588,29,0.766,31,0.728,33,2.185,34,2.406,45,1.136,48,0.637,55,0.783,56,1.602,63,0.603,64,2.013,66,1.87,71,1.501,104,1.482,115,1.325,116,2.998,174,2.511,175,1.539,177,0.848,179,3.273,183,1.41,199,1.539,200,0.965,201,0.994,202,0.979,206,0.914,207,1.511,219,2.406,228,2.968,231,1.322,234,0.979,245,1.397,248,1.939,250,1.746,256,0.939,260,2.476,278,1.136,318,1.041,342,3.135,355,0.914,382,1.511,383,1.575,384,1.511,386,1.457,387,1.136,397,0.939,401,1.575,402,1.647,404,0.869,421,0.792,447,4.458,484,0.809,489,1.584,490,1.086,494,1.148,495,1.511,497,0.878,514,1.295,518,0.735,520,1.264,523,0.819,533,1.235,535,1.482,539,0.766,543,0.879,551,1.242,562,1.602,564,0.783,566,1.226,570,1.041,579,1.115,597,0.965,613,0.939,642,0.902,648,1.52,663,1.41,674,1.41,677,1.208,678,1.368,683,1.41,686,1.511,726,2.107,728,2.156,736,2.622,737,1.058,745,1.025,746,0.965,750,0.979,765,0.979,862,1.575,938,1.208,987,1.457,1039,1.115,1040,1.136,1045,1.33,1077,1.575,1091,1.651,1099,1.746,1105,7.093,1106,7.093,1108,6.041,1111,1.873,1116,3.196,1126,7.77,1152,1.873,1154,1.873,1155,1.873,1259,1.873,1260,1.651,1261,2.067,1262,1.873,1263,2.067,1264,3.526,1265,2.067,1266,2.067,1267,2.067,1268,2.067,1269,2.067,1270,2.067,1271,1.873,1272,2.067,1273,1.746,1274,3.526,1275,2.067,1276,2.067,1277,3.526,1278,3.526,1279,4.612,1280,2.067,1281,3.526,1282,2.067,1283,2.067,1284,2.067,1285,2.067,1286,2.067,1287,2.067,1288,2.067,1289,2.067,1290,2.067,1291,2.067]],["tags/309",[]],["title/313",[344,3.22]],["content/313",[0,0.622,8,1.948,12,0.595,23,1.22,25,1.664,28,0.437,29,0.569,31,0.959,33,1.091,41,1.095,48,0.839,55,0.582,56,1.236,63,0.448,64,1.601,66,1.104,71,1.158,75,0.63,86,0.773,104,1.865,115,1.372,174,2.588,175,1.188,177,0.63,179,4.681,199,1.937,200,1.271,201,1.309,202,1.29,206,1.204,231,1.02,234,0.727,245,3.851,248,0.645,256,0.697,260,2.552,271,5.093,318,0.773,344,1.394,397,0.697,402,1.271,404,0.645,484,1.066,489,0.606,490,0.473,494,0.5,495,0.778,497,0.382,529,2.044,566,0.408,579,0.828,585,0.878,586,0.878,587,0.878,590,0.608,604,0.861,609,0.761,610,0.8,631,2.167,632,1.991,634,1.802,642,0.67,736,4.643,740,1.857,745,1.35,746,0.717,750,0.727,765,0.727,853,1.991,855,2.299,856,2.174,857,2.299,858,2.299,859,2.174,860,2.174,923,0.988,924,1.17,933,1.082,938,1.591,1038,2.074,1039,0.828,1040,0.844,1292,4.438,1293,2.722,1294,2.722,1295,2.722,1296,2.722,1297,2.722,1298,2.722,1299,4.438,1300,2.722,1301,2.722,1302,2.722,1303,2.722,1304,2.722,1305,2.722,1306,2.722,1307,2.722,1308,2.722,1309,2.722,1310,2.722]],["tags/313",[]],["title/316",[346,3.275]],["content/316",[0,1.352,2,2.278,8,1.658,12,1.292,23,2.339,25,2.727,28,0.949,29,1.237,31,1.174,33,1.336,48,1.027,55,1.263,56,2.371,63,1.283,64,2.807,66,2.608,71,2.221,104,2.194,115,1.359,116,3.537,174,3.351,175,2.278,177,1.368,179,3.176,199,2.278,200,1.558,201,1.604,202,1.58,206,1.475,231,1.25,234,1.58,245,1.321,248,1.402,256,1.515,260,3.305,316,1.157,318,1.68,346,3.066,397,1.515,402,2.438,404,1.402,421,1.277,484,1.306,489,0.977,490,1.027,494,0.631,495,1.249,497,1.299,504,0.976,512,1.086,513,1.281,515,1.352,516,1.129,534,1.768,535,0.814,539,0.718,543,0.824,548,1.416,551,1.174,564,0.734,566,1.387,571,0.945,580,2.566,581,1.131,582,1.131,583,0.945,584,0.992,590,2.068,593,1.458,596,0.824,628,1.365,642,1.455,648,0.834,688,1.321,736,2.51,737,1.708,740,1.321,745,1.654,746,1.558,750,1.58,765,1.58,787,1.108,799,1.636,856,1.546,859,1.546,938,1.949,983,1.475,1039,1.8,1040,1.834,1091,1.546,1112,1.636,1211,3.981,1311,3.335,1312,4.392,1313,3.335,1314,4.392,1315,4.392,1316,3.335,1317,1.755,1318,1.936,1319,1.936,1320,1.936,1321,1.936,1322,1.936,1323,1.936,1324,1.936,1325,1.936,1326,3.335,1327,5.22,1328,1.936,1329,1.936]],["tags/316",[]],["title/312",[31,2.214]],["content/312",[0,1.47,2,1.582,8,1.625,12,1.404,23,2.496,25,2.852,28,1.031,29,1.344,31,2.388,33,1.453,48,1.117,55,1.374,56,2.53,63,1.059,64,2.96,66,2.749,71,2.37,104,2.85,115,1.344,174,3.781,175,2.431,177,1.487,179,2.96,199,2.431,200,1.693,201,1.744,202,1.718,206,1.603,230,2.272,234,1.718,245,1.436,256,1.647,260,2.53,397,1.647,401,2.762,402,2.601,404,1.524,484,1.42,487,2.53,489,0.807,490,1.117,494,1.814,495,1.182,497,1.386,515,1.47,530,1.922,549,2.399,557,1.203,566,1.48,575,1.857,576,2.033,593,1.203,596,1.543,607,1.453,642,1.582,672,2.217,706,1.77,736,2.678,742,3.254,743,2.399,745,1.798,746,1.693,750,1.718,765,1.718,1013,2.896,1022,3.063,1023,3.063,1037,4.782,1038,2.762,1039,1.957,1040,1.994,1260,2.896,1330,4.705,1331,3.063,1332,2.896,1333,3.286,1334,3.286]],["tags/312",[]],["title/314",[350,2.78]],["content/314",[0,1.277,2,2.178,8,1.521,12,1.22,23,2.237,25,2.643,28,0.896,29,1.168,31,1.758,33,1.262,48,0.971,50,1.587,55,1.194,56,2.267,57,1.262,63,0.92,64,2.705,66,2.513,71,2.124,104,2.098,115,1.334,174,3.54,175,2.178,177,1.292,179,2.705,199,2.178,200,1.471,201,1.515,202,1.493,206,1.393,230,3.885,234,1.493,245,1.248,256,1.431,260,2.815,277,2.855,316,2.982,350,2.207,397,1.431,402,2.331,404,1.324,484,1.234,489,0.701,490,0.971,494,1.026,495,0.669,497,1.755,515,1.277,529,1.451,549,4.102,566,1.648,575,1.613,577,1.766,590,1.977,593,2.058,596,2.638,607,2.484,642,1.375,672,3.791,706,3.026,723,2.027,726,2.982,728,3.052,730,1.926,731,1.926,736,2.4,745,1.562,746,1.471,750,1.493,765,1.493,809,3.405,1013,4.951,1039,1.7,1040,1.732,1184,2.661,1259,2.855,1260,2.516,1330,5.236,1331,5.236,1332,4.951,1335,3.15,1336,3.15,1337,3.15,1338,3.15,1339,3.15,1340,4.524]],["tags/314",[]],["title/315",[302,3.024]],["content/315",[0,1.225,2,3.287,8,1.832,12,1.17,23,2.164,25,2.582,28,0.86,29,1.121,31,1.064,33,1.211,41,1.488,48,0.931,55,2.285,56,2.193,63,0.882,64,2.632,66,1.958,71,2.055,75,1.981,86,2.433,104,2.029,115,1.356,174,3.468,175,2.107,177,1.24,179,4.126,199,2.107,200,1.411,201,1.453,202,1.432,206,1.336,231,1.133,234,1.432,245,2.983,248,2.535,256,1.373,260,2.193,302,3.312,397,1.373,402,2.255,404,1.27,421,1.158,484,1.184,489,0.672,494,0.984,495,1.462,497,1.202,510,2.193,529,1.392,555,2.885,566,0.803,579,2.606,590,1.913,591,1.729,592,1.694,602,2.655,604,1.694,609,2.394,610,1.574,631,1.475,642,1.319,736,3.861,737,1.548,745,1.498,746,1.411,750,1.432,765,1.432,923,1.944,924,2.302,933,3.405,938,1.766,1039,1.631,1040,1.662,1203,4.079]],["tags/315",[]],["title/319",[235,2.896]],["content/319",[0,0.325,8,1.565,12,0.31,23,0.673,25,1.001,27,1.005,28,0.228,29,0.297,31,1.41,33,1.884,36,0.468,41,0.659,48,1.11,55,0.303,56,0.682,57,0.321,59,0.432,63,0.78,64,0.925,66,0.859,70,1.877,71,0.639,76,2.525,77,0.966,86,1.593,104,3.404,115,1.367,174,3.951,175,0.655,177,0.329,179,3.36,183,0.546,186,2.034,199,2.621,200,1.87,201,1.926,202,1.897,206,1.398,231,2.751,234,0.38,235,2.165,245,2.379,248,2.221,256,0.682,260,3.141,278,0.44,316,2.99,318,0.404,355,0.354,362,0.782,382,0.586,383,0.61,384,0.586,386,0.565,387,0.44,391,1.166,397,0.364,402,0.701,404,1.515,412,1.266,414,0.49,421,2.024,425,0.49,429,0.49,481,0.502,484,1.238,489,0.594,490,0.247,494,0.261,495,0.567,497,0.664,506,0.385,516,0.508,521,0.631,529,2.012,539,0.297,551,0.282,557,0.266,564,0.303,566,0.213,567,1.981,586,0.458,587,0.458,588,0.468,589,0.449,607,0.321,612,0.359,628,0.565,631,2.824,634,0.994,640,0.546,642,0.35,648,0.345,706,0.391,726,3.157,730,0.49,731,0.49,736,1.926,737,1.619,742,1.847,745,2.749,746,0.374,747,0.53,748,0.515,749,1.024,750,0.38,751,0.546,752,0.546,753,0.546,754,0.53,755,0.53,756,0.546,757,0.546,758,0.546,759,0.546,760,0.546,761,0.546,762,1.024,763,0.546,764,1.767,765,0.38,766,0.515,767,0.546,768,0.546,769,0.546,770,0.546,771,0.546,772,0.546,773,1.024,774,1.024,775,0.546,776,0.546,777,0.515,778,0.546,779,0.546,780,0.44,781,0.546,782,0.546,783,0.546,784,0.546,853,2.928,907,2.409,938,1.847,1047,0.726,1060,0.677,1232,0.726,1341,3.161,1342,0.801,1343,1.502,1344,3.604,1345,5.285,1346,5.285,1347,5.285,1348,5.285,1349,2.865,1350,3.161,1351,3.161,1352,3.161,1353,0.801,1354,1.502,1355,0.801,1356,1.502,1357,1.502,1358,1.502,1359,0.801,1360,0.801,1361,0.801,1362,0.801,1363,0.801,1364,0.801,1365,0.801,1366,0.801,1367,0.801,1368,0.801,1369,0.801,1370,0.801,1371,0.801,1372,0.801,1373,0.801,1374,0.801,1375,1.502,1376,1.502,1377,1.502,1378,0.801,1379,1.502,1380,1.502,1381,0.801,1382,0.801,1383,0.801,1384,0.801,1385,2.12,1386,1.502,1387,0.801,1388,0.801,1389,0.801,1390,0.801,1391,0.801,1392,0.801,1393,0.726,1394,0.677,1395,0.801,1396,1.502,1397,1.502,1398,1.502,1399,0.726,1400,1.502,1401,0.726,1402,2.865,1403,0.801,1404,0.801,1405,0.801,1406,2.67,1407,1.502,1408,0.801,1409,0.801,1410,1.502,1411,0.801,1412,1.502,1413,0.801,1414,1.502,1415,0.801,1416,0.801,1417,0.801,1418,0.801,1419,0.801,1420,0.726,1421,0.801,1422,0.801,1423,0.801,1424,0.801,1425,0.801,1426,0.801,1427,0.801]],["tags/319",[]],["title/320",[315,3.845]],["content/320",[8,0.661,25,1.252,28,0.95,29,1.238,30,1.77,33,1.338,41,0.824,57,1.338,66,2.119,75,1.37,76,2.667,104,2.196,115,1.243,116,1.836,177,1.37,235,2.407,245,1.323,251,5.142,255,4.905,315,2.042,404,1.404,489,2.074,490,1.029,494,2.097,495,2.024,497,0.831,506,1.606,512,2.93,515,2.61,516,2.837,523,3.131,530,2.77,534,2.77,535,2.196,539,2.387,551,1.176,557,1.735,564,1.98,565,2.042,566,2.477,571,1.63,583,1.63,589,2.93,603,1.656,607,1.338,609,1.656,621,1.911,625,2.99,626,2.355,631,1.63,637,1.683,638,2.355,642,1.458,658,1.995,665,2.21,669,2.21,677,3.054,678,3.458,707,2.442,787,2.99,820,3.458,834,2.355,840,2.667,898,2.355,899,2.149,1003,2.667,1016,2.667,1031,2.667,1037,2.355,1332,2.667,1349,3.027,1402,3.027,1428,3.339,1429,3.339,1430,3.339,1431,2.821,1432,3.339,1433,3.339,1434,3.339,1435,2.545,1436,2.821,1437,3.027,1438,3.027,1439,2.821,1440,3.339,1441,3.027,1442,3.339,1443,3.339,1444,3.339,1445,3.339,1446,4.414,1447,3.027,1448,3.339,1449,3.027]],["tags/320",[]],["title/321",[255,1.845,495,0.855,534,1.284,566,0.644,1436,2.046]],["content/321",[33,2.561,41,1.075,45,2.394,58,3.184,63,1.271,104,3.182,115,1.299,181,2.97,206,1.925,235,2.005,245,2.999,255,3.317,484,1.705,489,0.969,495,1.886,497,1.083,515,1.765,516,2.823,518,1.549,534,2.307,554,2.729,556,2.601,557,1.445,560,2.349,566,2.217,583,2.125,593,1.445,605,2.349,627,2.97,658,4.523,659,4.424,674,2.97,712,2.801,740,2.97,787,2.491,818,3.184,843,3.184,866,5.398,933,3.069,945,3.677,1166,2.801,1399,3.946,1401,5.792,1450,6.39,1451,4.353,1452,4.353,1453,6.39,1454,6.39,1455,6.39,1456,4.353,1457,7.57,1458,6.39,1459,4.353,1460,4.353,1461,5.398,1462,6.39,1463,6.39,1464,6.862,1465,4.353]],["tags/321",[]],["title/322",[590,1.888,1466,4.32]],["content/322",[41,1.361,63,1.61,104,3.176,115,1.282,206,2.438,235,2.539,484,2.96,489,1.227,495,1.83,497,1.881,515,3.064,516,1.866,518,1.961,523,2.184,539,2.045,543,2.346,566,2.009,570,2.778,589,3.091,590,3.416,593,1.83,596,2.346,637,2.778,675,3.762,725,4.201,787,4.324,818,4.033,820,3.649,821,6.85,868,4.201,1041,4.658,1166,3.548,1394,4.658,1461,4.658,1464,4.998,1466,7.816,1467,5.514,1468,4.658,1469,4.998,1470,7.557,1471,5.514,1472,5.514]],["tags/322",[]],["title/317",[369,3.168]],["content/317",[0,0.64,8,1.739,12,0.612,23,1.251,25,1.698,28,0.449,29,0.586,31,1.713,33,1.95,48,0.486,55,0.598,56,1.268,57,0.633,58,3.042,63,0.461,64,1.637,66,1.521,71,1.188,86,0.796,104,2.911,115,1.372,174,4.157,175,1.218,177,0.648,179,4.128,186,1.016,199,2.871,200,2.115,201,2.178,202,2.146,206,2.152,229,0.544,231,1.046,234,0.748,245,3.194,248,0.934,256,0.717,260,2.705,316,2.485,350,1.839,369,1.12,378,0.53,387,0.465,397,0.717,402,1.304,404,0.664,421,0.605,484,1.629,489,0.734,490,0.685,495,0.7,497,0.695,499,0.343,504,0.426,509,0.53,517,1.477,529,1.727,535,0.355,543,0.36,551,0.556,557,0.281,575,0.433,593,0.524,612,0.379,615,0.494,625,0.483,631,0.771,642,0.689,648,0.364,662,0.559,693,0.576,709,0.483,717,1.016,722,1.567,724,1.261,726,2.485,728,2.543,730,0.966,731,0.966,736,3.878,737,0.433,739,3.05,745,2.565,746,0.737,750,0.748,765,0.748,787,0.483,809,2.837,818,0.618,859,0.675,860,0.675,907,1.203,919,2.633,921,0.766,938,0.923,1039,0.852,1040,0.868,1101,0.766,1175,0.766,1184,3.513,1198,0.766,1214,0.714,1217,3.77,1393,0.766,1446,0.714,1461,1.334,1473,2.222,1474,2.014,1475,0.845,1476,3.75,1477,0.845,1478,0.845,1479,0.845,1480,0.845,1481,0.845,1482,0.675,1483,2.791,1484,2.222,1485,0.845,1486,4.529,1487,0.845,1488,0.845,1489,1.579,1490,0.845,1491,0.845,1492,0.845,1493,1.579,1494,0.845,1495,0.845,1496,1.579,1497,3.297,1498,3.297,1499,3.297,1500,3.297,1501,3.297,1502,3.297,1503,3.297,1504,0.845,1505,0.845,1506,0.845,1507,0.845,1508,0.845,1509,0.845,1510,0.845,1511,0.845,1512,0.845,1513,0.845,1514,0.845,1515,0.845,1516,0.845,1517,0.845,1518,0.845,1519,0.845,1520,0.845,1521,0.845,1522,0.845,1523,0.845,1524,0.845,1525,0.845,1526,0.845,1527,0.845,1528,0.845,1529,0.845,1530,0.845,1531,1.579,1532,0.845,1533,0.845,1534,0.845,1535,0.845,1536,0.845,1537,0.845,1538,0.845,1539,0.845,1540,0.845]],["tags/317",[]],["title/325",[487,2.856]],["content/325",[487,3.859,489,1.463,490,3.066,494,2.141,495,1.803,509,4.12,512,3.686,516,2.225,518,2.338,539,2.438,551,2.315,557,2.182,564,2.491,565,4.02,575,3.367,583,3.21,593,2.182,612,2.946,616,3.485,617,3.761,618,3.841,619,3.686,620,3.841,621,4.861,718,4.635,787,3.761,983,5.009,1262,5.958,1541,6.574,1542,6.574,1543,6.574,1544,6.574,1545,6.574]],["tags/325",[]],["title/326",[490,1.468,983,3.631]],["content/326",[0,2,8,1.847,12,1.911,23,3.134,25,3.313,28,1.403,29,1.829,33,2.802,55,1.869,56,3.176,63,1.44,64,3.546,66,3.294,71,2.976,115,1.363,175,3.052,177,2.024,179,3.052,206,2.181,234,2.337,245,1.954,248,2.073,256,2.241,260,2.241,397,2.241,402,3.266,404,2.073,421,1.89,487,3.176,642,2.153,737,2.526,746,2.304,750,2.337,765,2.337,926,3.758,1039,2.662,1040,2.712,1546,4.933]],["tags/326",[]],["title/327",[497,0.955,516,1.299,517,1.719]],["content/327",[0,0.525,8,1.656,12,0.502,23,1.048,25,1.468,27,0.614,28,0.369,29,0.481,31,2.726,33,3.173,34,0.884,48,0.399,55,0.491,56,1.062,58,2.338,63,0.378,64,1.395,66,1.296,71,0.995,86,1.178,104,3.571,115,1.365,174,4.672,175,1.021,177,0.532,179,3.939,186,1.505,199,3.592,200,2.923,201,3.01,202,2.966,206,3.338,218,0.948,219,0.884,228,1.505,231,0.486,234,0.614,245,2.339,248,2.482,256,0.589,260,2.055,316,3.017,318,0.653,350,1.414,369,0.653,397,0.589,402,1.093,404,0.545,421,1.934,484,2.451,487,2.294,489,0.288,517,0.581,529,1.077,562,0.589,564,0.491,570,0.653,631,1.142,642,0.566,677,0.757,708,0.834,726,1.91,728,1.955,736,2.176,737,2.005,742,2.951,745,3.399,746,0.605,750,0.614,765,0.614,809,2.181,919,1.035,926,2.436,933,2.254,938,0.757,1039,0.699,1040,0.712,1084,0.948,1406,4.266,1474,1.174,1547,2.339,1548,2.339,1549,2.339,1550,2.339,1551,2.339,1552,2.339,1553,2.339,1554,2.339,1555,2.339,1556,1.296,1557,1.296,1558,2.339,1559,1.296,1560,1.296,1561,1.296,1562,6.573,1563,1.296,1564,5.673,1565,1.296,1566,1.296,1567,1.296,1568,3.197,1569,1.296,1570,1.296,1571,1.296,1572,1.296,1573,1.296,1574,1.296,1575,1.296]],["tags/327",[]],["title/328",[497,0.799,516,1.087,517,1.439,1576,2.713]],["content/328",[0,0.654,8,1.775,12,0.625,23,1.274,25,1.724,27,2.179,28,0.459,29,0.598,31,1.619,33,2.804,34,3.137,48,0.497,55,1.078,56,1.292,63,0.471,64,1.665,66,1.546,71,1.21,104,2.628,115,1.366,116,3.657,175,1.241,177,0.662,179,3.914,199,2.527,200,1.782,201,1.834,202,1.807,206,2.32,218,3.363,219,3.137,228,3.376,231,0.605,234,0.764,245,2.078,248,2.795,256,0.733,260,1.733,316,3.973,318,0.813,350,1.258,355,0.713,382,1.18,384,1.18,386,1.137,387,0.887,397,0.733,402,1.328,404,0.678,421,0.618,477,1.011,484,1.494,487,0.733,489,0.633,520,1.739,529,0.743,533,1.699,535,1.195,564,1.078,566,1.222,590,1.127,607,1.14,642,1.241,677,2.687,722,1.137,723,1.83,726,2.279,728,2.333,736,3.198,737,0.826,742,1.662,745,2.28,746,0.753,750,0.764,765,0.764,809,3.137,853,2.08,919,1.288,938,0.943,969,1.462,1037,1.137,1039,0.871,1040,0.887,1069,1.462,1099,2.402,1179,2.578,1196,2.578,1406,1.363,1420,1.462,1564,6.028,1577,2.844,1578,3.814,1579,2.844,1580,2.844,1581,2.844,1582,6.997,1583,1.613,1584,1.613,1585,4.599,1586,3.814,1587,3.814,1588,2.844,1589,1.613,1590,1.613,1591,2.844,1592,2.844,1593,2.844,1594,2.844,1595,2.844,1596,1.613,1597,2.844,1598,1.613,1599,1.613,1600,1.613,1601,3.814,1602,1.613,1603,2.844,1604,1.613,1605,1.613,1606,1.613,1607,1.613,1608,1.613]],["tags/328",[]],["title/318",[372,3.168]],["content/318",[0,1.452,2,2.408,8,1.707,12,1.387,23,2.472,25,2.834,28,1.019,29,1.328,31,1.261,33,1.435,48,1.103,55,1.357,56,2.506,63,1.046,64,2.938,66,2.729,71,2.348,104,3.178,115,1.347,174,3.761,175,2.408,177,1.469,179,3.3,199,2.408,200,1.673,201,1.722,202,1.697,206,1.584,230,2.245,234,1.697,245,2.186,248,1.505,256,1.627,260,2.506,372,2.78,397,1.627,402,2.577,404,1.505,421,1.372,484,1.403,487,2.506,489,0.797,490,1.103,494,1.797,495,0.76,497,1.373,515,1.452,530,1.898,549,2.37,557,1.189,566,1.467,575,1.834,578,2.093,593,1.189,596,1.524,607,1.435,642,1.563,672,2.19,706,1.749,736,2.653,737,1.834,742,3.224,743,2.37,745,1.776,746,1.673,750,1.697,765,1.697,970,5.001,1013,2.861,1038,2.729,1039,1.933,1040,1.97,1260,2.861,1330,4.661,1331,3.026,1332,2.861]],["tags/318",[]],["title/323",[489,0.854,569,1.873,600,1.845]],["content/323",[0,1.792,12,1.049,16,1.583,25,1.015,27,1.284,28,0.771,29,2.077,30,2.343,33,1.086,46,1.343,57,1.086,64,2.444,71,2.75,79,1.981,115,1.204,177,1.111,206,1.198,256,1.23,260,1.23,392,2.064,397,2.008,402,2.065,403,2.455,404,1.138,405,2.288,421,1.038,475,2.164,481,1.698,489,1.699,490,2.482,494,2.105,495,2.141,497,2.091,506,1.303,514,1.698,515,1.098,516,0.917,517,1.214,518,0.964,519,1.411,520,1.657,523,2.821,530,1.436,535,1.858,539,2.396,547,1.698,550,1.981,551,1.557,554,2.771,556,1.618,557,1.859,560,3.022,562,1.23,564,1.026,565,1.657,566,1.892,569,1.323,570,1.365,579,1.462,583,2.158,590,1.073,593,2.145,597,1.265,600,1.303,603,2.777,613,1.23,622,3.51,625,1.55,637,2.227,648,1.167,649,1.55,652,1.698,678,1.793,687,1.848,691,1.657,696,1.981,699,1.848,700,3.117,702,2.583,712,1.743,713,1.848,717,1.743,746,1.265,754,1.793,764,1.793,765,1.284,766,2.844,787,1.55,797,2.455,843,1.981,852,2.455,868,2.064,987,3.949,1039,1.462,1045,1.743,1087,1.981,1271,2.455,1435,2.064,1439,2.288,1441,2.455,1449,2.455,1609,4.42,1610,2.709,1611,2.455,1612,2.455,1613,4.007,1614,2.455,1615,2.064,1616,2.709,1617,2.709,1618,2.455,1619,2.709,1620,2.709,1621,2.709,1622,2.709,1623,2.288,1624,2.709,1625,2.709,1626,2.455,1627,2.709,1628,2.455,1629,2.709,1630,2.709,1631,2.709,1632,4.42,1633,2.709,1634,2.709,1635,2.455,1636,2.709,1637,2.709,1638,2.709]],["tags/323",[]],["title/324",[1639,5.699]],["content/324",[0,1.935,8,0.945,31,1.681,53,3.813,71,2.031,115,1.1,315,2.919,350,2.111,404,2.006,408,4.327,409,4.327,481,2.992,489,2.133,490,2.954,495,1.694,497,1.7,504,2.405,512,2.677,515,1.935,521,2.871,539,2.959,551,1.681,557,1.585,576,2.677,596,2.031,609,2.367,623,3.366,624,2.852,629,3.491,648,3.438,691,2.919,727,4.033,734,3.366,898,6.141,899,5.93,981,3.366,987,3.366,1045,3.072,1166,3.072,1431,4.033,1438,4.327,1618,4.327,1639,6.192,1640,4.774,1641,4.774,1642,6.832,1643,4.774,1644,4.774,1645,6.832,1646,6.832,1647,4.774,1648,4.774,1649,4.033,1650,4.774,1651,4.033,1652,4.774,1653,4.774]],["tags/324",[]],["title/333",[495,0.814,705,2.806,706,1.873]],["content/333",[29,2.571,30,3.675,229,4.461,230,4.345,248,2.914,391,3.812,489,2.331,495,2.049,497,1.725,499,3.564,516,2.346,518,2.466,530,3.675,535,2.914,613,3.149,701,4.729,706,4.292,707,5.07,708,4.461,709,3.966,710,4.888,711,5.07,712,4.461,713,4.729]],["tags/333",[]],["title/334",[659,2.242,706,1.873,1654,3.241]],["content/334",[8,1.699,27,1.677,33,1.418,34,2.414,35,4.298,45,1.946,50,1.783,66,1.435,73,2.218,86,1.783,87,2.943,115,1.247,116,3.006,179,2.386,218,2.588,219,2.414,228,2.277,230,2.218,248,2.807,314,2.068,359,4.085,489,1.91,490,1.684,495,1.9,497,1.36,509,2.218,510,1.607,516,2.261,517,1.586,530,1.876,535,2.807,539,1.312,541,1.607,549,2.342,551,1.246,557,1.815,564,2.531,565,3.343,566,1.997,576,1.984,583,2.669,584,2.8,593,2.217,600,1.702,603,1.755,605,1.91,607,1.418,612,2.45,624,2.114,659,2.068,693,2.414,706,4.513,713,2.414,724,2.827,736,1.702,739,2.218,750,1.677,780,3.006,795,2.414,820,2.342,926,2.696,929,2.827,931,2.989,932,2.989,1003,2.827,1063,2.989,1070,2.989,1166,2.277,1482,2.827,1576,2.989,1649,2.989,1654,2.989,1655,3.539,1656,3.539,1657,3.208,1658,3.539,1659,3.539,1660,5.467,1661,2.696,1662,3.539,1663,3.539,1664,6.679,1665,3.539,1666,3.539]],["tags/334",[]],["title/335",[489,0.539,495,0.514,516,0.819,706,1.182,1045,1.558,1667,2.421]],["content/335",[8,0.768,27,3.734,28,1.103,30,2.056,48,1.806,57,1.554,71,1.65,75,1.591,115,1.333,116,2.133,391,4.333,392,5.386,393,3.515,404,2.971,405,3.276,412,3.503,421,1.486,489,1.753,490,1.195,494,1.263,495,1.796,497,1.459,504,2.954,513,2.567,516,1.313,518,2.086,521,1.63,523,1.536,539,2.174,541,1.762,551,2.065,559,2.646,566,2.094,593,1.287,596,1.65,597,1.812,600,1.865,603,1.923,612,1.738,613,2.663,619,2.175,622,2.431,648,2.527,660,2.266,693,2.646,701,2.646,706,1.894,712,2.496,713,5.772,747,2.567,755,2.567,766,2.496,780,2.133,834,2.735,981,2.735,982,3.515,1041,3.276,1045,3.773,1092,3.515,1273,3.276,1628,3.515,1657,3.515,1668,2.955,1669,3.878,1670,3.878,1671,3.098,1672,3.878,1673,3.515,1674,3.878,1675,3.878,1676,3.878,1677,3.515]],["tags/335",[]],["title/329",[46,3.118]],["content/329",[0,1.739,30,2.274,46,4.107,48,3.02,50,3.782,51,3.138,87,1.68,115,1.054,257,2.689,312,2.839,314,2.507,318,2.162,319,3.427,412,2.563,414,2.624,425,2.624,429,2.624,489,1.965,494,2.445,495,1.875,497,1.068,502,3.293,516,1.452,523,1.7,535,1.803,539,1.591,551,2.226,556,2.563,557,1.424,560,2.315,562,1.949,564,1.626,566,2.456,569,3.087,593,2.492,596,2.69,597,2.004,605,2.315,614,2.315,648,2.724,661,3.617,690,2.624,691,2.624,692,3.269,693,2.927,694,2.839,695,3.269,696,3.138,697,3.269,698,3.269,699,2.927,700,3.025,701,2.927,702,2.507,703,3.025,704,3.269,715,4.817,717,2.761,780,2.359,790,3.427,794,3.269,1087,3.138,1435,3.269,1668,3.269,1678,4.29,1679,4.29,1680,6.322,1681,4.29,1682,4.29,1683,3.889]],["tags/329",[]],["title/330",[257,3.941]],["content/330",[48,2.958,73,3.759,115,0.955,257,3.759,260,2.724,274,4.091,489,2.136,495,2.184,497,1.991,498,3.298,499,2.432,513,3.969,516,3.046,519,3.124,535,3.362,543,2.552,566,2.126,569,2.928,593,2.655,709,3.431,780,3.298,791,4.79,793,5.436,795,4.091,830,4.79,929,4.79,1087,4.386,1435,4.57,1683,5.436,1684,5.436,1685,5.997,1686,5.997,1687,5.436,1688,5.066]],["tags/330",[]],["title/331",[312,4.161]],["content/331",[45,2.517,46,3.287,48,2.912,51,3.348,68,3.488,115,1.019,116,2.517,257,2.869,261,3.348,312,4.387,314,2.675,315,2.799,316,2.735,317,3.867,318,2.306,319,3.656,321,3.867,323,3.867,489,1.734,495,2.006,497,1.649,498,3.645,507,2.735,516,2.637,519,2.384,523,2.626,539,1.697,541,2.079,551,1.612,554,2.869,557,1.519,559,3.123,565,2.799,566,2.071,569,2.235,593,2.586,622,2.869,690,4.053,694,3.029,699,3.123,709,2.619,723,5.014,791,5.294,794,5.05,799,3.867,934,3.656,981,3.228,1009,3.867,1087,5.698,1435,3.488,1668,5.05,1687,4.149,1689,4.577,1690,4.149,1691,3.867,1692,6.628,1693,3.488,1694,4.577,1695,4.577,1696,4.577,1697,4.577,1698,6.628]],["tags/331",[]],["title/332",[46,3.118]],["content/332",[46,4.61,495,2.134,497,1.887,499,3.074,566,2.016,658,4.53,661,4.338,843,5.546,1699,7.583,1700,6.873,1701,7.583,1702,7.583,1703,7.583,1704,7.583,1705,7.583,1706,7.583,1707,7.583,1708,7.583]],["tags/332",[]],["title/340",[685,4.046]],["content/340",[8,1.764,14,4.145,25,2.203,30,3.116,41,1.451,57,2.356,66,2.383,73,3.685,115,0.942,177,2.412,207,4.299,489,2.276,495,1.248,497,2.37,504,2.962,520,3.595,521,2.471,523,2.329,530,3.116,534,3.116,539,2.18,547,3.685,557,1.951,566,1.563,569,2.87,592,3.296,593,1.951,605,3.173,631,2.87,648,2.533,686,4.299,687,4.01,688,4.01,690,5.449,717,3.783,923,5.734,986,5.328,1468,4.966,1709,5.878,1710,5.878]],["tags/340",[]],["title/341",[8,0.636,41,0.793,489,0.714,923,2.066]],["content/341",[16,1.388,41,1.261,48,1.222,50,1.197,57,0.952,63,0.694,68,1.81,70,1.238,87,1.554,104,1.667,115,1.157,167,1.359,179,1.037,180,2.007,195,2.007,199,1.731,225,2.007,228,1.529,231,2.987,232,2.007,235,1.827,236,2.007,238,2.153,239,2.007,242,1.898,243,2.007,244,2.007,245,1.571,246,2.007,247,2.153,248,1.667,249,1.898,250,2.007,251,1.898,255,1.81,256,1.079,260,1.079,261,1.738,265,3.023,267,1.572,278,3.279,280,1.898,282,1.898,285,2.007,287,3.168,288,1.898,290,2.007,292,2.153,296,2.007,297,1.898,298,2.007,302,1.143,303,1.81,307,1.898,314,1.388,484,0.931,489,2.181,490,1.222,494,1.292,495,1.943,497,0.987,506,1.908,508,1.853,510,1.079,516,1.343,526,1.675,530,1.259,534,2.103,535,1.667,539,1.471,551,2.1,557,2.201,558,1.81,562,2.709,564,0.9,565,2.426,566,1.357,570,3.005,575,1.217,590,0.941,598,1.306,601,1.306,603,1.178,607,1.59,610,1.238,613,1.079,624,2.37,640,1.621,648,1.709,659,1.388,660,1.388,665,1.572,668,2.318,675,1.621,677,1.388,685,1.529,690,1.453,691,5.993,694,1.572,702,1.388,708,1.529,712,1.529,717,1.529,721,2.007,794,1.81,820,3.38,935,5.038,1002,1.898,1009,4.314,1015,2.153,1019,2.153,1077,1.81,1437,2.153,1677,3.596,1711,3.351,1712,6.072,1713,2.376,1714,1.81,1715,2.376,1716,2.153,1717,2.376,1718,3.596,1719,4.629,1720,5.038,1721,2.153,1722,2.376,1723,2.376,1724,2.376,1725,2.376,1726,1.898,1727,1.898,1728,2.376,1729,2.007,1730,2.153,1731,2.153,1732,2.153,1733,2.153,1734,3.351,1735,2.007,1736,1.738,1737,3.967,1738,2.376]],["tags/341",[]],["title/342",[1726,3.806,1727,3.806]],["content/342",[2,2.315,8,1.29,25,1.276,29,1.967,33,1.364,48,1.634,49,2.489,115,1.008,177,1.396,207,2.489,231,1.276,245,1.348,307,5.877,308,4.041,322,2.252,362,1.773,404,1.43,421,2.032,434,3.085,489,1.637,495,2.263,497,1.622,506,1.637,516,2.205,517,2.377,519,2.763,521,2.229,523,2.101,534,1.804,537,5.381,539,1.262,557,1.13,559,2.322,560,3.517,566,2.12,583,1.662,593,2.163,596,2.257,603,2.63,609,1.688,612,1.525,625,3.034,649,1.947,658,2.033,668,3.099,689,2.252,691,2.081,694,2.252,708,2.19,709,3.728,715,4.041,718,2.4,720,3.085,746,2.477,748,3.413,780,1.872,851,7.996,933,2.4,981,2.4,1003,2.718,1016,2.718,1045,2.19,1273,2.875,1446,2.875,1635,5.906,1654,4.48,1684,3.085,1690,3.085,1691,2.875,1712,4.041,1726,5.877,1727,5.877,1739,3.403,1740,3.403,1741,3.403,1742,3.403,1743,3.403,1744,3.403,1745,3.403,1746,3.085,1747,3.403,1748,3.403,1749,3.403,1750,3.403]],["tags/342",[]],["title/343",[495,0.814,660,2.242,1736,2.806]],["content/343",[0,1.667,16,2.403,25,1.541,29,1.525,30,2.179,63,1.789,115,1.035,116,2.261,177,1.687,226,2.142,231,2.296,267,2.721,303,5.578,306,3.007,394,3.473,396,3.007,404,1.728,421,2.347,441,4.667,489,2.241,494,1.339,495,2.138,497,1.524,499,2.484,504,2.072,518,1.463,523,1.629,529,2.821,533,2.456,534,3.247,539,1.525,541,2.782,551,1.448,554,2.577,557,2.43,566,1.093,569,2.991,593,1.365,607,1.648,609,2.039,646,2.899,648,1.772,660,4.278,663,2.805,668,2.403,689,2.721,691,2.514,702,2.403,703,2.899,828,3.133,843,3.007,984,3.284,1017,3.473,1084,3.007,1165,3.473,1615,3.133,1623,3.473,1671,3.284,1693,3.133,1712,4.667,1736,5.933,1751,3.727,1752,3.727,1753,3.473,1754,3.727,1755,3.727,1756,3.727,1757,3.473,1758,3.473,1759,3.727,1760,3.727,1761,3.473,1762,3.727,1763,3.727,1764,3.727,1765,3.473,1766,3.133,1767,3.284]],["tags/343",[]],["title/344",[115,0.289,267,1.603,562,1.1,570,1.22,1720,2.046,1735,2.046]],["content/344",[41,0.979,70,2.065,104,1.666,115,1.252,231,1.486,242,3.167,243,3.349,244,3.349,245,2.362,267,2.624,278,3.939,280,3.167,285,3.349,287,4.761,288,3.167,297,3.167,355,1.753,489,1.594,494,1.291,495,1.905,497,1.783,499,1.608,506,1.907,515,1.608,518,1.41,520,2.425,530,2.102,539,1.47,543,2.537,551,2.806,554,2.485,557,1.979,562,3.88,566,1.585,570,4.304,571,1.936,590,1.571,603,1.966,607,1.589,610,3.105,612,1.777,613,1.801,637,1.998,648,1.709,669,2.624,670,4.36,671,2.9,672,2.425,673,2.796,674,2.705,677,2.317,683,2.705,691,5.224,834,2.796,935,6.731,1002,3.167,1166,3.836,1214,5.036,1447,3.594,1718,3.594,1719,3.594,1720,6.052,1729,3.349,1730,3.594,1731,3.594,1732,3.594,1733,3.594,1734,5.036,1735,5.036,1768,3.965,1769,3.965,1770,3.965,1771,3.594]],["tags/344",[]],["title/345",[265,3.631,267,3.154]],["content/345",[31,2.141,63,1.775,199,2.653,200,2.84,231,2.279,265,6.905,267,6.389,274,4.147,489,2.148,494,1.98,495,1.924,502,3.167,518,2.871,533,3.632,539,2.255,561,4.287,562,4.116,565,3.718,566,1.616,572,4.632,597,2.84,609,3.015,635,4.287,648,2.62,691,3.718,1436,5.136,1611,5.51,1614,5.51,1693,4.632,1712,4.632,1772,6.079,1773,6.079,1774,6.079,1775,6.079,1776,6.079,1777,6.079,1778,6.079]],["tags/345",[]],["title/336",[689,4.161]],["content/336",[8,1.554,29,2.911,30,4.161,59,4.237,489,1.747,490,2.419,495,2.015,497,1.954,535,3.3,559,5.356,574,5.196,685,5.052,690,5.806,702,4.587,981,5.536]],["tags/336",[]],["title/337",[489,1.06,685,3.067]],["content/337",[43,4.051,45,2.923,48,2.955,50,2.678,52,4.491,63,1.552,75,2.181,87,2.082,115,1.273,226,4.406,257,4.619,308,4.051,312,3.518,425,3.251,428,4.491,429,3.251,430,4.491,445,4.491,446,4.491,447,2.923,489,1.64,492,3.748,495,2.036,498,2.923,557,1.765,566,2.55,613,2.415,694,3.518,709,3.041,717,3.421,723,3.421,794,4.051,934,4.246,1046,6.225,1468,6.225,1671,4.246,1711,4.491,1726,4.246,1727,4.246,1779,5.316,1780,7.369,1781,6.68]],["tags/337",[]],["title/338",[489,1.06,702,2.785]],["content/338",[46,3.864,48,2.631,63,1.337,115,1.019,126,3.488,306,3.348,391,2.517,396,3.348,397,2.079,412,2.735,414,2.799,415,3.867,420,3.867,421,1.753,441,3.488,489,2.017,490,1.41,494,3.175,495,2.193,497,1.649,523,1.813,534,3.513,541,2.079,557,1.519,566,2.071,600,2.201,607,1.834,610,2.384,660,3.873,706,2.235,708,2.945,712,5.496,777,2.945,780,2.517,845,3.867,981,3.228,1001,6.582,1043,4.149,1046,7.984,1084,3.348,1613,4.149,1668,3.488,1736,4.847,1765,3.867,1766,3.488,1767,5.294,1781,8.566,1782,4.577,1783,4.577]],["tags/338",[]],["title/339",[489,1.06,490,1.468]],["content/339",[64,3.618,71,3.528,79,6.063,490,2.554,495,1.76,508,3.872,550,6.063,566,2.203,607,3.322,1784,8.29,1785,8.29]],["tags/339",[]],["title/346",[495,0.814,660,2.242,1736,2.806]],["content/346",[0,1.731,16,2.495,25,1.6,29,1.583,30,2.263,63,1.84,115,1.052,116,2.348,177,1.752,226,2.224,231,1.6,267,2.826,303,4.8,306,3.122,394,3.607,396,3.122,404,1.794,421,2.413,441,4.8,489,2.224,494,1.391,495,2.122,497,1.568,499,2.554,504,2.151,518,1.519,523,1.691,529,2.901,533,2.551,534,3.339,539,1.583,541,2.861,551,1.503,554,2.676,557,2.485,566,1.135,569,3.076,593,1.417,607,1.711,609,2.117,646,3.011,648,1.84,660,3.681,663,2.913,668,2.495,689,2.826,702,2.495,703,3.011,828,3.253,843,3.122,984,3.41,1017,3.607,1084,3.122,1165,3.607,1615,3.253,1623,3.607,1671,3.41,1693,3.253,1712,3.253,1736,5.474,1751,3.87,1752,3.87,1753,3.607,1754,3.87,1755,3.87,1756,3.87,1757,3.607,1758,3.607,1759,3.87,1760,3.87,1761,3.607,1762,3.87,1763,3.87,1764,3.87,1765,3.607,1766,3.253,1767,3.41]],["tags/346",[]],["title/347",[378,3.941]],["content/347",[16,2.866,63,2.719,115,1.213,248,2.062,378,5.077,421,1.879,489,2.072,490,1.511,494,2.269,495,2.053,504,2.472,516,1.66,521,2.062,523,1.943,535,2.062,541,2.228,562,2.228,566,1.851,570,2.472,590,3.209,593,1.628,596,2.087,597,2.291,648,2.114,649,2.807,652,3.075,657,3.588,658,2.931,659,2.866,660,4.07,661,2.807,662,3.247,663,3.346,664,3.459,665,3.247,666,3.738,667,3.738,792,4.144,795,3.346,820,3.247,868,3.738,898,3.459,899,3.157,984,3.918,1651,4.144,1661,3.738,1734,4.144,1786,8.099,1787,6.965,1788,5.884,1789,4.905,1790,4.446,1791,4.905,1792,4.144]],["tags/347",[]],["title/348",[278,3.457]],["content/348",[16,2.608,63,2.62,75,1.831,115,1.206,278,2.454,355,1.973,378,2.797,385,4.588,489,1.709,494,1.453,495,1.905,497,1.11,512,3.648,516,1.51,518,1.587,519,2.324,535,1.876,539,1.655,541,2.027,543,1.899,551,2.291,555,2.666,557,1.481,562,3.488,566,2.571,570,4.253,590,3.042,593,2.16,595,2.365,607,1.788,608,2.324,612,2,625,3.723,637,2.248,649,2.553,657,3.264,668,3.802,669,2.953,670,3.264,671,3.264,672,2.729,673,4.588,674,3.044,675,3.044,676,3.4,677,2.608,678,2.953,679,3.4,680,3.264,681,3.4,682,3.4,683,3.044,684,3.4,688,3.044,795,3.044,898,3.147,899,2.871,1002,3.564,1788,5.497,1792,3.77,1793,6.507,1794,6.507]],["tags/348",[]],["title/350",[115,0.458,635,2.706,636,2.618]],["content/350",[57,2.988,489,1.659,495,1.953,497,1.855,507,4.454,508,3.482,523,2.954,557,2.475,566,1.982,567,4.673,593,3.054,616,3.952,637,3.757,638,5.257,639,5.453,640,5.086,641,5.681,642,3.254,643,5.453,644,5.681,645,5.453]],["tags/350",[]],["title/351",[489,1.06,636,3.251]],["content/351",[8,1.439,57,2.914,115,0.868,495,1.544,497,2.254,502,3.788,506,3.498,518,2.587,523,2.881,551,2.561,583,3.551,593,2.414,614,3.925,636,6.18,668,4.25,866,6.144,1482,5.809,1626,6.592,1649,6.144,1714,5.541,1795,7.273,1796,6.592,1797,7.273,1798,7.273]],["tags/351",[]],["title/352",[1799,5.699]],["content/352",[29,1.799,46,2.406,48,2.129,63,1.417,66,1.967,75,1.991,86,2.445,248,2.039,312,3.211,489,2.207,490,2.48,494,1.58,495,1.709,497,2.003,498,2.668,502,2.527,506,2.333,514,3.041,516,2.339,523,3.189,534,2.572,535,2.905,539,3.254,566,2.465,584,2.485,585,2.776,590,1.922,593,2.294,613,2.204,614,2.619,637,2.445,648,2.091,649,2.776,675,3.31,690,2.967,711,3.548,717,3.122,721,4.099,840,3.875,1037,3.421,1045,3.122,1615,3.697,1651,4.099,1714,3.697,1766,3.697,1799,4.398,1800,4.852,1801,4.852,1802,4.852,1803,4.852,1804,4.099,1805,4.852,1806,4.852,1807,4.852,1808,4.852,1809,4.852,1810,4.398,1811,4.852,1812,4.852,1813,4.852,1814,4.852,1815,4.852]],["tags/352",[]],["title/353",[46,3.118]],["content/353",[46,2.59,63,1.525,104,2.195,115,0.623,179,2.279,186,3.361,229,3.361,274,3.563,312,3.456,314,3.052,489,2.017,492,3.682,495,2.023,497,1.3,506,2.512,516,2.463,517,2.34,518,1.858,519,2.72,521,2.195,527,3.682,529,2.405,534,2.768,551,1.839,557,1.734,564,1.979,566,1.935,569,2.55,590,2.069,593,2.416,613,2.372,624,3.12,637,4.222,648,2.25,652,3.273,658,3.12,659,3.052,702,3.052,709,2.988,780,2.872,787,2.988,834,3.682,838,4.734,993,4.412,994,4.734,1037,3.682,1077,3.979,1166,3.361,1691,4.412,1714,5.546,1753,4.412,1804,4.412,1816,5.222,1817,5.222,1818,5.222,1819,4.734,1820,5.222,1821,5.222,1822,5.222,1823,5.222,1824,5.222]],["tags/353",[]],["title/354",[495,0.814,590,1.52,660,2.242]],["content/354",[93,5.233,489,2.179,495,1.519,497,1.781,502,3.727,516,2.422,543,3.045,564,2.711,569,3.494,590,3.553,593,2.375,612,3.207,637,4.518,648,3.084,649,4.094,658,4.275,840,5.715,1317,6.486,1714,5.452,1766,5.452,1767,5.715,1804,6.045,1819,6.486,1825,7.156]],["tags/354",[]],["title/355",[490,1.182,495,0.814,1826,3.478]],["content/355",[16,3.412,57,2.34,75,3.224,115,0.697,489,1.299,490,2.421,495,2.104,518,2.077,519,4.093,523,3.113,535,2.454,539,2.166,551,2.056,566,2.635,600,2.808,607,2.34,608,3.042,611,3.341,613,2.653,614,4.241,622,3.66,637,2.942,642,2.549,649,3.341,652,3.66,683,3.984,685,3.758,702,3.412,898,4.118,899,3.758,1031,4.664,1431,4.933,1612,5.293,1700,5.293,1757,4.933,1761,4.933,1826,5.293,1827,5.84,1828,5.84,1829,5.84,1830,5.84,1831,5.84,1832,5.84]],["tags/355",[]],["title/349",[387,3.457]],["content/349",[16,2.835,63,2.815,75,1.991,115,1.21,186,3.122,387,4.427,489,1.791,494,1.58,495,2.046,502,2.527,504,2.445,507,2.899,516,2.724,518,1.726,535,2.039,541,2.204,566,2.636,570,2.445,593,1.611,625,3.954,646,3.421,647,6.134,648,2.091,649,2.776,650,3.548,651,3.697,652,4.332,653,3.697,654,4.447,655,3.697,656,3.697,660,2.835,665,3.211,738,3.31,788,3.875,795,3.31,810,5.52,846,4.099,898,3.421,899,3.122,1340,6.264,1661,3.697,1746,4.398,1788,5.838,1792,4.099,1833,4.852,1834,4.852,1835,4.852,1836,4.852,1837,4.852]],["tags/349",[]],["title/356",[248,2.643]],["content/356",[0,1.915,8,1.342,57,2.717,86,3.416,115,1.14,179,2.959,181,3.222,248,3.333,489,1.765,490,1.455,495,2.028,497,1.687,502,2.46,504,2.38,506,3.26,510,2.145,516,1.598,518,2.412,519,4.131,520,2.888,535,1.985,539,1.752,551,1.663,562,2.145,566,2.108,569,2.306,570,2.38,575,2.419,593,2.25,596,2.01,607,1.893,648,2.035,687,3.222,710,3.33,787,3.879,795,3.222,802,3.772,818,3.454,820,3.126,1166,3.039,1169,4.281,1661,3.599,1693,3.599,1711,3.99,1758,3.99,1796,6.145,1838,4.723,1839,4.723,1840,4.723,1841,4.281,1842,4.723,1843,4.723,1844,4.723,1845,4.723,1846,4.723,1847,4.723,1848,6.78,1849,6.78,1850,4.723,1851,4.723,1852,4.723,1853,4.723]],["tags/356",[]],["title/357",[249,5.022]],["content/357",[8,1.718,57,2.237,115,1.165,116,3.07,179,3.327,249,7.448,267,3.695,489,1.931,494,1.818,495,1.185,497,2.16,503,4.083,514,3.5,516,2.58,518,1.986,523,2.212,535,2.347,551,1.966,556,3.336,557,1.853,593,1.853,612,2.502,624,3.336,701,3.809,736,4.174,787,4.361,818,4.083,987,3.937,1016,4.459,1045,3.593,1166,3.593,1394,4.716,1469,5.061,1661,4.254,1729,4.716,1771,5.061,1790,6.909,1854,5.583,1855,5.583,1856,5.583,1857,7.622,1858,5.583,1859,5.583]],["tags/357",[]],["title/358",[63,1.392,842,4.32]],["content/358",[63,2.159,86,3.725,115,0.882,489,1.645,494,2.408,495,1.943,498,4.066,516,2.502,624,4.417,627,5.044,658,4.417,661,5.236,993,6.246,1166,4.758,1170,6.702,1576,6.246,1668,5.634,1841,6.702,1860,7.394,1861,7.394,1862,7.394,1863,7.394]],["tags/358",[]],["title/359",[1721,5.699]],["content/359",[57,3.725,116,4.17,183,5.173,495,1.61,497,1.887,506,3.647,535,3.187,539,2.812,593,2.517,600,3.647,607,3.039,645,5.546,708,4.879,748,4.879,1482,6.056,1864,7.583,1865,7.583,1866,7.583,1867,7.583,1868,7.583]],["tags/359",[]],["title/360",[539,1.767,1688,4.026]],["content/360",[0,3.462,29,2.007,30,2.869,57,2.99,71,2.303,75,2.221,115,0.891,183,3.693,489,1.66,490,2.631,494,2.43,495,1.813,497,2.125,499,2.195,514,3.393,516,2.526,519,2.82,523,2.956,529,2.493,535,2.275,539,2.007,551,1.906,566,2.27,575,2.772,626,3.817,638,3.817,643,3.959,687,3.693,734,3.817,787,3.097,1001,4.573,1045,3.483,1439,4.573,1615,4.125,1673,4.906,1688,4.573,1716,4.906,1810,4.906,1869,5.413,1870,5.413,1871,8.54,1872,7.462,1873,7.462,1874,5.413,1875,7.462,1876,5.413,1877,5.413]],["tags/360",[]],["title/361",[504,3.168]],["content/361",[0,1.683,2,1.811,8,1.724,12,1.607,23,2.764,25,3.055,28,1.181,29,1.539,31,2.172,33,1.663,48,1.279,55,1.572,56,2.802,63,1.212,64,3.213,66,2.985,71,2.625,104,3.094,115,1.36,174,4.011,175,2.692,177,1.703,179,3.213,199,2.692,200,1.938,201,1.996,202,1.967,206,1.835,234,1.967,245,1.644,256,1.885,260,2.802,397,1.885,401,3.162,402,2.881,404,1.744,484,1.626,495,0.881,642,1.811,736,2.966,742,2.425,743,2.747,745,2.058,746,1.938,750,1.967,765,1.967,1022,3.506,1023,3.506,1037,5.191,1038,3.162,1039,2.24,1040,2.282,1333,3.762,1334,3.762]],["tags/361",[]]],"invertedIndex":[["",{"_index":115,"title":{"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"296":{},"307":{},"344":{},"350":{}},"content":{"6":{},"19":{},"26":{},"44":{},"46":{},"52":{},"56":{},"68":{},"72":{},"83":{},"85":{},"87":{},"103":{},"104":{},"128":{},"129":{},"138":{},"140":{},"148":{},"152":{},"153":{},"155":{},"156":{},"157":{},"158":{},"159":{},"160":{},"161":{},"171":{},"191":{},"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{},"241":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"248":{},"249":{},"250":{},"251":{},"252":{},"253":{},"254":{},"255":{},"256":{},"257":{},"258":{},"259":{},"260":{},"261":{},"262":{},"263":{},"264":{},"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"291":{},"292":{},"293":{},"294":{},"295":{},"296":{},"297":{},"298":{},"299":{},"300":{},"301":{},"302":{},"303":{},"304":{},"305":{},"306":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"321":{},"322":{},"323":{},"324":{},"326":{},"327":{},"328":{},"329":{},"330":{},"331":{},"334":{},"335":{},"337":{},"338":{},"340":{},"341":{},"342":{},"343":{},"344":{},"346":{},"347":{},"348":{},"349":{},"351":{},"353":{},"355":{},"356":{},"357":{},"358":{},"360":{},"361":{}},"tags":{}}],["0",{"_index":316,"title":{},"content":{"110":{},"293":{},"294":{},"301":{},"304":{},"305":{},"314":{},"316":{},"317":{},"319":{},"327":{},"328":{},"331":{}},"tags":{}}],["000",{"_index":1339,"title":{},"content":{"314":{}},"tags":{}}],["01",{"_index":1126,"title":{},"content":{"304":{},"309":{}},"tags":{}}],["02",{"_index":1419,"title":{},"content":{"319":{}},"tags":{}}],["03",{"_index":1287,"title":{},"content":{"309":{}},"tags":{}}],["05",{"_index":1289,"title":{},"content":{"309":{}},"tags":{}}],["06",{"_index":1153,"title":{},"content":{"304":{}},"tags":{}}],["09",{"_index":1154,"title":{},"content":{"304":{},"309":{}},"tags":{}}],["0>premiertab3",{"_index":1589,"title":{},"content":{"328":{}},"tags":{}}],["0>premiertab4",{"_index":1598,"title":{},"content":{"328":{}},"tags":{}}],["1",{"_index":260,"title":{},"content":{"130":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"323":{},"326":{},"327":{},"328":{},"330":{},"341":{},"361":{}},"tags":{}}],["10",{"_index":740,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"305":{},"313":{},"316":{},"321":{}},"tags":{}}],["100",{"_index":1184,"title":{},"content":{"301":{},"314":{},"317":{}},"tags":{}}],["10000",{"_index":1585,"title":{},"content":{"328":{}},"tags":{}}],["100000",{"_index":1338,"title":{},"content":{"314":{}},"tags":{}}],["10000{children}cast(\\\"2040",{"_index":1107,"title":{},"content":{"304":{}},"tags":{}}],["dd\\\")>cast(\\\"2100",{"_index":1283,"title":{},"content":{"309":{}},"tags":{}}],["de",{"_index":495,"title":{"266":{},"286":{},"300":{},"302":{},"321":{},"333":{},"335":{},"343":{},"346":{},"354":{},"355":{}},"content":{"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"291":{},"292":{},"293":{},"294":{},"295":{},"296":{},"297":{},"298":{},"299":{},"300":{},"301":{},"302":{},"303":{},"304":{},"305":{},"306":{},"307":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"321":{},"322":{},"323":{},"324":{},"325":{},"329":{},"330":{},"331":{},"332":{},"333":{},"334":{},"335":{},"336":{},"337":{},"338":{},"339":{},"340":{},"341":{},"342":{},"343":{},"344":{},"345":{},"346":{},"347":{},"348":{},"349":{},"350":{},"351":{},"352":{},"353":{},"354":{},"355":{},"356":{},"357":{},"358":{},"359":{},"360":{},"361":{}},"tags":{}}],["decim",{"_index":809,"title":{},"content":{"293":{},"294":{},"301":{},"305":{},"314":{},"317":{},"327":{},"328":{}},"tags":{}}],["declar",{"_index":198,"title":{"61":{},"73":{},"88":{},"92":{},"109":{},"121":{},"151":{},"177":{},"193":{},"194":{},"240":{}},"content":{"193":{},"194":{},"253":{},"257":{},"258":{},"301":{},"303":{},"304":{},"308":{}},"tags":{}}],["declarationtyp",{"_index":1026,"title":{},"content":{"301":{},"303":{},"304":{},"308":{}},"tags":{}}],["default",{"_index":167,"title":{},"content":{"40":{},"56":{},"76":{},"79":{},"122":{},"123":{},"126":{},"130":{},"133":{},"134":{},"143":{},"144":{},"145":{},"146":{},"341":{}},"tags":{}}],["default_data",{"_index":187,"title":{},"content":{"56":{}},"tags":{}}],["defaut",{"_index":716,"title":{},"content":{"291":{}},"tags":{}}],["defin",{"_index":42,"title":{"43":{},"47":{},"58":{},"67":{},"71":{},"77":{},"80":{},"82":{},"84":{},"86":{},"90":{},"107":{},"119":{},"147":{},"149":{},"175":{},"224":{},"226":{},"228":{},"231":{},"265":{}},"content":{"5":{},"6":{},"8":{},"12":{},"18":{},"19":{},"21":{},"25":{},"26":{},"28":{},"51":{},"52":{},"54":{},"120":{}},"tags":{}}],["demand",{"_index":505,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"291":{}},"tags":{}}],["demi",{"_index":874,"title":{},"content":{"299":{}},"tags":{}}],["depend",{"_index":153,"title":{},"content":{"51":{},"52":{},"139":{}},"tags":{}}],["depth",{"_index":803,"title":{},"content":{"293":{},"294":{},"305":{}},"tags":{}}],["depui",{"_index":1615,"title":{},"content":{"323":{},"343":{},"346":{},"352":{},"360":{}},"tags":{}}],["dernier",{"_index":1671,"title":{},"content":{"335":{},"337":{},"343":{},"346":{}},"tags":{}}],["dernièr",{"_index":794,"title":{},"content":{"293":{},"329":{},"331":{},"337":{},"341":{}},"tags":{}}],["descript",{"_index":2,"title":{},"content":{"6":{},"10":{},"11":{},"12":{},"13":{},"14":{},"19":{},"26":{},"52":{},"56":{},"236":{},"237":{},"238":{},"253":{},"257":{},"258":{},"292":{},"293":{},"294":{},"299":{},"301":{},"302":{},"305":{},"308":{},"311":{},"312":{},"314":{},"315":{},"316":{},"318":{},"342":{},"361":{}},"tags":{}}],["dessu",{"_index":937,"title":{},"content":{"302":{},"305":{}},"tags":{}}],["destiné",{"_index":639,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"305":{},"350":{}},"tags":{}}],["detach",{"_index":1036,"title":{},"content":{"303":{}},"tags":{}}],["detail",{"_index":1738,"title":{},"content":{"341":{}},"tags":{}}],["detailalwaysdisplay",{"_index":238,"title":{},"content":{"125":{},"341":{}},"tags":{}}],["determin",{"_index":310,"title":{},"content":{"108":{}},"tags":{}}],["deux",{"_index":1316,"title":{},"content":{"316":{}},"tags":{}}],["deuxièm",{"_index":960,"title":{},"content":{"301":{},"305":{}},"tags":{}}],["devant",{"_index":1785,"title":{},"content":{"339":{}},"tags":{}}],["devra",{"_index":999,"title":{},"content":{"302":{}},"tags":{}}],["devront",{"_index":796,"title":{},"content":{"293":{}},"tags":{}}],["dictionnair",{"_index":1766,"title":{},"content":{"338":{},"343":{},"346":{},"352":{},"354":{}},"tags":{}}],["différem",{"_index":684,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"348":{}},"tags":{}}],["différent",{"_index":514,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"294":{},"305":{},"309":{},"323":{},"352":{},"357":{},"360":{}},"tags":{}}],["dimens",{"_index":914,"title":{},"content":{"300":{}},"tags":{}}],["dimensionné",{"_index":1837,"title":{},"content":{"349":{}},"tags":{}}],["direct",{"_index":1043,"title":{},"content":{"304":{},"338":{}},"tags":{}}],["disabl",{"_index":475,"title":{},"content":{"253":{},"302":{},"305":{},"323":{}},"tags":{}}],["disabled={isfirstpag",{"_index":775,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["disabled={islastpag",{"_index":778,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["disablefilt",{"_index":239,"title":{"126":{}},"content":{"126":{},"341":{}},"tags":{}}],["display",{"_index":36,"title":{},"content":{"12":{},"14":{},"39":{},"87":{},"156":{},"255":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["dispon",{"_index":1016,"title":{},"content":{"302":{},"320":{},"342":{},"357":{}},"tags":{}}],["distinct",{"_index":676,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"348":{}},"tags":{}}],["distribut",{"_index":1373,"title":{},"content":{"319":{}},"tags":{}}],["distributeur",{"_index":1374,"title":{},"content":{"319":{}},"tags":{}}],["dite",{"_index":967,"title":{},"content":{"305":{}},"tags":{}}],["div",{"_index":764,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"323":{}},"tags":{}}],["dk",{"_index":1770,"title":{},"content":{"344":{}},"tags":{}}],["document",{"_index":1798,"title":{},"content":{"351":{}},"tags":{}}],["doit",{"_index":677,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"291":{},"302":{},"304":{},"309":{},"320":{},"327":{},"328":{},"341":{},"344":{},"348":{}},"tags":{}}],["doivent",{"_index":752,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["domain",{"_index":1558,"title":{},"content":{"327":{}},"tags":{}}],["don't",{"_index":243,"title":{},"content":{"127":{},"341":{},"344":{}},"tags":{}}],["donc",{"_index":572,"title":{},"content":{"236":{},"237":{},"238":{},"295":{},"345":{}},"tags":{}}],["done",{"_index":485,"title":{},"content":{"260":{}},"tags":{}}],["donnant",{"_index":553,"title":{},"content":{"236":{},"237":{},"238":{},"301":{}},"tags":{}}],["donnera",{"_index":917,"title":{},"content":{"300":{}},"tags":{}}],["donné",{"_index":534,"title":{"300":{},"321":{}},"content":{"232":{},"233":{},"234":{},"235":{},"297":{},"300":{},"316":{},"320":{},"321":{},"338":{},"340":{},"341":{},"342":{},"343":{},"346":{},"352":{},"353":{}},"tags":{}}],["dontknow",{"_index":285,"title":{},"content":{"136":{},"341":{},"344":{}},"tags":{}}],["dontknowbutton",{"_index":242,"title":{"127":{}},"content":{"127":{},"341":{},"344":{}},"tags":{}}],["dropdown",{"_index":344,"title":{"195":{},"246":{},"275":{},"313":{}},"content":{"195":{},"246":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"299":{},"313":{}},"tags":{}}],["dsfr",{"_index":1653,"title":{},"content":{"324":{}},"tags":{}}],["du",{"_index":557,"title":{},"content":{"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"287":{},"288":{},"289":{},"290":{},"294":{},"295":{},"299":{},"301":{},"302":{},"303":{},"304":{},"305":{},"306":{},"312":{},"317":{},"318":{},"319":{},"320":{},"321":{},"323":{},"324":{},"325":{},"329":{},"331":{},"334":{},"337":{},"338":{},"340":{},"341":{},"342":{},"343":{},"344":{},"346":{},"348":{},"350":{},"353":{},"357":{}},"tags":{}}],["durat",{"_index":346,"title":{"196":{},"247":{},"274":{},"316":{}},"content":{"196":{},"247":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"316":{}},"tags":{}}],["dure",{"_index":1327,"title":{},"content":{"316":{}},"tags":{}}],["duré",{"_index":581,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"316":{}},"tags":{}}],["dynamiqu",{"_index":1576,"title":{"328":{}},"content":{"334":{},"358":{}},"tags":{}}],["dè",{"_index":1782,"title":{},"content":{"338":{}},"tags":{}}],["décalrat",{"_index":1201,"title":{},"content":{"308":{}},"tags":{}}],["décembr",{"_index":1258,"title":{},"content":{"310":{}},"tags":{}}],["décimal",{"_index":1335,"title":{},"content":{"314":{}},"tags":{}}],["décision",{"_index":1706,"title":{},"content":{"332":{}},"tags":{}}],["déclanchant",{"_index":1733,"title":{},"content":{"341":{},"344":{}},"tags":{}}],["déclar",{"_index":656,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"349":{}},"tags":{}}],["déclarat",{"_index":555,"title":{"303":{}},"content":{"236":{},"237":{},"238":{},"287":{},"288":{},"289":{},"290":{},"301":{},"310":{},"311":{},"315":{},"348":{}},"tags":{}}],["déclench",{"_index":1630,"title":{},"content":{"323":{}},"tags":{}}],["déclenchera",{"_index":785,"title":{},"content":{"293":{}},"tags":{}}],["déclenché",{"_index":1819,"title":{},"content":{"353":{},"354":{}},"tags":{}}],["décochabl",{"_index":599,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"311":{}},"tags":{}}],["décompo",{"_index":692,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"329":{}},"tags":{}}],["décompos",{"_index":1810,"title":{},"content":{"352":{},"360":{}},"tags":{}}],["décrire",{"_index":900,"title":{},"content":{"299":{}},"tags":{}}],["défault",{"_index":1728,"title":{},"content":{"341":{}},"tags":{}}],["défaut",{"_index":691,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"323":{},"324":{},"329":{},"341":{},"342":{},"343":{},"344":{},"345":{}},"tags":{}}],["défini",{"_index":584,"title":{},"content":{"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"302":{},"316":{},"334":{},"352":{}},"tags":{}}],["définir",{"_index":530,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"283":{},"284":{},"285":{},"286":{},"297":{},"302":{},"312":{},"318":{},"320":{},"323":{},"333":{},"334":{},"340":{},"341":{},"344":{}},"tags":{}}],["définiss",{"_index":1665,"title":{},"content":{"334":{}},"tags":{}}],["définissez",{"_index":1739,"title":{},"content":{"342":{}},"tags":{}}],["définit",{"_index":820,"title":{},"content":{"294":{},"297":{},"304":{},"320":{},"322":{},"334":{},"341":{},"347":{},"356":{}},"tags":{}}],["démarrag",{"_index":1721,"title":{"359":{}},"content":{"341":{}},"tags":{}}],["démarrer",{"_index":536,"title":{},"content":{"236":{},"237":{},"238":{},"307":{}},"tags":{}}],["dépendanc",{"_index":1716,"title":{},"content":{"341":{},"360":{}},"tags":{}}],["déroulant",{"_index":587,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"313":{},"319":{}},"tags":{}}],["désactiv",{"_index":1019,"title":{},"content":{"302":{},"341":{}},"tags":{}}],["détail",{"_index":1430,"title":{},"content":{"320":{}},"tags":{}}],["détailler",{"_index":1704,"title":{},"content":{"332":{}},"tags":{}}],["détermin",{"_index":1689,"title":{},"content":{"331":{}},"tags":{}}],["d’info",{"_index":1188,"title":{},"content":{"301":{}},"tags":{}}],["d’un",{"_index":1187,"title":{},"content":{"301":{}},"tags":{}}],["e",{"_index":1493,"title":{},"content":{"317":{}},"tags":{}}],["each",{"_index":1495,"title":{},"content":{"317":{}},"tags":{}}],["echaffaudag",{"_index":1363,"title":{},"content":{"319":{}},"tags":{}}],["edit",{"_index":200,"title":{"63":{}},"content":{"63":{},"133":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"327":{},"328":{},"345":{},"361":{}},"tags":{}}],["effectu",{"_index":792,"title":{},"content":{"293":{},"304":{},"347":{}},"tags":{}}],["effet",{"_index":1042,"title":{},"content":{"304":{}},"tags":{}}],["element",{"_index":163,"title":{},"content":{"39":{},"42":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"248":{},"249":{},"250":{},"251":{},"252":{},"253":{},"255":{},"256":{},"259":{},"260":{},"262":{},"264":{}},"tags":{}}],["ell",{"_index":582,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"316":{}},"tags":{}}],["emoji",{"_index":1857,"title":{},"content":{"357":{}},"tags":{}}],["employ",{"_index":892,"title":{},"content":{"299":{}},"tags":{}}],["empti",{"_index":192,"title":{},"content":{"56":{},"171":{}},"tags":{}}],["emptyfn",{"_index":1731,"title":{},"content":{"341":{},"344":{}},"tags":{}}],["en",{"_index":551,"title":{},"content":{"236":{},"237":{},"238":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"296":{},"299":{},"300":{},"301":{},"302":{},"304":{},"306":{},"309":{},"310":{},"316":{},"317":{},"319":{},"320":{},"323":{},"324":{},"325":{},"329":{},"331":{},"334":{},"335":{},"341":{},"343":{},"344":{},"346":{},"348":{},"351":{},"353":{},"355":{},"356":{},"357":{},"360":{}},"tags":{}}],["enabl",{"_index":227,"title":{},"content":{"122":{},"123":{},"128":{},"133":{},"134":{},"144":{},"145":{},"146":{}},"tags":{}}],["encor",{"_index":1775,"title":{},"content":{"345":{}},"tags":{}}],["end",{"_index":744,"title":{},"content":{"292":{},"293":{},"294":{},"299":{}},"tags":{}}],["endroit",{"_index":1838,"title":{},"content":{"356":{}},"tags":{}}],["enfant",{"_index":718,"title":{},"content":{"291":{},"294":{},"299":{},"300":{},"305":{},"325":{},"342":{}},"tags":{}}],["enfin",{"_index":1485,"title":{},"content":{"317":{}},"tags":{}}],["eno",{"_index":1868,"title":{},"content":{"359":{}},"tags":{}}],["enocorevers",{"_index":382,"title":{"95":{}},"content":{"95":{},"304":{},"309":{},"319":{},"328":{}},"tags":{}}],["enquêt",{"_index":1160,"title":{},"content":{"296":{}},"tags":{}}],["enquêteur",{"_index":1267,"title":{},"content":{"309":{}},"tags":{}}],["enregistr",{"_index":1447,"title":{},"content":{"320":{},"344":{}},"tags":{}}],["enregistré",{"_index":1317,"title":{},"content":{"316":{},"354":{}},"tags":{}}],["ensuit",{"_index":1673,"title":{},"content":{"335":{},"360":{}},"tags":{}}],["entier",{"_index":1862,"title":{},"content":{"358":{}},"tags":{}}],["entour",{"_index":550,"title":{},"content":{"236":{},"237":{},"238":{},"301":{},"323":{},"339":{}},"tags":{}}],["entr",{"_index":533,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"297":{},"299":{},"301":{},"304":{},"309":{},"328":{},"343":{},"345":{},"346":{}},"tags":{}}],["entri",{"_index":72,"title":{},"content":{"14":{},"39":{}},"tags":{}}],["entrypoint",{"_index":80,"title":{},"content":{"14":{},"55":{}},"tags":{}}],["entré",{"_index":680,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"302":{},"348":{}},"tags":{}}],["er",{"_index":1392,"title":{},"content":{"319":{}},"tags":{}}],["err",{"_index":112,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["erreur",{"_index":713,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"323":{},"333":{},"334":{},"335":{}},"tags":{}}],["error",{"_index":27,"title":{"154":{}},"content":{"2":{},"6":{},"12":{},"19":{},"26":{},"52":{},"87":{},"153":{},"154":{},"166":{},"253":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"309":{},"319":{},"323":{},"327":{},"328":{},"334":{},"335":{}},"tags":{}}],["error.capturestacktrac",{"_index":135,"title":{},"content":{"8":{}},"tags":{}}],["error.caus",{"_index":98,"title":{},"content":{"6":{}},"tags":{}}],["error.constructor",{"_index":89,"title":{},"content":{"5":{}},"tags":{}}],["error.messag",{"_index":102,"title":{},"content":{"6":{}},"tags":{}}],["error.nam",{"_index":105,"title":{},"content":{"6":{}},"tags":{}}],["error.preparestacktrac",{"_index":121,"title":{},"content":{"6":{}},"tags":{}}],["error.stack",{"_index":108,"title":{},"content":{"6":{}},"tags":{}}],["error.stacktracelimit",{"_index":124,"title":{},"content":{"6":{}},"tags":{}}],["errormessag",{"_index":219,"title":{"89":{}},"content":{"89":{},"301":{},"304":{},"309":{},"327":{},"328":{},"334":{}},"tags":{}}],["errors={errors.currenterror",{"_index":781,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["errors?.currenterror",{"_index":767,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["est",{"_index":593,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"293":{},"294":{},"298":{},"299":{},"300":{},"304":{},"311":{},"312":{},"314":{},"316":{},"317":{},"318":{},"321":{},"322":{},"323":{},"325":{},"329":{},"330":{},"331":{},"334":{},"335":{},"340":{},"342":{},"343":{},"346":{},"347":{},"348":{},"349":{},"350":{},"351":{},"352":{},"353":{},"354":{},"356":{},"357":{},"359":{}},"tags":{}}],["et",{"_index":535,"title":{"299":{}},"content":{"236":{},"237":{},"238":{},"283":{},"284":{},"285":{},"286":{},"295":{},"299":{},"300":{},"301":{},"304":{},"307":{},"309":{},"316":{},"317":{},"320":{},"323":{},"328":{},"329":{},"330":{},"333":{},"334":{},"336":{},"341":{},"347":{},"348":{},"349":{},"352":{},"355":{},"356":{},"357":{},"359":{},"360":{}},"tags":{}}],["etc",{"_index":52,"title":{},"content":{"12":{},"108":{},"337":{}},"tags":{}}],["event",{"_index":294,"title":{},"content":{"140":{}},"tags":{}}],["ex",{"_index":799,"title":{},"content":{"293":{},"316":{},"331":{}},"tags":{}}],["exampl",{"_index":401,"title":{},"content":{"156":{},"307":{},"309":{},"312":{},"361":{}},"tags":{}}],["executeexpress",{"_index":1814,"title":{},"content":{"352":{}},"tags":{}}],["exempl",{"_index":504,"title":{"361":{}},"content":{"232":{},"233":{},"234":{},"235":{},"287":{},"288":{},"289":{},"290":{},"291":{},"296":{},"302":{},"316":{},"317":{},"324":{},"335":{},"340":{},"343":{},"346":{},"347":{},"349":{},"356":{}},"tags":{}}],["expens",{"_index":1491,"title":{},"content":{"317":{}},"tags":{}}],["explor",{"_index":641,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"350":{}},"tags":{}}],["export",{"_index":750,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"326":{},"327":{},"328":{},"334":{},"361":{}},"tags":{}}],["express",{"_index":86,"title":{},"content":{"5":{},"6":{},"18":{},"19":{},"25":{},"26":{},"51":{},"52":{},"293":{},"299":{},"302":{},"304":{},"305":{},"313":{},"315":{},"317":{},"319":{},"327":{},"334":{},"352":{},"356":{},"358":{}},"tags":{}}],["extend",{"_index":81,"title":{"2":{},"3":{},"16":{},"23":{},"49":{}},"content":{"76":{},"79":{}},"tags":{}}],["extern",{"_index":1577,"title":{},"content":{"328":{}},"tags":{}}],["extrait",{"_index":1807,"title":{},"content":{"352":{}},"tags":{}}],["exécuté",{"_index":1729,"title":{},"content":{"341":{},"344":{},"357":{}},"tags":{}}],["fabric",{"_index":1375,"title":{},"content":{"319":{}},"tags":{}}],["fair",{"_index":1170,"title":{},"content":{"296":{},"358":{}},"tags":{}}],["fait",{"_index":683,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"309":{},"344":{},"348":{},"355":{}},"tags":{}}],["fals",{"_index":231,"title":{},"content":{"122":{},"123":{},"126":{},"133":{},"134":{},"144":{},"145":{},"146":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"291":{},"292":{},"293":{},"299":{},"301":{},"304":{},"305":{},"308":{},"309":{},"310":{},"311":{},"313":{},"315":{},"316":{},"317":{},"319":{},"327":{},"328":{},"341":{},"342":{},"343":{},"344":{},"345":{},"346":{}},"tags":{}}],["famil",{"_index":887,"title":{},"content":{"299":{}},"tags":{}}],["famili",{"_index":889,"title":{},"content":{"299":{}},"tags":{}}],["fanni",{"_index":972,"title":{},"content":{"305":{}},"tags":{}}],["faudra",{"_index":1469,"title":{},"content":{"322":{},"357":{}},"tags":{}}],["faut",{"_index":1439,"title":{},"content":{"320":{},"323":{},"360":{}},"tags":{}}],["façon",{"_index":1622,"title":{},"content":{"323":{}},"tags":{}}],["featur",{"_index":246,"title":{"128":{}},"content":{"128":{},"341":{}},"tags":{}}],["femm",{"_index":963,"title":{},"content":{"305":{}},"tags":{}}],["fetch",{"_index":254,"title":{},"content":{"129":{},"152":{}},"tags":{}}],["fetch(`https://insee.fr/referentiel/${name}.json`).then((r",{"_index":1444,"title":{},"content":{"320":{}},"tags":{}}],["feuill",{"_index":1617,"title":{},"content":{"323":{}},"tags":{}}],["fichier",{"_index":626,"title":{},"content":{"266":{},"267":{},"268":{},"269":{},"302":{},"320":{},"360":{}},"tags":{}}],["field",{"_index":76,"title":{},"content":{"14":{},"39":{},"319":{},"320":{}},"tags":{}}],["fieldset",{"_index":348,"title":{"197":{}},"content":{"197":{}},"tags":{}}],["fil",{"_index":828,"title":{},"content":{"298":{},"299":{},"300":{},"343":{},"346":{}},"tags":{}}],["fill",{"_index":191,"title":{},"content":{"56":{},"299":{}},"tags":{}}],["fillcompon",{"_index":1830,"title":{},"content":{"355":{}},"tags":{}}],["filter",{"_index":241,"title":{},"content":{"126":{}},"tags":{}}],["filter_result_libelledut",{"_index":1556,"title":{},"content":{"327":{}},"tags":{}}],["filter_result_percentage_expens",{"_index":1533,"title":{},"content":{"317":{}},"tags":{}}],["filter_result_tableaucla",{"_index":1557,"title":{},"content":{"327":{}},"tags":{}}],["filter_result_testcod",{"_index":1056,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_testdatea",{"_index":1057,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_testdateb",{"_index":1058,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_testdatec",{"_index":1059,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_testsurboo",{"_index":1054,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_testtext",{"_index":1055,"title":{},"content":{"304":{}},"tags":{}}],["filter_result_variable_b",{"_index":1427,"title":{},"content":{"319":{}},"tags":{}}],["filter_result_variable_p",{"_index":1426,"title":{},"content":{"319":{}},"tags":{}}],["filter_result_variableco",{"_index":1423,"title":{},"content":{"319":{}},"tags":{}}],["filter_result_variablena",{"_index":1425,"title":{},"content":{"319":{}},"tags":{}}],["filter_result_variablepa",{"_index":1424,"title":{},"content":{"319":{}},"tags":{}}],["filterdescript",{"_index":462,"title":{"238":{},"248":{},"295":{}},"content":{"236":{},"237":{},"238":{},"248":{},"295":{}},"tags":{}}],["filtr",{"_index":558,"title":{},"content":{"236":{},"237":{},"238":{},"295":{},"341":{}},"tags":{}}],["fin",{"_index":995,"title":{},"content":{"306":{}},"tags":{}}],["finalis",{"_index":1760,"title":{},"content":{"343":{},"346":{}},"tags":{}}],["first",{"_index":78,"title":{},"content":{"14":{},"55":{},"162":{}},"tags":{}}],["first_value(prenom",{"_index":975,"title":{},"content":{"305":{}},"tags":{}}],["flex",{"_index":770,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["florida",{"_index":1301,"title":{},"content":{"313":{}},"tags":{}}],["flow",{"_index":1702,"title":{},"content":{"332":{}},"tags":{}}],["focu",{"_index":1631,"title":{},"content":{"323":{}},"tags":{}}],["focus",{"_index":1020,"title":{},"content":{"302":{}},"tags":{}}],["foi",{"_index":503,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"291":{},"357":{}},"tags":{}}],["fonction",{"_index":613,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"296":{},"309":{},"310":{},"323":{},"333":{},"335":{},"337":{},"341":{},"344":{},"352":{},"353":{},"355":{}},"tags":{}}],["fonctionn",{"_index":508,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"287":{},"288":{},"289":{},"290":{},"294":{},"306":{},"311":{},"339":{},"341":{},"350":{}},"tags":{}}],["fonctionnalité",{"_index":1877,"title":{},"content":{"360":{}},"tags":{}}],["fool",{"_index":1308,"title":{},"content":{"313":{}},"tags":{}}],["forc",{"_index":201,"title":{"64":{}},"content":{"64":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"327":{},"328":{},"361":{}},"tags":{}}],["forcenext",{"_index":761,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["forcément",{"_index":1269,"title":{},"content":{"309":{}},"tags":{}}],["form",{"_index":229,"title":{},"content":{"122":{},"283":{},"284":{},"285":{},"286":{},"300":{},"302":{},"317":{},"333":{},"353":{}},"tags":{}}],["format",{"_index":116,"title":{"300":{}},"content":{"6":{},"19":{},"26":{},"52":{},"304":{},"309":{},"316":{},"320":{},"328":{},"331":{},"334":{},"335":{},"343":{},"346":{},"357":{},"359":{}},"tags":{}}],["formatborn",{"_index":1111,"title":{},"content":{"304":{},"309":{}},"tags":{}}],["formrender",{"_index":1040,"title":{},"content":{"303":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"326":{},"327":{},"328":{},"361":{}},"tags":{}}],["formrendererwithnavig",{"_index":751,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["formulair",{"_index":569,"title":{"323":{}},"content":{"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"283":{},"284":{},"285":{},"286":{},"295":{},"302":{},"323":{},"329":{},"330":{},"331":{},"340":{},"343":{},"346":{},"353":{},"354":{},"356":{}},"tags":{}}],["fourni",{"_index":1625,"title":{},"content":{"323":{}},"tags":{}}],["fournit",{"_index":701,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"329":{},"333":{},"335":{},"357":{}},"tags":{}}],["fr",{"_index":1734,"title":{},"content":{"341":{},"344":{},"347":{}},"tags":{}}],["français",{"_index":1219,"title":{},"content":{"310":{}},"tags":{}}],["frein",{"_index":1265,"title":{},"content":{"309":{}},"tags":{}}],["french",{"_index":1347,"title":{},"content":{"319":{}},"tags":{}}],["frozen",{"_index":1504,"title":{},"content":{"317":{}},"tags":{}}],["frère",{"_index":872,"title":{},"content":{"299":{}},"tags":{}}],["function",{"_index":12,"title":{"14":{},"39":{},"44":{},"55":{}},"content":{"8":{},"12":{},"14":{},"21":{},"28":{},"54":{},"68":{},"129":{},"138":{},"139":{},"156":{},"174":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"323":{},"326":{},"327":{},"328":{},"361":{}},"tags":{}}],["functioncomponent(__namedparamet",{"_index":162,"title":{},"content":{"39":{}},"tags":{}}],["lunaticcomponenttyp",{"_index":211,"title":{},"content":{"79":{}},"tags":{}}],["lunaticcontrol",{"_index":22,"title":{"81":{}},"content":{"12":{},"81":{}},"tags":{}}],["lunaticdata",{"_index":23,"title":{"83":{}},"content":{"12":{},"83":{},"155":{},"157":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"326":{},"327":{},"328":{},"361":{}},"tags":{}}],["lunaticerror",{"_index":26,"title":{"87":{}},"content":{"12":{},"87":{},"152":{},"153":{},"166":{}},"tags":{}}],["lunaticexpress",{"_index":37,"title":{"85":{}},"content":{"12":{},"85":{}},"tags":{}}],["lunaticextraprop",{"_index":7,"title":{"59":{}},"content":{"11":{},"241":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"249":{},"250":{},"251":{},"252":{},"253":{},"254":{},"255":{},"256":{},"257":{},"258":{},"259":{},"260":{},"261":{},"262":{},"263":{},"264":{}},"tags":{}}],["lunaticlogg",{"_index":264,"title":{},"content":{"132":{}},"tags":{}}],["lunaticmodelvers",{"_index":384,"title":{"99":{}},"content":{"99":{},"304":{},"309":{},"319":{},"328":{}},"tags":{}}],["lunaticopt",{"_index":38,"title":{"120":{}},"content":{"12":{},"56":{},"120":{}},"tags":{}}],["lunaticpag",{"_index":43,"title":{"108":{}},"content":{"12":{},"108":{},"168":{},"337":{}},"tags":{}}],["lunaticslotcompon",{"_index":53,"title":{"176":{}},"content":{"12":{},"176":{},"324":{}},"tags":{}}],["lunaticsourc",{"_index":56,"title":{"91":{}},"content":{"12":{},"56":{},"91":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"326":{},"327":{},"328":{},"361":{}},"tags":{}}],["lunaticst",{"_index":59,"title":{"150":{}},"content":{"12":{},"55":{},"57":{},"150":{},"283":{},"284":{},"285":{},"286":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"336":{}},"tags":{}}],["lunaticstate['pagetag",{"_index":749,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["lunaticstatevari",{"_index":60,"title":{"148":{}},"content":{"12":{},"148":{}},"tags":{}}],["lunaticvalu",{"_index":61,"title":{"229":{}},"content":{"12":{},"229":{}},"tags":{}}],["lunaticvari",{"_index":62,"title":{"227":{}},"content":{"12":{},"227":{}},"tags":{}}],["lunaticvariable[\"variabletyp",{"_index":449,"title":{},"content":{"148":{}},"tags":{}}],["lunaticvariablesstoreevents[\"chang",{"_index":295,"title":{},"content":{"140":{}},"tags":{}}],["lunaticvariablestor",{"_index":1806,"title":{},"content":{"352":{}},"tags":{}}],["luwh4tva",{"_index":1572,"title":{},"content":{"327":{}},"tags":{}}],["luwh7btb",{"_index":1569,"title":{},"content":{"327":{}},"tags":{}}],["luwhalhn",{"_index":1573,"title":{},"content":{"327":{}},"tags":{}}],["luwhcilc",{"_index":1575,"title":{},"content":{"327":{}},"tags":{}}],["luwhcrpg",{"_index":1565,"title":{},"content":{"327":{}},"tags":{}}],["luwhd3mk",{"_index":1574,"title":{},"content":{"327":{}},"tags":{}}],["luwhlejc",{"_index":1571,"title":{},"content":{"327":{}},"tags":{}}],["luwhmbp1",{"_index":1570,"title":{},"content":{"327":{}},"tags":{}}],["luwhnbxk",{"_index":1562,"title":{},"content":{"327":{}},"tags":{}}],["luwhnkl",{"_index":1567,"title":{},"content":{"327":{}},"tags":{}}],["lvp6l8rw",{"_index":1582,"title":{},"content":{"328":{}},"tags":{}}],["lvp74mc4",{"_index":1587,"title":{},"content":{"328":{}},"tags":{}}],["lvp75ug8",{"_index":1584,"title":{},"content":{"328":{}},"tags":{}}],["lvp7i2ub",{"_index":1586,"title":{},"content":{"328":{}},"tags":{}}],["lvp7mld9",{"_index":1583,"title":{},"content":{"328":{}},"tags":{}}],["lément",{"_index":560,"title":{},"content":{"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"283":{},"284":{},"285":{},"286":{},"295":{},"305":{},"306":{},"321":{},"323":{},"329":{},"342":{}},"tags":{}}],["made",{"_index":18,"title":{},"content":{"12":{},"68":{},"87":{}},"tags":{}}],["mai",{"_index":512,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"287":{},"288":{},"289":{},"290":{},"294":{},"296":{},"310":{},"316":{},"320":{},"324":{},"325":{},"348":{}},"tags":{}}],["main",{"_index":1298,"title":{},"content":{"313":{}},"tags":{}}],["maison",{"_index":893,"title":{},"content":{"299":{}},"tags":{}}],["majeur",{"_index":952,"title":{},"content":{"305":{}},"tags":{}}],["majorit",{"_index":1225,"title":{},"content":{"310":{}},"tags":{}}],["make",{"_index":439,"title":{},"content":{"170":{}},"tags":{}}],["maman",{"_index":910,"title":{},"content":{"299":{},"300":{}},"tags":{}}],["manag",{"_index":265,"title":{"133":{},"345":{}},"content":{"133":{},"341":{},"345":{}},"tags":{}}],["mandatori",{"_index":938,"title":{},"content":{"301":{},"302":{},"304":{},"305":{},"308":{},"309":{},"311":{},"313":{},"315":{},"316":{},"317":{},"319":{},"327":{},"328":{}},"tags":{}}],["manièr",{"_index":830,"title":{},"content":{"298":{},"299":{},"300":{},"330":{}},"tags":{}}],["manqu",{"_index":1134,"title":{},"content":{"304":{}},"tags":{}}],["manuel",{"_index":754,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"323":{}},"tags":{}}],["mar",{"_index":1250,"title":{},"content":{"310":{}},"tags":{}}],["march",{"_index":1162,"title":{},"content":{"296":{}},"tags":{}}],["margintop",{"_index":768,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["markdown",{"_index":249,"title":{"357":{}},"content":{"128":{},"341":{},"357":{}},"tags":{}}],["markdownlink",{"_index":353,"title":{"202":{}},"content":{"202":{}},"tags":{}}],["markup",{"_index":465,"title":{},"content":{"251":{}},"tags":{}}],["mart",{"_index":1494,"title":{},"content":{"317":{}},"tags":{}}],["massachusett",{"_index":1305,"title":{},"content":{"313":{}},"tags":{}}],["matrimonial",{"_index":1206,"title":{},"content":{"310":{}},"tags":{}}],["max",{"_index":728,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"309":{},"314":{},"317":{},"327":{},"328":{}},"tags":{}}],["maxim",{"_index":729,"title":{},"content":{"292":{},"294":{}},"tags":{}}],["maximal",{"_index":1260,"title":{},"content":{"309":{},"312":{},"314":{},"318":{}},"tags":{}}],["maximum",{"_index":1593,"title":{},"content":{"328":{}},"tags":{}}],["maxlength",{"_index":742,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"312":{},"318":{},"319":{},"327":{},"328":{},"361":{}},"tags":{}}],["maxpag",{"_index":318,"title":{"100":{},"113":{}},"content":{"100":{},"113":{},"164":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"307":{},"309":{},"311":{},"313":{},"316":{},"319":{},"327":{},"328":{},"329":{},"331":{}},"tags":{}}],["md",{"_index":247,"title":{},"content":{"128":{},"341":{}},"tags":{}}],["meat",{"_index":1514,"title":{},"content":{"317":{}},"tags":{}}],["meloto",{"_index":1390,"title":{},"content":{"319":{}},"tags":{}}],["memoiz",{"_index":291,"title":{},"content":{"139":{}},"tags":{}}],["menu",{"_index":586,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"313":{},"319":{}},"tags":{}}],["merci",{"_index":971,"title":{},"content":{"305":{}},"tags":{}}],["messag",{"_index":35,"title":{},"content":{"5":{},"6":{},"12":{},"19":{},"26":{},"52":{},"87":{},"301":{},"304":{},"334":{}},"tags":{}}],["met",{"_index":1074,"title":{},"content":{"304":{}},"tags":{}}],["method",{"_index":126,"title":{"7":{},"20":{},"27":{},"53":{}},"content":{"338":{}},"tags":{}}],["mettr",{"_index":1017,"title":{},"content":{"302":{},"343":{},"346":{}},"tags":{}}],["mieux",{"_index":1699,"title":{},"content":{"332":{}},"tags":{}}],["min",{"_index":726,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"309":{},"314":{},"317":{},"319":{},"327":{},"328":{}},"tags":{}}],["minim",{"_index":727,"title":{},"content":{"292":{},"294":{},"324":{}},"tags":{}}],["minimal",{"_index":1259,"title":{},"content":{"309":{},"314":{}},"tags":{}}],["minut",{"_index":1314,"title":{},"content":{"316":{}},"tags":{}}],["miss",{"_index":278,"title":{"134":{},"290":{},"348":{}},"content":{"134":{},"135":{},"138":{},"144":{},"287":{},"288":{},"289":{},"290":{},"304":{},"309":{},"319":{},"341":{},"344":{},"348":{}},"tags":{}}],["missingblock",{"_index":385,"title":{"101":{}},"content":{"101":{},"287":{},"288":{},"289":{},"290":{},"348":{}},"tags":{}}],["missingrespons",{"_index":1214,"title":{},"content":{"310":{},"317":{},"344":{}},"tags":{}}],["missingshortcut",{"_index":280,"title":{"135":{}},"content":{"135":{},"341":{},"344":{}},"tags":{}}],["missingshortcut.dontknow",{"_index":284,"title":{"136":{}},"content":{},"tags":{}}],["missingshortcut.refus",{"_index":286,"title":{"137":{}},"content":{},"tags":{}}],["missingstrategi",{"_index":288,"title":{"138":{}},"content":{"138":{},"341":{},"344":{}},"tags":{}}],["mm",{"_index":1106,"title":{},"content":{"304":{},"309":{}},"tags":{}}],["mm\\\")cast(\\\"2030",{"_index":1130,"title":{},"content":{"304":{}},"tags":{}}],["modal",{"_index":433,"title":{},"content":{"166":{}},"tags":{}}],["modalcontrol",{"_index":77,"title":{"44":{}},"content":{"14":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["modalcontrols(prop",{"_index":172,"title":{},"content":{"44":{}},"tags":{}}],["modalerror",{"_index":432,"title":{"166":{}},"content":{"166":{}},"tags":{}}],["modalité",{"_index":1737,"title":{},"content":{"341":{}},"tags":{}}],["mode",{"_index":267,"title":{"344":{},"345":{}},"content":{"133":{},"341":{},"343":{},"344":{},"345":{},"346":{},"357":{}},"tags":{}}],["model",{"_index":183,"title":{"102":{}},"content":{"56":{},"102":{},"304":{},"309":{},"319":{},"359":{},"360":{}},"tags":{}}],["modifi",{"_index":93,"title":{},"content":{"6":{},"19":{},"26":{},"52":{},"305":{},"354":{}},"tags":{}}],["modifié",{"_index":1753,"title":{},"content":{"343":{},"346":{},"353":{}},"tags":{}}],["modèl",{"_index":1709,"title":{},"content":{"340":{}},"tags":{}}],["moi",{"_index":1211,"title":{},"content":{"310":{},"316":{}},"tags":{}}],["moin",{"_index":1783,"title":{},"content":{"338":{}},"tags":{}}],["mois1",{"_index":1236,"title":{},"content":{"310":{}},"tags":{}}],["mois10",{"_index":1245,"title":{},"content":{"310":{}},"tags":{}}],["mois11",{"_index":1246,"title":{},"content":{"310":{}},"tags":{}}],["mois12",{"_index":1247,"title":{},"content":{"310":{}},"tags":{}}],["mois2",{"_index":1237,"title":{},"content":{"310":{}},"tags":{}}],["mois3",{"_index":1238,"title":{},"content":{"310":{}},"tags":{}}],["mois4",{"_index":1239,"title":{},"content":{"310":{}},"tags":{}}],["mois5",{"_index":1240,"title":{},"content":{"310":{}},"tags":{}}],["mois6",{"_index":1241,"title":{},"content":{"310":{}},"tags":{}}],["mois7",{"_index":1242,"title":{},"content":{"310":{}},"tags":{}}],["mois8",{"_index":1243,"title":{},"content":{"310":{}},"tags":{}}],["mois9",{"_index":1244,"title":{},"content":{"310":{}},"tags":{}}],["moji",{"_index":1856,"title":{},"content":{"357":{}},"tags":{}}],["moment",{"_index":1778,"title":{},"content":{"345":{}},"tags":{}}],["mon",{"_index":1546,"title":{},"content":{"326":{}},"tags":{}}],["mont",{"_index":1802,"title":{},"content":{"352":{}},"tags":{}}],["multilign",{"_index":578,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"318":{}},"tags":{}}],["multipl",{"_index":270,"title":{},"content":{"133":{}},"tags":{}}],["mycustominput",{"_index":408,"title":{},"content":{"156":{},"324":{}},"tags":{}}],["mycustominputnumb",{"_index":409,"title":{},"content":{"156":{},"324":{}},"tags":{}}],["mère",{"_index":869,"title":{},"content":{"299":{}},"tags":{}}],["mémoï",{"_index":1715,"title":{},"content":{"341":{}},"tags":{}}],["méthode",{"_index":702,"title":{"338":{}},"content":{"283":{},"284":{},"285":{},"286":{},"304":{},"323":{},"329":{},"336":{},"341":{},"343":{},"346":{},"353":{},"355":{}},"tags":{}}],["même",{"_index":1693,"title":{},"content":{"331":{},"343":{},"345":{},"346":{},"356":{}},"tags":{}}],["n'a",{"_index":561,"title":{},"content":{"236":{},"237":{},"238":{},"295":{},"296":{},"305":{},"345":{}},"tags":{}}],["n'affich",{"_index":540,"title":{},"content":{"236":{},"237":{},"238":{},"307":{}},"tags":{}}],["n'est",{"_index":597,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"302":{},"305":{},"306":{},"309":{},"311":{},"323":{},"329":{},"335":{},"345":{},"347":{}},"tags":{}}],["n'import",{"_index":525,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"305":{}},"tags":{}}],["n'ont",{"_index":538,"title":{},"content":{"236":{},"237":{},"238":{},"304":{},"307":{}},"tags":{}}],["n'était",{"_index":1268,"title":{},"content":{"309":{}},"tags":{}}],["naissanc",{"_index":1220,"title":{},"content":{"310":{}},"tags":{}}],["name",{"_index":104,"title":{},"content":{"6":{},"19":{},"26":{},"52":{},"129":{},"292":{},"293":{},"294":{},"299":{},"301":{},"302":{},"303":{},"304":{},"305":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"321":{},"322":{},"327":{},"328":{},"341":{},"344":{},"353":{},"361":{}},"tags":{}}],["natif",{"_index":1261,"title":{},"content":{"309":{}},"tags":{}}],["natio1n1",{"_index":1222,"title":{},"content":{"310":{}},"tags":{}}],["natio1n2",{"_index":1226,"title":{},"content":{"310":{}},"tags":{}}],["natio1n3",{"_index":1229,"title":{},"content":{"310":{}},"tags":{}}],["natio1n4",{"_index":1233,"title":{},"content":{"310":{}},"tags":{}}],["nationalit",{"_index":1232,"title":{},"content":{"310":{},"319":{}},"tags":{}}],["naturalis",{"_index":1224,"title":{},"content":{"310":{}},"tags":{}}],["navig",{"_index":46,"title":{"285":{},"306":{},"329":{},"332":{},"353":{}},"content":{"12":{},"108":{},"158":{},"159":{},"160":{},"283":{},"284":{},"285":{},"286":{},"293":{},"306":{},"323":{},"329":{},"331":{},"332":{},"338":{},"352":{},"353":{}},"tags":{}}],["navigateur",{"_index":1264,"title":{},"content":{"309":{}},"tags":{}}],["navigu",{"_index":1001,"title":{},"content":{"302":{},"338":{},"360":{}},"tags":{}}],["nb",{"_index":1340,"title":{},"content":{"314":{},"349":{}},"tags":{}}],["nb_hab",{"_index":943,"title":{},"content":{"305":{}},"tags":{}}],["nbiter",{"_index":319,"title":{"114":{}},"content":{"114":{},"329":{},"331":{}},"tags":{}}],["nbre",{"_index":1697,"title":{},"content":{"331":{}},"tags":{}}],["nbsubpag",{"_index":321,"title":{"115":{}},"content":{"115":{},"331":{}},"tags":{}}],["ne",{"_index":570,"title":{"344":{}},"content":{"236":{},"237":{},"238":{},"287":{},"288":{},"289":{},"290":{},"295":{},"301":{},"304":{},"306":{},"309":{},"322":{},"323":{},"327":{},"341":{},"344":{},"347":{},"348":{},"349":{},"356":{}},"tags":{}}],["necessair",{"_index":1724,"title":{},"content":{"341":{}},"tags":{}}],["necessari",{"_index":437,"title":{},"content":{"170":{}},"tags":{}}],["nettoy",{"_index":657,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"347":{},"348":{}},"tags":{}}],["nevada",{"_index":1306,"title":{},"content":{"313":{}},"tags":{}}],["neveu",{"_index":885,"title":{},"content":{"299":{}},"tags":{}}],["new",{"_index":83,"title":{"5":{},"18":{},"25":{},"51":{}},"content":{"5":{},"18":{},"25":{},"51":{}},"tags":{}}],["next",{"_index":413,"title":{},"content":{"158":{}},"tags":{}}],["nhab",{"_index":944,"title":{},"content":{"305":{}},"tags":{}}],["niveau",{"_index":549,"title":{},"content":{"236":{},"237":{},"238":{},"302":{},"307":{},"312":{},"314":{},"318":{},"334":{}},"tags":{}}],["niveaux",{"_index":1823,"title":{},"content":{"353":{}},"tags":{}}],["nièc",{"_index":884,"title":{},"content":{"299":{}},"tags":{}}],["node_modules/@types/node/globals.d.ts:136",{"_index":136,"title":{},"content":{"8":{},"21":{},"28":{},"54":{}},"tags":{}}],["node_modules/@types/node/globals.d.ts:143",{"_index":122,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["node_modules/@types/node/globals.d.ts:145",{"_index":125,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["nom",{"_index":1037,"title":{},"content":{"303":{},"312":{},"320":{},"328":{},"352":{},"353":{},"361":{}},"tags":{}}],["nombr",{"_index":723,"title":{},"content":{"292":{},"293":{},"294":{},"297":{},"301":{},"305":{},"314":{},"328":{},"331":{},"337":{}},"tags":{}}],["nomenclatur",{"_index":255,"title":{"321":{}},"content":{"129":{},"320":{},"321":{},"341":{}},"tags":{}}],["non",{"_index":510,"title":{"292":{}},"content":{"232":{},"233":{},"234":{},"235":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"291":{},"292":{},"294":{},"304":{},"305":{},"308":{},"311":{},"315":{},"334":{},"341":{},"356":{}},"tags":{}}],["north",{"_index":1299,"title":{},"content":{"313":{}},"tags":{}}],["not(cast(nvl(qnum,0),integ",{"_index":1195,"title":{},"content":{"301":{}},"tags":{}}],["not(cast(q1",{"_index":1282,"title":{},"content":{"309":{}},"tags":{}}],["not(cast(testdatea,date,\\\"yyyi",{"_index":1114,"title":{},"content":{"304":{}},"tags":{}}],["not(isnull(knowrec",{"_index":977,"title":{},"content":{"305":{}},"tags":{}}],["not(isnull(sex",{"_index":978,"title":{},"content":{"305":{}},"tags":{}}],["not(isnull(someth",{"_index":979,"title":{},"content":{"305":{}},"tags":{}}],["not(isnull(tableaucla11",{"_index":1566,"title":{},"content":{"327":{}},"tags":{}}],["not(isnull(testcod",{"_index":1096,"title":{},"content":{"304":{}},"tags":{}}],["not(isnull(testtext",{"_index":1089,"title":{},"content":{"301":{},"304":{}},"tags":{}}],["not(not(isnull(premiertab3",{"_index":1588,"title":{},"content":{"328":{}},"tags":{}}],["not(not(isnull(premiertab4",{"_index":1597,"title":{},"content":{"328":{}},"tags":{}}],["not(not(isnull(testdatea",{"_index":1103,"title":{},"content":{"304":{}},"tags":{}}],["not(not(isnull(testdateb",{"_index":1128,"title":{},"content":{"304":{}},"tags":{}}],["not(not(isnull(testdatec",{"_index":1136,"title":{},"content":{"304":{}},"tags":{}}],["not(nvl(testcod",{"_index":1093,"title":{},"content":{"304":{}},"tags":{}}],["not(nvl(testsurboo,fals",{"_index":1071,"title":{},"content":{"304":{}},"tags":{}}],["not(nvl(testtext",{"_index":1082,"title":{},"content":{"301":{},"304":{}},"tags":{}}],["not(testdateb",{"_index":1133,"title":{},"content":{"304":{}},"tags":{}}],["not(testdatec",{"_index":1142,"title":{},"content":{"304":{}},"tags":{}}],["not_in",{"_index":905,"title":{},"content":{"299":{}},"tags":{}}],["notif",{"_index":354,"title":{"203":{}},"content":{"203":{}},"tags":{}}],["nou",{"_index":1748,"title":{},"content":{"342":{}},"tags":{}}],["nouveau",{"_index":1820,"title":{},"content":{"353":{}},"tags":{}}],["nouvel",{"_index":1821,"title":{},"content":{"353":{}},"tags":{}}],["novembr",{"_index":1257,"title":{},"content":{"310":{}},"tags":{}}],["npm",{"_index":1871,"title":{},"content":{"360":{}},"tags":{}}],["null",{"_index":174,"title":{},"content":{"44":{},"46":{},"243":{},"251":{},"255":{},"292":{},"293":{},"294":{},"299":{},"300":{},"301":{},"303":{},"304":{},"305":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"327":{},"361":{}},"tags":{}}],["number",{"_index":50,"title":{},"content":{"6":{},"12":{},"19":{},"26":{},"52":{},"108":{},"110":{},"112":{},"113":{},"114":{},"115":{},"116":{},"117":{},"118":{},"160":{},"174":{},"250":{},"314":{},"329":{},"334":{},"337":{},"341":{}},"tags":{}}],["numerot",{"_index":435,"title":{},"content":{"169":{}},"tags":{}}],["numériqu",{"_index":577,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"301":{},"304":{},"314":{}},"tags":{}}],["numéro",{"_index":793,"title":{},"content":{"293":{},"330":{}},"tags":{}}],["numérot",{"_index":1779,"title":{},"content":{"337":{}},"tags":{}}],["nvl(percentage_expenses11,0",{"_index":1534,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses21,0",{"_index":1535,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses31,0",{"_index":1536,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses41,0",{"_index":1537,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses51,0",{"_index":1538,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses61,0",{"_index":1539,"title":{},"content":{"317":{}},"tags":{}}],["nvl(percentage_expenses71,0",{"_index":1540,"title":{},"content":{"317":{}},"tags":{}}],["nécessair",{"_index":1332,"title":{},"content":{"312":{},"314":{},"318":{},"320":{}},"tags":{}}],["nécéssair",{"_index":1784,"title":{},"content":{"339":{}},"tags":{}}],["n’est",{"_index":1095,"title":{},"content":{"304":{}},"tags":{}}],["o",{"_index":1690,"title":{},"content":{"331":{},"342":{}},"tags":{}}],["object",{"_index":133,"title":{},"content":{"8":{},"21":{},"28":{},"54":{},"56":{},"69":{},"72":{},"83":{},"87":{},"91":{},"93":{},"101":{},"104":{},"108":{},"120":{},"124":{},"135":{},"148":{},"150":{},"152":{},"153":{},"154":{},"160":{},"172":{},"176":{},"191":{},"229":{},"239":{},"241":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"249":{},"250":{},"251":{},"252":{},"253":{},"254":{},"255":{},"256":{},"257":{},"258":{},"259":{},"260":{},"261":{},"262":{},"263":{},"264":{}},"tags":{}}],["objet",{"_index":690,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"302":{},"305":{},"329":{},"331":{},"336":{},"340":{},"341":{},"352":{}},"tags":{}}],["obligatoir",{"_index":1694,"title":{},"content":{"331":{}},"tags":{}}],["observ",{"_index":1788,"title":{},"content":{"347":{},"348":{},"349":{}},"tags":{}}],["octobr",{"_index":1256,"title":{},"content":{"310":{}},"tags":{}}],["offer",{"_index":164,"title":{},"content":{"39":{}},"tags":{}}],["offr",{"_index":1623,"title":{},"content":{"323":{},"343":{},"346":{}},"tags":{}}],["ohio",{"_index":1297,"title":{},"content":{"313":{}},"tags":{}}],["omitpremiertab3",{"_index":1596,"title":{},"content":{"328":{}},"tags":{}}],["round(premiertab4,0)<>premiertab4",{"_index":1600,"title":{},"content":{"328":{}},"tags":{}}],["roundabout",{"_index":359,"title":{"208":{},"234":{},"256":{},"305":{}},"content":{"208":{},"232":{},"233":{},"234":{},"235":{},"256":{},"305":{},"334":{}},"tags":{}}],["routerlink",{"_index":361,"title":{"209":{}},"content":{"209":{}},"tags":{}}],["row",{"_index":1664,"title":{},"content":{"334":{}},"tags":{}}],["rowspan",{"_index":1484,"title":{},"content":{"317":{}},"tags":{}}],["rule",{"_index":1344,"title":{},"content":{"319":{}},"tags":{}}],["règle",{"_index":707,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"320":{},"333":{}},"tags":{}}],["récupèr",{"_index":1764,"title":{},"content":{"343":{},"346":{}},"tags":{}}],["récupérat",{"_index":1436,"title":{"321":{}},"content":{"320":{},"345":{}},"tags":{}}],["récupérer",{"_index":712,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"321":{},"323":{},"333":{},"335":{},"338":{},"341":{}},"tags":{}}],["référenc",{"_index":1863,"title":{},"content":{"358":{}},"tags":{}}],["référentiel",{"_index":1442,"title":{},"content":{"320":{}},"tags":{}}],["régénérer",{"_index":1827,"title":{},"content":{"355":{}},"tags":{}}],["réinitialis",{"_index":1789,"title":{},"content":{"347":{}},"tags":{}}],["réintégrat",{"_index":1221,"title":{},"content":{"310":{}},"tags":{}}],["rélation",{"_index":915,"title":{},"content":{"300":{}},"tags":{}}],["répondr",{"_index":673,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"305":{},"344":{},"348":{}},"tags":{}}],["répons",{"_index":610,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"296":{},"310":{},"313":{},"315":{},"338":{},"341":{},"344":{}},"tags":{}}],["réutili",{"_index":618,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"325":{}},"tags":{}}],["s'il",{"_index":986,"title":{},"content":{"306":{},"340":{}},"tags":{}}],["s'utilis",{"_index":1545,"title":{},"content":{"325":{}},"tags":{}}],["sa",{"_index":868,"title":{},"content":{"296":{},"299":{},"322":{},"323":{},"347":{}},"tags":{}}],["sai",{"_index":1735,"title":{"344":{}},"content":{"341":{},"344":{}},"tags":{}}],["saisi",{"_index":1091,"title":{},"content":{"301":{},"304":{},"309":{},"316":{}},"tags":{}}],["saisir",{"_index":1122,"title":{},"content":{"304":{}},"tags":{}}],["sait",{"_index":1719,"title":{},"content":{"341":{},"344":{}},"tags":{}}],["salari",{"_index":894,"title":{},"content":{"299":{}},"tags":{}}],["same",{"_index":272,"title":{},"content":{"133":{},"155":{}},"tags":{}}],["san",{"_index":1846,"title":{},"content":{"356":{}},"tags":{}}],["sauter",{"_index":524,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"305":{}},"tags":{}}],["sauté",{"_index":667,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"347":{}},"tags":{}}],["sauvegard",{"_index":675,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"322":{},"341":{},"348":{},"352":{}},"tags":{}}],["sauvegardé",{"_index":913,"title":{},"content":{"300":{},"302":{}},"tags":{}}],["save",{"_index":300,"title":{},"content":{"143":{}},"tags":{}}],["savingtyp",{"_index":298,"title":{"143":{}},"content":{"143":{},"341":{}},"tags":{}}],["schema",{"_index":730,"title":{},"content":{"292":{},"293":{},"294":{},"301":{},"303":{},"304":{},"307":{},"310":{},"311":{},"314":{},"317":{},"319":{}},"tags":{}}],["schema.json",{"_index":731,"title":{},"content":{"292":{},"293":{},"294":{},"301":{},"303":{},"304":{},"307":{},"310":{},"311":{},"314":{},"317":{},"319":{}},"tags":{}}],["se",{"_index":519,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"287":{},"288":{},"289":{},"290":{},"302":{},"305":{},"306":{},"323":{},"330":{},"331":{},"342":{},"348":{},"353":{},"355":{},"356":{},"360":{}},"tags":{}}],["second",{"_index":548,"title":{},"content":{"236":{},"237":{},"238":{},"297":{},"307":{},"316":{}},"tags":{}}],["section",{"_index":1781,"title":{},"content":{"337":{},"338":{}},"tags":{}}],["see",{"_index":118,"title":{},"content":{"6":{},"19":{},"26":{},"52":{},"156":{}},"tags":{}}],["seen",{"_index":165,"title":{},"content":{"39":{}},"tags":{}}],["select",{"_index":399,"title":{},"content":{"156":{},"256":{}},"tags":{}}],["semblabl",{"_index":682,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"348":{}},"tags":{}}],["sen",{"_index":998,"title":{},"content":{"306":{}},"tags":{}}],["septembr",{"_index":1255,"title":{},"content":{"310":{}},"tags":{}}],["seq",{"_index":732,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"304":{},"305":{}},"tags":{}}],["sequenc",{"_index":362,"title":{"210":{},"236":{},"257":{},"307":{}},"content":{"103":{},"210":{},"236":{},"237":{},"238":{},"257":{},"292":{},"293":{},"294":{},"299":{},"304":{},"305":{},"307":{},"310":{},"319":{},"342":{}},"tags":{}}],["sera",{"_index":571,"title":{},"content":{"236":{},"237":{},"238":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"293":{},"295":{},"300":{},"302":{},"310":{},"316":{},"320":{},"344":{}},"tags":{}}],["seraient",{"_index":666,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"347":{}},"tags":{}}],["seront",{"_index":1746,"title":{},"content":{"342":{},"349":{}},"tags":{}}],["sert",{"_index":1448,"title":{},"content":{"320":{}},"tags":{}}],["servir",{"_index":1805,"title":{},"content":{"352":{}},"tags":{}}],["seterror",{"_index":755,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"335":{}},"tags":{}}],["seterrors(currenterror",{"_index":1675,"title":{},"content":{"335":{}},"tags":{}}],["seterrors(currentpageerror",{"_index":760,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["seterrors(undefin",{"_index":762,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{}},"tags":{}}],["seul",{"_index":983,"title":{"326":{}},"content":{"302":{},"306":{},"316":{},"325":{}},"tags":{}}],["seulement",{"_index":1331,"title":{},"content":{"312":{},"314":{},"318":{}},"tags":{}}],["sex",{"_index":961,"title":{},"content":{"305":{}},"tags":{}}],["shallowiter",{"_index":323,"title":{"117":{}},"content":{"117":{},"331":{}},"tags":{}}],["shapefrom",{"_index":906,"title":{},"content":{"299":{},"305":{}},"tags":{}}],["shortcut",{"_index":282,"title":{"144":{}},"content":{"135":{},"144":{},"341":{}},"tags":{}}],["si",{"_index":596,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"291":{},"296":{},"298":{},"299":{},"300":{},"301":{},"302":{},"304":{},"306":{},"311":{},"312":{},"314":{},"316":{},"318":{},"322":{},"324":{},"329":{},"335":{},"342":{},"347":{},"356":{}},"tags":{}}],["signatur",{"_index":379,"title":{"230":{}},"content":{"93":{},"101":{},"104":{},"153":{},"154":{}},"tags":{}}],["similair",{"_index":594,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"311":{}},"tags":{}}],["simpl",{"_index":576,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"312":{},"324":{},"334":{}},"tags":{}}],["simplifi",{"_index":703,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"329":{},"343":{},"346":{}},"tags":{}}],["simpson",{"_index":1293,"title":{},"content":{"313":{}},"tags":{}}],["situat",{"_index":1205,"title":{},"content":{"310":{}},"tags":{}}],["situmatri_miss",{"_index":1215,"title":{},"content":{"310":{}},"tags":{}}],["size",{"_index":810,"title":{},"content":{"293":{},"294":{},"305":{},"349":{}},"tags":{}}],["sizeforlinksvari",{"_index":908,"title":{},"content":{"299":{}},"tags":{}}],["slot",{"_index":1646,"title":{},"content":{"324":{}},"tags":{}}],["slots={customcompon",{"_index":410,"title":{},"content":{"156":{}},"tags":{}}],["slots={slot",{"_index":1647,"title":{},"content":{"324":{}},"tags":{}}],["snapshot",{"_index":1607,"title":{},"content":{"328":{}},"tags":{}}],["soeur",{"_index":871,"title":{},"content":{"299":{}},"tags":{}}],["soit",{"_index":1000,"title":{},"content":{"302":{}},"tags":{}}],["someth",{"_index":970,"title":{},"content":{"305":{},"318":{}},"tags":{}}],["somm",{"_index":1749,"title":{},"content":{"342":{}},"tags":{}}],["son",{"_index":866,"title":{},"content":{"299":{},"321":{},"351":{}},"tags":{}}],["sont",{"_index":624,"title":{},"content":{"266":{},"267":{},"268":{},"269":{},"299":{},"300":{},"302":{},"324":{},"334":{},"341":{},"353":{},"357":{},"358":{}},"tags":{}}],["soon",{"_index":422,"title":{},"content":{"161":{}},"tags":{}}],["sou",{"_index":709,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"293":{},"299":{},"300":{},"302":{},"317":{},"330":{},"331":{},"333":{},"337":{},"342":{},"353":{}},"tags":{}}],["souhait",{"_index":672,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"300":{},"304":{},"306":{},"312":{},"314":{},"318":{},"344":{},"348":{}},"tags":{}}],["sourc",{"_index":66,"title":{},"content":{"12":{},"56":{},"156":{},"227":{},"266":{},"267":{},"268":{},"269":{},"292":{},"293":{},"294":{},"299":{},"301":{},"302":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"326":{},"327":{},"328":{},"334":{},"340":{},"352":{},"361":{}},"tags":{}}],["special",{"_index":478,"title":{},"content":{"256":{}},"tags":{}}],["specif",{"_index":39,"title":{},"content":{"12":{},"56":{},"120":{},"160":{},"251":{}},"tags":{}}],["specifi",{"_index":1488,"title":{},"content":{"317":{}},"tags":{}}],["spécial",{"_index":842,"title":{"358":{}},"content":{"299":{}},"tags":{}}],["spécifiqu",{"_index":605,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"310":{},"321":{},"329":{},"334":{},"340":{}},"tags":{}}],["src/components/library.ts:29",{"_index":488,"title":{},"content":{"265":{}},"tags":{}}],["src/components/lunaticcomponents.tsx:52",{"_index":171,"title":{},"content":{"43":{}},"tags":{}}],["src/components/shared/button/button.tsx:61",{"_index":454,"title":{},"content":{"226":{}},"tags":{}}],["src/components/shared/hoc/slottablecomponent.tsx:50",{"_index":377,"title":{},"content":{"224":{}},"tags":{}}],["src/components/shared/modalcontrols/modalcontrols.tsx:26",{"_index":176,"title":{},"content":{"47":{}},"tags":{}}],["src/components/type.ts:318",{"_index":212,"title":{},"content":{"80":{}},"tags":{}}],["src/type.source.ts:267",{"_index":389,"title":{},"content":{"107":{}},"tags":{}}],["src/use",{"_index":90,"title":{},"content":{"5":{},"6":{},"18":{},"19":{},"25":{},"26":{},"51":{},"52":{},"58":{},"67":{},"71":{},"77":{},"82":{},"84":{},"86":{},"90":{},"119":{},"147":{},"149":{},"175":{},"228":{},"231":{}},"tags":{}}],["stack",{"_index":107,"title":{},"content":{"6":{},"8":{},"19":{},"21":{},"26":{},"28":{},"52":{},"54":{},"251":{}},"tags":{}}],["stacktrac",{"_index":113,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["stacktracelimit",{"_index":123,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["start",{"_index":258,"title":{},"content":{"110":{},"130":{}},"tags":{}}],["state",{"_index":271,"title":{},"content":{"133":{},"313":{}},"tags":{}}],["state2",{"_index":1310,"title":{},"content":{"313":{}},"tags":{}}],["static",{"_index":111,"title":{},"content":{"6":{},"8":{},"19":{},"21":{},"26":{},"28":{},"52":{},"54":{}},"tags":{}}],["stemmer",{"_index":1348,"title":{},"content":{"319":{}},"tags":{}}],["stopword",{"_index":1391,"title":{},"content":{"319":{}},"tags":{}}],["store",{"_index":69,"title":{},"content":{"12":{},"171":{},"227":{}},"tags":{}}],["storenam",{"_index":1402,"title":{},"content":{"319":{},"320":{}},"tags":{}}],["strict",{"_index":1186,"title":{},"content":{"301":{}},"tags":{}}],["string",{"_index":87,"title":{},"content":{"5":{},"6":{},"18":{},"19":{},"25":{},"26":{},"51":{},"52":{},"75":{},"76":{},"93":{},"95":{},"96":{},"97":{},"99":{},"100":{},"101":{},"102":{},"104":{},"127":{},"129":{},"136":{},"137":{},"142":{},"153":{},"154":{},"157":{},"165":{},"230":{},"244":{},"245":{},"246":{},"247":{},"254":{},"259":{},"260":{},"294":{},"329":{},"334":{},"337":{},"341":{}},"tags":{}}],["structur",{"_index":1654,"title":{"334":{}},"content":{"334":{},"342":{}},"tags":{}}],["style",{"_index":481,"title":{},"content":{"257":{},"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"323":{},"324":{}},"tags":{}}],["subcompon",{"_index":466,"title":{},"content":{"251":{}},"tags":{}}],["subpag",{"_index":51,"title":{"118":{}},"content":{"12":{},"108":{},"118":{},"329":{},"331":{}},"tags":{}}],["subsequ",{"_index":363,"title":{"211":{},"236":{},"258":{},"307":{}},"content":{"211":{},"236":{},"237":{},"238":{},"258":{},"305":{},"307":{},"310":{}},"tags":{}}],["suggest",{"_index":235,"title":{"105":{},"212":{},"259":{},"276":{},"319":{}},"content":{"105":{},"123":{},"129":{},"212":{},"259":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"319":{},"320":{},"321":{},"322":{},"341":{}},"tags":{}}],["suggesterdefinit",{"_index":388,"title":{},"content":{"105":{}},"tags":{}}],["suggesternotif",{"_index":365,"title":{"213":{}},"content":{"213":{}},"tags":{}}],["suggestertyp",{"_index":1432,"title":{},"content":{"320":{}},"tags":{}}],["sui",{"_index":1855,"title":{},"content":{"357":{}},"tags":{}}],["suit",{"_index":721,"title":{},"content":{"292":{},"341":{},"352":{}},"tags":{}}],["suivant",{"_index":780,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"300":{},"301":{},"304":{},"305":{},"306":{},"319":{},"329":{},"330":{},"334":{},"335":{},"338":{},"342":{},"353":{}},"tags":{}}],["suivi",{"_index":1736,"title":{"343":{},"346":{}},"content":{"338":{},"341":{},"343":{},"346":{}},"tags":{}}],["suivr",{"_index":1163,"title":{},"content":{"296":{}},"tags":{}}],["sum_expens",{"_index":1531,"title":{},"content":{"317":{}},"tags":{}}],["summar",{"_index":483,"title":{},"content":{"260":{}},"tags":{}}],["summari",{"_index":482,"title":{"260":{}},"content":{"260":{}},"tags":{}}],["summaryrespons",{"_index":366,"title":{"214":{}},"content":{"214":{}},"tags":{}}],["summarytitl",{"_index":367,"title":{"215":{}},"content":{"215":{}},"tags":{}}],["sup",{"_index":1196,"title":{},"content":{"301":{},"328":{}},"tags":{}}],["superieur",{"_index":1189,"title":{},"content":{"301":{}},"tags":{}}],["supplémentair",{"_index":554,"title":{},"content":{"236":{},"237":{},"238":{},"301":{},"302":{},"321":{},"323":{},"331":{},"343":{},"344":{},"346":{}},"tags":{}}],["support",{"_index":250,"title":{},"content":{"128":{},"309":{},"341":{}},"tags":{}}],["supporté",{"_index":1858,"title":{},"content":{"357":{}},"tags":{}}],["supprim",{"_index":664,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"292":{},"294":{},"347":{}},"tags":{}}],["supérieur",{"_index":1112,"title":{},"content":{"301":{},"304":{},"316":{}},"tags":{}}],["supériorit",{"_index":1185,"title":{},"content":{"301":{}},"tags":{}}],["sur",{"_index":506,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"291":{},"292":{},"293":{},"294":{},"297":{},"301":{},"302":{},"304":{},"305":{},"306":{},"319":{},"320":{},"323":{},"341":{},"342":{},"344":{},"351":{},"352":{},"353":{},"356":{},"359":{}},"tags":{}}],["surnam",{"_index":1333,"title":{},"content":{"312":{},"361":{}},"tags":{}}],["surround",{"_index":470,"title":{},"content":{"253":{}},"tags":{}}],["survey",{"_index":24,"title":{},"content":{"12":{},"56":{},"83":{},"91":{},"113":{},"150":{},"154":{},"157":{},"162":{},"164":{}},"tags":{}}],["switch",{"_index":276,"title":{"216":{},"261":{}},"content":{"133":{},"216":{},"261":{}},"tags":{}}],["symlink",{"_index":819,"title":{"298":{}},"content":{"297":{},"298":{},"299":{}},"tags":{}}],["synchronis",{"_index":646,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"343":{},"346":{},"349":{}},"tags":{}}],["synonym",{"_index":1359,"title":{},"content":{"319":{}},"tags":{}}],["syntax",{"_index":1840,"title":{},"content":{"356":{}},"tags":{}}],["system",{"_index":279,"title":{},"content":{"134":{},"146":{}},"tags":{}}],["systèm",{"_index":668,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"293":{},"296":{},"298":{},"299":{},"341":{},"342":{},"343":{},"346":{},"348":{},"351":{}},"tags":{}}],["sélect",{"_index":825,"title":{},"content":{"298":{}},"tags":{}}],["sélection",{"_index":1450,"title":{},"content":{"321":{}},"tags":{}}],["sélectionn",{"_index":579,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"309":{},"311":{},"313":{},"315":{},"323":{}},"tags":{}}],["sélectionné",{"_index":823,"title":{},"content":{"298":{}},"tags":{}}],["sémantiqu",{"_index":545,"title":{},"content":{"236":{},"237":{},"238":{},"307":{}},"tags":{}}],["sépare",{"_index":1831,"title":{},"content":{"355":{}},"tags":{}}],["séquenc",{"_index":537,"title":{},"content":{"236":{},"237":{},"238":{},"306":{},"307":{},"342":{}},"tags":{}}],["série",{"_index":501,"title":{},"content":{"232":{},"233":{},"234":{},"235":{},"291":{}},"tags":{}}],["s’affich",{"_index":1079,"title":{},"content":{"301":{},"304":{}},"tags":{}}],["t",{"_index":207,"title":{},"content":{"74":{},"76":{},"79":{},"309":{},"340":{},"342":{}},"tags":{}}],["tabl",{"_index":369,"title":{"217":{},"262":{},"281":{},"317":{}},"content":{"217":{},"255":{},"262":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"317":{},"327":{}},"tags":{}}],["tableau",{"_index":517,"title":{"327":{},"328":{}},"content":{"232":{},"233":{},"234":{},"235":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"291":{},"293":{},"294":{},"300":{},"305":{},"317":{},"323":{},"327":{},"334":{},"342":{},"353":{}},"tags":{}}],["tableaucla11",{"_index":1547,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla12",{"_index":1550,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla13",{"_index":1553,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla21",{"_index":1548,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla22",{"_index":1551,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla23",{"_index":1554,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla31",{"_index":1549,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla32",{"_index":1552,"title":{},"content":{"327":{}},"tags":{}}],["tableaucla33",{"_index":1555,"title":{},"content":{"327":{}},"tags":{}}],["tableaux",{"_index":1542,"title":{},"content":{"325":{}},"tags":{}}],["tag",{"_index":1684,"title":{},"content":{"330":{},"342":{}},"tags":{}}],["taill",{"_index":647,"title":{},"content":{"287":{},"288":{},"289":{},"290":{},"349":{}},"tags":{}}],["tait",{"_index":1262,"title":{},"content":{"309":{},"325":{}},"tags":{}}],["take",{"_index":13,"title":{},"content":{"12":{},"68":{}},"tags":{}}],["takoma",{"_index":1302,"title":{},"content":{"313":{}},"tags":{}}],["tandi",{"_index":1666,"title":{},"content":{"334":{}},"tags":{}}],["tant",{"_index":619,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"299":{},"325":{},"335":{}},"tags":{}}],["tape",{"_index":1754,"title":{},"content":{"343":{},"346":{}},"tags":{}}],["target",{"_index":132,"title":{},"content":{"8":{},"21":{},"28":{},"54":{}},"tags":{}}],["targetobject",{"_index":134,"title":{},"content":{"8":{},"21":{},"28":{},"54":{}},"tags":{}}],["tat",{"_index":635,"title":{"287":{},"350":{}},"content":{"287":{},"288":{},"289":{},"290":{},"345":{}},"tags":{}}],["tbodi",{"_index":370,"title":{"218":{}},"content":{"218":{}},"tags":{}}],["td",{"_index":371,"title":{"219":{}},"content":{"219":{}},"tags":{}}],["test",{"_index":442,"title":{"172":{}},"content":{"172":{},"301":{},"304":{}},"tags":{}}],["testcod",{"_index":1050,"title":{},"content":{"304":{}},"tags":{}}],["testdatea",{"_index":1051,"title":{},"content":{"304":{}},"tags":{}}],["testdateb",{"_index":1052,"title":{},"content":{"304":{}},"tags":{}}],["testdatec",{"_index":1053,"title":{},"content":{"304":{}},"tags":{}}],["tester",{"_index":1068,"title":{},"content":{"301":{},"304":{}},"tags":{}}],["testing.handlechang",{"_index":444,"title":{"173":{}},"content":{},"tags":{}}],["testsurboo",{"_index":1048,"title":{},"content":{"304":{}},"tags":{}}],["testtext",{"_index":1049,"title":{},"content":{"301":{},"304":{}},"tags":{}}],["texa",{"_index":1304,"title":{},"content":{"313":{}},"tags":{}}],["text",{"_index":487,"title":{"263":{},"282":{},"325":{}},"content":{"263":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"294":{},"301":{},"302":{},"303":{},"304":{},"310":{},"312":{},"318":{},"325":{},"326":{},"327":{},"328":{}},"tags":{}}],["textarea",{"_index":372,"title":{"220":{},"264":{},"272":{},"318":{}},"content":{"220":{},"264":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"299":{},"304":{},"318":{}},"tags":{}}],["textuel",{"_index":542,"title":{},"content":{"236":{},"237":{},"238":{},"307":{}},"tags":{}}],["th",{"_index":374,"title":{"221":{}},"content":{"221":{}},"tags":{}}],["thead",{"_index":375,"title":{"222":{}},"content":{"222":{}},"tags":{}}],["thing",{"_index":395,"title":{},"content":{"155":{}},"tags":{}}],["through",{"_index":65,"title":{},"content":{"12":{},"227":{}},"tags":{}}],["time",{"_index":460,"title":{},"content":{"244":{}},"tags":{}}],["titr",{"_index":546,"title":{},"content":{"236":{},"237":{},"238":{},"301":{},"307":{}},"tags":{}}],["todo",{"_index":1698,"title":{},"content":{"331":{}},"tags":{}}],["token",{"_index":1350,"title":{},"content":{"319":{}},"tags":{}}],["total",{"_index":1530,"title":{},"content":{"317":{}},"tags":{}}],["tou",{"_index":629,"title":{},"content":{"266":{},"267":{},"268":{},"269":{},"302":{},"324":{}},"tags":{}}],["tout",{"_index":1711,"title":{},"content":{"337":{},"341":{},"356":{}},"tags":{}}],["tr",{"_index":376,"title":{"223":{}},"content":{"223":{}},"tags":{}}],["trace",{"_index":117,"title":{},"content":{"6":{},"19":{},"26":{},"52":{}},"tags":{}}],["track",{"_index":304,"title":{},"content":{"145":{}},"tags":{}}],["trackchang",{"_index":303,"title":{"145":{}},"content":{"145":{},"341":{},"343":{},"346":{}},"tags":{}}],["traduit",{"_index":1010,"title":{},"content":{"302":{}},"tags":{}}],["trangèr",{"_index":1228,"title":{},"content":{"310":{}},"tags":{}}],["travail",{"_index":704,"title":{},"content":{"283":{},"284":{},"285":{},"286":{},"329":{}},"tags":{}}],["traver",{"_index":608,"title":{},"content":{"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"287":{},"288":{},"289":{},"290":{},"310":{},"348":{},"355":{}},"tags":{}}],["tre",{"_index":564,"title":{},"content":{"236":{},"237":{},"238":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"291":{},"292":{},"293":{},"294":{},"295":{},"299":{},"301":{},"302":{},"304":{},"305":{},"309":{},"311":{},"316":{},"319":{},"320":{},"323":{},"325":{},"327":{},"328":{},"329":{},"334":{},"341":{},"353":{},"354":{}},"tags":{}}],["trigger",{"_index":283,"title":{},"content":{"135":{},"138":{}},"tags":{}}],["troisièm",{"_index":965,"title":{},"content":{"305":{}},"tags":{}}],["trop",{"_index":1263,"title":{},"content":{"309":{}},"tags":{}}],["trouv",{"_index":1691,"title":{},"content":{"331":{},"342":{},"353":{}},"tags":{}}],["truc",{"_index":1069,"title":{},"content":{"304":{},"328":{}},"tags":{}}],["true",{"_index":421,"title":{},"content":{"161":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"292":{},"293":{},"294":{},"299":{},"301":{},"302":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"315":{},"316":{},"317":{},"318":{},"319":{},"323":{},"326":{},"327":{},"328":{},"335":{},"338":{},"342":{},"343":{},"346":{},"347":{}},"tags":{}}],["trè",{"_index":1543,"title":{},"content":{"325":{}},"tags":{}}],["txt",{"_index":926,"title":{},"content":{"294":{},"310":{},"326":{},"327":{},"334":{}},"tags":{}}],["type",{"_index":8,"title":{"12":{},"40":{},"60":{},"61":{},"68":{},"72":{},"73":{},"76":{},"78":{},"79":{},"81":{},"83":{},"85":{},"87":{},"88":{},"91":{},"92":{},"108":{},"109":{},"120":{},"121":{},"148":{},"150":{},"151":{},"176":{},"177":{},"227":{},"229":{},"240":{},"303":{},"304":{},"341":{}},"content":{"5":{},"6":{},"8":{},"12":{},"18":{},"19":{},"21":{},"25":{},"26":{},"28":{},"40":{},"41":{},"45":{},"51":{},"52":{},"54":{},"56":{},"69":{},"76":{},"79":{},"87":{},"129":{},"140":{},"150":{},"155":{},"157":{},"160":{},"176":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"248":{},"249":{},"250":{},"251":{},"252":{},"253":{},"255":{},"256":{},"259":{},"260":{},"262":{},"263":{},"264":{},"283":{},"284":{},"285":{},"286":{},"292":{},"293":{},"294":{},"299":{},"301":{},"302":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"324":{},"326":{},"327":{},"328":{},"334":{},"335":{},"336":{},"340":{},"342":{},"351":{},"356":{},"357":{},"361":{}},"tags":{}}],["typeof",{"_index":326,"title":{},"content":{"178":{},"179":{},"180":{},"181":{},"182":{},"183":{},"184":{},"185":{},"186":{},"187":{},"188":{},"189":{},"190":{},"192":{},"193":{},"194":{},"195":{},"196":{},"197":{},"198":{},"199":{},"200":{},"201":{},"202":{},"203":{},"204":{},"205":{},"206":{},"207":{},"208":{},"209":{},"210":{},"211":{},"212":{},"213":{},"214":{},"215":{},"216":{},"217":{},"218":{},"219":{},"220":{},"221":{},"222":{},"223":{}},"tags":{}}],["typeofcontrol",{"_index":218,"title":{},"content":{"87":{},"301":{},"304":{},"327":{},"328":{},"334":{}},"tags":{}}],["typer",{"_index":1650,"title":{},"content":{"324":{}},"tags":{}}],["typescript",{"_index":1649,"title":{},"content":{"324":{},"334":{},"351":{}},"tags":{}}],["typesourc",{"_index":924,"title":{},"content":{"294":{},"305":{},"310":{},"313":{},"315":{}},"tags":{}}],["télécharger",{"_index":1870,"title":{},"content":{"360":{}},"tags":{}}],["tête",{"_index":921,"title":{},"content":{"294":{},"317":{}},"tags":{}}],["un",{"_index":497,"title":{"327":{},"328":{}},"content":{"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{},"266":{},"267":{},"268":{},"269":{},"270":{},"271":{},"272":{},"273":{},"274":{},"275":{},"276":{},"277":{},"278":{},"279":{},"280":{},"281":{},"282":{},"283":{},"284":{},"285":{},"286":{},"287":{},"288":{},"289":{},"290":{},"291":{},"292":{},"293":{},"294":{},"295":{},"296":{},"298":{},"299":{},"301":{},"302":{},"304":{},"305":{},"306":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"321":{},"322":{},"323":{},"324":{},"329":{},"330":{},"331":{},"332":{},"333":{},"334":{},"335":{},"336":{},"338":{},"340":{},"341":{},"342":{},"343":{},"344":{},"346":{},"348":{},"350":{},"351":{},"352":{},"353":{},"354":{},"356":{},"357":{},"359":{},"360":{}},"tags":{}}],["uncheck",{"_index":1200,"title":{},"content":{"308":{}},"tags":{}}],["undefin",{"_index":180,"title":{},"content":{"56":{},"152":{},"341":{}},"tags":{}}],["uniqu",{"_index":1003,"title":{},"content":{"302":{},"320":{},"334":{},"342":{}},"tags":{}}],["unit",{"_index":58,"title":{},"content":{"12":{},"56":{},"91":{},"317":{},"321":{},"327":{}},"tags":{}}],["unknown",{"_index":97,"title":{},"content":{"6":{},"18":{},"19":{},"26":{},"40":{},"52":{},"56":{},"62":{},"63":{},"64":{},"65":{},"66":{},"83":{},"230":{}},"tags":{}}],["unnecessari",{"_index":930,"title":{},"content":{"305":{}},"tags":{}}],["updatedat",{"_index":446,"title":{"174":{}},"content":{"174":{},"337":{}},"tags":{}}],["ursaf",{"_index":1365,"title":{},"content":{"319":{}},"tags":{}}],["ursaff",{"_index":1366,"title":{},"content":{"319":{}},"tags":{}}],["urssaf",{"_index":1364,"title":{},"content":{"319":{}},"tags":{}}],["us",{"_index":67,"title":{},"content":{"12":{},"108":{},"129":{},"133":{},"139":{},"145":{},"156":{},"172":{},"227":{}},"tags":{}}],["usecallback",{"_index":292,"title":{},"content":{"139":{},"341":{}},"tags":{}}],["uselunat",{"_index":29,"title":{"55":{}},"content":{"12":{},"14":{},"55":{},"87":{},"120":{},"150":{},"156":{},"283":{},"284":{},"285":{},"286":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"323":{},"326":{},"327":{},"328":{},"333":{},"336":{},"342":{},"343":{},"346":{},"352":{},"360":{},"361":{}},"tags":{}}],["uselunatic(sourc",{"_index":177,"title":{},"content":{"55":{},"156":{},"283":{},"284":{},"285":{},"286":{},"292":{},"293":{},"294":{},"299":{},"301":{},"303":{},"304":{},"305":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{},"320":{},"323":{},"326":{},"327":{},"328":{},"340":{},"342":{},"343":{},"346":{},"361":{}},"tags":{}}],["user",{"_index":17,"title":{},"content":{"12":{},"68":{},"87":{},"131":{},"139":{},"256":{},"260":{}},"tags":{}}],["usest",{"_index":747,"title":{},"content":{"292":{},"293":{},"294":{},"299":{},"301":{},"304":{},"305":{},"319":{},"335":{}},"tags":{}}],["usestatecast(\\\"2030",{"_index":1138,"title":{},"content":{"304":{}},"tags":{}}]],"pipeline":["stemmer"]}} \ No newline at end of file diff --git a/website/sitemap.xml b/website/sitemap.xml new file mode 100644 index 000000000..10c18aade --- /dev/null +++ b/website/sitemap.xml @@ -0,0 +1 @@ +https://inseefr.github.io/Lunatic/docs/changelogweekly0.5https://inseefr.github.io/Lunatic/docs/apiweekly0.5https://inseefr.github.io/Lunatic/docs/api/classes/VTLExpressionErrorweekly0.5https://inseefr.github.io/Lunatic/docs/api/classes/VTLInterpretationErrorweekly0.5https://inseefr.github.io/Lunatic/docs/api/classes/VTLMissingDependenciesweekly0.5https://inseefr.github.io/Lunatic/docs/api/classes/VTLMissingDependencyweekly0.5https://inseefr.github.io/Lunatic/docs/api/functions/LunaticComponentsweekly0.5https://inseefr.github.io/Lunatic/docs/api/functions/ModalControlsweekly0.5https://inseefr.github.io/Lunatic/docs/api/functions/useLunaticweekly0.5https://inseefr.github.io/Lunatic/docs/api/interfaces/LunaticExtraPropsweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticChangesHandlerweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticCollectedValueweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticComponentDefinitionweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticComponentPropsweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticControlweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticDataweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticErrorweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticExpressionweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticOptionsweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticPagerweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticSlotComponentsweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticSourceweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticStateweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticStateVariableweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticValuesweekly0.5https://inseefr.github.io/Lunatic/docs/api/type-aliases/LunaticVariableweekly0.5https://inseefr.github.io/Lunatic/docs/api/variables/Buttonweekly0.5https://inseefr.github.io/Lunatic/docs/api/variables/componentsweekly0.5https://inseefr.github.io/Lunatic/docs/category/agr%C3%A9gateursweekly0.5https://inseefr.github.io/Lunatic/docs/category/balisageweekly0.5https://inseefr.github.io/Lunatic/docs/category/champsweekly0.5https://inseefr.github.io/Lunatic/docs/category/composantsweekly0.5https://inseefr.github.io/Lunatic/docs/category/fonctionnement-interneweekly0.5https://inseefr.github.io/Lunatic/docs/category/hook-uselunaticweekly0.5https://inseefr.github.io/Lunatic/docs/components/aggregators/loopweekly0.5https://inseefr.github.io/Lunatic/docs/components/aggregators/pairwiseweekly0.5https://inseefr.github.io/Lunatic/docs/components/aggregators/rosterForLoopweekly0.5https://inseefr.github.io/Lunatic/docs/components/aggregators/roundaboutweekly0.5https://inseefr.github.io/Lunatic/docs/components/baseweekly0.5https://inseefr.github.io/Lunatic/docs/components/decorations/filter-descriptionweekly0.5https://inseefr.github.io/Lunatic/docs/components/decorations/questionweekly0.5https://inseefr.github.io/Lunatic/docs/components/decorations/sequenceweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/checkboxBooleanweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/checkboxGroupweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/checkboxOneweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/datepickerweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/dropdownweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/durationweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/inputweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/input-numberweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/radioweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/suggesterweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/tableweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/textweekly0.5https://inseefr.github.io/Lunatic/docs/components/fields/textareaweekly0.5https://inseefr.github.io/Lunatic/docs/components/lunatic-componentsweekly0.5https://inseefr.github.io/Lunatic/docs/components/personnalisationweekly0.5https://inseefr.github.io/Lunatic/docs/hook/controlsweekly0.5https://inseefr.github.io/Lunatic/docs/hook/navigationweekly0.5https://inseefr.github.io/Lunatic/docs/hook/parametersweekly0.5https://inseefr.github.io/Lunatic/docs/hook/returnweekly0.5https://inseefr.github.io/Lunatic/docs/hook/track-changesweekly0.5https://inseefr.github.io/Lunatic/docs/internal/cleaningweekly0.5https://inseefr.github.io/Lunatic/docs/internal/missingweekly0.5https://inseefr.github.io/Lunatic/docs/internal/reducerweekly0.5https://inseefr.github.io/Lunatic/docs/internal/resizingweekly0.5https://inseefr.github.io/Lunatic/docs/vtlweekly0.5https://inseefr.github.io/Lunatic/docs/weekly0.5 \ No newline at end of file diff --git a/website/vtl.html b/website/vtl.html new file mode 100644 index 000000000..b0a98ad96 --- /dev/null +++ b/website/vtl.html @@ -0,0 +1,27 @@ + + + + + +VTL | @inseefr/lunatic + + + + +

VTL

+

Il est possible à plusieurs endroits dans la définition des composants d'utiliser la syntaxe VTL.

+
{ "value": "count(PRENOM)", "type": "VTL" }
+

Pour l'interprétation de ces expressions @inseefr/lunatic se repose sur la librairie @inseefr/trevas.

+
info

En cas d'expression invalide, Lunatic se contentera d'afficher l'expression non interprétée. Par exemple si un formulaire à une expression sans guillements

{ "value": "Bonjour les gens", "type": "VTL" }

Lunatic affichera Bonjour les gens au lieu de crasher (il est tout de même conseillé de ne pas se reposer sur ce comportement et de plutôt corriger le JSON)

+

Markdown

+

Lunatic fournit en plus un mode markdown qui permet, une fois l'expression exécutée d'interpréter le format markdown. Dans ce cas-là, il faudra utiliser un type VTL|MD.

+
{ "value": "\"Je suis du **markdown**\"", "type": "VTL|MD" }
+

Dans le markdown il est possible d'ajouter des émojis. Les différents emoji supportés sont disponible ici et ici

+
{ "value": "\"Emoji :grinning_face: ou \"", "type": "VTL|MD" }
+

Variable spéciale

+

Certaines variables sont injecté dynamiquement lors de l'interprétation d'une expression.

+
    +
  • GLOBAL_ITERATION_INDEX (entier), permet de faire référence à l'itération courante dans le cas d'une boucle
  • +
+ + \ No newline at end of file